Interesting things is why you are using MEAN value for landuse code(?)? Want to see the changes after year by year?
No...the MEAN is supposed to take the average of all the raster pixels within the corresponding polygon. Here's a snapshot of what I'm working on (Note: has been revised):[ATTACH=CONFIG]26185[/ATTACH]At this point I'm pretty sure my problem lies in the environment settings but I can't for the life of me figure out what to change.Resort: HELP!!!
You know you were right about the smaller cell size in this case.I tried 30 *30 and my output was closer to what it should be. I'm working on a 10 * 10 raster at the moment. It's taking quite a while to create the layer but it's definitely worth a shot.....and the wait 🙂
The cell size 60 * 60--it is 3600 sq. I don't know your purpose, but it is so big.You may set it as 1*1, then the return may fit your expectation.The Cell Assignment method doesn't affect your result but cell size.If the cell size is too small, the tool doesn't work sometimes. You need to try.
Usually sampling to a smaller cell size is inappropriate because you will make assumptions from data that is not meant to be used at these scales. I would not resample the raster unless you want your results to be tainted.How large are the polygons? Realize that the app will first convert your polys to rasters. So as I first said, please set up your environment setting inside the zonal stats tool. The enivronmental settings button is at the bottom of the tool. Set your snap raster to the raster. The extent to your polys and the cell size to the raster, and see what happens.Realize that the center of a raster cell has to fall inside the poly before it will be included in the stats.Hope that helps.
Thanks for the clarification Tom. I actually just realized that all that information is in the Properties menu of each file :rolleyes:And I have confirmed that they all have matching Spatial Reference.As for the Cell Size....I'm already pretty tight at 60 by 60, but I'll go ahead and try going lower.Also, do you know if the Cell Assignment is better as CENTER or MAX??
Hey thanks Tom,This seems to have made quite a difference. Better!!However, the values are still not quite right.Do you know for raster analysis if using the Double or Float Type is more advantageous than the other??Maybe it is a Spatial Referencing issue as Shitij mentioned?!!
Export it as GRID (from drop down window to select).
Did you check if the spatial references for raster and shapefile match?
How do I go from TIFF to GRID?
Esri analyze tool only works well under the projected GRID data format (ESRI raste format).So convert it to grid format first.
So I have a model that utilizes the Zonal Statistics as a Table tool and it runs beautifully. However, the output is incredibly false.The input feature zone data is a shapefile comprised of a select few polygons.The zone field selected is FID.The input value raster is a .tiff file which stores the correct values for the output.The output table is saved to the workspace chosen by user.And the statistic performed is the MEAN. Which means the output for every FID row is an average of all pixel values in the raster file within that polygon shape.What's happening when the model runs is that the output is just incorrect....almost like there is no zonal recognition happening.Is anyone familiar with this and perhaps what I can do to make the output correct??Thanks
Hi Shiko, How are you selecting the polygons?Are you sure the selection is being passed to the next tool?How is your output incorrect? Are the values wrong or all records Null?Always consider attaching a snapshot of the model with the forum post. It makes it easier to see the upstream and downstream processes.
I dont know if the tiff input is a problem? I usually use grids. Also, what about cell size? What is the cell size of the tiff, then have you set the environment up for your analysis?
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.