CoordSummary

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

CoordSummary(
    dtype: str = ““,
    min: Any ,
    max: Any ,
    step: Any | None[Any, None] = None,
    units: Quantity | str | None = None,
    dims: tuple[str, …] = (),
    len: int | None[int, None] = None,
    fingerprint: str | None[str, None] = None,
)-> None

A summary for coordinates.

Provides enough information for indexing coordinates and creating range coordinates.

Methods

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