Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
33 changes: 17 additions & 16 deletions dev/driver/driver_WAFS.README
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ How to use the drivers for WAFS jobs
*********************************************************************

There are 1 standalone UPP job and 5 WAFS jobs
run_JWAFS_UPP.wcoss2
run_JWAFS_GRIB.wcoss2
run_JWAFS_GCIP.wcoss2
run_JWAFS_GRIB2.wcoss2
run_JWAFS_GRIB2_0P25.wcoss2
run_JWAFS_BLENDING_0P25.wcoss2
run_JWAFS_UPP
run_JWAFS_GRIB
run_JWAFS_GCIP
run_JWAFS_GRIB2
run_JWAFS_GRIB2_0P25
run_JWAFS_BLENDING_0P25

JWAFS_UPP is a downstream of GFS model outputs in netcdf

Expand All @@ -30,7 +30,7 @@ Project location, defined by HOMEwafs
export NWROOT=(the location holds your WAFS local inventory)
export HOMEwafs=${HOMEwafs:-${NWROOT}/{the folder of your WAFS local inventory)}

A user needs to modify NWROOT or HOMEwafs to the project location
A user needs to modify NWROOT or HOMEwafs to the project location

Step 2: output and working folder
=====================
Expand All @@ -47,30 +47,31 @@ Change file names of error messages and script printout:
Step 3: input data
=====================
Specify date and cycle:
export PDY=(date as YYYYMMDD)
export cyc=(cycle as CC)
export CDATE=(date as YYYYMMDDHH)
PDY is inferred from CDATE as YYYYMMDD
cyc is inferred from CDATE as HH

Specify COMIN by either setting COMIN or by setting COMPATH used by compath.py
export COMPATH=(location of canned data ending with $envir/com/$RUN structure)
export COMIN=(folder with a full path)

1) run_JWAFS_GRIB2.WCOSS2 and run_JWAFS_GRIB2_0P25.WCOSS2
1) run_JWAFS_GRIB2 and run_JWAFS_GRIB2_0P25
Ensure COMPATH includes both GFS and WAFS

2) run_JWAFS_BLENDING_0P25.wcoss2 has two inputs, UK and US.
2) run_JWAFS_BLENDING_0P25 has two inputs, UK and US.
US data is a downstream product of JWAFS_GRIB2_0P25,
so either:
export COMPATH=($COMROOT/wafs where COMROOT is of run_JWAFS_GRIB2_0P25.wcoss2)
export COMPATH=($COMROOT/wafs where COMROOT is of run_JWAFS_GRIB2_0P25)
or:
export COMINus=($COMOUT of run_JWAFS_GRIB2_0P25.wcoss2)
export COMINus=($COMOUT of run_JWAFS_GRIB2_0P25)

UK data is from DCOM,
either:
export DCOMROOT=(a folder canned data with structure of $PDY/wgrbbul/ukmet_wafs)
or:
export COMINuk=${COMINuk:-$DCOMROOT/$PDY/wgrbbul/ukmet_wafs}

3) run_JWAFS_GCIP.wcoss2 has 4 inputs: gfs master files of f000 and f003, bufr, satellite and radar
3) run_JWAFS_GCIP has 4 inputs: gfs master files of f000 and f003, bufr, satellite and radar
Ensure COMPATH includes GFS

BUFR data is dumped from DCOM.
Expand All @@ -89,7 +90,7 @@ either ensure COMPATH includes radar,
or:
export COMINradar=${COMINradar:-$COMROOT/radarl2/$radarl2_ver)/radar.$PDY}

4) run_JWAFS_UPP.wcoss2 and run_JWAFS_GRIB.wcoss2
4) run_JWAFS_UPP and run_JWAFS_GRIB
Ensure COMPATH includes GFS


Expand All @@ -101,5 +102,5 @@ Test by comparing outputs to operational products in different ways.
2) Use wgrib2 to check date, cycle and forecast hour are correct.
3) Check the number of fields and records are correct by comparing the
control files generated by g2ctl
4) Plot and compare by using GrADS to have a sanity check whether
4) Plot and compare by using GrADS to have a sanity check whether
the differences are reasonable.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
51 changes: 51 additions & 0 deletions dev/driver/submit.run_JWAFS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

set -eu

# Get the root of the cloned WAFS directory
readonly DIR_ROOT=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}")")/../.." && pwd -P)

job=${1?"Must specify a job to submit"}
CDATE=${2:-"2024081918"}

tmpdir=/lfs/h2/emc/ptmp/${USER}/wafs.$job.${CDATE:0:8}
mkdir -p $tmpdir
cd $tmpdir

