Skip to main content

Module dimensions

Module dimensions 

Source
Expand description

Reconstruct NetCDF-4 dimensions from HDF5 metadata.

NetCDF-4 stores dimension information as:

  • Scale datasets (one per dimension) with CLASS=DIMENSION_SCALE attribute
  • DIMENSION_LIST attribute on each variable dataset referencing the scales
  • REFERENCE_LIST attribute on scale datasets (back-references)
  • _Netcdf4Dimid attribute to assign stable dimension IDs
  • NAME attribute on scale datasets gives the dimension name

Unlimited dimensions are represented by chunked datasets whose maximum dimension in the dataspace is H5S_UNLIMITED.

Functionsยง

extract_dimensions
Extract dimensions from an HDF5 group.
extract_dimensions_from_datasets