HDF5 & HDF4 Scientific Array Reader
Read HDF5, HDF4, and NASA HDF-EOS2 swaths into flat SQL tables.
Navigates hierarchical groups inside .h5, .hdf5, .hdf, and NASA Earthdata HDF-EOS2 files via scientific.hdf5, scientific.hdf4, and scientific.hdf_eos2. Extracts arrays and swath coordinates into flat Parquet and SQL tables.
What HDF5 & HDF4 Scientific Array Reader does
This reader opens complex hierarchical archives from NASA Earthdata, ESA, physics labs, and instrument logs. Instead of custom traversal scripts, scientific.hdf5, scientific.hdf4, and scientific.hdf_eos2 pick dataset paths cleanly.
Geolocation swaths, scale factors, and fill values resolve inside reproducible recipes, feeding DuckDB SQL transforms and quality checks. Clean slices publish to Parquet/CSV downloads, REST APIs, and MCP.
Input & output example
Extracts named HDF5 / HDF-EOS2 group datasets and geolocation arrays into flat rows.
HDF5 group hierarchy
/HDFEOS/SWATHS/ColumnAmountNO2/Geolocation Fields/Latitude /HDFEOS/SWATHS/ColumnAmountNO2/Data Fields/ColumnAmountNO2
Extracted tabular rows
| lat | lon | column_no2 | quality_flag |
|---|---|---|---|
| 37.78 | -122.42 | 4.12e15 | 0 |
| 37.84 | -122.38 | 4.45e15 | 0 |
How it works
- 1
Inspect HDF group hierarchy and dataset paths
Probe the .h5, .hdf5, or .hdf file to identify exact group/dataset paths and geolocation swath arrays.
- 2
Bind scientific.hdf5, hdf4, or hdf_eos2
Select the matching reader family and declare dataset paths, scale/offset handling, and bounded slice indices.
- 3
Generate clean tabular rows
Cast physical attributes in DuckDB SQL and publish typed tables via Parquet export, REST API, and MCP.
Try with an agent
Pre-loads HDF5 / HDF4 in chatExtract NASA HDF-EOS2 swath measurements
Use scientific.hdf_eos2 to extract latitude, longitude, and aerosol optical depth from a NASA Earthdata .hdf release and filter quality_flag = 0 in DuckDB SQL.
Flatten an HDF5 instrument archive into Parquet
Read named dataset groups from this .h5 release using scientific.hdf5, normalize units, and expose the table via REST API and Parquet download.
Common use cases
- Ingesting NASA Earthdata MODIS/VIIRS/ICESat-2 HDF-EOS2 and HDF5 swath products
- Reading hierarchical .h5 sensor calibration and telemetry logs into SQL
- Converting legacy HDF4 atmospheric archives into modern Apache Parquet
- Automating scheduled ingestion from NASA Earthdata HTTPS collections
Details
- Category
- Format Readers
- Identifier
- hdf5
- Inputs
- .h5 / .hdf5 · .hdf (HDF4) · HDF-EOS2 swaths
- Outputs
- Flattened dataset tables · Parquet & SQL tables
- Dataset delivery
- Parquet · CSV · JSON · SQL · REST API · MCP
Frequently asked questions
What is the difference between scientific.hdf5, hdf4, and hdf_eos2?
scientific.hdf5 handles modern HDF5 (.h5/.hdf5), scientific.hdf4 decodes legacy HDF4 (.hdf), and scientific.hdf_eos2 resolves NASA Earth Observing System swath/grid metadata.
Can it extract nested HDF5 group paths cleanly?
Yes. Specify full hierarchical dataset paths in reader decode_options to project multiple datasets onto aligned rows.
Are NASA Earthdata authenticated downloads supported?
Yes. Pair scientific.hdf5 or hdf_eos2 with Encrypted Workspace Secrets via authenticated HTTPS connectors.