xdas.atoms.LFilter#
- class xdas.atoms.LFilter(b, a, dim='last', parallel=None)[source]#
Stateful direct-form IIR/FIR filter using
scipy.signal.lfilter().- Parameters:
Methods
__init__(b, a[, dim, parallel])call(da, **flags)Apply the filter to da, updating the state if chunked.
initialize(da[, chunk_dim])Set the filter axis and allocate the 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.