|
Last change
on this file was
11,
checked in by aslmd, 15 years ago
|
|
spiga@svn-planeto:ajoute le modele meso-echelle martien
|
-
Property svn:executable set to
*
|
|
File size:
660 bytes
|
| Line | |
|---|
| 1 | #!/bin/csh |
|---|
| 2 | |
|---|
| 3 | if ( ${#argv} != 2 ) then |
|---|
| 4 | echo usage: diffwrf gribfile1 gribfile2 |
|---|
| 5 | exit ( 1 ) |
|---|
| 6 | endif |
|---|
| 7 | |
|---|
| 8 | set file1 = $1 |
|---|
| 9 | set file2 = $2 |
|---|
| 10 | |
|---|
| 11 | if ( -e fort.88 ) rm fort.88 |
|---|
| 12 | if ( -e fort.98 ) rm fort.98 |
|---|
| 13 | |
|---|
| 14 | if ( -e outfile1 ) rm outfile1 |
|---|
| 15 | if ( -e outfile2 ) rm outfile2 |
|---|
| 16 | |
|---|
| 17 | if ( ( ! -e $file1 ) || ( ! -e $file2 ) ) then |
|---|
| 18 | touch fort.88 |
|---|
| 19 | exit ( 0 ) |
|---|
| 20 | endif |
|---|
| 21 | |
|---|
| 22 | ../../external/io_grib1/wgrib -s $file1 | ../../external/io_grib1/wgrib -s -i -o outfile1 $file1 >& /dev/null |
|---|
| 23 | ../../external/io_grib1/wgrib -s $file2 | ../../external/io_grib1/wgrib -s -i -o outfile2 $file2 >& /dev/null |
|---|
| 24 | |
|---|
| 25 | cmp outfile1 outfile2 |
|---|
| 26 | |
|---|
| 27 | set ok = $status |
|---|
| 28 | |
|---|
| 29 | if ( $ok == 0 ) then |
|---|
| 30 | |
|---|
| 31 | else |
|---|
| 32 | touch fort.88 |
|---|
| 33 | endif |
|---|
| 34 | |
|---|
| 35 | exit ( 0 ) |
|---|
Note: See
TracBrowser
for help on using the repository browser.