3 if ( ( ${#argv} != 2 ) && ( ${#argv} != 3 ) ) then
4 echo usage
: diffwrf gribfile1 gribfile2
<wgrib_exe_dir
>
12 if ( -e fort
.88 ) rm fort
.88
13 if ( -e fort
.98 ) rm fort
.98
15 if ( -e outfile1
) rm outfile1
16 if ( -e outfile2
) rm outfile2
18 if ( ( ! -e $file1 ) ||
( ! -e $file2 ) ) then
23 if ( ${#argv} == 2 ) then
24 if ( ! -e ..
/..
/external
/io_grib
1/wgrib.exe
) then
28 ..
/..
/external
/io_grib
1/wgrib.exe
-s $file1 | ..
/..
/external
/io_grib
1/wgrib.exe
-s -i -o outfile1
$file1 >& /dev
/null
29 ..
/..
/external
/io_grib
1/wgrib.exe
-s $file2 | ..
/..
/external
/io_grib
1/wgrib.exe
-s -i -o outfile2
$file2 >& /dev
/null
30 else if ( ${#argv} == 3 ) then
31 if ( ! -e ${dir}/wgrib.exe
) then
35 ${dir}/wgrib.exe
-s $file1 |
${dir}/wgrib.exe
-s -i -o outfile1
$file1 >& /dev
/null
36 ${dir}/wgrib.exe
-s $file2 |
${dir}/wgrib.exe
-s -i -o outfile2
$file2 >& /dev
/null