#!/usr/bin/csh

# get_cubic_off_line.csh

# November 14, 2006. Add time to file name.
# December 18, 2003  Change to create new file but not put in place
#	Later will add code to test if successful and put in place if so.  rcg
# March 9, 2003 Add ls commands to view directory before and after
# 	defgb and file moves.  rcg
#June 9, 2000

# Batch job gets Durbin cubic data and generates a jgofs formatted
# data file.

set dir = "/data/pgarrahan/dbaccess/cubic"
set file = "durbin_cubic.jgof"
set today = `date +20%y%b%d%H%M`
set file_new = durbin_cubic.jgof_$today
#set file_old = durbin_cubic.jgof_old
cd $dir
echo "In directory $dir"
\ls -l

date
echo "Starting defgb outputting to file $file_new ...."

/data5/globec/methods/defgb \@/data/pgarrahan/dbaccess/zoo_cubic_meter.ind > $file_new
date
echo "defgb ends.  Move files around"

# Later, should enhance this to see if defgb was successful

\ls -l
date
