Changeset 211 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Dec 12, 2014, 6:45:19 PM (10 years ago)
Author:
lfita
Message:

Adding 'ofolder' automatic creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/lmdz_check.bash

    r210 r211  
    11#!/bin/bash
    22## e.g. # lmdz_check.bash -1:6:3:26 wrfout_d01_1979-12-01_00:00:00 /home/lluis/PY /home/lluis/etudes/WRF_LMDZ/WaquaL/LaTeX/NPv31_hgardfou/figs 0 None 0
     3## e.g. # lmdz_check.bash -1:9:9:4 iphysiq1_time_step150/wrfout_d01_check.nc /home/lfita/PY iphysiq1_time_step150/check 1 None 0
    34if test $1 = '-h'; then
    45  echo "**********************************"
     
    6970  xval=`echo ${point} | tr ':' ' ' | awk '{print $4}'`
    7071
     72  infileS=`echo ${infile} | tr '.' ' ' | awk '{print $1}'`
     73
    7174#######    #######
    7275## MAIN
    7376    #######
     77  mkdir -p ${ofold}
    7478
    7579  vtypes=`echo ${vartypes} | tr ':' ' '`
     
    239243      values=${values}'$%d^{%H}$|date!($[DD]^{[HH]}$)|x:True'
    240244
    241       python ${PYHOME}/drawing.py -o draw_2D_shad_time -f ${infile}_${filetail}.nc   \
     245      python ${PYHOME}/drawing.py -o draw_2D_shad_time -f ${infileS}_${filetail}.nc   \
    242246        -S ${values} -v ${var},time
    243247      if test $? -ne 0; then
     
    245249        echo "  "${main}": drawing.py fails!"
    246250        echo python ${PYHOME}/drawing.py -o draw_2D_shad_time \
    247           -f ${infile}_${filetail}.nc -S ${values} -v ${var},time
     251          -f ${infileS}_${filetail}.nc -S ${values} -v ${var},time
    248252        exit
    249253      else
     
    260264      values=${stdn}':time|($[DD]^{[HH]}$):exct,12,h:$%d^{%H}$:time|evolution|at'
    261265      values=${values}'|(x='${xval}',y='${yval}',z='${zval}'):1:pdf'
    262       python ${PYHOME}/drawing.py -o draw_timeSeries -f ${infile}_${filetail}.nc     \
     266      python ${PYHOME}/drawing.py -o draw_timeSeries -f ${infileS}_${filetail}.nc     \
    263267        -S ${values} -v ${var},time
    264268      if test $? -ne 0; then
     
    266270        echo "  "${main}": drawing.py fails!"
    267271        echo python ${PYHOME}/drawing.py -o draw_timeSeries \
    268           -f ${infile}_${filetail}.nc -S ${values} -v ${var},time
     272          -f ${infileS}_${filetail}.nc -S ${values} -v ${var},time
    269273        exit
    270274      else
     
    303307      values=${values}',z='${zval}'):pdf:None:'${mapv}':True'
    304308
    305       python ${PYHOME}/drawing.py -o draw_2D_shad -f ${infile}_${filetail}.nc        \
     309      python ${PYHOME}/drawing.py -o draw_2D_shad -f ${infileS}_${filetail}.nc        \
    306310        -S ${values} -v ${var}
    307311      if test $? -ne 0; then
     
    309313        echo "  "${main}": drawing.py fails!"
    310314        echo python ${PYHOME}/drawing.py -o draw_2D_shad \
    311           -f ${infile}_${filetail}.nc -S ${values} -v ${var}
     315          -f ${infileS}_${filetail}.nc -S ${values} -v ${var}
    312316        exit
    313317      else
Note: See TracChangeset for help on using the changeset viewer.