# Grid the restricted data.
#
# Arguments:
#
#    1 - source directory
#    2 - desired resolution


if ( $#argv < 2 ) then
	echo " Usage " $0  " <source directory> <desired resolution>"
        echo " 	desired resolution:   0.25"
	exit
endif

Grid1FileNew $1 \
          "-I$2 -B-60/-50/30/40 -S0/$1/sigma0.dat -S1/$1/sigma1.dat -S2/$1/sigma2.dat -S3/$1/sigma3.dat -S4/$1/sigma4.dat -Z$1/depths.dat" \
          7305.nodc.qc 7305.nodc.shall

Grid1FileNew $1 \
          "-I$2 -B-70/-60/30/40 -S0/$1/sigma0.dat -S1/$1/sigma1.dat -S2/$1/sigma2.dat -S3/$1/sigma3.dat -S4/$1/sigma4.dat -Z$1/depths.dat" \
          7306.nmfs 7306.nodc.qc 7306.nodc.shall

Grid1FileNew $1 \
          "-I$2 -B-80/-70/30/40 -S0/$1/sigma0.dat -S1/$1/sigma1.dat -S2/$1/sigma2.dat -S3/$1/sigma3.dat -S4/$1/sigma4.dat -Z$1/depths.dat" \
          7307.nmfs 7307.nodc.qc 7307.nodc.shall

Grid1FileNew $1 \
          "-I$2 -B-60/-50/40/50 -S0/$1/sigma0.dat -S1/$1/sigma1.dat -S2/$1/sigma2.dat -S3/$1/sigma3.dat -S4/$1/sigma4.dat -Z$1/depths.dat" \
          7405.nodc.qc 7405.nodc.shall

Grid1FileNew $1 \
          "-I$2 -B-70/-60/40/50 -S0/$1/sigma0.dat -S1/$1/sigma1.dat -S2/$1/sigma2.dat -S3/$1/sigma3.dat -S4/$1/sigma4.dat -Z$1/depths.dat" \
          7406.nmfs 7406.nodc.qc 7406.nodc.shall

Grid1FileNew $1 \
          "-I$2 -B-80/-70/40/50 -S0/$1/sigma0.dat -S1/$1/sigma1.dat -S2/$1/sigma2.dat -S3/$1/sigma3.dat -S4/$1/sigma4.dat -Z$1/depths.dat" \
          7407.nmfs 7407.nodc.qc 7407.nodc.shall
