I have a lot of MODIS tif files in a folder and I want to calculate zonal statistics of each tiff file according to polygon in my shapefile. I am trying this in ModelBuilder of ArcMap 10.3.1
However, It's giving me this error:
I google alot and find inline variable name in zonal statistics throwing me error by using %name%. I google for solution and some posts suggest me to use collect value and parse path. I am using ArcMap 10.3.1 not find parse path function and also not able to apply correctly collect value.
How can I find zonal statistics of bluck of tif files according to my shapefile in ArcMap?
This processing should be automatic to reduce my time.
Editing 1 After Suggestions on this Question:
Will you please help How to use Parse Path Tool. I've given parse tool output as precondition to Zonal statistics and the above error was come. How can I remove this please?
Editing No 2:
Editing 2 is done in 3 steps:
Step 1: Using raster iterator I am accessing Correct_ET folder till 2002001.tif (Green circle) and description of iterator is given in the picture below:
Step 2: In this step I'm using Parse tool and giving green cirle (2002001.tif) as input and selecting name in Parse tool as shown in picture below:
Step 3:
final, I am giving 2002001.tif
as input raster and District
as shapefile which has attribute District_n
(Admin polygon) and Setting output path of table in seperate folder EET with %name% as shown below:
the Output (Value circle) is given as precondition input to zonal statistics however, the errors remains the same? All this complete information is model share in editing 1 of this question