Re: [gdal-dev] Computing statistics from raster dataset without writing aux.xml

2022-10-10 Thread Rahkonen Jukka
- Lähettäjä: gda-dev Puolesta Sean Gillies Lähetetty: maanantai 10. lokakuuta 2022 16.43 Vastaanottaja: Laurențiu Nicola Kopio: gdal dev Aihe: Re: [gdal-dev] Computing statistics from raster dataset without writing aux.xml Hi, Another approach, also involving a copy, is to read the raster data

Re: [gdal-dev] Computing statistics from raster dataset without writing aux.xml

2022-10-10 Thread Sean Gillies
Hi, Another approach, also involving a copy, is to read the raster data as numpy arrays and compute the statistics of those arrays. The GDAL method also has to read the raster data to compute statistics, of course, but doesn't store the entirety of it in memory. On Mon, Oct 10, 2022, 6:51 AM

Re: [gdal-dev] Computing statistics from raster dataset without writing aux.xml

2022-10-10 Thread Laurențiu Nicola via gdal-dev
Hi Mats, This won't help you, but I wanted to suggest you make a temporary directory, copy the .aux.xml file there, then set GDAL_PAM_PROXY_DIR. Unfortunately, at least in my test, GDAL still seems to save the file next to the input, even when calling SetConfigOption before doing anything

[gdal-dev] Computing statistics from raster dataset without writing aux.xml

2022-10-10 Thread Budalen, Mats Bruun via gdal-dev
Hello! I'm writing a Python program which reads raster data. The program uses the ComputeStatistics() function on the dataset, which automatically attempts to write the result to an .aux.xml next to the raster file. I do not under any circumstance want to try to write to the source directory,