py-gdalogr-cookbook
py-gdalogr-cookbook copied to clipboard
Wrong results in Calculate Zonal Statistics
It seems it's better to use statistical functions from numpy.ma with masked arrays because numpy functions produce strange results. For example, median() sometimes returns masked constant. Also, mean() and average() return different results.