Skip to content

Commit

Permalink
Merge branch 'develop' into feature/consolidate_link
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed May 22, 2022
2 parents 0981159 + ac7cb10 commit f8f5f2f
Show file tree
Hide file tree
Showing 70 changed files with 1,090 additions and 495 deletions.
38 changes: 38 additions & 0 deletions jobs/rocoto/aerosol_init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

set -x

###############################################################
# Source FV3GFS workflow modules
source $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Source relevant configs
configs="base aerosol_init"
for config in $configs; do
source $EXPDIR/config.${config}
status=$?
[[ $status -ne 0 ]] && exit $status
done

###############################################################
# Source machine runtime environment
source $BASE_ENV/${machine}.env aerosol_init
status=$?
[[ $status -ne 0 ]] && exit $status

$HOMEgfs/scripts/exgfs_aero_init_aerosol.py

status=$?
if [[ $status -ne 0 ]]; then
echo "FATAL ERROR: exgfs_chem_init_aerosol.py failed with error code $status"
exit $status
fi

##############################################################
# Exit cleanly

set +x
exit 0
2 changes: 1 addition & 1 deletion jobs/rocoto/anal.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/analcalc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/analdiag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/awips.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/earc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/ecen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/echgres.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/ediag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/efcs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/eobs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/eomg.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/epos.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/esfc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/eupd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/fcst.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/gempak.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/getic.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/gldas.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/metp.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
38 changes: 15 additions & 23 deletions jobs/rocoto/ocnpost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,8 @@ fi
##############################################
# Begin JOB SPECIFIC work
##############################################

if [ $RUN_ENVIR = "nco" ]; then
export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc}
export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc}
else
export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc"
export COMOUT="$ROTDIR/$CDUMP.$PDY/$cyc"
fi
[[ ! -d $COMOUT/ocean ]] && mkdir -p $COMOUT/ocean
[[ ! -d $COMOUT/ice ]] && mkdir -p $COMOUT/ice
[[ ! -d $COMOUTocean ]] && mkdir -p $COMOUTocean
[[ ! -d $COMOUTice ]] && mkdir -p $COMOUTice

fhrlst=$(echo $FHRLST | sed -e 's/_/ /g; s/f/ /g; s/,/ /g')

Expand Down Expand Up @@ -121,31 +113,31 @@ for fhr in $fhrlst; do


