Hi, InVEST community! I am using the InVEST Scenario Generator model to forecast the growth of a seagrass meadow for the next 40 years. I want to read the numeric value of each of the 40 raster files generated by the model. However, using my current method, I must process each file in ArcGIS 40 times. Does anyone know how I can automate this process, perhaps using Python?
My current method is as follows: For each file, 1. convert the raster file into a polygon using Raster to Polygon command. 2. Create a new Area field in the attribute table. 3. Calculate the area of each pixel using the Calculate Geometry command. 4. Sum up all values in the Area field.
My hunch is that ArcGIS allows people to replicate this process for all the files I want to process using Python, but I don’t know how to do that. I’d extremely appreciate it if anyone could help me out with it.
Thanks in advance!
nearest_to_edge_2060.tif (124.5 KB)