Skip to content

Improvements in the gradient Ri # calculation/diagnosis (MOM_CVMix_shear)#225

Merged
alperaltuntas merged 3 commits into
NCAR:dev/ncarfrom
gustavo-marques:multiple_ri_smooth
Nov 14, 2022
Merged

Improvements in the gradient Ri # calculation/diagnosis (MOM_CVMix_shear)#225
alperaltuntas merged 3 commits into
NCAR:dev/ncarfrom
gustavo-marques:multiple_ri_smooth

Conversation

@gustavo-marques
Copy link
Copy Markdown
Collaborator

This PR adds the following improvements in the calculation and diagnosis of the gradient Richardson number in the MOM_CVMix_shear module:

  • Rename parameter SMOOTH_RI to N_SMOOTH_RI (cfd7c0b);
  • Modify gradient Richarson number diagnostics to avoid confusion (0927852);
  • Adds option to smooth gradient Ri multiple times (b444041).

To recover previous answers, SMOOTH_RI = True must be replaced by N_SMOOTH_RI = 1. I verified that this PR does not change answers for GMOM/JRA.

In preparation for implementing the option to apply a vertical
smooth filter in the Richardson number multiple times, the
parameter SMOOTH_RI (logical) was renamed to N_SMOOTH_RI (interger).
If N_SMOOTH_RI = 0 (default), smoothing is not performed. If
N_SMOOTH_RI > 0, smoothing will be applied N_SMOOTH_RI times.
Currently, there are two diagnostics related to the gradient Richarson
number and these are described as follows:

* ri_grad_shear         : Gradient Richarson number used by
  MOM_CVMix_shear module;

* ri_grad_shear_smooth  : Smoothed gradient Richarson number used by
  MOM_CVMix_shear module.

The description for ri_grad_shear is misleading. If smoothing is applied,
ri_grad_shear *is not* the RI number used by MOM_CVMix_shear module. In
this commit. I propose to avoid this potential confusion by renaming
ri_grad_shear_smooth to ri_grad_shear_orig and, if N_SMOOTH_RI > 0,
use ri_grad_shear to store the smoothed profiles.

* ri_grad_shear_orig  : Original gradient Richarson number, before smoothing
  was applied. This is part of the MOM_CVMix_shear module and only available
  when N_SMOOTH_RI > 0.

No change in answers for GMOM.
This commit adds the option to smooth the gradient Richardson
number multiple times using a 1-2-1 filter. The number of times
that the filter is applied is controlled by parameter N_SMOOTH_RI.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 23, 2022

Codecov Report

Base: 37.22% // Head: 37.22% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (b444041) compared to base (fe3cb4d).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/ncar     #225      +/-   ##
============================================
- Coverage     37.22%   37.22%   -0.01%     
============================================
  Files           261      261              
  Lines         72319    72323       +4     
  Branches      13533    13534       +1     
============================================
  Hits          26921    26921              
- Misses        40407    40411       +4     
  Partials       4991     4991              
Impacted Files Coverage Δ
src/parameterizations/vertical/MOM_CVMix_shear.F90 11.11% <0.00%> (-0.37%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@alperaltuntas alperaltuntas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aux_mom.cheyenne. b4b.

@alperaltuntas alperaltuntas merged commit d5bd437 into NCAR:dev/ncar Nov 14, 2022
@gustavo-marques gustavo-marques deleted the multiple_ri_smooth branch December 5, 2022 17:49
alperaltuntas added a commit that referenced this pull request Apr 2, 2026
* diag_table updates:

 - introduce feature to specify field-specific reduction method.
 - changes in field list:
    -min/max mlotst and oml in both daily (sfc) and monthly (native)
    -sst_global, sss_global in monthly
    -zos and zossq in daily (sfc)
    -Drop SSH in daily (sfc) and keep it in the monthly (native)
    -Drop mass_wt in daily and keep it in the monthly (native)
    -Add tos and sos  min/max in daily (sfc) and monthly (native)
    -Add MEKE in monthly (native)
    -C_P and Rho_0 add to static
    -Geo_heat (when turned on) add to static
    -Add penetrating solar flux (3D. Diag variable) rsdo Comment end

* add geo_head to static diag file when available
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.

3 participants