HdfScaleMeta

Contents

HdfScaleMeta#

class HdfScaleMeta(name, type, shape, imin, imax)#

Bases: tuple

Named tuple storing metadata for a single HDF scale (coordinate) dimension.

Parameters:
namestr

The name of the scale dataset.

typestr

The data type of the scale.

shapetuple[int, …]

The shape of the scale array.

iminfloat

The minimum value of the scale. This assumes the scale is monotonically increasing.

imaxfloat

The maximum value of the scale. This assumes the scale is monotonically increasing.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Data

imax

Alias for field number 4

imin

Alias for field number 3

name

Alias for field number 0

shape

Alias for field number 2

type

Alias for field number 1