CoordSummary

class of dascore.core.coords
inherits from: DascoreBaseModel, pydantic.main.BaseModel
source

CoordSummary(
    dtype: str ,
    min: None ,
    max: None ,
    step: None = None,
    units: Quantity | str | None = None,
)-> None

A summary for coordinates.

Provides enough information for indexing coordinates and creating range coordinates.

Methods

Name Description
get_correct_dtype_cast_values Ensure the correct dtype is provided and value conform to it.
new Create new instance with some attributed updated.
ser_model Serialize the model to json.
to_coord Convert to coord range, if possible.