jobcard=run_JWAFS_${job^^}
cp "${DIR_ROOT}/dev/driver/${jobcard}" .

if [ $job = 'upp' ]; then
FHOURS="anl 000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 \
027 030 033 036 039 042 045 048 054 060 066 072 078 084 090 096 102 108 114 120"
elif [ $job = 'gcip' ]; then
FHOURS="000 003"
elif [ $job = 'grib2_0p25' ]; then
export FHOUT_GFS=${FHOUT_GFS:-1}
if [ $FHOUT_GFS -eq 3 ]; then #27
export FHOURS=${FHOURS:-"6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 54 60 66 72 78 84 90 96 102 108 114 120"}
else #39
export FHOURS=${FHOURS:-"6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 30 33 36 39 42 45 48 54 60 66 72 78 84 90 96 102 108 114 120"}
fi
elif [ $job = 'grib2_1p25' ]; then
export FHOURS=${FHOURS:-"00 06 09 12 15 18 21 24 27 30 33 36 42 48 54 60 66 72"}
elif [ $job = 'grib' ]; then
export FHOURS=${FHOURS:-"06 12 18 24 30 36 42 48 54 60 66 72"}
elif [ $job = 'grib2_0p25_blending' ]; then
export FHOUT_GFS=${FHOUT_GFS:-1}
if [ $FHOUT_GFS -eq 3 ]; then
export FHOURS=${FHOURS:-"6 9 12 15 18 21 24 27 30 33 36 39 42 45 48"}
else
export FHOURS=${FHOURS:-"6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 30 33 36 39 42 45 48"}
fi
fi

for fhr in $FHOURS; do
sed -e "s/log.wafs_$job/log.wafs_$job.$fhr/g" \
-e "s/PDY=.*/PDY=${CDATE:0:8}/g" \
-e "s/cyc=.*/cyc=${CDATE:8:2}/g" \
-e "s/fhr=.*/fhr=$fhr/g" \
-e "s/working_wafs/working_wafs.$job.${CDATE:0:8}/g" \
$jobcard >$jobcard.$fhr
qsub $jobcard.$fhr
done
47 changes: 0 additions & 47 deletions dev/driver/submit.run_JWAFS.wcoss2.sh

This file was deleted.

Empty file modified fix/wafs/grib_wafs.namelist
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs00
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs06
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs12a
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs12b
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs18a
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs18b
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs24a
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs24b
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs30a
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs30b
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs36
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs42
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs48
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs60
100755 → 100644
Empty file.
Empty file modified fix/wafs/grib_wfsgfs72
100755 → 100644
Empty file.
Empty file modified fix/wafs/wafs_blending_0p25_admin_msg
100755 → 100644
Empty file.
17 changes: 0 additions & 17 deletions modulefiles/wafs_common.lua

This file was deleted.

17 changes: 0 additions & 17 deletions modulefiles/wafs_hera.intel.lua

This file was deleted.

17 changes: 0 additions & 17 deletions modulefiles/wafs_orion.intel.lua

This file was deleted.

2 changes: 1 addition & 1 deletion sorc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.19)

# Get the version from the VERSION file.
#file(STRINGS "VERSION" pVersion)
set(pVersion 1.0.0)
set(pVersion 7.0.0)

project(
wafs
Expand Down
8 changes: 3 additions & 5 deletions sorc/build_wafs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ readonly DIR_ROOT=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}" )" )/.."
# User Options
BUILD_TYPE=${BUILD_TYPE:-"Release"}
CMAKE_OPTS=${CMAKE_OPTS:-}
MACHINE_ID=${MACHINE_ID:-"wcoss2"}
COMPILER=${COMPILER:-"intel"}
BUILD_DIR=${BUILD_DIR:-"${DIR_ROOT}/sorc/build/wafs"}
INSTALL_PREFIX=${INSTALL_PREFIX:-"${DIR_ROOT}/sorc/install/wafs"}

#==============================================================================#

# Detect machine (sets MACHINE_ID)
source "${DIR_ROOT}/ush/detect_machine.sh"

# Load modules
source "${DIR_ROOT}/ush/module-reset.sh"
module reset
source "${DIR_ROOT}/versions/build.ver"
module use "${DIR_ROOT}/modulefiles"
module load wafs_"${MACHINE_ID}.${COMPILER}"
module load "wafs_${MACHINE_ID}.${COMPILER}"
module list

# Collect BUILD Options
Expand Down
92 changes: 0 additions & 92 deletions ush/detect_machine.sh

This file was deleted.

Loading