Skip to content

Instantly share code, notes, and snippets.

@ajelenak
ajelenak / earthdata-cmd.py
Last active January 30, 2026 14:41
A Python script for running a command-line tool on an HDF5 file available in the NASA Earthdata Cloud. An Earthdata Login is required while the script manages obtaining AWS temporary credentials. HDF5 library 2.0.0 or later is required.
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "earthaccess",
# ]
# ///
# This script contains inline script metadata (above) with its package
# dependencies. The package managers that understand these metadata and enable
# automatic installation of the dependencies are: uv, pipx, hatch, pdm, and