HHNK / hhnk-research-tools

General tools for analysis, data manipulation and threedi interaction for analysis of water systems
0 stars 0 forks source link

raster.statistics geeft verschillende waarden #41

Closed wvangerwen closed 4 months ago

wvangerwen commented 6 months ago

Het draaien van de statistics geeft andere resultaten

getest in tests_hrt\test_raster.py. Hieronder mwe.

raster = Raster(TEST_DIRECTORY / r"depth_test.tif")

#Zorg ervoor dat depth_test.tif.aux.xml niet bestaat!

raster.statistics(approve_ok=True, force=True)
{'min': -0.009426, 'max': 0.484222, 'mean': 0.137308, 'std': 0.096939}

raster.statistics(approve_ok=False, force=True)
{'min': -0.00988, 'max': 0.484222, 'mean': 0.133442, 'std': 0.09345}
wvangerwen commented 4 months ago

Note that if approx_ok is first run with True and then False, and then True it will not return the same results. The False will create a more 'accurate' result, saves it in the xml. It will then use that. The force parameter doesnt change that.