Changeset 977 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 30, 2016, 7:46:53 PM (8 years ago)
Author:
lfita
Message:

Adding `diffsepcificvarplot' for specific values in diff plots

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/model_graphics.bash

    r975 r977  
    12331233#   odir= working directory
    12341234#   headf= head of the file
     1235#   additiona= additional value when necessary
     1236#     'diff': diff plots (to use `diffspecificvarplot' instead)
    12351237  fname='draw_plot'
     1238
     1239  set -x
    12361240
    12371241  plot=$1
     
    12391243  headf=$3
    12401244  scratch=$4
     1245  additional=$5
     1246
     1247  if test $# -eq 5; then
     1248    if test ${additional} = 'diff'; then
     1249      specvarplot=${diffspecificvarplot}
     1250    fi
     1251    specvarplot=${specificvarplot}
     1252  fi
    12411253
    12421254  cd ${odir}
     
    13291341      # Getting plot variable configuration (using variable name inside the file?)
    13301342      specific=false
    1331 #      if $(isInlist ${specificvarplot} ${varn}); then
    1332       if test $(index_string ${specificvarplot} ${vn}) -ne -1; then
    1333         vals=`list_filter ${specificvarplot} ${vn}`
    1334         kvals=`list_filter ${specificvarplot} ${kind}`
     1343#      if $(isInlist ${specvarplot} ${varn}); then
     1344      if test $(index_string ${specvarplot} ${vn}) -ne -1; then
     1345        vals=`list_filter ${specvarplot} ${vn}`
     1346        kvals=`list_filter ${specvarplot} ${kind}`
    13351347        Lkvals=`expr length ${kvals}'0'`
    13361348        if test ${Lkvals} -gt 1; then
     
    14111423        graphvals=${graphvals}':lon|-1,lat|-1:lon|-1,lat|-1:lon:lat:'${cbar}':fixc,'
    14121424        graphvals=${graphvals}${cline}':'${cfmt}':'${srange}':'${crange}',9:'
    1413         graphvals=${graphvals}${figtit}':'${kindfig}':False:'${mapval}
     1425        graphvals=${graphvals}${figtit}':'${kindfig}':None:'${mapval}
    14141426 
    14151427        pyout=`python ${pyHOME}/drawing.py -f ${figfs} -o draw_2D_shad_cont          \
     
    19141926    for pt in ${pts}; do
    19151927      echo "        "${pt}
    1916       draw_plot ${pt} ${owdir} ${fileh} ${figscratch}
     1928      draw_plot ${pt} ${owdir} ${fileh} ${figscratch} 'diff'
    19171929      idp=`expr ${idp} + 1`
    19181930    done
  • trunk/tools/model_graphics_template.dat

    r975 r977  
    128128pltshadcont2Dzsec=ua|pinterp@last@xmean#va|pinterp@last@xmean:hur|pinterp@last@xmean#ta|pinterp@last@xmean:ws|pinterp@turb@xmean#hus|pinterp@turb@xmean
    129129
    130 pltdiffshadcont2Dsfc = tas|xmean#wss|xmean:tas|tmean#wss|tmean:tas|last#wss|last
     130pltdiffshadcont2Dsfc = tas|tmean#wss|tmean:tas|last#wss|last
    131131
    132132# Specific variable-statistisc graphic parameters (if no value is given, they will be retrieved from 'variables_values.dat')
     
    142142#        [colorcnt]: color for the countor lines
    143143specificvarplot = cll|last|shadcont2Dsfc|0.|1.|gist_gray|%g|black:clh|last|shadcont2Dsfc|0.|1.|gist_gray|%g|black:husturbmean|pinterp@turb@xmean|shadcont2Dzsec|0.|1.e-6|Blues|%g|black
     144diffspecificvarplot = tas|tmean|shadcont2Dsfc|-20.|20.seismic|%g|black:wss|tmean|shadcont2Dsfc|-30.|30.|seismic|%g|black:tas|last|shadcont2Dsfc|-20.|20.seismic|%g|black:wss|last|shadcont2Dsfc|-30.|30.|seismic|%g|black
    144145
    145146# Figures output kind
Note: See TracChangeset for help on using the changeset viewer.