Dear Pros ;)
I would like to calculate the zonal mean (for areas specified in a one-dimensional tif) for all raster slices of a multidimensional raster; resorting to the Zonal Statistics (ZS) and Zonal Statistics as Table (ZSaT) tools two problems arose:
I would be thankful for suggestions on how to resolve the first and work around the second issue respectively.
What is the null value of the raster? was it ignored in the zone file?
Does it provide correct results for one raster layer?
Thank you @dazu for reporting this issue and for attaching the project. Please let me know which software version you are using; I have used Pro 2.7.1 to test your cases.
From your project I see that you could successfully run the Zonal Statistics tool processing as multidimensional (1st run of Zonal Statistics from History), creating the correct output ZonalSt_asMulti.CRF.
However, when you see the result in Contents, it shows the statistics of the tp variable, which is positive. The other 2 variables (e and evaow) has negative values, as you can see from the input value raster, era5_subset.CRF data.
To view the other variables, from the Multidimensional tab, choose the variable you want to view to see the values. These values seem correct to me.
Zonal Statistics as Table:
Based on the inputs you have used, the output from Zonal Statistics as Table seems incorrect, I am investigating it further.
Please let me know if that answers your question.
On further investigation, it seems like the problem is related to using a multidimensional raster with multiple variables as input to zonal tools.
You can create a multidimensional raster with one variable in multiple ways: