Hi!
I need help to finish a task.
I am trying to use model builder to simplify a task with Zonal Statistics as Table. I have temperature and precipitation *. bil files in their folders. Problem with model builder is that I have to generate two toolboxes. One for temperature and one for precipitation. Now I am trying with temperature.
I am using the iterate rasters to read the rasters, but I wanted to use the Name to fill a new field that I want to create in the table created with the Zonal Statistics. But I don't manage to do it. I am using a polygon of municipalities as feature zone data and the rasters as Input value display.
Can somebody help me with tips? I will appreciate it. I would like to have a table like this. By now I am able to get a table by dataset (one for temperature (tm), one for precipitation (rr)), but no raster name yet and not a merge table either.
| raster_name | Municipality_number | Altitude | rr | tm | sd | sdfsw | fsw | swe |
| | | | | | | | | |
I am attaching the model builder example also.
I was also trying some python, but I don't manage to add the name to the table either on Python. I was generating a listraster but I am new to python and do now how to add the rasters name in the table. Here is the python example also attached.