Skip to main content

extract_dimensions

Function extract_dimensions 

Source
pub fn extract_dimensions(
    group: &Group<'_>,
) -> Result<(Vec<NcDimension>, HashMap<u64, NcDimension>)>
Expand description

Extract dimensions from an HDF5 group.

Returns a tuple of:

  • The list of dimensions (sorted by _Netcdf4Dimid if available)
  • A map from dataset object-header address to the corresponding dimension

The address map is used by extract_variables to resolve DIMENSION_LIST references back to the correct dimension by address rather than by size.