If the value is not NoData then it will keep the value. I realized I should have written/linked to the Con operator as AndOne mentioned. Im not aware of a way of preventing the NoData from appearing in the first place, though. I don't know how to address that issue currently. Within the Raster Calculator use a similar expression as below: con(isnull(RasterDEM), focalmean(RasterDEM, rectangle,4,4), RasterDEM) This will look for the NoData values in the raster and for those locations find the focal mean. You can set NoData values to any value using the conditional operator Set Null ( ArcGIS 9.3, ArcGIS 10 ). I am pretty confident that I created my raster layer correctly and have been told by a few sources that its possibly my Python that is the problem. with the output being: C:\GISEXERCISES\paraster. Each mathematical operation that is applied to a raster image looks for the special case of grid cells containing NoData values and then executes a path that effectively ignores the operation and outputs a NoData value for the corresponding grid cell in the output image. and i think you have to put the condition into the is for? And the example from the help (OutRas = Con(InRas1, 40, 30, "Value >= 2")) kind of represents what i tried in my second post, or am i wrong?Īctually the arroyo_h raster is floating point, the vcf_tree is 8bit unsigned (i think nearest neighbor was the right choice when i reprojected this?), where 0-100 is the percentage of tree coverage, 253 is water (which i still have to filter out of this). My raster calculator function is extremely simple: 'bndraster2' + 'trackraster'. Thanks for your help! I had to change a few things (i think?) because no expression was allowed for the first parameter. The image that I have problem with it is the outcome of linear spectral analysis of ENVI software. The Raster Calculator tool is specifically designed to offer the following benefits: Implement single-line algebraic expressions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |