iwfm.hdf5.hdf5_utilsΒΆ

Shared utility functions for h5py-based HDF5 file access.

Functions

apply_unit_conversion(data, col_types, ...)

Apply unit conversions based on column data types.

decode_hdf5_string(value)

Decode HDF5 string attribute or dataset value.

decode_hdf5_strings(values)

Decode array of HDF5 string values.

format_iwfm_date(dt)

Format datetime as IWFM date string.

generate_timesteps_from_hdf5(start_date_str, ...)

Generate list of timestep date strings from HDF5 time specification.

get_unit_labels(area_units, volume_units)

Get standardized unit labels for output.

parse_iwfm_date(date_str)

Parse IWFM date string to datetime object.

read_zone_definition(zone_file)

Read IWFM zone definition file.

substitute_title_placeholders(title, ...)

Substitute placeholders in title string.