Changeset 1841 for TOOLS


Ignore:
Timestamp:
08/02/12 15:25:36 (12 years ago)
Author:
acosce
Message:

BugFix? when we try to find variables to exclude of ncrcat.
For example before "Point Omega" was find as a integer variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/enlarge_my_files.sh

    r1840 r1841  
    7676nbfile=0 
    7777for file in `cat $1` ; do 
    78     ncdump -h ${file} | gawk '{if (match($0, /(byte|char|short|int|float|double) (.*)\(/, arr)) print arr[2] }' >> tmp_$$.txt 
     78 #   ncdump -h ${file} | gawk '{if (match($0, /(byte|char|short|int|float|double) (.*)\(/, arr)) print arr[2] }' >> tmp_$$.txt 
     79    ncdump -h ${file} | grep -Ew "byte|char|short|int|float|double"  | awk -F\( '{split($1,a," ") ; split($2,b,")") ; if (a[2] != b[1]) print a[2]}'  >> tmp_$$.txt 
    7980    let nbfile=nbfile+1 
    8081done 
     
    187188                extratar=1 
    188189                # Copy to output_tar directory  
     190                echo "====> COPY to tar command because find other variables ($varstoexcludefiltered) than t_inst_*" 
     191                echo "COPY to tar command because find other variables ($varstoexcludefiltered) than t_inst_*" >> $statusfile 
    189192                cp $set $PATH_SIMU/output_tar 
    190193        fi 
Note: See TracChangeset for help on using the changeset viewer.