ArrayReferenceModel#

pydantic model lsst.images.serialization.ArrayReferenceModel#

Model for a subset of the ASDF ‘ndarray’ schema, in the case where the array data is stored elsewhere.

Parameters:

data (Any)

Fields:
field byteorder: Literal['big'] = 'big'#

Byte order for the binary data.

field datatype: NumberType [Required]#

Data type of the array.

field shape: list[int] [Required]#

Size of the array in each dimension.

field source: str | int [Required]#

Location of the underlying binary data.

with_units(unit)#

Add units, transforming this model into a Quantity model.

Parameters:

unit (UnitBase) – Units to attach to the array values.

Return type:

ArrayReferenceQuantityModel

This page was last modified on .