[Qgis-user] Error in Zonal statistic ?

Lene Fischer lfi at ign.ku.dk
Thu May 7 21:51:51 PDT 2020


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 <pedrongvenancio at gmail.com>
Sent: 7. maj 2020 12:07
To: Lene Fischer <lfi at ign.ku.dk>
Cc: qgis-user <qgis-user at lists.osgeo.org>
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 <lfi at ign.ku.dk<mailto:lfi at ign.ku.dk>> 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
lfi at ign.ku.dk<mailto:lfi at ign.ku.dk>


_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200508/be7e9833/attachment.html>


More information about the Qgis-user mailing list