netCDF4 file access via h5py with hierarchical and legacy APIs for scientific computing
69
A utility that reads HDF5 files that lack proper NetCDF4 dimension information and reports the automatically generated dimension names.
@generates
def create_hdf5_without_scales(filepath: str, dataset_name: str, shape: tuple) -> None:
"""
Creates an HDF5 file with a dataset that lacks NetCDF4 dimension scales.
Args:
filepath: Path where the file should be created
dataset_name: Name for the dataset
shape: Shape tuple for the dataset (e.g., (5, 10))
"""
pass
def get_dimension_names(filepath: str, dataset_name: str, phony_mode: str = 'sort') -> list:
"""
Opens an HDF5 file and retrieves the dimension names for a dataset.
Args:
filepath: Path to the HDF5 file
dataset_name: Name of the dataset to inspect
phony_mode: How to handle missing dimensions ('sort' or 'access')
Returns:
List of dimension name strings for the dataset
"""
passProvides netCDF4 file-format access via h5py with support for reading HDF5 files that lack proper dimension information.
Provides low-level HDF5 file access for creating test files without dimension scales.
Provides array support for dataset creation and manipulation.
Install with Tessl CLI
npx tessl i tessl/pypi-h5netcdfdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10