[gdal-dev] Handling NetCDF using UGRID Convention

Laframboise,Felix (ECCC) Felix.Laframboise at ec.gc.ca
Wed Sep 8 13:21:02 PDT 2021


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: https://ugrid-conventions.github.io/ugrid-conventions/).

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.

`$ gdalinfo -mm -proj4 NETCDF:"PATH_TO_NETCDF/CMC_shop_slfeav200n_surface_sfc_0_2019080706_P040.nc":St_Lawrence_River_face_nodes
Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute
Driver: netCDF/Network Common Data Format
Files: PATH_TO_NETCDF/CMC_shop_slfeav200n_surface_sfc_0_2019080706_P040.nc
Size is 3, 87396
  St_Lawrence_River_face_nodes#long_name=Maps every triangular face to its three corner nodes.
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,87396.0)
Upper Right (    3.0,    0.0)
Lower Right (    3.0,87396.0)
Center      (    1.5,43698.0)
Band 1 Block=3x1 Type=Int32, ColorInterp=Undefined
    Computed Min/Max=0.000,53331.000
  NoData Value=-2147483647
    long_name=Maps every triangular face to its three corner nodes.

Following this output, I can confirm that the size and the extent (Corner Coordinates) are not right for example.

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?

Thanks a lot in advance for your answer(s)!

Félix Laframboise
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210908/1d93474e/attachment.html>

More information about the gdal-dev mailing list