Last change
on this file since 354 was
1,
checked in by lfita, 10 years ago
|
- -- --- Opening of the WRF+LMDZ coupling repository --- -- -
WRF: version v3.3
LMDZ: version v1818
More details in:
|
-
Property svn:executable set to
*
|
File size:
676 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.exe -s $file1 | ../../external/io_grib1/wgrib.exe -s -i -o outfile1 $file1 >& /dev/null |
---|
23 | ../../external/io_grib1/wgrib.exe -s $file2 | ../../external/io_grib1/wgrib.exe -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.