NEDAS.assim_tools.transforms.scale_bandpass module

class NEDAS.assim_tools.transforms.scale_bandpass.ScaleBandpass(c, decompose_obs=True, **kwargs)[source]

Bases: Transform

Subclass for scale bandpass filter to get a scale component.

decompose_obs: bool
nscale: int
forward_state(c, rec, field)[source]

Forward transform for the model state variables.

Parameters:
  • c (Context) – the runtime context.

  • rec (FieldRecord) – State information record for the variable.

  • field (np.ndarray) – The state variable.

Returns:

The transformed state variable.

Return type:

np.ndarray

backward_state(c, rec, field)[source]

Backward (inverse) transform for the model state variables.

Parameters:
  • c (Context) – the runtime context.

  • rec (FieldRecord) – State information record for the variable.

  • field (np.ndarray) – The transformed state variable.

Returns:

The state variable transformed back to the original space.

Return type:

np.ndarray

forward_obs(c, obs_rec, obs_seq)[source]

Forward transform for the observation sequence.

Parameters:
  • c (Context) – the runtime context.

  • obs_rec (ObsRecord) – Observation information record.

  • obs_seq (dict[str, np.ndarray]) – The observation sequence. With keys 'obs' the observation; 'x', 'y', 'z', 't' the space/time coordinates; and 'err_std' the observation errors.

Returns:

The transformed observation sequence.

Return type:

dict[str, np.ndarray]

backward_obs(c, obs_rec, obs_seq)[source]

Backward (inverse) transform for the observation sequence.

Parameters:
  • c (Context) – the runtime context.

  • obs_rFieldRecord)ict) – Observation information record.

  • obs_seq (dict) – The transformed observation sequence. With keys 'obs' the observation; 'x', 'y', 'z', 't' the space/time coordinates; and 'err_std' the observation errors.

Returns:

The observation sequence transformed back to the original space.

Return type:

dict