#!/usr/bin/csh

# get_square_off_line.csh

# November 15, 2006.  Add time to output file name.  rcg
# December 21, 2003.  Fix spelling of output file name.  rcg
# 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 13, 2000 

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

set dir = "/data/pgarrahan/dbaccess/square"
set file = "durbin_square.jgof"
set today = `date +20%y%b%d%H%H`
set file_new = durbin_square.jgof_$today
#set file_old = durbin_square.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_square_meter.ind > $file_new
date
echo "defgb ends.  Move files around"

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

\ls -l
date
