<div dir="ltr"><div>Dear List,<div><br></div><div>We are struggling with the following netCDF file, which appears to be quite old (CF-1.6) and allegedly contains a few layers (one of which is called "inflow". with point data).</div><div><br class="gmail-Apple-interchange-newline"><a href="https://drive.google.com/file/d/1FRt0L4idunewwjgKQmZQ7Ny_KGnuTL2X/view?usp=sharing">https://drive.google.com/file/d/1FRt0L4idunewwjgKQmZQ7Ny_KGnuTL2X/view?usp=sharing</a><br></div><div><br></div><div>The only reason we know about the layers is from the docs on the web service it was obtained from, and also we have managed to open the file with some Python code using a netCDF4 module, which is able to enumerate the layers (although it apparently calls them "variables").</div><div><br></div><div>I have been unable to get any of the GDAL/OGR tools to access the data in this file. If you just provide the bare filename, then <b>OpenEx</b> with <b>OF_VECTOR</b> just fails. If you specify the layer name like a subdataset (netCDF:"filename":inflow) then <b>ogrinfo</b> will dump more specific stuff about that layer, but you always get the following message also:</div><div><br></div><div><i>Warning 1: The dataset has several variables that could be identified as vector fields, but not all share the same primary dimension. Consequently they will be ignored.</i><br></div><div><br></div><div><b>ogr2ogr</b> tries to copy the layer if also specified in full, but throws the warning, and the output is empty.</div><div><br></div><div>Our geo import code supports multi-layer files (e.g. FileGDB) but we don't get as far as being able to call <b>GetLayers()</b> on the DS. If they do require specific opening with the full SDS name (like with raster) then I would expect <b>ogrinfo</b> to at least dump the SDS names.</div><div><div><br></div><div>Please advise, thanks!</div></div></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>