forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- changed if-statement for netcdf files in GSL archive script to look for a single file (atmf000 netcdf file) instead of multiple files since it now produces errors when running as bash script - added GSL archive script for archiving netcdf files only - changed getic script to look for atm file instead of sfc file in if-statements since atm file is much larger than sfc file - comment out if-statement to check if 0p25 grib2 file already exists in post.sh so post job will run if resubmitted when walltime is exceeded - change config.base.emc.dyn link to point to JET version # Please enter the commit message for your changes. Lines starting
- Loading branch information
Showing
5 changed files
with
93 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
#!/bin/ksh -x | ||
|
||
############################################################### | ||
## Abstract: | ||
## Archive driver script | ||
## RUN_ENVIR : runtime environment (emc | nco) | ||
## HOMEgfs : /full/path/to/workflow | ||
## EXPDIR : /full/path/to/config/files | ||
## CDATE : current analysis date (YYYYMMDDHH) | ||
## CDUMP : cycle name (gdas / gfs) | ||
## PDY : current date (YYYYMMDD) | ||
## cyc : current cycle (HH) | ||
## ATCFNAME : atcf track identifier | ||
## COMPONENT : component (atmos/wave) | ||
############################################################### | ||
|
||
############################################################### | ||
# Source FV3GFS workflow modules | ||
. $HOMEgfs/ush/load_fv3gfs_modules.sh | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
############################################################### | ||
# Source relevant configs | ||
configs="base arch" | ||
for config in $configs; do | ||
. $EXPDIR/config.${config} | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
done | ||
|
||
COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT" | ||
cd $COMIN | ||
|
||
YYYY=`echo $PDY|cut -c1-4` | ||
############################################################### | ||
# Archive data to HPSS | ||
if [ $HPSSARCH = "YES" ]; then | ||
############################################################### | ||
|
||
if [ $CDUMP = "gfs" ]; then | ||
|
||
## nemsio files ## | ||
if [ -f *nemsio ]; then | ||
# archive nemsio files (gfs.t00z.atmfHHH.nemsio, gfs.t00z.sfcfHHH.nemsio, gfs.t00z.logfHHH.nemsio ) | ||
htar -P -cvf $ATARDIR/$YYYY/$CDATE/gfs_nemsio.tar gfs.*nemsio | ||
status=$? | ||
if [ $status -ne 0 ]; then | ||
echo "HTAR $CDATE gfs_nemsio.tar failed" | ||
exit $status | ||
fi | ||
fi | ||
|
||
## netcdf files ## | ||
#JKH if [ -f *f???.nc ]; then | ||
if [ -f g*atmf000.nc ]; then | ||
# archive netcdf files (gfs.t00z.atmfHHH.nc, gfs.t00z.sfcfHHH.nc, gfs.t00z.logfHHH.txt ) | ||
htar -P -cvf $ATARDIR/$YYYY/$CDATE/gfs_nc.tar gfs*.nc gfs.*log*.txt | ||
status=$? | ||
if [ $status -ne 0 ]; then | ||
echo "HTAR $CDATE gfs_nc.tar failed" | ||
exit $status | ||
fi | ||
fi | ||
|
||
# archive GRIB2 files (gfs.t00z.pgrb2.0p25.fHHH, gfs.t00z.pgrb2.0p50.fHHH) | ||
# and tracker files (tctrk.atcf.YYYYMMDDHH.gcp1.txt) | ||
#JKH if [ -f tctrk.atcf.${CDATE}.${ATCFNAME}.txt ]; then | ||
#JKH htar -P -cvf $ATARDIR/$YYYY/$CDATE/gfs_pgrb2.tar gfs.*pgrb2.0p25* gfs.*pgrb2.0p5* tctrk.atcf.${CDATE}.${ATCFNAME}.txt | ||
#JKH else | ||
#JKH htar -P -cvf $ATARDIR/$YYYY/$CDATE/gfs_pgrb2.tar gfs.*pgrb2.0p25* gfs.*pgrb2.0p5* | ||
#JKH fi | ||
#JKH status=$? | ||
#JKH if [ $status -ne 0 ]; then | ||
#JKH echo "HTAR $CDATE gfs_pgrb2.tar failed" | ||
#JKH exit $status | ||
#JKH fi | ||
|
||
fi | ||
|
||
############################################################### | ||
fi ##end of HPSS archive | ||
############################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
config.base.emc.dyn_hera | ||
config.base.emc.dyn_jet |