<div dir="ltr"><div><div>Are there any known limitations that prevent NetCDF datasets from being read using `/vsis3/`?<br><br></div>I've created some NetCDF4 datasets with h5netcdf, and they are readable locally and recognized by gdal. But when I put them on S3, `gdalinfo` only recognizes them with the HDF5 driver, and fails when I force the use with NETCDF:/vsis3/my-bucket/my-file.nc:/dataset<br><br>I'm wondering if there was some regression, because the command mentioned here no longer works for me:<br><a href="https://github.com/conda-forge/gdal-feedstock/issues/376#issuecomment-1320872404">https://github.com/conda-forge/gdal-feedstock/issues/376#issuecomment-1320872404</a><br><br>$ gdalinfo --version<br>GDAL 3.7.2, released 2023/09/05<br><br>$ gdalinfo /vsicurl/<a href="http://download.osgeo.org/gdal/data/netcdf/utm-big-chunks.nc">http://download.osgeo.org/gdal/data/netcdf/utm-big-chunks.nc</a><br>Driver: HDF5Image/HDF5 Dataset<br>Files: /vsicurl/<a href="http://download.osgeo.org/gdal/data/netcdf/utm-big-chunks.nc">http://download.osgeo.org/gdal/data/netcdf/utm-big-chunks.nc</a><br>Size is 3072, 3072<br>Metadata:<br>  CDI=Climate Data Interface version 1.6.0 (<a href="http://code.zmaw.de/projects/cdi">http://code.zmaw.de/projects/cdi</a>)<br>  CDO=Climate Data Operators version 1.6.0 (<a href="http://code.zmaw.de/projects/cdo">http://code.zmaw.de/projects/cdo</a>)<br>  Conventions=CF-1.5<br>  GDAL=GDAL 1.10.0, released 2013/04/13<br>  history=Tue Apr 16 16:07:46 2013: cdo -f nc4 -z zip -k auto copy <a href="http://utmbig.nc">utmbig.nc</a> <a href="http://utmbig2.nc">utmbig2.nc</a><br>Tue Apr 16 16:06:59 2013: GDAL Create( <a href="http://utmbig.nc">utmbig.nc</a>, ... )<br>Corner Coordinates:<br>Upper Left  (    0.0,    0.0)<br>Lower Left  (    0.0, 3072.0)<br>Upper Right ( 3072.0,    0.0)<br>Lower Right ( 3072.0, 3072.0)<br>Center      ( 1536.0, 1536.0)<br>Band 1 Block=1536x1536 Type=Byte, ColorInterp=Undefined<br>  Metadata:<br>    long_name=GDAL Band Number 1<br>    _FillValue=0<br><br><br></div>When I upload one of the Netcdf test datasets from gdal (e.g. <a href="https://github.com/OSGeo/gdal/blob/master/autotest/gdrivers/data/netcdf/longitude_latitude.nc">https://github.com/OSGeo/gdal/blob/master/autotest/gdrivers/data/netcdf/longitude_latitude.nc</a>) to my s3 bucket, it fails to read it:<br><br><br>$ aws s3 cp <a href="http://longitude_latitude.nc">longitude_latitude.nc</a> s3://my-bucket/<br>upload: <a href="http://longitude_latitude.nc">longitude_latitude.nc</a> to s3://my-bucket/<a href="http://longitude_latitude.nc">longitude_latitude.nc</a><br><br>l$ gdalinfo /vsis3/my-bucket/<a href="http://longitude_latitude.nc">longitude_latitude.nc</a><br>ERROR 4: `/vsis3/my-bucket/<a href="http://longitude_latitude.nc">longitude_latitude.nc</a>' not recognized as a supported file format.<br>gdalinfo failed - unable to open '/vsis3/my-bucket/<a href="http://longitude_latitude.nc">longitude_latitude.nc</a>'.</div>