Skip to content

Commit

Permalink
Clean up getic scripts
Browse files Browse the repository at this point in the history
    jet xml file calls getic_gsl_fv3gfsv16.sh
    hera xml file calls getic.sh  (includes EMCDIR)
  • Loading branch information
jkhender committed Aug 23, 2023
1 parent f4eb407 commit 188bfc1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 66 deletions.
11 changes: 8 additions & 3 deletions jobs/rocoto/getic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "$HOMEgfs/ush/preamble.sh"

## this script makes links to FV3GFS netcdf files under /public and copies over GFS analysis file for verification
## this script makes links to FV3GFS netcdf files under /public
## /home/rtfim/UFS_CAMSUITE/FV3GFSrun/FV3ICS/YYYYMMDDHH/gfs
## gfs.tHHz.sfcanl.nc -> /public/data/grids/gfs/netcdf/YYDDDHH00.gfs.tHHz.sfcanl.nc
## gfs.tHHz.atmanl.nc -> /public/data/grids/gfs/netcdf/YYDDDHH00.gfs.tHHz.atmanl.nc
Expand All @@ -13,7 +13,6 @@ echo "CDUMP = $CDUMP"
echo "COMPONENT = $COMPONENT"
echo "ICSDIR = $ICSDIR"
echo "PUBDIR = $PUBDIR"
echo "GFSDIR = $GFSDIR"
echo "RETRODIR = $RETRODIR"
echo "ROTDIR = $ROTDIR"
echo "PSLOT = $PSLOT"
Expand All @@ -23,7 +22,7 @@ echo
yyyymmdd=`echo $CDATE | cut -c1-8`
hh=`echo $CDATE | cut -c9-10`
yyddd=`date +%y%j -u -d $yyyymmdd`
fv3ic_dir=${ROTDIR}/${CDUMP}.${yyyymmdd}/${hh}/model_data/${COMPONENT}
fv3ic_dir=${ROTDIR}/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}

## create links in FV3ICS directory
mkdir -p $fv3ic_dir
Expand All @@ -48,6 +47,12 @@ elif [[ -f $PUBDIR/${pubatm_file} ]]; then
echo "linking $PUBDIR...."
ln -fs $PUBDIR/${pubsfc_file} $sfc_file
ln -fs $PUBDIR/${pubatm_file} $atm_file
elif [[ -f $EMCDIR/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}/${atm_file} ]]; then
echo "linking $EMCDIR/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}..."
echo "sfc_file: $sfc_file"
echo "atm_file: $atm_file"
ln -s $EMCDIR/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}/${sfc_file}
ln -s $EMCDIR/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}/${atm_file}
elif [[ -f $RETRODIR/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}/${atm_file} ]]; then
echo "linking $RETRODIR/${CDUMP}.${yyyymmdd}/${hh}/${COMPONENT}..."
echo "sfc_file: $sfc_file"
Expand Down
60 changes: 0 additions & 60 deletions jobs/rocoto/getic_gsl.sh

This file was deleted.

3 changes: 1 addition & 2 deletions jobs/rocoto/getic_gsl_fv3gfsv15.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "$HOMEgfs/ush/preamble.sh"

## this script makes links to FV3GFS (GFSv15.1) nemsio files under /public and copies over GFS analysis file for verification
## this script makes links to FV3GFS (GFSv15.1) nemsio files under /public
## /scratch4/BMC/rtfim/rtfuns/FV3GFS/FV3ICS/YYYYMMDDHH/gfs
## gfs.tHHz.sfcanl.nemsio -> /public/data/grids/gfs/nemsio/YYDDDHH00.gfs.tHHz.sfcanl.nemsio
## gfs.tHHz.atmanl.nemsio -> /public/data/grids/gfs/nemsio/YYDDDHH00.gfs.tHHz.atmanl.nemsio
Expand All @@ -14,7 +14,6 @@ echo "CDUMP = $CDUMP"
echo "COMPONENT = $COMPONENT"
echo "ICSDIR = $ICSDIR"
echo "PUBDIR = $PUBDIR"
echo "GFSDIR = $GFSDIR"
echo "RETRODIR = $RETRODIR"
echo "ROTDIR = $ROTDIR"
echo "PSLOT = $PSLOT"
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/getic_gsl_fv3gfsv16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "$HOMEgfs/ush/preamble.sh"

## this script makes links to FV3GFS netcdf files under /public and copies over GFS analysis file for verification
## this script makes links to FV3GFS netcdf files under /public
## /home/rtfim/UFS_CAMSUITE/FV3GFSrun/FV3ICS/YYYYMMDDHH/gfs
## gfs.tHHz.sfcanl.nc -> /public/data/grids/gfs/netcdf/YYDDDHH00.gfs.tHHz.sfcanl.nc
## gfs.tHHz.atmanl.nc -> /public/data/grids/gfs/netcdf/YYDDDHH00.gfs.tHHz.atmanl.nc
Expand Down

0 comments on commit 188bfc1

Please sign in to comment.