wrf-model / WRF

The official repository for the Weather Research and Forecasting (WRF) model
Other
1.18k stars 658 forks source link

Pleim-Xiu Package & Registry update for RA, RS, LANDUSEF, etc. #2025

Closed coastwx closed 3 months ago

coastwx commented 3 months ago

Key variables for CMAQ AQ modeling from the WRF Pleim-Xiu LSM are not default in WRF outputs when LSM=7

TYPE: bug fix

KEYWORDS: Pleim-Xiu, RA, RS, LANDUSEF, Registry

SOURCE: Robert Gilliam, US EPA

DESCRIPTION OF CHANGES: RA, RS, LANDUSEF, T2OBS and Q2OBS are not default in WRF output when the Pleim-Xiu LSM package is used.

Solution: We changed the Registry to add "h" next to variable declarations and added these to the "package pxlsmscheme sf_surface_physics==7" definition.

ISSUE: N/A

LIST OF MODIFIED FILES: Registry.EM_COMMON

TESTS CONDUCTED:

  1. We recompiled the code after clean -a and then ran a NOAH and P-X LSM simulation for a 3-hour run. Verified that P-X variables only show up in the WRF output when the Pleim-Xiu LSM is used. These variables were not in the NOAH run's output.
  2. No Jenkins testing

RELEASE NOTE: Pleim-Xiu updated so all variable used by CMAQ are put in WRF outputs.

weiwangncar commented 3 months ago

@coastwx Thanks for adding this. You can package RA and RS, but you cannot package LANDUSEF as other LSMs use it too. When you package something with a particular option, those arrays should only be used by that option alone.

weiwangncar commented 3 months ago

@coastwx I edited your file to remove landusef from package.

weiwangncar commented 3 months ago

The regression test results:

Test Type              | Expected  | Received |  Failed
= = = = = = = = = = = = = = = = = = = = = = = =  = = = =
Number of Tests        : 23           24
Number of Builds       : 60           57
Number of Simulations  : 158           150        0
Number of Comparisons  : 95           86        0

Failed Simulations are: 
None
Which comparisons are not bit-for-bit: 
None
coastwx commented 3 months ago

Sorry Wei. I was in meetings earlier. Perfect.

This is good. Thank you.

Rob

From: weiwangncar @.> Sent: Thursday, March 21, 2024 12:57 PM To: wrf-model/WRF @.> Cc: Gilliam, Robert @.>; Mention @.> Subject: Re: [wrf-model/WRF] Pleim-Xiu Package & Registry update for RA, RS, LANDUSEF, etc. (PR #2025)

Caution: This email originated from outside EPA, please exercise additional caution when deciding whether to open attachments or click on provided links.

@coastwxhttps://github.com/coastwx I edited your file to remove landusef from package.

- Reply to this email directly, view it on GitHubhttps://github.com/wrf-model/WRF/pull/2025#issuecomment-2013007070, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVGWWHGATKS2RDLLI5TE4LYZMGODAVCNFSM6AAAAABFBJ55A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTGAYDOMBXGA. You are receiving this because you were mentioned.Message ID: @.**@.>>

weiwangncar commented 3 months ago

@coastwx @dudhia It looks like RS is passed into Noah LSM and set there too. So it cannot be packaged with PXLSM.

dudhia commented 3 months ago

I see RS also passed to NoahMP

weiwangncar commented 3 months ago

@dudhia Should we just package RA or should we let it go of this PR altogether?

dudhia commented 3 months ago

An alternative is to name them specially like RA_PX and RS_PX and package those. There is a precedent in that LSM.

coastwx commented 3 months ago

Thanks.

Renaming with the RA_PX and RS_PX would cause a chain of changes in the CMAQ system, MCIP in particular so not preferable on our end. Then potential issues with WRF versions in the future where RS is used for pre-v4.6 and RS_PX v4.6+. We'd probably just have to hope users know how to force in the WRF outputs either by the dynamic or compiled methods unless there is another good way. We generally account for this internally, but a lot of external groups have a lot less knowledge of WRF and tend to run out of the box.

Regards,

Rob

From: dudhia @.> Sent: Tuesday, March 26, 2024 1:52 PM To: wrf-model/WRF @.> Cc: Gilliam, Robert @.>; Mention @.> Subject: Re: [wrf-model/WRF] Pleim-Xiu Package & Registry update for RA, RS, LANDUSEF, etc. (PR #2025)

Caution: This email originated from outside EPA, please exercise additional caution when deciding whether to open attachments or click on provided links.

An alternative is to name them specially like RA_PX and RS_PX and package those. There is a precedent in that LSM.

- Reply to this email directly, view it on GitHubhttps://github.com/wrf-model/WRF/pull/2025#issuecomment-2021110649, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVGWWFLQJK2SSHDZPMJB3LY2GYT5AVCNFSM6AAAAABFBJ55A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGEYTANRUHE. You are receiving this because you were mentioned.Message ID: @.**@.>>

dudhia commented 3 months ago

Renaming could be confined to the model down to the driver with internal physics names the same as before, but yes the output names would be changed, so we can leave it as is.

weiwangncar commented 3 months ago

@coastwx Considering the complication of adding these variables to package, can we just not do this for now?

coastwx commented 3 months ago

Sure. Disregard the pull request. I doubt there will be much enthusiasm to change the variable names in the WRF output. I'll discuss with our group and perhaps do this in later versions. It would require testing and the window is almost closed for this cycle. And we've gone many years the way it is now. Will update the PX LSM suggested run configuration document. I may be in touch very soon with an update to this hosted document.

https://www2.mmm.ucar.edu/wrf/users/docs/PX-ACM.pdf

weiwangncar commented 3 months ago

@coastwx Thanks. I will close this PR and we will see what a future solution might be. Please send us any update of the document, probably before the end of April if possible.