I want to linear stretch my raster grid formate having column/rows 3128, 3503 with 30 meter resolution by using the following syntax in raster calculator of arcmap 10.1.
("raster" - FocalStatistics("raster", NbrRectangle, 30, 30, "Minimum") /
(FocalStatistics("raster", NbrRectangle, 30, 30, "Maximum") -
FocalStatistics("raster", NbrRectangle, 30, 30, "Minimum"))
But this gives me the error while executing. I have also tried the simple equation but did not work.
("raster" - min("raster")) * 1.0 / (max("raster") - min("raster")) + 0.0
Error displayed:
000539 : Error message from Python. ArcGIS 10.1 Locate topic Description The calculation used by the Calculate Field or Calculate Value tool is invalid. This error message provided will list the specific Python error. Solution This error code covers a number of Python errors: Example error 1: exceptions.TypeError: cannot concatenate 'str' and 'int' objects.The above is a Python-specific error. The calculation is attempting to add or concatenate a string and a number. Example error 2: Invalid field shape@distance The above is an error using the geometry object. The distance method is not a valid method of the geometry object.For specific Python issues, consult the external Python help for more information, or consult the Calculate Field or Calculate Value help for more information on these tools.
What is the right syntax.