ArcGIS 10.1 SA Raster calculator: Multi-raster conditional with nodata

المشرف العام

Administrator
طاقم الإدارة
Hi I have a question regarding the Con statement when used in the SA Raster Calculator.

I am reclassifying a raster (categorical, integer) based on my own mappings but also on another raster (for some of the classes). So example I have

Con("pft.tif"==0,17,Con("pft.tif"==1,1,Con("pft.tif"==2,Con("aez.tif"==1,6,5),Con("pft.tif"==3,3,Con("pft.tif"==4,4,255)))))I've written it like that for ease of reading.

My issue arises when there's no value for aez.tif (i.e. aez.tif value is NoData or the raster does not extend to the pft.tif extent).From what I've seen the result is NoData. I thought it would result in "5". What I want is that if the Con with aez.tif results in this no value, that it does infact return some default that I've specified. I can't do that with e.g.

Con("pft.tif"==2,Con("aez.tif"==1,4,5),5)since that terminates the Con while I still have other conditionals to try.



أكثر...
 
أعلى