<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Works for me with GDAL 3.6, 3.7 and master on Ubuntu 20.04<br>
    </p>
    <p>$ gdalinfo
/vsicurl/<a class="moz-txt-link-freetext" href="https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc">https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc</a><br>
      Driver: netCDF/Network Common Data Format<br>
      [...]</p>
    <p>/vsicurl/ functionality for the netCDF driver requires using a
      specific system call of Linux. See
<a class="moz-txt-link-freetext" href="https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support">https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support</a><br>
    </p>
    <div class="moz-cite-prefix">Le 12/10/2023 à 14:01, Stefan
      Blumentrath via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:trinity-d76b75f9-824a-4711-b175-5dc82af6fdf4-1697112079870@3c-app-gmx-bap27">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>Hi,</div>
        <div> </div>
        <div>I am wondering if the behavior of the NetCDF driver changed
          in recent GDAL version(s)?</div>
        <div> </div>
        <div>I do have the netCDF driver installed and also HDF5, which
          has been shaddowing the netCDF driver. So I used to do the
          following:</div>
        <div>export GDAL_SKIP=HDF5</div>
        <div>gdalinfo
/vsicurl/<a class="moz-txt-link-freetext" href="https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc">https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc</a></div>
        <div>But this gives me now:</div>
        <div>ERROR 4:
`/vsicurl/<a class="moz-txt-link-freetext" href="https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc">https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc</a>'
          not recognized as a supported file format.</div>
        <div> </div>
        <div>(or in Python syntax:</div>
        <div>from osgeo import gdal</div>
        <div>gdal.GetDriverByName("HDF5").Deregister()</div>
        <div>ds =
gdal.Open("/vsicurl/<a class="moz-txt-link-freetext" href="https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc">https://nbstds.met.no/thredds/fileServer/NBS/S2B/2022/07/03/S2B_MSIL1C_20220703T112119_N0400_R037_T32VLN_20220703T121203.nc</a>")</div>
        <div>)</div>
        <div> </div>
        <div>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...</div>
        <div> </div>
        <div>I am on Ubuntu 22.04, GDAL 3.6.4, released 2023/04/17...</div>
        <div> </div>
        <div>Any idea how that can be solved? Is it a bug or a feature?</div>
        <div>Thanks for helping in advance!</div>
        <div> </div>
        <div>Cheers</div>
        <div>Stefan</div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>