Skip to content

Commit

Permalink
Create GSL version of tracker.sh
Browse files Browse the repository at this point in the history
 - this is a placeholder with changes from last year's HFIP experiment; will likely need to be updated in the future
  • Loading branch information
jkhender committed Jan 27, 2024
1 parent 8457e12 commit 529d9f7
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 20 deletions.
20 changes: 0 additions & 20 deletions jobs/rocoto/tracker.sh

This file was deleted.

1 change: 1 addition & 0 deletions jobs/rocoto/tracker.sh
20 changes: 20 additions & 0 deletions jobs/rocoto/tracker_emc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="tracker"
export jobid="${job}.$$"

###############################################################
# Execute the JJOB

"${HOMEgfs}/jobs/JGFS_ATMOS_CYCLONE_TRACKER"
status=$?

exit "${status}"
35 changes: 35 additions & 0 deletions jobs/rocoto/tracker_gsl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="tracker"
export jobid="${job}.$$"

###############################################################
# Execute the JJOB

"${HOMEgfs}/jobs/JGFS_ATMOS_CYCLONE_TRACKER"

# GSL - rename tracker file and change AVNO to $ACTFNAME ## JKH
export TRACKDIR="${ROTDIR}/../../tracks"
if [ ! -d $TRACKDIR ]; then mkdir $TRACKDIR ; fi
typeset -u ucatcf=$ATCFNAME
YMD=${PDY} HH=${cyc} generate_com -x COM_ATMOS_TRACK
if [ -f ${COM_ATMOS_TRACK}/avnop.t${cyc}z.cyclone.trackatcfunix ]; then
cat $COM_ATMOS_TRACK/avnop.t${cyc}z.cyclone.trackatcfunix | sed s:AVNO:${ucatcf}:g > $TRACKDIR/tctrk.atcf.${CDATE}.${ATCFNAME}.txt
cp -p $TRACKDIR/tctrk.atcf.${CDATE}.${ATCFNAME}.txt $COM_ATMOS_TRACK/tctrk.atcf.${CDATE}.${ATCFNAME}.txt
rm -f $COM_ATMOS_TRACK/avnop.t${cyc}z.cyclone.trackatcfunix $COM_ATMOS_TRACK/avno.t${cyc}z.cyclone.trackatcfunix
echo "$COM_ATMOS_TRACK/avno*.t${cyc}z.cyclone.trackatcfunix deleted...."
else
echo "no track file created...."
fi

status=$?

exit "${status}"

0 comments on commit 529d9f7

Please sign in to comment.