P.S.: I notice a change from 3.6.3 to 3.6.4.
docker run ghcr.io/osgeo/gdal:ubuntu-full-3.6.3 gdalinfo --formats | grep -i netcdf
netCDF -raster,multidimensional raster,vector- (rw+vs): Network Common Data Format
docker run ghcr.io/osgeo/gdal:ubuntu-full-3.6.4 gdalinfo --formats | grep -i netcdf
netCDF -raster,multidimensional raster,vector- (rw+s): Network Common Data Format
netCDF -raster,multidimensional raster,vector- (rw+s): Network Common Data Format
So, the "v" disappeared in the driver description between those two versions...
Still the question for me is, is this on purpose?
Release notes for 3.6.4 have two possibly relevant items:
Port
- userfaultfd: avoid it to stall on 32bit and test real working of syscall in CPLIsUserFaultMappingSupported()
- userfaultfd: avoid it to stall on 32bit and test real working of syscall in CPLIsUserFaultMappingSupported()
netCDF driver:
- restore capability of reading CF-1.6-featureType vector layers even if the conventions >= CF 1.8, and improve featureType=trajectory by adding the time attribute (fixes #7550)
- restore capability of reading CF-1.6-featureType vector layers even if the conventions >= CF 1.8, and improve featureType=trajectory by adding the time attribute (fixes #7550)
Gesendet: Donnerstag, 12. Oktober 2023 um 14:01 Uhr
Von: "Stefan Blumentrath via gdal-dev" <gdal-dev@lists.osgeo.org>
An: "gdal-dev" <gdal-dev@lists.osgeo.org>
Betreff: [gdal-dev] Cannot choose netCDF driver instead of HDF5 for nc files
Von: "Stefan Blumentrath via gdal-dev" <gdal-dev@lists.osgeo.org>
An: "gdal-dev" <gdal-dev@lists.osgeo.org>
Betreff: [gdal-dev] Cannot choose netCDF driver instead of HDF5 for nc files
Hi,
I am wondering if the behavior of the NetCDF driver changed in recent GDAL version(s)?
I do have the netCDF driver installed and also HDF5, which has been shaddowing the netCDF driver. So I used to do the following:
export GDAL_SKIP=HDF5
gdalinfo /vsicurl/https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc
But this gives me now:
ERROR 4: `/vsicurl/https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc' not recognized as a supported file format.
(or in Python syntax:
from osgeo import gdal
gdal.GetDriverByName("HDF5").Deregister()
ds = gdal.Open("/vsicurl/https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc")
)
If I do not deregister the HDF5 driver the dataset is opened, but with the HDF5 driver, and I want to use the netCDF driver for those CF-convention files...
I am on Ubuntu 22.04, GDAL 3.6.4, released 2023/04/17...
Any idea how that can be solved? Is it a bug or a feature?
Thanks for helping in advance!
Cheers
Stefan
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev