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

[develop] Update forecast metric test script #882

Merged
merged 3 commits into from
Aug 14, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .cicd/scripts/srw_metric_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ cd ${workspace}/tests/WE2E
cd ${workspace}
clouden90 marked this conversation as resolved.
Show resolved Hide resolved

# run skill-score check
# first load MET env variables
source ${we2e_experiment_base_dir}/${we2e_test_name}/var_defns.sh
[[ ! -f Indy-Severe-Weather.tgz ]] && wget https://noaa-ufs-srw-pds.s3.amazonaws.com/sample_cases/release-public-v2.1.0/Indy-Severe-Weather.tgz
[[ ! -d Indy-Severe-Weather ]] && tar xvfz Indy-Severe-Weather.tgz
[[ -f skill-score.out ]] && rm skill-score.out
Expand All @@ -71,7 +69,10 @@ source ${we2e_experiment_base_dir}/${we2e_test_name}/var_defns.sh
# In this example, skill score index is a weighted average of 16 skill scores of RMSE statistics for wind speed, dew point temperature,
# temperature, and pressure at lowest level in the atmosphere over 48 hour lead time.
cp ${we2e_experiment_base_dir}/${we2e_test_name}/2019061500/metprd/PointStat/*.stat ${workspace}/Indy-Severe-Weather/metprd/point_stat/
${MET_INSTALL_DIR}/${MET_BIN_EXEC}/stat_analysis -config parm/metplus/STATAnalysisConfig_skill_score -lookin ${workspace}/Indy-Severe-Weather/metprd/point_stat -v 2 -out skill-score.out
# load met and metplus
module use modulefiles/tasks/${platform,,}
module load run_vx.local
stat_analysis -config parm/metplus/STATAnalysisConfig_skill_score -lookin ${workspace}/Indy-Severe-Weather/metprd/point_stat -v 2 -out skill-score.out

# check skill-score.out
cat skill-score.out
Expand Down
Loading