Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDF page: add information about HDF4 and HDF5 libraries #6

Open
GreatEmerald opened this issue Jul 13, 2016 · 1 comment
Open

HDF page: add information about HDF4 and HDF5 libraries #6

GreatEmerald opened this issue Jul 13, 2016 · 1 comment

Comments

@GreatEmerald
Copy link
Member

GreatEmerald commented Jul 13, 2016

During the project week, I ran into a problem that MODIS data is in the HDF4 format, however, it couldn't be read by GDAL, as it assumed it was in the NetCDF format instead. Turns out that GDAL can be compiled either with HDF4 support, or with HDF5 + NetCDF support (see https://trac.osgeo.org/gdal/wiki/HDF#IncompatibilitywithNetCDFLibraries). The former was default before the HDF5 format was popular, and the latter is the default nowadays, with HDF4 not built by default any more (http://r-sig-geo.2731867.n2.nabble.com/OSX-rgdal-GDAL-drivers-and-HDF4-td7588400.html). Older OSs like OSGeo Live thus could read HDF4 images, whereas newer OSs like openSUSE Leap cannot (without having to recompile GDAL from source, or, like I ended up doing, creating a forked package like this). So adding some information to that end to the HDF page is probably a good idea.

@janverbesselt
Copy link
Member

good idea, and ok for me to add more information about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants