<div dir="ltr">We are dealing with some netCDF files on S3 which have multiple sub-datasets.<div><br></div><div>Trying to do a simple <font face="monospace">gdalinfo</font> using VSI paths.</div><div><br></div><div>Note you may need to have <font face="monospace">AWS_NO_SIGN_REQUEST=YES</font> to access the file below.</div><div><br></div><div>This works, and gives a summary dump...</div><div><br></div><div><font face="monospace">$ gdalinfo /vsis3/noaa-nwm-pds/nwm.20230720/short_range/<a href="http://nwm.t00z.short_range.land.f001.conus.nc">nwm.t00z.short_range.land.f001.conus.nc</a><br clear="all"></font><div><br></div><div>This fails...</div><div><br></div><div><font face="monospace">$ gdalinfo /vsis3/noaa-nwm-pds/nwm.20230720/short_range/nwm.t00z.short_range.land.f001.conus.nc:SOILSAT_TOP<br></font></div><div><font face="monospace">ERROR 4: `/vsis3/noaa-nwm-pds/nwm.20230720/short_range/nwm.t00z.short_range.land.f001.conus.nc:SOILSAT_TOP' does not exist in the file system, and is not recognized as a supported dataset name.<br>gdalinfo failed - unable to open '/vsis3/noaa-nwm-pds/nwm.20230720/short_range/nwm.t00z.short_range.land.f001.conus.nc:SOILSAT_TOP'.<br></font></div><div><br></div><div>If you ALSO specify the file type hint on the front of the path, it works...</div><div><br></div><div><font face="monospace">$ gdalinfo NETCDF:/vsis3/noaa-nwm-pds/nwm.20230720/short_range/nwm.t00z.short_range.land.f001.conus.nc:SOILSAT_TOP<br></font></div><div><br></div><div>This seems like a bug. It should still be able to recognize and open the file without the type hint, whether or not you provide a sub-dataset suffix.</div><div><br></div><div>Our system generally relies heavily on GDAL's usually-reliable ability to recognize file types and load anything without such hints, so having to provide that as well will be undesirable.</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Simon Eves<div>Senior Rendering Engineer</div><div>+1 (415) 902-1996<br><a href="mailto:simon.eves@heavy.ai" target="_blank">simon.eves@heavy.ai</a></div><div><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="http://www.heavy.ai" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:156px;height:29px"><img src="https://lh4.googleusercontent.com/mzi9GaXA9r6isEqIx5nIYx0oQnpZtzBnF19Pu83MUBPDvp_rpcQXv55z-IZcQrybunkhKf6mXNJjIQinIbkHTigssDxIks_tXAaV1aDQzVT8FpE1wOn3MW0W_iiTnDjVZzMUNgs" width="156" height="29" style="margin-left:0px;margin-top:0px"></span></span></a></p></span></div></div></div></div></div>