-
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
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
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
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,