module of dascore source

Module containing patch processing routines.


Name Description
abs Take the absolute value of the patch data.
angle Return a new patch with the phase angles from the data array.
append_dims Insert dimensions at the end of the patch.
apply_operator Apply a ufunc-type operator to a patch.
assert_has_coords Raise an error if patch doesn’t have required coordinates.
conj Apply the complex conjugate of the patch data.
convert_units Convert the patch data or coordinate units.
coords_from_df Update non-dimensional coordinate of a patch using a dataframe.
correlate Correlate source row/columns in a 2D patch with all other row/columns.
correlate_shift Apply a shift to the patch data to undo correlation in frequency domain.
decimate Decimate a patch along a dimension.
detrend Perform detrending along a given dimension (distance or time) of a patch.
drop_coords Update the coordiantes of a 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.
gaussian_filter Applies a Gaussian filter along specified dimensions.
get_array Get an array associated with patch data or a coordinate.
get_coord Get a managed coordinate, raising if it doesn’t meet requirements.
imag Return a new patch with the imaginary part of the data array.
interpolate Set coordinates of patch along a dimension using interpolation.
make_broadcastable_to Update the coordiantes of a patch.
median_filter Apply 2-D median filter.
normalize Normalize a patch along a specified dimension.
order Re-order the patch contents based on coordinate values or indices.
pad Pad the patch data along specified dimensions.
pass_filter Apply a Butterworth pass filter (bandpass, highpass, or lowpass).
pipe Pipe the patch to a function.
real Return a new patch with the real part of the data array.
rename_coords Rename coordinate of Patch.
resample Resample along a single dimension using Fourier Method and interpolation.
roll Roll patch array elements along a given dimension.
rolling Apply a rolling function along a specified dimension.
savgol_filter Applies Savgol filter along spenfied dimensions.
select Return a subset of the patch.
set_dims Set dimension to non-dimensional coordinate.
set_units Set the units of a patch’s data or coordinates.
simplify_units Simplify the units contained by the patch to base metric units.
snap_coords Snap coordinates to evenly spaced samples.
sobel_filter Apply a Sobel filter.
sort_coords Sort one or more coordinates.
squeeze Return a new object with len one dimensions flattened.
standardize Standardize data by removing the mean and scaling to unit variance.
taper Taper the ends of the signal.
transpose Transpose the data array to any dimension order desired.
update Return a copy of the Patch with updated data, coords, dims, or attrs.
update_attrs Update attrs and return a new Patch.
update_coords Update the coordiantes of a patch.
whiten Band-limited signal whitening.


Name Description
aggregate Module for applying aggregations along a specified axis.
basic Basic operations for patches.
coords Processing operations that have much to do with coordinates.
filter dascore Filtering module.
units Processing functions dealing with units and unit conversions.
taper Processing for applying a taper.
resample Module for re-sampling patches.
whiten Spectral whitening.
correlate Module for calculating cross-correlation over time or distance.
detrend Module for detrending.
rolling Processing for applying roller operations.