psi_io#
Routines for reading/writing PSI style HDF5 and HDF4 data files.
Written by Ronald M. Caplan, Ryder Davidson, & Cooper Downs.
2023/09: Start with SVN version r454, 2023/09/12 by RC, Predictive Science Inc.
2024/06: CD: add the get_scales subroutines.
- 2024/11: RD: Major Update: Add several generic data loading capabilites for faster IO.
Read only the portions of data required (read_hdf_by_index, read_hdf_by_value).
Interpolate to slices along a given axes (np_interpolate_slice_from_hdf) or generic positions (interpolate_positions_from_hdf).
2025/06: CD: Prep for integration into psi-io package, HDF4 is now optional.
2026/01: RD: Refactor legacy routines to use new generic routines where possible.
Classes
|
Named tuple for HDF dataset metadata |
|
Named tuples for HDF metadata |
Functions
|
Wrapper to return the scales of a 1D PSI style HDF5 or HDF4 dataset. |
|
Wrapper to return the scales of a 2D PSI style HDF5 or HDF4 dataset. |
|
Wrapper to return the scales of a 3D PSI style HDF5 or HDF4 dataset. |
|
Instantiate a linear interpolator using the provided data and scales. |
|
Interpolate a point from a 1D slice using linear interpolation. |
|
Interpolate a point from a 2D slice using bilinear interpolation. |
|
Interpolate at a list of scale positions using SciPy's RegularGridInterpolator. |
|
Interpolate a slice from HDF data using linear interpolation. |
|
Read a 1D PSI-style HDF5 or HDF4 file. |
|
Read a 2D PSI-style HDF5 or HDF4 file. |
|
Read a 3D PSI-style HDF5 or HDF4 file. |
|
Read data from an HDF4 (.hdf) or HDF5 (.h5) file by index. |
|
Read data from an HDF4 (.hdf) or HDF5 (.h5) file by value. |
|
Read data from an HDF4 (.hdf) or HDF5 (.h5) file by value. |
|
Read data from an HDF4 (.hdf) or HDF5 (.h5) file. |
|
Read metadata from an HDF4 (.hdf) or HDF5 (.h5) file. |
|
Read the scale metadata for PSI's 3D cubes. |
|
Interpolate a slice from HDF data using SciPy's RegularGridInterpolator. |
|
Write a 1D PSI-style HDF5 or HDF4 file. |
|
Write a 2D PSI-style HDF5 or HDF4 file. |
|
Write a 3D PSI-style HDF5 or HDF4 file. |
|
Write data to an HDF4 (.hdf) or HDF5 (.h5) file. |
Attributes
Set of possible HDF file extensions |
|
Type alias for possible HDF file extensions |
|
Mapping of PSI standard dataset names for HDF4 and HDF5 files |
|
Mapping of PSI standard scale names for HDF4 and HDF5 files |
|
Helper dictionary for mapping HDF4 types to numpy dtypes |