Skip to content

Set OMI observation type switches from EnKF input file - #60

Merged
jjokella merged 12 commits into
tsmp-pdaf-patched-omifrom
tsmp-pdaf-patched-omi-general-callback
Apr 9, 2026
Merged

Set OMI observation type switches from EnKF input file#60
jjokella merged 12 commits into
tsmp-pdaf-patched-omifrom
tsmp-pdaf-patched-omi-general-callback

Conversation

@jjokella

@jjokella jjokella commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

Note

I hid all previous comments and "restart" the PR based on the discussion in the meeting in Bonn on March 27, 2026.

Bottom line of the Bonn-meeting:

  1. assim_* flags are not strictly needed as the observation type information in the observation files determine which functions from the OMI-callback routine are actually called.
  2. (Mostly due to my wish), we still add the assim_* flags based on input from enkfpf.par, as a "double-check" of inputs and to have a text-file and human-readable input inside a given run-directory that expresses which observation types are updated in the simulation experiment in question.

Notes about the Implementation

Fixing assim_* at the beginning of the simulation in init_pdaf.F90 based on the inputs clmupdate_* from the enkfpf.par.

Fixing assim_* during runtime is dangerous, because the clmupdate_* are updated at every timestep according to the observation type in the observation file.

Minor points in PR

  • Adding templates for new observation type C throughout the implementation.
  • remove rms_obs_* variables from mod_assimilation

All observation-type calls in the OMI callback routines are now
conditionally executed via IF (assim_GRACE) / IF (assim_SM) guards.

The commented-out observation type C is updated to the same pattern
throughout all subroutines.
used variables of the same name can be found inside the OMI-modules.
@jjokella
jjokella requested a review from s7yoewer March 13, 2026 14:12
@s7yoewer

This comment was marked as outdated.

@jjokella

This comment was marked as outdated.

@s7yoewer

This comment was marked as outdated.

@s7yoewer

This comment was marked as outdated.

@jjokella jjokella changed the title Generalize OMI callback interface Add observation type switches to OMI callback interface Mar 27, 2026
@jjokella jjokella changed the title Add observation type switches to OMI callback interface Set OMI observation type switches from EnKF input file Apr 7, 2026
@jjokella
jjokella merged commit fb3f7e2 into tsmp-pdaf-patched-omi Apr 9, 2026
@jjokella
jjokella deleted the tsmp-pdaf-patched-omi-general-callback branch April 9, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants