xdas.atoms.SOSFilter#
- class xdas.atoms.SOSFilter(sos, dim='last', parallel=None)[source]#
Stateful second-order-sections IIR filter using
scipy.signal.sosfilt().- Parameters:
Methods
__init__(sos[, dim, parallel])call(da, **flags)Apply the SOS filter to da, updating the state if chunked.
initialize(da[, chunk_dim])Set the filter axis and allocate the SOS initial-conditions buffer.
initialize_from_state()Initialise the atom from its current state.
load_state(path)Load the atom state from the NetCDF4 file at path.
reset()Reset all state entries to
...(uninitialised sentinel).save_state(path)Serialise the current state to a NetCDF4 file at path.
set_state(state)Restore the atom state from a previously saved state dict.
Attributes
initializedTrueif every state key has been initialised (no...sentinels remain).stateDict of the current state, including nested atom states.