-
Notifications
You must be signed in to change notification settings - Fork 163
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/metplus #26
Merged
Merged
Feature/metplus #26
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1915aa9
Issue #8 - pulled in config.metp and modifications to two setup scripts
KateFriedman-NOAA 9c94156
Changes to setup_workflow.py for gfsmetp metatask
malloryprow 6872f79
Add rocoto METplus job script
malloryprow 72e8adf
Update EMC_verif-global tag checkout to 1.4.0
malloryprow 82e6907
Update config.resources for gfsmetp
malloryprow c0d7179
Add updated env machine files for gfsmetp
malloryprow 0ea809c
Update file format variable in config.metp of online archive files
malloryprow c11dfef
Update EMC_verif-global tag to verif_global_v1.4.1
malloryprow 786806f
Missed file format updates in a few places in config.metp
malloryprow eb73e52
Update EMC_verif-global checkout to verif_global_v1.5.0
malloryprow 31bb7d3
Merge branch 'develop' into feature/metplus
malloryprow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/bin/ksh -x | ||
|
||
############################################################### | ||
## Abstract: | ||
## Inline METplus verification and diagnostics driver script | ||
## RUN_ENVIR : runtime environment (emc | nco) | ||
## HOMEgfs : /full/path/to/workflow | ||
## EXPDIR : /full/path/to/config/files | ||
## CDATE : current analysis date (YYYYMMDDHH) | ||
## CDUMP : cycle name (gdas / gfs) | ||
## PDY : current date (YYYYMMDD) | ||
## cyc : current cycle (HH) | ||
## METPCASE : METplus verification use case (g2g1 | g2o1 | pcp1) | ||
############################################################### | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" | ||
. $HOMEgfs/ush/load_fv3gfs_modules.sh | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO SOURCE RELEVANT CONFIGS ===============" | ||
configs="base vrfy metp" | ||
for config in $configs; do | ||
. $EXPDIR/config.${config} | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
done | ||
|
||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO SOURCE MACHINE RUNTIME ENVIRONMENT ===============" | ||
. $BASE_ENV/${machine}.env metp | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
############################################################### | ||
export CDATEm1=$($NDATE -24 $CDATE) | ||
export PDYm1=$(echo $CDATEm1 | cut -c1-8) | ||
|
||
export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc" | ||
export DATAROOT="$RUNDIR/$CDATE/$CDUMP/vrfy" | ||
[[ -d $DATAROOT ]] && rm -rf $DATAROOT | ||
mkdir -p $DATAROOT | ||
|
||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO RUN METPLUS VERIFICATION ===============" | ||
if [ $CDUMP = "gfs" ]; then | ||
|
||
if [ $RUN_GRID2GRID_STEP1 = "YES" -o $RUN_GRID2OBS_STEP1 = "YES" -o $RUN_PRECIP_STEP1 = "YES" ]; then | ||
|
||
$VERIF_GLOBALSH | ||
|
||
fi | ||
fi | ||
|
||
|
||
if [ $CDUMP = "gdas" ]; then | ||
echo "METplus verification currently not supported for CDUMP=${CDUMP}" | ||
fi | ||
############################################################### | ||
# Force Exit out cleanly | ||
if [ ${KEEPDATA:-"NO"} = "NO" ] ; then rm -rf $DATAROOT ; fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/ksh -x | ||
|
||
########## config.metp ########## | ||
# METplus verification step specific | ||
|
||
echo "BEGIN: config.metp" | ||
|
||
# Get task specific resources | ||
. $EXPDIR/config.resources metp | ||
|
||
export RUN_GRID2GRID_STEP1="YES" # Run grid-to-grid verification using METplus | ||
export RUN_GRID2OBS_STEP1="YES" # Run grid-to-obs verification using METplus | ||
export RUN_PRECIP_STEP1="YES" # Run precip verification using METplus | ||
|
||
|
||
#---------------------------------------------------------- | ||
# METplus, Verify grid-to-grid, and/or grid-to-obs, and/or precipitation options | ||
#---------------------------------------------------------- | ||
|
||
if [ "$CDUMP" = "gfs" ] ; then | ||
if [ $RUN_GRID2GRID_STEP1 = "YES" -o $RUN_GRID2OBS_STEP1 = "YES" -o $RUN_PRECIP_STEP1 = "YES" ]; then | ||
export HOMEverif_global=${HOMEgfs}/sorc/verif-global.fd | ||
export VERIF_GLOBALSH=$HOMEverif_global/ush/run_verif_global_in_global_workflow.sh | ||
## INPUT DATA SETTINGS | ||
export model_list=$PSLOT | ||
export model_data_dir_list=$ARCDIR/.. | ||
export model_fileformat_list="pgbf{lead?fmt=%H}.${CDUMP}.{init?fmt=%Y%m%d%H}" | ||
export model_hpssdir_list=$ATARDIR/.. | ||
export get_data_from_hpss="NO" | ||
export hpss_walltime="10" | ||
## OUTPUT SETTINGS | ||
export OUTPUTROOT=$RUNDIR/$CDUMP/$CDATE/vrfy/metplus_exp | ||
export model_arch_dir_list=$ARCDIR/.. | ||
export make_met_data_by="VALID" | ||
export gather_by="VSDB" | ||
## DATE SETTINGS | ||
export VRFYBACK_HRS="24" | ||
## METPLUS SETTINGS | ||
export METplus_verbosity="INFO" | ||
export MET_verbosity="2" | ||
export log_MET_output_to_METplus="yes" | ||
## FORECAST VERIFICATION SETTINGS | ||
export fhr_min=$FHMIN_GFS | ||
export fhr_max=$FHMAX_GFS | ||
# GRID-TO-GRID STEP 1 | ||
export g2g1_type_list="anom pres sfc" | ||
export g2g1_anl_name="self_anl" | ||
export g2g1_anl_fileformat_list="pgbanl.gfs.{valid?fmt=%Y%m%d%H}" | ||
export g2g1_grid="G002" | ||
# GRID-TO-OBS STEP 1 | ||
export g2o1_type_list="upper_air conus_sfc" | ||
export g2o1_obtype_upper_air="ADPUPA" | ||
export g2o1_grid_upper_air="G003" | ||
export g2o1_fhr_out_upper_air="6" | ||
export g2o1_obtype_conus_sfc="ONLYSF" | ||
export g2o1_grid_conus_sfc="G104" | ||
export g2o1_fhr_out_conus_sfc="3" | ||
export g2o1_prepbufr_data_runhpss="YES" | ||
# PRECIP STEP 1 | ||
export precip1_obtype="ccpa" | ||
export precip1_accum_length="24" | ||
export precip1_model_bucket_list="06" | ||
export precip1_model_varname_list="APCP" | ||
export precip1_model_fileformat_list="pgbf{lead?fmt=%H}.gfs.{init?fmt=%Y%m%d%H}" | ||
export precip1_grid="G211" | ||
fi | ||
fi | ||
|
||
echo "END: config.metp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Double checking the metp block isn't needed in the other env files. I only see this added to the WCOSS_C env file.
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.
It shouldn't be. It has been working fine in GFSv16, and this env file was the only one with a vrfy block so just to be similar to vrfy I added the metp block.