CoordPartial

class of dascore.core.coords
inherits from: BaseCoord, RichRepr, DascoreBaseModel, pydantic.main.BaseModel, abc.ABC
source

CoordPartial(
    units: pint.registry.Quantity | str | None[Quantity, str, None] = None,
    step: Any = nan,
    shape: tuple[int, …] ,
    dtype: Any = None,
    start: Any = nan,
    stop: Any = nan,
)-> None

A coordinate which only contains partial information.

Methods

Name Description
align_to Align the coordinate to another coordinate.
approx_equal Return True if the coordinates are approximately equal.
change_length Adjust the length of the coordinate by changing the end value.
convert_units Convert from one unit to another. Set units if None are set.
coord_range Return a scaler value for the coordinate range (e.g., number of seconds).
empty Empty out the coordinate.
fuse Return the simplest coordinate representing the same values.
get_discontinuities Return a dataframe describing discontinuities in the coordinate.
get_next_index Get the index a value would have in a coordinate.
get_sample_count Return the number of samples represented by a value.
index Index the coordinate and return new coordinate.
max Return max value.
min Return min value.
missing The grid positions between the first and last sample with no sample.
model_copy Copy the model, dropping cached values the update invalidates.
new Update coordinate.
order Order coordinate according to array values or samples.
reduce_coord Get a reduced coordinate.
select Select new values inside coord.
set_units Set new units on coordinates.
simplify_units Simplify the coordinate units.
snap Snap the coordinates to evenly sampled grid points.
sort Sort dummy array. Does nothing.
to_summary Get the summary info about the coord.
update No values to change so update can just call new.
update_limits No values to limit, so only what was passed is applied.