source: lmdz_wrf/WRFV3/external/io_grib1/diffwrf @ 1

Last change on this file since 1 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
3if ( ${#argv} != 2 ) then
4        echo usage: diffwrf gribfile1 gribfile2
5        exit ( 1 )
6endif
7
8set file1 = $1
9set file2 = $2
10       
11if ( -e fort.88 ) rm fort.88
12if ( -e fort.98 ) rm fort.98
13
14if ( -e outfile1 ) rm outfile1
15if ( -e outfile2 ) rm outfile2
16
17if ( ( ! -e $file1 ) || ( ! -e $file2 ) ) then
18        touch fort.88
19        exit ( 0 ) 
20endif
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
25cmp outfile1 outfile2
26
27set ok = $status
28
29if ( $ok == 0 ) then
30       
31else
32        touch fort.88
33endif
34
35exit ( 0 ) 
Note: See TracBrowser for help on using the repository browser.