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.
pin_id Return the patch with a data_id hashed from the data it holds.
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 patch data.
Angle Return a new patch with the phase angles from the data array.
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.
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.
PowCoord 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.
Standardize Standardize data by removing the mean and scaling to unit variance.
Where Return elements from patch where condition is True, else fill with other.