Ahh that might explain the situation. It just 44 pixels – and with the very 
long decimal – they are for sure all different.
I might shorten the decimals.
Thanks


Lene Fischer
From: Pedro Venâncio <[email protected]>
Sent: 7. maj 2020 12:07
To: Lene Fischer <[email protected]>
Cc: qgis-user <[email protected]>
Subject: Re: [Qgis-user] Error in Zonal statistic ?

Hi Lene,

Can you share a sample dataset?

I think it can be possible if the pixels have all different values, and so, 
Zonal Statistics choose the minimum value as minority and majority, but it 
could choose any other value, because any pixel value can be considered the 
less and most represented, as they are all different.

Best regards,
Pedro Venâncio

A quinta, 7/05/2020, 09:34, Lene Fischer 
<[email protected]<mailto:[email protected]>> escreveu:
Hi
I´m trying to calculate values in multi spectral images.
When I use Zonal statistic I get the same result for _min, _minority and 
_majority
Example:


fid

_count

_mean

_median

_min

_max

_minority

_majority



57

44

0.06883086238733747

0.06847017258405685

0.062062818557024

0.07621321827173233

0.062062818557024

0.062062818557024


Can you confirm this error – then I´ll make a bugreport ☺

Regards


Lene Fischer
Associate Professor

University of Copenhagen
Department of Geosciences and Natural Resource Management
Forest and Landscape College
Nødebovej 77a
3480 Fredensborg

MOB +45 40115084
[email protected]<mailto:[email protected]>


_______________________________________________
Qgis-user mailing list
[email protected]<mailto:[email protected]>
List info: 
https://lists.osgeo.org/mailman/listinfo/qgis-user<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=02%7C01%7Clfi%40ign.ku.dk%7C4d648a4d5bba431aef6008d7f26e7603%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637244428555705753&sdata=PKGdWKLvkbONJ6p7DLkWKj4UoOJsBHHc52dCZk%2FT%2BnY%3D&reserved=0>
Unsubscribe: 
https://lists.osgeo.org/mailman/listinfo/qgis-user<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=02%7C01%7Clfi%40ign.ku.dk%7C4d648a4d5bba431aef6008d7f26e7603%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637244428555705753&sdata=PKGdWKLvkbONJ6p7DLkWKj4UoOJsBHHc52dCZk%2FT%2BnY%3D&reserved=0>
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to