Docker image with GDAL and HDF4 format support based on Python 3.13.
This Docker image includes:
- Python 3.13 (via Miniforge/Conda)
- GDAL with HDF4 format support (
libgdal-hdf4) - PROJ for map projection handling
- NumPy for array operations
The image is based on Debian stable-slim and uses conda-forge for package installation.
docker pull skaverick/gdal_hdf4:latest# build
docker build --no-cache -t gdal_hdf4:py313 .
# run
docker run -it gdal_hdf4:py313
The image is available on Docker Hub: skaverick/gdal_hdf4:py313
docker build --no-cache -t gdal_hdf4:py313 .
docker run -it --rm skaverick/gdal_hdf4:py313 /bin/bashfrom osgeo import gdal
gdal.AllRegister()
ds = gdal.Open("/path/to/file.hdf", gdal.GA_ReadOnly)
...docker run --rm -v /path/to/hdf4/files:/data skaverick/gdal_hdf4:py313 \
gdalinfo /data/your_file.hdfdocker run -it --rm -v /path/to/your/data:/data skaverick/gdal_hdf4:py313 /bin/bash