Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
(dimension_size, ...) == nBands Is there a bug or an artificial limitation by the current netCDF driver implementation ? Pierre > On 12 Mar 2024, at 14:16, Pierre Chatelier via gdal-dev > wrote: > > Le 12/03/2024 à 13:48, Even Rouault a écrit : >> >> Le 12/03/2024 à

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
Le 12/03/2024 à 13:48, Even Rouault a écrit : Le 12/03/2024 à 13:33, Pierre Chatelier a écrit : But I can't figure out how to customize the , which is Band1, Band2, Band3... I tried GDALRasterBand::SetDescription(), but without success Looking at netcdfdataset.cpp line 9625, the n

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
But I can't figure out how to customize the , which is Band1, Band2, Band3... I tried GDALRasterBand::SetDescription(), but without success Looking at netcdfdataset.cpp line 9625, the netCDF variable name for a band is extracted from the NETCDF_VARNAME band metadata item of the source band.

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
dimensional API. Cf https://github.com/OSGeo/gdal/blob/master/autotest/gdrivers/netcdf_multidim.py . h5py is also quite convenient Even Le 07/03/2024 à 09:47, Pierre Chatelier via gdal-dev a écrit : Hello, I just had my first encounter with a NetCDF file. GDAL opens that flawlessly, I can ide

[gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-07 Thread Pierre Chatelier via gdal-dev
Hello, I just had my first encounter with a NetCDF file. GDAL opens that flawlessly, I can identify the subdatasets and open/read them thanks to the SUBDATASET_n_NAME, as advertised in https://gdal.org/drivers/raster/netcdf.html However, I am confused by the ability to create such a file wit

[gdal-dev] Global min/max

2021-04-27 Thread Pierre Chatelier
I have found the GetStatistics () method of GDALRasterBand(), but I did not find any GetStatistics() available for the whole dataset at a glance. While it is pretty obvious that it can be achieved by calling Ge

[gdal-dev] Copy or translate ?

2021-03-31 Thread Pierre Chatelier
ptions  : 1)for each band : RasterIO(read from MEM dataset) -> tmp buffer -> RasterIO(write to ENVI dataset) 2)try to use gdal_translate_lib, but I will have a hard time figuring how to build the good parameters 3)something else ? Considering performance first, what would you rec