Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MARBL: add STF_SALT_{tracer} diagnostics to diag_table #187

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cime_config/MARBL_scripts/MOM_MARBL_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ def write_MARBL_diagnostics_file(
full_diag_dict["O2"]["properties"]["has surface flux"] = True
# DIC
if "DIC" in full_diag_dict.keys():
# STF_SALT_DIC is special case
if valid_diag_modes.index(diag_mode) >= valid_diag_modes.index("minimal"):
full_diag_dict["DIC"]["diags"]["STF_SALT_DIC"] = "medium_average"
full_diag_dict["DIC"]["diags"]["DIC_RIV_FLUX"] = freq_op
full_diag_dict["DIC"]["diags"]["J_DIC"] = freq_op
full_diag_dict["DIC"]["diags"]["Jint_100m_DIC"] = Jint_100m_freq_op["DIC"]
Expand All @@ -265,6 +268,9 @@ def write_MARBL_diagnostics_file(
full_diag_dict["DIC_ALT_CO2"]["properties"]["has surface flux"] = True
# ALK
if "ALK" in full_diag_dict.keys():
# STF_SALT_ALK is special case
if valid_diag_modes.index(diag_mode) >= valid_diag_modes.index("minimal"):
full_diag_dict["ALK"]["diags"]["STF_SALT_ALK"] = "medium_average"
full_diag_dict["ALK"]["diags"]["ALK_RIV_FLUX"] = freq_op
full_diag_dict["ALK"]["diags"]["STF_ALK"] = freq_op
full_diag_dict["ALK"]["diags"]["J_ALK"] = low_freq_op
Expand Down Expand Up @@ -353,6 +359,9 @@ def write_MARBL_diagnostics_file(
full_diag_dict["DO14Ctot"]["properties"]["has surface flux"] = True
# ABIO_DIC
if "ABIO_DIC" in full_diag_dict.keys():
# STF_SALT_ABIO_DIC is special case
if valid_diag_modes.index(diag_mode) >= valid_diag_modes.index("minimal"):
full_diag_dict["ABIO_DIC"]["diags"]["STF_SALT_ABIO_DIC"] = "medium_average"
# full_diag_dict['ABIO_DIC']['diags']['J_ABIO_DIC'] = freq_op
full_diag_dict["ABIO_DIC"]["diags"]["STF_ABIO_DIC"] = freq_op
# full_diag_dict['ABIO_DIC']['diags']['FvPER_ABIO_DIC'] = freq_op
Expand Down