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,
    data_id: str | None[str, None] = None,
    step_numerator: int | None[int, None] = None,
    step_denominator: int | None[int, None] = None,
    origin_offset: int | None[int, None] = None,
    runs: tuple[tuple[CoordSummary, …], None] = None,
)-> None

A summary for coordinates.

Provides enough information for indexing coordinates and creating range coordinates.

Methods

Name Description
model_copy Copy the model, dropping cached values the update invalidates.
new Create new instance with some attributed updated.
to_coord Convert to an evenly sampled coord, if possible.