coords

module of dascore.proc source

Processing operations that have much to do with coordinates.

Functions

Name Description
add_distance_to Calculate the distance to “origin” and create new coordinate.
append_dims Insert dimensions at the end of the patch.
coords_from_df Update non-dimensional coordinate of a patch using a dataframe.
drop_coords Drop one or more non-dimensional coordinates.
drop_private_coords Drop all private coords in the patch.
fill_gaps Fill the holes along a dimension with a constant value.
get_array Get an array associated with patch data or a coordinate.
get_axis Get the axis corresponding to a Patch dimension. Raise error if not found.
get_coord Get a managed coordinate from the patch.
isel Select sample positions with xarray-compatible dimension indexing.
make_broadcastable_to Stretch a patch until it broadcasts against a shape.
order Re-order the patch contents based on coordinate values or indices.
rename_coords Rename coordinate of Patch.
sel Select coordinate labels with xarray-compatible dimension indexing.
select Return a subset of the patch.
snap_coords Snap coordinates to evenly spaced samples.
sort_coords Sort one or more coordinates.
split_gaps Split the patch into contiguous patches at coordinate gaps.
squeeze Return a new object with len one dimensions flattened.
transpose Transpose the data array to any dimension order desired.
unselect Return the patch outside a selection.
update_coords Update the coordinates of a patch.

Classes

Name Description
AppendDims Insert dimensions at the end of the patch.
CoordsFromDf Update non-dimensional coordinate of a patch using a dataframe.
DropCoords Drop one or more non-dimensional coordinates.
DropPrivateCoords Drop all private coords in the patch.
Isel Select sample positions with xarray-compatible dimension indexing.
MakeBroadcastableTo Stretch a patch until it broadcasts against a shape.
Order Re-order the patch contents based on coordinate values or indices.
RenameCoords Rename coordinate of Patch.
Sel Select coordinate labels with xarray-compatible dimension indexing.
Select Return a subset of the patch.
SnapCoords Snap coordinates to evenly spaced samples.
SortCoords Sort one or more coordinates.
Squeeze Return a new object with len one dimensions flattened.
Transpose Transpose the data array to any dimension order desired.
Unselect Return the patch outside a selection.
UpdateCoords Update the coordinates of a patch.