NEDAS.assim_tools.transforms package
Submodules
NEDAS.assim_tools.transforms.identity module
- class NEDAS.assim_tools.transforms.identity.Identity(c: Context, **kwargs)[source]
Bases:
TransformSubclass for the identity transform.
- forward_state(c: Context, rec: FieldRecord, field: ndarray) ndarray[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: Context, rec: FieldRecord, field: ndarray) ndarray[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: Context, obs_rec: ObsRecord, obs_seq: dict[str, ndarray]) dict[str, ndarray][source]
Forward transform for the observation sequence.
- Parameters:
- Returns:
The transformed observation sequence.
- Return type:
dict[str, np.ndarray]
- backward_obs(c: Context, obs_rec: ObsRecord, obs_seq: dict[str, ndarray]) dict[str, ndarray][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
NEDAS.assim_tools.transforms.scale_bandpass module
- class NEDAS.assim_tools.transforms.scale_bandpass.ScaleBandpass(c, decompose_obs=True, **kwargs)[source]
Bases:
TransformSubclass 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:
- 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