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

Feature/minmaxtrh #183

Closed

Conversation

EdwardColon-NOAA
Copy link

Additional workflow steps, ex-scripts, and j-job scripts have been added in order to facilitate the computation of min/max 2m temperatures and relative humidities for RTMA parallels.

These changes are listed below:

exrrfs_run_maxrh.ksh
exrrfs_run_minrh.ksh
exrrfs_run_mintbg.ksh
exrrfs_run_maxtbg.ksh
JRRFS_RUN_MAXTMINRH
JRRFS_RUN_MINTMAXRH

edward colon and others added 2 commits December 28, 2023 22:17
… as expanded the prdgen products to including SPC-specific fields.
Copy link
Contributor

@guoqing-noaa guoqing-noaa Dec 31, 2023

Choose a reason for hiding this comment

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

@EdwardColon-NOAA We no longer use "spc_fields_rtma.txt". If you want to update fields for SPC, please go ahead to update the file fix/upp/testbed_fields_rtma.txt.

Copy link
Contributor

Choose a reason for hiding this comment

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

@EdwardColon-NOAA, is this file still necessary for your PR? If not, please remove this file.

set -x

if [ ${cyc} != "07" ] ; then
echo -e "\nWARNING: GETMINT only runs at 07z. Exiting.\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest changing "WARNING:" to something like "INFO:" or just removing "WARG"

set -x

if [ ${cyc} != "19" ] ; then
echo -e "\nWARNING: GETMINT only runs at 19z. Exiting.\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar comment about "WARNING:"

@@ -1235,13 +1249,9 @@ MODULES_RUN_TASK_FP script.
<envar><name>CYCLE_SUBTYPE</name><value><cyclestr>spinup</cyclestr></value></envar>
<envar><name>SLASH_ENSMEM_SUBDIR</name><value><cyclestr>{{ slash_ensmem_subdir }}</cyclestr></value></envar>
<envar><name>NWGES_BASEDIR</name><value>&NWGES_BASEDIR;</value></envar>
<envar><name>ENSCTRL_CYCLE_DIR</name><value><cyclestr>&ENSCTRL_CYCLE_BASEDIR;/@Y@m@d@H</cyclestr></value></envar>
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like these differences should not be here. I guess you might not merge the latest dev-sci branch to your PR correctly for FV3LAM_wflow.xml.

"WCOSS2")
module load wgrib2/2.0.8
module list
wgrib2=/apps/ops/prod/libs/intel/19.1.3.304/wgrib2/2.0.8_wmo/bin/wgrib2
Copy link
Contributor

Choose a reason for hiding this comment

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

For wcoss2, you will need to add a local.lua file under modulefiles/tasks/wcoss2
For other machines, you don't need to do anything because build_.lua is loaded in the first place for any workflow tasks. wgrib2 is already available and no extra module load is needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

As @guoqing-noaa pointed out, the modules necessary for each task should be loaded in rrfs-workflow/modulefiles/tasks/wcoss2/[task_name].local.lua. Please add a new file for run_maxrh.

@@ -610,6 +621,7 @@ ${EXPTDIR}/run_rocoto.sh"

echo "#!/bin/bash" > ${EXPTDIR}/run_rocoto.sh
if [[ "${MACHINE,,}" == "wcoss2" ]] ; then
rocoto_ver=1.3.5
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the rocoto_ver env variable should be available before line 625.

@chan-hoo Could you confirm whether we need to hardwire a version information in line 624? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

To meet the NCO standards, the module version should be defined in rrfs-workflow/versions/run.ver on WCOSS2.

@@ -21,6 +21,7 @@ if [[ -n $RESERVATION ]] ; then
QUEUE_FCST="rth"
QUEUE_ANALYSIS="rth"
QUEUE_PRDGEN="rth"
QUEUE_MINMAXTRH="rt" `
Copy link
Contributor

Choose a reason for hiding this comment

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

remove unexpected trailing sting " `"
Also, replace "rt" with "rth"

