Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

GDAL HDF4 Docker Image

Docker image with GDAL and HDF4 format support based on Python 3.13.

Description

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.

Usage

Pull the image from Docker Hub

docker pull skaverick/gdal_hdf4:latest

Build and run from Dockerfile

# build
docker build --no-cache -t gdal_hdf4:py313 .    

# run
docker run -it gdal_hdf4:py313

Run the container from Docker Hub

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/bash

Python usage in container

from osgeo import gdal
gdal.AllRegister()

ds = gdal.Open("/path/to/file.hdf", gdal.GA_ReadOnly)
...

Command-line usage

docker run --rm -v /path/to/hdf4/files:/data skaverick/gdal_hdf4:py313 \
  gdalinfo /data/your_file.hdf

Working with data (mounting a directory)

docker run -it --rm -v /path/to/your/data:/data skaverick/gdal_hdf4:py313 /bin/bash

About

GDAL with hdf4 Docker image

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages