source: trunk/WRF.COMMON/WRFV2/external/io_grib1/diffwrf @ 2756

Last change on this file since 2756 was 11, checked in by aslmd, 14 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
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 -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
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.