Types

AssetType

class aws.osml.io.AssetType

Bases: object

Categorizes assets within a dataset.

Assets are classified into one of four categories based on their content type. This enumeration follows STAC (SpatioTemporal Asset Catalog) patterns.

Data = AssetType.Data
Graphics = AssetType.Graphics
Image = AssetType.Image
Text = AssetType.Text

PixelType

class aws.osml.io.PixelType

Bases: object

Supported pixel data types for image assets.

This enumeration represents the various numeric types that can be used to store pixel values in imagery data.

Float32 = PixelType.Float32
Float64 = PixelType.Float64
Int16 = PixelType.Int16
Int32 = PixelType.Int32
Int8 = PixelType.Int8
UInt16 = PixelType.UInt16
UInt32 = PixelType.UInt32
UInt8 = PixelType.UInt8
bytes_per_pixel()

Returns the number of bytes required to store a single pixel of this type.

to_numpy_dtype()

Convert to numpy dtype string.

Returns the string representation used by numpy to identify this data type.