Changeset 920 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 21, 2016, 10:04:53 AM (8 years ago)
Author:
lfita
Message:

Working version even with statistics and `keepvars'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/model_graphics.bash

    r915 r920  
    425425      'pinterp')
    426426        vals=${plevels}',1,1'
    427         echo "python $pyHOME/nc_var.py -o pinterp -f ${cfiles} -S ${vals} -v ${CFvarn}"
    428427        pyout=`python $pyHOME/nc_var.py -o pinterp -f ${cfiles} -S ${vals}           \
    429428          -v ${CFvarn}`
     
    449448        ferrmsg ${pyn} ${fname} "python!'file_oper_alongdims'!'tmean'!failed#"${Spyout}
    450449        mv file_oper_alongdims_mean.nc ${filen}
     450        varkeep=':'${CFvarn}'mean:timestats'
    451451      ;;
    452452      # x-axis mean values
     
    454454        vals='lon|-1,lon,mean,lon:lat:'${vdnz}':time'
    455455        dims='time@time,'${dnz}'@'${vdnz}',lat@lat,lon@lon'
    456         echo "python ${pyHOME}/nc_var.py -o file_oper_alongdims -S ${vals} -f ${cfiles} -v ${CFvarn}"
    457456
    458457        pyout=`python ${pyHOME}/nc_var.py -o file_oper_alongdims -S ${vals}         \
     
    462461        ferrmsg ${pyn} ${fname} "python!'file_oper_alongdims'!'tmean'!failed#"${Spyout}
    463462        mv file_oper_alongdims_mean.nc ${filen}
     463        varkeep=':'${CFvarn}'mean:lonstats'
    464464      ;;
    465465      # y-axis mean values
     
    467467        vals='lat|-1,lat,mean,lon:lat:'${vdnz}':time'
    468468        dims='time@time,'${dnz}'@'${vdnz}',lat@lat,lon@lon'
    469         echo "python ${pyHOME}/nc_var.py -o file_oper_alongdims -S ${vals} -f ${cfiles} -v ${CFvarn}"
    470469
    471470        pyout=`python ${pyHOME}/nc_var.py -o file_oper_alongdims -S ${vals}         \
     
    475474        ferrmsg ${pyn} ${fname} "python!'file_oper_alongdims'!'tmean'!failed#"${Spyout}
    476475        mv file_oper_alongdims_mean.nc ${filen}
     476        varkeep=':'${CFvarn}'mean:latstats'
    477477      ;;
    478478      # vertical aggregated values
     
    489489  fi
    490490
    491   cleaning_varsfile ${filen} ${CFvarn}':lon:lat:pres:time'
     491  cleaning_varsfile ${filen} ${CFvarn}':lon:lat:pres:time'${varkeep}
    492492#  exit
    493493# LLUIS
Note: See TracChangeset for help on using the changeset viewer.