[gdal-dev] GDAL, HDF4 and MODIS L1B data
Hernán De Angelis
variablestarlight at gmail.com
Mon Nov 11 03:37:21 PST 2024
I recently compiled a minimal GDAL (3.10) with HDF4 support (using HDF
4.3.0) for processing MODIS L1B data. However, the resulting command
line tools cannot understand the format. Perhaps I am doing something
wrong, or missing something important, or both.
Do I understand correctly that MODIS L1B in HDF-EOS format should be
readable by GDAL compiled with HDF4 support without additional libraries?
Thanks for any hint.
Hernán
Workflow:
Build HDF4 (4.3.0)
./configure --prefix=/home/hernan/project --disable-netcdf
--disable-fortran --enable-shared --disable-static
make
make install
Build GDAL (3.10) with HDF4 support
ccmake , make, ... etc
/home/hernan/project/bin/gdal-config --formats
MEM vrt HDF4 MEM
Test
/home/hernan/project/bin/gdalinfo
MOD02QKM.A2024307.1325.061.2024308012941.hdf
ERROR 4: `MOD02QKM.A2024307.1325.061.2024308012941.hdf' not recognized
as being in a supported file format.
gdalinfo failed - unable to open
'MOD02QKM.A2024307.1325.061.2024308012941.hdf'.
Testdata if someone wants to try (warning: 150 Mb!):
https://www.geonatura.se/lastkaj/index.php/s/TCS35pjANsEtSyV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241111/d988efd0/attachment.htm>
More information about the gdal-dev
mailing list