Ignore:
Timestamp:
09/13/12 18:35:26 (12 years ago)
Author:
aclsce
Message:

Modified to exclude good variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/diff.bash

    r1849 r1879  
    11#!/bin/bash 
    2  
     2set -vx 
    33#============================================== 
    44# 
     
    1717fi 
    1818 
    19 cdo -s diff $1 $delname $2 > diff_$$.tmp 2>&1 
     19cdo -s $delname $1 out_tmp1.nc 
     20cdo -s $delname $2 out_tmp2.nc 
     21 
     22cdo -s diff out_tmp1.nc out_tmp2.nc > diff_$$.tmp 2>&1 
    2023result2=`cat diff_$$.tmp | grep -i "records differ" | tr -s " " | cut -f2 -d" "` 
    2124 
     
    2629        echo "$2"  
    2730        echo "are the same" 
    28         rm -f diff_$$.tmp 
     31        rm -f diff_$$.tmp out_tmp1.nc out_tmp2.nc 
    2932        exit 0 
    3033else 
     
    3538        echo "differ"    
    3639        cat diff_$$.tmp | grep -i "records differ" 
    37         rm -f diff_$$.tmp 
     40        rm -f diff_$$.tmp out_tmp1.nc out_tmp2.nc 
    3841        echo "==============> ERROR" 
    3942        exit 1  
Note: See TracChangeset for help on using the changeset viewer.