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

MPAS applications: fixes for absolute vorticity and surface latent-heat flux #1069

Merged
merged 9 commits into from
Oct 22, 2024

Conversation

jaymes-kenyon
Copy link
Contributor

@jaymes-kenyon jaymes-kenyon commented Oct 16, 2024

This PR addresses issue #1068. It has been tested in MPAS applications (GSL's RRFS and HFIP configurations).

(1) Fix for absolute vorticity: Currently, in INITPOST_MPAS.F, the U and V winds are interpolated (averaged) onto mass points without checking for missing values. However, for the HFIP domain, a region of missing values surrounds the computational domain. As a result, the UPP interpolation procedure at the domain edge is contaminated by adjacent "SPVAL" grid points. Moreover, the subsequent calculations involving horizontal U and V gradients (e.g., for absolute vorticity, or "ABSV") yield very large and "noisy" values at the domain edge. The GRIB2 compression struggles with these "ABSV" fields; see attached screenshot of 850-hPa absolute vorticity (left panel).

This PR ensures that U and V winds are interpolated onto mass points only after checking for the presence of "SPVAL" at adjacent grids. Additionally, the "ABSV" arrays are initialized with "SPVAL", regardless of MODELNAME. The corrected field of 850-hPa absolute vorticity is shown in the attached screenshot (right panel).

absv

(2) Fix for surface latent-heat flux: This field is now read-in from the netCDF "LH" array

@jaymes-kenyon jaymes-kenyon marked this pull request as ready for review October 16, 2024 18:59
@jaymes-kenyon jaymes-kenyon marked this pull request as draft October 16, 2024 20:49
@jaymes-kenyon jaymes-kenyon changed the title HFIP–MPAS: Fix for absolute-vorticity fields MPAS applications: fixes for absolute vorticity and surface latent-heat flux Oct 17, 2024
@jaymes-kenyon jaymes-kenyon marked this pull request as ready for review October 17, 2024 13:25
@WenMeng-NOAA WenMeng-NOAA added the Ready for Review This PR is ready for code review. label Oct 21, 2024
@WenMeng-NOAA
Copy link
Collaborator

@gspetro-NOAA @FernandoAndrade-NOAA You may start the UPP RTs on R&D machines. There should be no baseline changes with this PR.

@WenMeng-NOAA
Copy link
Collaborator

The UPP RTs have been completed on WCOSS2 with no baseline changes.

@WenMeng-NOAA
Copy link
Collaborator

@jaymes-kenyon Please take a look at my UPP standalone test with MPAS_hfip data at
/home/Wen.Meng/stmp2/mpas_2024080900 on Hera
I see ABSV corrected as

441:789049528:ndata=5435001:undef=2423703:mean=6.4884e-05:min=-0.00244:max=0.00308:cos_wt_mean=6.35469e-05:d=2024080812:ABSV:975 mb:12 hour fcst:
452:810255441:ndata=5435001:undef=2423703:mean=6.49881e-05:min=-0.00241:max=0.00327:cos_wt_mean=6.365e-05:d=2024080812:ABSV:1000 mb:12 hour fcst:

@jaymes-kenyon
Copy link
Contributor Author

@WenMeng-NOAA — Your test looks good—thanks for sharing!

Copy link
Collaborator

@gspetro-NOAA gspetro-NOAA left a comment

Choose a reason for hiding this comment

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

RTs passed on Hera, Orion, and Hercules with no baseline changes.

@WenMeng-NOAA
Copy link
Collaborator

This PR is ready for merging.

@WenMeng-NOAA WenMeng-NOAA added the No Baseline Change No baseline of the UPP regression tests are made. label Oct 22, 2024
@WenMeng-NOAA WenMeng-NOAA merged commit 30d4079 into NOAA-EMC:develop Oct 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MPAS No Baseline Change No baseline of the UPP regression tests are made. Ready for commit queue Ready for Review This PR is ready for code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MPAS applications: issues with absolute vorticity and latent-heat flux fields
3 participants