Measurement#

class datacube.model.Measurement(canonical_name=None, *args, **kwargs)[source]#

Describes a single data variable of a Product or Dataset.

Must include, which can be used when loading and interpreting data:

  • name

  • dtype - eg: int8, int16, float32

  • nodata - What value represent No Data

  • units

Attributes can be accessed using dict [] syntax.

Can also include attributes like alternative names ‘aliases’, and spectral and bit flags definitions to aid with interpreting the data.

copy()[source]#

Required as the super class dict method returns a dict and does not preserve Measurement class

Return type:

Measurement

dataarray_attrs()[source]#

This returns attributes filtered for display in a dataarray.

Return type:

dict[str, Any]

pop(key, default=None)[source]#

Removes the key and returns its value from the dictionary or a default value if the key is not found.