@@ -59,6 +60,7 @@ envir="para"
USE_CUSTOM_POST_CONFIG_FILE="TRUE"
TESTBED_FIELDS_FN="testbed_fields_rtma.txt"
TESTBED_FIELDS_FN2="testbed_fields_bgrd3d.txt"
SPC_FIELDS_FN="spc_fields_rtma.txt"
Copy link
Contributor

Choose a reason for hiding this comment

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

remove line 63

@@ -53,6 +55,7 @@ envir="para"
USE_CUSTOM_POST_CONFIG_FILE="TRUE"
TESTBED_FIELDS_FN="testbed_fields_rtma.txt"
TESTBED_FIELDS_FN2="testbed_fields_bgrd3d.txt"
SPC_FIELDS_FN="spc_fields_rtma.txt"
Copy link
Contributor

Choose a reason for hiding this comment

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

remove line 58

ush/setup.sh Outdated
@@ -811,6 +816,7 @@ FIX_SMOKE_DUST=${FIX_SMOKE_DUST:-"${HOMErrfs}/fix/smoke_dust"}
FIX_BUFRSND=${FIX_BUFRSND:-"${HOMErrfs}/fix/bufrsnd"}
AIRCRAFT_REJECT=${AIRCRAFT_REJECT:-"${FIX_GSI}"}
SFCOBS_USELIST=${SFCOBS_USELIST:-"${FIX_GSI}"}
FIX_MINMAXTRH=${FIX_MINMAXTRH:-"${HOMErrfs}/fix/minmaxtrh"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you make a copy of FIX_MINMAXTRH to Hera or Jet? I can facilitate syncing them to all available rrfs-workflow platforms.

Copy link
Contributor

Choose a reason for hiding this comment

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

We need to sync fix files in all rrfs-workflow platforms.

@@ -1539,6 +1541,7 @@ SFC_CLIMO_DIR=""
NCORES_PER_NODE=24 #Jet default value
IS_RTMA="FALSE"
FG_ROOTDIR=""
RRFS_GRIBDIR=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest changing RRFS_GRIBDIR to RRFS_PRODDIR

jobs/JRRFS_RUN_MAXTMINRH Outdated Show resolved Hide resolved
jobs/JRRFS_RUN_MAXTMINRH Outdated Show resolved Hide resolved
jobs/JRRFS_RUN_MAXTMINRH Outdated Show resolved Hide resolved
jobs/JRRFS_RUN_MINTMAXRH Outdated Show resolved Hide resolved
jobs/JRRFS_RUN_MINTMAXRH Outdated Show resolved Hide resolved
scripts/exrrfs_run_minrh.ksh Outdated Show resolved Hide resolved
scripts/exrrfs_run_minrh.ksh Outdated Show resolved Hide resolved
scripts/exrrfs_run_mintbg.ksh Outdated Show resolved Hide resolved
scripts/exrrfs_run_mintbg.ksh Outdated Show resolved Hide resolved
@@ -610,6 +621,7 @@ ${EXPTDIR}/run_rocoto.sh"

echo "#!/bin/bash" > ${EXPTDIR}/run_rocoto.sh
if [[ "${MACHINE,,}" == "wcoss2" ]] ; then
rocoto_ver=1.3.5
Copy link
Contributor

Choose a reason for hiding this comment

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

To meet the NCO standards, the module version should be defined in rrfs-workflow/versions/run.ver on WCOSS2.

@chan-hoo
Copy link
Contributor

chan-hoo commented Jan 2, 2024

@EdwardColon-NOAA, Please let us know which sample configuration you used. We'd like to test your PR with the configuration again before approving it.

Added the contents of spc_fields_rtma.txt to testbed_fields_rtma.txt in order to consolidate postprocessing.
Removed references to SPC prdgen output file.
removed reference to spc_fields_rtma.txt
Changed the RRFS model output filename from RRFS_GRIBDIR to RRFS_PRODDIR. Also removed reference to SPC output.
removed rocoto_ver module load.
@@ -284,7 +294,7 @@ if [[ ${PREDEF_GRID_NAME} == "RRFS_CONUS_3km" ]] ; then
LAYOUT_X="30"
LAYOUT_Y="40"
PPN_RUN_FCST="40"
WTIME_RUN_PRDGEN="00:20:00"
WTIME_RUN_PRDGEN="00:20:00
Copy link
Contributor

Choose a reason for hiding this comment

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

Need a matching " at the end.

@@ -0,0 +1,347 @@
PRES:surface:
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for incorporating changes into testbed_fields_rtma.txt. This spc_fields_rtma.txt file may be deleted safely now.

corrected value of QUEUE_MINMAXTRH to rth,
Removed RUN_ENVIR & RUN environment variables.
Removed RUN_ENVIR and RUN environment variables.
removed machine dependencies on module load scripts and updated the executable command lines.
Removed machine dependencies in module loads and updated executable command.
Removed machine-dependent module loads and updated executable statement.
Removed machine-dependent module loads and updated executable command line.
modified RRFS_GRIBDIR to RRFS_PRODDIR
@@ -269,12 +277,13 @@ ln -sf ./itag fort.11

echo DONE $fhr at `date`

mv $DATA/bufrpost/profilm.c1.${tmmark} $DATA/profilm.c1.${tmmark}.f${fhr}
cp $DATA/profilm.c1.${tmmark} $DATA/profilm.c1.${tmmark}.f${fhr}
Copy link
Contributor

Choose a reason for hiding this comment

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

This PR not only changes "mv" to "cp" but also changes the directory structure (i.e. removes the "bufrpost" subdir). why do rrfs and rtma have different treatments here?

mv $DATA/profilm_int $DATA/profilm.c1.${tmmark}

if [[ "${NET}" = "RTMA"* ]]; then
mv $DATA/profilm_int $DATA/profilm.c1.${tmmark}
Copy link
Contributor

Choose a reason for hiding this comment

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

To confirm, rrfs version does not need to do this "mv"?

for grid in ${ADDNL_OUTPUT_GRIDS[@]}
do
for leveltype in prslev natlev ififip testbed
for leveltype in prslev natlev ififip testbed
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the trailing space as there is no change in this line.

EdwardColon-NOAA and others added 14 commits April 15, 2024 18:39
Resolved DO_MINMAXTRH option list index.
Removed blank line and correct QUEUE labels.
Updated version number
Removed extraneous conditional block
Removed minmaxtrh fix file path.
Updated the node count variable for MINMAXTRH.
Updated several more variable names.
Converted cp command on line 280 back to mv.
Trailing space on line 446 removed.
@@ -0,0 +1,243 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason these files are named *.ksh, even though they are bash shells?

@EdwardColon-NOAA
Copy link
Author

EdwardColon-NOAA commented Sep 23, 2024 via email

@edwardhartnett
Copy link
Contributor

Is there an issue associated with this PR?

@guoqing-noaa
Copy link
Contributor

Is there an issue associated with this PR?

This PR needs to be updated to catch the latest rrfs.v1 version.
@EdwardColon-NOAA Do you plan to continue to work on this or close this PR and create a new one?

@EdwardColon-NOAA
Copy link
Author

EdwardColon-NOAA commented Oct 5, 2024 via email

@EdwardColon-NOAA
Copy link
Author

EdwardColon-NOAA commented Oct 5, 2024 via email

@edwardhartnett
Copy link
Contributor

Can we please start an issue for this work?

@hu5970
Copy link
Contributor

hu5970 commented Oct 11, 2024

@EdwardColon-NOAA Please close this PR and start an issue for this work if needed.

@EdwardColon-NOAA
Copy link
Author

EdwardColon-NOAA commented Oct 11, 2024 via email

@guoqing-noaa
Copy link
Contributor

close as agreed.

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.

Adding capability of computing mininmum and maximum 2m temperatures and relative humidities for RTMA parallels
6 participants