gee-community/geemap

Zonal statistics output unexpected

jportolese opened this issue · 4 comments

Environment Information

Mon Apr 10 21:07:16 2023 Eastern Daylight Time

OS | Windows | CPU(s) | 20 | Machine | AMD64
Architecture | 64bit | RAM | 63.9 GiB | Environment | Jupyter
Python 3.8.16 (default, Jan 17 2023, 22:25:28) [MSC v.1916 64 bit (AMD64)]
geemap | 0.20.4 | ee | 0.1.339 | ipyleaflet | 0.17.2
folium | 0.13.0 | jupyterlab | 3.5.3 | notebook | 6.5.2
ipyevents | 2.0.1 | geopandas | 0.12.2 |   |  
Intel(R) oneAPI Math Kernel Library Version 2021.4-Product Build 20210904 for Intel(R) 64 architecture applications

### Description Hi, I'm running the geemap zonal statistics on the ESRI landcover layer with Massachusetts counties and notice the headings for the output csv file are not looking right. The first column heading is Class_5 . I don't see a column that has the landcover number. The csv file is attached.

Any info would be greatly appreciated. Is this a bug or do I have a single class selected somehow.

Thanks
Jamie

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

ESRI_lc_stats_percent.csv
Code

giswqs commented

Try specifying the scale parameter for the zonal function.

giswqs commented

If the scale parameter is not specified, GEE will use bestEffort=True, which will usually use a very coarse resolution for the computation.

That worked. One question does a scale value of 10 mean use 10 meter pixels?

giswqs commented

The scale unit is in meters, not pixels.