xdas.coordinates#
Coordinates#
Constructor
|
Dictionary like container for coordinates. |
Methods
|
Return |
|
Format a query from one or multiple indexer. |
|
Convert an item selector to a dict of per-dimension integer indices. |
|
Return |
Convert this Coordinates object into a pure python dictionnary. |
|
|
Return a copy of this |
|
Return a new |
|
Return a new |
Coordinate#
Constructor
|
Base class and factory for all coordinate types. |
Attributes
NumPy dtype of the underlying data array. |
|
Number of dimensions of the underlying data array (always 1 for dimensional coords). |
|
Shape tuple of the underlying data array. |
|
Materialised numpy array of coordinate values. |
Methods
|
Convert a label-based selector to an integer index or slice. |
Return |
|
Return |
|
Return |
ScalarCoordinate#
Constructor
|
Non-dimensional coordinate that carries a single scalar value. |
Methods
|
Return |
|
Return |
|
Not supported — raises |
Serialise to |
DenseCoordinate#
Constructor
|
Coordinate backed by an explicit numpy array. |
Methods
|
Return |
A |
|
|
Return the integer index (or indices) for value. |
|
Return an integer |
Serialise to |
InterpCoordinate#
Constructor
|
Array-like object representing piecewise evenly spaced coordinates (CF convention). |
Attributes
Integer array of tie-point positions (starts at 0, strictly increasing). |
|
Array of tie-point values (numeric or datetime64, strictly increasing). |
|
|
|
Dtype of the tie values (and of all materialised coordinate values). |
|
Always 1. |
|
Shape tuple |
|
Full integer index array from 0 to the last tie-point index (inclusive). |
|
Materialised numpy array of all coordinate values via piecewise interpolation. |
Methods
|
Return |
|
Return |
|
Interpolate coordinate values at integer position(s) index. |
|
Normalise integer index idx, handling negative indices and optional bounds checking. |
|
Return a new |
|
Return the integer index for a label value via inverse interpolation. |
|
Return an integer |
Return a new coordinate keeping every q-th sample (integer decimation). |
|
|
Reduce the number of tie points using the Douglas-Peucker algorithm. |
|
Return a DataFrame containing information about the discontinuities. |
|
Build an |
Serialise to |
SampledCoordinate#
Constructor
|
A coordinate that is sampled at regular intervals. |
Attributes
Start values of each regularly-sampled segment. |
|
Number of samples in each regularly-sampled segment. |
|
Start integer index of each segment within the full coordinate array. |
|
Fixed step between consecutive samples (shared across all segments). |
|
|
|
Dtype of the tie values (and of all materialised coordinate values). |
|
Always 1. |
|
Shape tuple |
|
Full integer index array from 0 to |
|
Materialised numpy array of all coordinate values. |
Methods
|
Append other |
Return a new coordinate keeping every q-th sample (integer decimation). |
|
|
Return |
|
Not supported — raises |
|
Build a single-segment |
|
Return the integer index for label value using the segment structure. |
Return the sampling interval. |
|
|
Return integer indices of segment boundaries (start of each segment except the first). |
|
Compute coordinate value(s) at integer position(s) index using the stored segments. |
Return |
|
|
Merge adjacent segments whose gap is within tolerance of the sampling interval. |
|
Return a new |
|
Return an integer |
Serialise to |