basic

module of dascore.proc source

Basic operations for patches.

Functions

Name Description
abs Take the absolute value of the patch data.
angle Return a new patch with the phase angles from the data array.
bool_patch Get the boolean value of a patch.
conj Apply the complex conjugate of the patch data.
demean Remove the mean along a given dimension of a DASCore patch.
demedian Remove the median along a given dimension of a DASCore patch.
dropna Return a patch with nullish values dropped along dimension.
equals Determine if the current patch equals another.
fillna Return a patch with nullish values replaced by a value.
flip Flip patch data and (optionally coords) along specified dimensions.
full Return an identical patch with the data replaced by fill_value.
imag Return a new patch with the imaginary part of the data array.
normalize Normalize a patch along a specified dimension.
pad Pad the patch data along specified dimensions.
pipe Pipe the patch to a function.
pow_coord Scale the data by coordinate values raised to a power.
real Return a new patch with the real part of the data array.
roll Roll patch array elements along a given dimension.
set_dims Set dimension to non-dimensional coordinate.
standardize Standardize data by removing the mean and scaling to unit variance.
update Return a copy of the Patch with updated data, coords, dims, or attrs.
update_attrs Update patch attrs and return a new Patch.
where Return elements from patch where condition is True, else fill with other.

Classes

Name Description
Abs Take the absolute value of the data.
Conj Flip the sign of the imaginary part.
Demean Remove the mean along a dimension.
Imag Keep only the imaginary part of the data.
Normalize Scale each slice along a dimension by a norm of that slice.
Real Keep only the real part of the data.
Standardize Remove the mean and scale to unit variance along a dimension.