<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div><div>Greetings, I would greatly appreciate your help.</div><div><br></div><div>I have a problem with certain raster files in QGIS 3.4. </div><div>When requesting statistics via QgsRasterBandStats the average, the sum returns nan.</div><div>The other statistics minimum, maximum, sum of squares and standard deviation if they return expected values, float.</div><div><br></div><div>I think, that the error could be that the method considers the nan in the calculation, in the mean and sum.</div><div><br></div><div><b>How can I solve it? What alternative is there?</b></div><div><br></div><div>I want to avoid the alternative of reading the raster with Gdal again directly. In that case it would be better to redo all my code and work directly with GDal and numpy</div><div><br></div></div><div><br></div><span><i>Thank you for your attention</i></span><br></div></div></body></html>