<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am currently using GDAL 3.1.3 on a Ubuntu machine. I am trying to work with NetCDF files using the UGRID convention (described here:
<a href="https://ugrid-conventions.github.io/ugrid-conventions/">https://ugrid-conventions.github.io/ugrid-conventions/</a>).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am having difficulty working with this kind of NetCDF file. Here is the output of `gdalinfo` against one subdataset of a NetCDF file using the UGRID convention.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">`$ gdalinfo -mm -proj4 NETCDF:"PATH_TO_NETCDF/CMC_shop_slfeav200n_surface_sfc_0_2019080706_P040.nc":St_Lawrence_River_face_nodes<o:p></o:p></p>
<p class="MsoNormal">Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute<o:p></o:p></p>
<p class="MsoNormal">Driver: netCDF/Network Common Data Format<o:p></o:p></p>
<p class="MsoNormal">Files: PATH_TO_NETCDF/CMC_shop_slfeav200n_surface_sfc_0_2019080706_P040.nc<o:p></o:p></p>
<p class="MsoNormal">Size is 3, 87396<o:p></o:p></p>
<p class="MsoNormal">Metadata:<o:p></o:p></p>
<p class="MsoNormal"> St_Lawrence_River_face_nodes#cf_role=face_node_connectivity<o:p></o:p></p>
<p class="MsoNormal"> St_Lawrence_River_face_nodes#long_name=Maps every triangular face to its three corner nodes.<o:p></o:p></p>
<p class="MsoNormal"> St_Lawrence_River_face_nodes#start_index=0<o:p></o:p></p>
<p class="MsoNormal">Corner Coordinates:<o:p></o:p></p>
<p class="MsoNormal">Upper Left ( 0.0, 0.0)<o:p></o:p></p>
<p class="MsoNormal">Lower Left ( 0.0,87396.0)<o:p></o:p></p>
<p class="MsoNormal">Upper Right ( 3.0, 0.0)<o:p></o:p></p>
<p class="MsoNormal">Lower Right ( 3.0,87396.0)<o:p></o:p></p>
<p class="MsoNormal">Center ( 1.5,43698.0)<o:p></o:p></p>
<p class="MsoNormal">Band 1 Block=3x1 Type=Int32, ColorInterp=Undefined<o:p></o:p></p>
<p class="MsoNormal"> Computed Min/Max=0.000,53331.000<o:p></o:p></p>
<p class="MsoNormal"> NoData Value=-2147483647<o:p></o:p></p>
<p class="MsoNormal"> Metadata:<o:p></o:p></p>
<p class="MsoNormal"> cf_role=face_node_connectivity<o:p></o:p></p>
<p class="MsoNormal"> long_name=Maps every triangular face to its three corner nodes.<o:p></o:p></p>
<p class="MsoNormal"> NETCDF_VARNAME=St_Lawrence_River_face_nodes<o:p></o:p></p>
<p class="MsoNormal"> start_index=0<o:p></o:p></p>
<p class="MsoNormal">`<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Following this output, I can confirm that the size and the extent (Corner Coordinates) are not right for example.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there anyone who has worked with NetCDF files using the UGRID convention? Is GDAL capable of handling or manipulating this kind of NetCDF file?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks a lot in advance for your answer(s)!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Félix Laframboise<o:p></o:p></p>
</div>
</body>
</html>