Skip to content

calculate hourly-averaged O3 and PM2.5#226

Merged
laurenchilutti merged 6 commits into
NOAA-GFDL:dev/emcfrom
JianpingHuang-NOAA:hr_ave_chem_v1
Dec 7, 2022
Merged

calculate hourly-averaged O3 and PM2.5#226
laurenchilutti merged 6 commits into
NOAA-GFDL:dev/emcfrom
JianpingHuang-NOAA:hr_ave_chem_v1

Conversation

@JianpingHuang-NOAA
Copy link
Copy Markdown

@JianpingHuang-NOAA JianpingHuang-NOAA commented Nov 28, 2022

Description

This PR is considered as a new feature. It is used to calculate hourly averaged PM2.5 and three gas species (O3, NO, and NO2) and write them on the user-defined output grids (i.e., rotated lat/lon) with the UFS writing component to support AQM v7 implementation. Now total PM2.5 is calculated within the AQM component and passed to the Atmospheric model as a diagnostic tracer.

How Has This Been Tested?

The PR has been only tested on Cactus (WCOSS2).
Please add the following line in the diag_table as an example to write out hourly-averaged PM2.5.
"gfs_dyn", "pm25_ave", "pm25_ave", "fv3_history", "all", .false., "none", 2

Checklist:

Please check all whether they apply or not

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@JianpingHuang-NOAA JianpingHuang-NOAA marked this pull request as ready for review November 28, 2022 14:57
Comment thread driver/fvGFS/fv_nggps_diag.F90 Outdated
if ( id_o3_ave > 0 .and. id_no_ave >0 &
.and. id_no2_ave > 0 .and. id_pm25_ave >0 ) then

allocate ( o3(isco:ieco,jsco:jeco,npzo) )
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

To save memory, I'd suggest not adding new 3D temporary arrays, instead, 1) adding atm%q, trace_idx, and units as arguments to average_tracer_hy1. 2) call the average_tracer_hy1 for those new variables o2_idx, no_idx, etc.

@JianpingHuang-NOAA
Copy link
Copy Markdown
Author

JianpingHuang-NOAA commented Nov 28, 2022 via email

Comment thread driver/fvGFS/fv_nggps_diag.F90 Outdated
no_idx = get_tracer_index (MODEL_ATMOS, 'NO')
no2_idx = get_tracer_index (MODEL_ATMOS, 'NO2')
pm25_idx = get_tracer_index (MODEL_ATMOS, 'PM25_TOT')
if (first_call) then
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please fix the spaces in this section for readability.

@JianpingHuang-NOAA
Copy link
Copy Markdown
Author

JianpingHuang-NOAA commented Nov 28, 2022 via email

@junwang-noaa
Copy link
Copy Markdown
Collaborator

@bensonr @laurenchilutti would you please review the PR? Thank you!

Copy link
Copy Markdown
Collaborator

@junwang-noaa junwang-noaa left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes, it looks good to me now.

@junwang-noaa
Copy link
Copy Markdown
Collaborator

@bensonr would you please review the code? AQMv7 implementation needs this code changes as soon as possible. Thank you!

@jkbk2004
Copy link
Copy Markdown

jkbk2004 commented Dec 7, 2022

All test are done on ufs wm pr #1513. @laurenchilutti can you merge in this pr?

@laurenchilutti laurenchilutti merged commit f04433c into NOAA-GFDL:dev/emc Dec 7, 2022
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.

6 participants