Hi, I want to relate two rasters, one that I created by CellStatistics of different rasters, the other is NDVI values in pixel values ranging 0 to 255. What way can I do that? I tried reclassifying the raster but getting errors such as OutReclass = Reclassify(inRaster, remap, "NODATA"), Reclassify missing values and result = wrapper(*args, **kwargs). Pls help
Solved! Go to Solution.
did you get a result for inRaster? just stop the script after that line (comment out the rest of the lines) and provide a snapshot of the resultant table since it should be integer. Once you have a table for reclassification, you can proceed on with there since the error message suggests that you haven't revealed all that is in the table/raster
did you get a result for inRaster? just stop the script after that line (comment out the rest of the lines) and provide a snapshot of the resultant table since it should be integer. Once you have a table for reclassification, you can proceed on with there since the error message suggests that you haven't revealed all that is in the table/raster
Dear Dan,
Thanks for the response, I modified my code a bit, but still getting
errors.It runs fine untill line 18 because it print 4, which is my number
of raster in the input.
How do I proceed further? And once I reclassify, what tool can I use to
overlay reclassified on NDVI raster to display the relation?I am attaching
the snap of
code and errors.Thanks much
Use code formatting rather than screen grabs in case someone wants to replicate the code.
From Cell Statistics I don't think it is getting a list of rasters... examine the code example, putting something into a list doesn't make it an object, make sure that the raster actually lists, it should be added to the list using the raster layer name or the source raster from disk
Thank you Dan, makes sense.