[gdal-dev] parsing of netcdf4 no-data values in hdf5 reader

Julien Demaria julien.demaria at acri-st.fr
Sat Oct 13 16:08:40 PDT 2018


Hi,



I have already already implemented NetCDF4 groups support for GDAL in 2015 and use it to read for example NASA OceanColor MODIS/VIIRS L2 products, see the attached email.

Unfortunately I never found enough time to add corresponding GDAL autotests (covering all my modifications) to be able to provide these improvements to the GDAL community.

The other problem is that I implemented this in GDAL 1.11 so porting to latest GDAL need some work, I started to do that in 2016 but never finished...

But I think my code is good and it will be a pity if not reused...

I think I can try to finish the porting to the latest GDAL and provide it to GitHub, but I'm still not sure to have enough time to implement all needed corresponding GDAL autotests. If you want to contribute you are welcome! ;-)



Best Regards,

Julien



-----Message d'origine-----
De : gdal-dev [mailto:gdal-dev-bounces at lists.osgeo.org] De la part de Agram, Piyush S (334D)
Envoyé : samedi 13 octobre 2018 21:00
À : gdal-dev at lists.osgeo.org
Objet : Re: [gdal-dev] parsing of netcdf4 no-data values in hdf5 reader



Hi Even,

     Looking into the issue, I think the NETCDF reader does not read datasets located insides groups for Rasters. There are 2 specific parts of the reader that seems to be the issue:



1. If the drivers does not find 2 arrays that are dimensions under root it bails. This would need to be updated if data is organized within groups and there are no dims/vars at the root level.

2. It only looks into the groups when used for reading vectors and when it does it only parses the string types for geometry definitions. This would need to be updated.



Some related questions to see if anybody is already planning to contribute these capabilities:



1. Update to NETCDF raster driver to look into sub-groups as well? The spec does not seem to talk about this. Assuming they are trying to be backward compatible with formats that did not support groups - is this acceptable?

2. Support for CF conventions in HDF5 reader? NASA/ESRI seem to be happy working with CF-compliant HDF5.



Adding either support will let people use GDAL with xarray etc.



Piyush





_______________________________________________

gdal-dev mailing list

gdal-dev at lists.osgeo.org

https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181013/373e069f/attachment.html>
-------------- next part --------------
An embedded message was scrubbed...
From: Julien Demaria <julien.demaria at acri-st.fr>
Subject: [gdal-dev] NetCDF driver improvements (including groups support)
Date: Thu, 5 Feb 2015 16:10:47 +0000
Size: 8249
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181013/373e069f/attachment.mht>


More information about the gdal-dev mailing list