xdas.coordinates#
Coordinates#
|
Dictionary like container for coordinates. |
Methods
|
Return |
|
Convert an item selector to a dict of per-dimension integer indices. |
|
Return |
|
Return a copy of this |
|
Return a new |
|
Return a new |
Coordinate#
|
Base class and factory for all coordinate types. |
Attributes
NumPy dtype of the underlying coordinate values. |
|
Number of dimensions (always 1 for dimensional coordinates). |
|
Shape tuple |
|
Number of elements along this coordinate's axis. |
|
|
|
Name of the dimension this coordinate is associated with, or |
|
Integer array |
|
Materialised numpy array of coordinate values. |
|
Value at index 0 (first element). |
|
Value at the last element. |
|
The name under which this coordinate is stored in its parent container. |
Methods
Return |
|
Return |
|
|
Return |
|
Convert a label-based selector to an integer index or slice. |
|
Return a copy of this coordinate. |
Convert this coordinate to a |
ScalarCoordinate#
|
Non-dimensional coordinate that carries a single scalar value. |
DenseCoordinate#
|
Coordinate backed by an explicit numpy array. |
Attributes
A |
Methods
|
Construct a coordinate from a start value, element count, and step size. |
Return the average sample spacing (end-to-end distance divided by N-1). |
|
|
Return sorted split-point indices where consecutive differences exceed tolerance. |
InterpCoordinate#
|
Piecewise-linear coordinate described by tie points (CF convention). |
Attributes
Integer array of tie-point positions (starts at 0, strictly increasing). |
|
Array of tie-point values (numeric or datetime64, strictly increasing). |
Methods
|
Construct a coordinate from a start value, element count, and step size. |
Return the nominal sample spacing for this coordinate. |
|
|
Return integer indices where this coordinate should be split. |
|
Return a DataFrame containing information about the discontinuities. |
Return a DataFrame containing information about the data availability. |
|
|
Return a simplified copy of this coordinate with redundant tie points removed. |
SampledCoordinate#
|
Coordinate sampled at a fixed interval, with optional gaps between segments. |
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). |
Methods
|
Construct a coordinate from a start value, element count, and step size. |
Return the nominal sample spacing for this coordinate. |
|
|
Return integer indices where this coordinate should be split. |
Return a DataFrame containing information about the discontinuities. |
|
Return a DataFrame containing information about the data availability. |
|
|
Return a simplified copy of this coordinate with redundant tie points removed. |