#break up ocn netcdf into multiple files:
if [ -f $COMOUT/ocean/ocn_2D_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUT/ocean/ocn_2D_$VDATE.$ENSMEM.$IDATE.nc already exists"
if [ -f $COMOUTocean/ocn_2D_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUTocean/ocn_2D_$VDATE.$ENSMEM.$IDATE.nc already exists"
else
ncks -x -v vo,uo,so,temp $COMOUT/ocean/ocn$VDATE.$ENSMEM.$IDATE.nc $COMOUT/ocean/ocn_2D_$VDATE.$ENSMEM.$IDATE.nc
ncks -x -v vo,uo,so,temp $COMOUTocean/ocn$VDATE.$ENSMEM.$IDATE.nc $COMOUTocean/ocn_2D_$VDATE.$ENSMEM.$IDATE.nc
status=$?
[[ $status -ne 0 ]] && exit $status
fi
if [ -f $COMOUT/ocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUT/ocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc already exists"
if [ -f $COMOUTocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUTocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc already exists"
else
ncks -x -v Heat_PmE,LW,LwLatSens,MLD_003,MLD_0125,SSH,SSS,SST,SSU,SSV,SW,cos_rot,ePBL,evap,fprec,frazil,latent,lprec,lrunoff,sensible,sin_rot,speed,taux,tauy,wet_c,wet_u,wet_v $COMOUT/ocean/ocn$VDATE.$ENSMEM.$IDATE.nc $COMOUT/ocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc
ncks -x -v Heat_PmE,LW,LwLatSens,MLD_003,MLD_0125,SSH,SSS,SST,SSU,SSV,SW,cos_rot,ePBL,evap,fprec,frazil,latent,lprec,lrunoff,sensible,sin_rot,speed,taux,tauy,wet_c,wet_u,wet_v $COMOUTocean/ocn$VDATE.$ENSMEM.$IDATE.nc $COMOUTocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc
status=$?
[[ $status -ne 0 ]] && exit $status
fi
if [ -f $COMOUT/ocean/ocn-temp-EQ_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUT/ocean/ocn-temp-EQ_$VDATE.$ENSMEM.$IDATE.nc already exists"
if [ -f $COMOUTocean/ocn-temp-EQ_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUTocean/ocn-temp-EQ_$VDATE.$ENSMEM.$IDATE.nc already exists"
else
ncks -v temp -d yh,503 -d xh,-299.92,60.03 $COMOUT/ocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc $COMOUT/ocean/ocn-temp-EQ_$VDATE.$ENSMEM.$IDATE.nc
ncks -v temp -d yh,503 -d xh,-299.92,60.03 $COMOUTocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc $COMOUTocean/ocn-temp-EQ_$VDATE.$ENSMEM.$IDATE.nc
status=$?
[[ $status -ne 0 ]] && exit $status
fi
if [ -f $COMOUT/ocean/ocn-uo-EQ_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUT/ocean/ocn-uo-EQ_$VDATE.$ENSMEM.$IDATE.nc already exists"
if [ -f $COMOUTocean/ocn-uo-EQ_$VDATE.$ENSMEM.$IDATE.nc ]; then
echo "File $COMOUTocean/ocn-uo-EQ_$VDATE.$ENSMEM.$IDATE.nc already exists"
else
ncks -v uo -d yh,503 -d xh,-299.92,60.03 $COMOUT/ocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc $COMOUT/ocean/ocn-uo-EQ_$VDATE.$ENSMEM.$IDATE.nc
ncks -v uo -d yh,503 -d xh,-299.92,60.03 $COMOUTocean/ocn_3D_$VDATE.$ENSMEM.$IDATE.nc $COMOUTocean/ocn-uo-EQ_$VDATE.$ENSMEM.$IDATE.nc
status=$?
[[ $status -ne 0 ]] && exit $status
fi
Expand All @@ -155,7 +147,7 @@ done

# Restore CDATE to what is expected
export CDATE=$IDATE
$NMV ocn_ice*.grb2 $COMOUT/ocean/
$NMV ocn_ice*.grb2 $COMOUTocean/
status=$?
[[ $status -ne 0 ]] && exit $status

Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/post.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## NCEP post driver script
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/postsnd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/vrfy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
## Abstract:
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wafs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wafsblending.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wafsblending0p25.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wafsgcip.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wafsgrib2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wafsgrib20p25.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/waveawipsbulls.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/waveawipsgridded.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wavegempak.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/waveinit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wavepostbndpnt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wavepostbndpntbll.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wavepostpnt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/wavepostsbs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/waveprep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -x
#!/bin/bash -x

###############################################################
echo
Expand Down
16 changes: 12 additions & 4 deletions modulefiles/module_base.hera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ load(pathJoin("fms", "2021.03"))

load(pathJoin("bacio", "2.4.1"))
load(pathJoin("g2", "3.4.2"))
load(pathJoin("g2tmpl", "1.10.1"))
load(pathJoin("g2tmpl", "1.10.0"))
load(pathJoin("ip", "3.3.3"))
load(pathJoin("nemsio", "2.5.2"))
load(pathJoin("sp", "2.3.3"))
Expand All @@ -41,9 +41,17 @@ load(pathJoin("w3nco", "2.4.1"))
load(pathJoin("wgrib2", "2.0.8"))
setenv("WGRIB2","wgrib2")

append_path("MODULEPATH", "/contrib/anaconda/modulefiles")
load(pathJoin("anaconda", "2.3.0"))

load(pathJoin("cdo", "1.9.5"))

load(pathJoin("R", "3.5.0"))

-- Temporary until official hpc-stack is updated
prepend_path("MODULEPATH", "/scratch2/NCEPDEV/ensemble/save/Walter.Kolczynski/hpc-stack/modulefiles/stack")
load(pathJoin("hpc", "1.2.0"))
load(pathJoin("hpc-intel", "18.0.5.274"))
load(pathJoin("hpc-miniconda3", "4.6.14"))
load(pathJoin("ufswm", "1.0.0"))
load(pathJoin("met", "9.1"))
load(pathJoin("metplus", "3.1"))

whatis("Description: GFS run environment")
Loading

0 comments on commit f8f5f2f

Please sign in to comment.