NEDAS.assim_tools.transforms.identity module

class NEDAS.assim_tools.transforms.identity.Identity(c: Context, **kwargs)[source]

Bases: Transform

Subclass 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:
  • 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: 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