HdfScaleMeta#
- class HdfScaleMeta(name, type, shape, attr, imin, imax)#
Bases:
tupleNamed tuple storing metadata for a single HDF scale (coordinate) dimension.
- Parameters:
- name
str The name of the scale dataset.
- type
str The data type of the scale.
- shape
tuple[int, …] The shape of the scale array.
- attr
dict[str,Any] A dictionary of attributes associated with the dataset.
- imin
float The minimum value of the scale. This assumes the scale is monotonically increasing.
- imax
float The maximum value of the scale. This assumes the scale is monotonically increasing.
- name
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Methods
|
Return a new dict which maps field names to their values. |
|
Return a new HdfScaleMeta object replacing specified fields with new values |
Class Methods
|
Make a new HdfScaleMeta object from a sequence or iterable |
Data