NEDAS.core.transform module
- class NEDAS.core.transform.Transform(c: Context, **kwargs)[source]
Bases:
ABCBase class for miscellaneous transform functions
- abstractmethod 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
- abstractmethod 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
- abstractmethod 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]
- abstractmethod 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