Timeline for gdal info hist min and max from python
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2018 at 11:57 | history | edited | user30184 | CC BY-SA 4.0 |
Add "srcband.ComputeStatistics(0)" for ensuring that statistics exist
|
May 24, 2018 at 11:13 | vote | accept | KcFnMi | ||
May 24, 2018 at 11:01 | comment | added | user2856 |
@KcFnMi because you haven't calculated the statistics yet. srcband.ComputeRasterMinMax() or srcband.ComputeBandStats()
|
|
May 24, 2018 at 10:36 | comment | added | KcFnMi |
Image I have is ~120MB. Updated question with output of print(gdal.Info(ds)) , strange it do not include min/max, can u guess anything?
|
|
May 24, 2018 at 10:27 | comment | added | user30184 | Please provide small test image for reproducing that. | |
May 24, 2018 at 10:25 | comment | added | KcFnMi |
And why it doen't work sometimes? I managed to elaborate a minimun working example and it works as u mention. But sometimes GetMinimum/GetMaximum seem to return None .
|
|
May 24, 2018 at 10:21 | history | answered | user30184 | CC BY-SA 4.0 |