-
Notifications
You must be signed in to change notification settings - Fork 9
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
add fstats customized for screen-level Q and T with "land only" option #246
Conversation
modified: CMakeLists.txt new file: g5fcst_statsNx.pl new file: statsNx.F90 new file: statsNx.rc
modified: GEOS_Util/post/CMakeLists.txt
@lltakacs @gmao-jstassi Larry and Joe, the modifications/additions ( for screen level variables and land only option) are not put into fstats.F90, g5fcst_stats.pl and stats.rc, instead in the customized fstatsNx.F90, g5fcst_statsNx.pl and statsNx.rc. Comparison of *stats vs. *statsNx files will show the modifications. could you review them and give comments and suggestions. We have tested and used this addition for fcst verifications in land-atmos coupled DAS experiments. |
Larry and Joe reviewed the draft PR , and sent via email comments and suggestions: for fstatsNx.F90 for g5fcst_statsNx.pl |
@saraqzhang, re. you last commit:
If |
modified: GEOS_Util/post/g5fcst_stats.pl
GEOS_Util/post/g5fcst_stats.pl
Outdated
# name - g5fcst_stats.pl | ||
# with options of land only and 2d Nx with screen level variables only | ||
# purpose - script to submit jobs to calculate screen level forecast statistics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help text here seems wrong. Should it be something like:
# name - g5fcst_stats.pl
# purpose - script to submit jobs to calculate forecast statistics
# options: land-only stats and stats for screen-level variables (2d Nx)
GEOS_Util/post/g5fcst_stats.pl
Outdated
#print ("nxonly option: $nxonly\n"); | ||
#print ("landonly option: $nxonly\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines should probably be deleted. (The commented-out "landonly" print statement isn't right anyway.)
the modification/addition for new options "land only" and "Nx only" are merged into the stats script and code. The "customized" version of the codes are removed. |
GEOS_Util/post/CMakeLists.txt
Outdated
ecbuild_add_executable (TARGET stats.x SOURCES stats.F90) | ||
ecbuild_add_executable (TARGET statsNx.x SOURCES statsNx.F90) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you also need to remove "statsNx" here and below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMakelists is just updated . we still keep statsNx.rc .
@saraqzhang would you mind updating the changelog for this PR so all CI tests will pass? Thanks |
GEOS_Util/post/g5fcst_stats.pl
Outdated
# name - g5fcst_stats.pl | ||
# purpose - script to submit jobs to calculate forecast statistics | ||
# name - g5fcst_stats.pl | ||
# purpose - script to submit jobs to calculate screen level forecast statistics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The edit in this comment doesn't seem to be correct. Isn't this the merged script that does the regular atm stats and now also screen-level?
GEOS_Util/post/stats.F90
Outdated
Td = q(i,j)-273.15 ! to C | ||
pp = sp(i,j)/100. ! to mb | ||
ee= 6.112*exp((17.67*Td)/(Td + 243.5)) | ||
q(i,j) = (0.622 * ee)/(pp - (0.378 * ee)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could some or all of this conversion be done using MAPL functions? If so, we should probably use them. If there aren't MAPL functions, it may still be possible to use MAPL constants instead of hard-wired numbers for some of the numbers.
GEOS_Util/post/statsNx.rc
Outdated
##sqz NOTE : this file has a copy | ||
## in /discover/nobackup/qzhang/git_check/GEOSadas/install/etc/ | ||
## the run actually use that one instead of the one here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete these three comment lines before merging?
…MAO_Shared into feature/saraqzhang/fstats2mQT update sandbox feature/saraqzhang/fstats2mQT
this code is compiled/built with MAPL v2.8.0 used in adas, where MAPL Const only have MAPL_TICE, not MAPL_CELSIUS_TO_KELVIN. |
Ouch, that's old. Oh well. I guess for the purpose of computing fstats it doesn't really matter whether 273.15 or 273.16 is used. |
@gmao-rreichle @saraqzhang do you feel this PR is resolved and ready for merging? |
I'm happy with the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved for CMake
a standalone set of code, script, and rc file are added to GEOS_Util/post/ for forecast stats customized for 2-meter moisture and temperature verification. It is tested in the cases of self-verification and ecmwf-verification, and with "land only" option.