Changeset 1984 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jul 30, 2018, 4:31:23 PM (7 years ago)
Author:
lfita
Message:

Improving and generalizing the scripts and its configuration

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/obs-sim_Comparison.bash

    r1983 r1984  
    77
    88# Name of the file with the configuration
    9 configfname='/home/lluis/estudios/ChemGBsAs/tests/199501/obs_simComparison.conf'
     9if test $1 = '-h'; then
     10  echo "************************************************"
     11  echo "***            Script to compare             ***"
     12  echo "*** sounding and single-station observations ***"
     13  echo "***         with multiple simulations        ***"
     14  echo "************************************************"
     15  echo "obs-sim_Comparison [ConfFile](configuration file)"
     16else
     17  rootsh=`pwd`
     18
     19  configfname=$1
    1020
    1121####### ###### ##### #### ### ## #
     
    4050
    4151uploadvars ${configfname}
    42 # END upload -- end UPLOAD -- END upload -- end UPLOAD
     52echo "END upload -- end UPLOAD -- END upload -- end UPLOAD"
    4353
    4454# files from scratch
     
    481491done
    482492
    483 
     493if test ${sfcvars} != 'None'; then
    484494# surface diags
    485495diagns=`echo ${wrfsfcdiags} | tr ':' ' '`
     
    506516  fi
    507517done
     518fi
    508519
    509520exps=`echo ${sims} | tr ':' ' '`
     
    520531  if ${fscratch}; then rm ${simjoinselvars}; fi
    521532  if test ! -f ${simjoinselvars}; then
    522     values=${simdir}',Time,WRFtime'
    523     HMT='wrfout,'${timeS4},'00'
     533    values=${simdir}'/'${expf}','${simtimedimn}','${simtimevarn}
     534    HMT=${simHMT}
    524535    python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values}         \
    525536     -f ${HMT} -v ${simvars}
     
    552563  fi
    553564
     565  if test ${sfcvars} != 'None'; then
    554566  # Computing surface diagnostics
    555567  simsfcdiagf=${odir}'/simout_sfcdiags_'${expl}'.nc'
     
    600612      fi
    601613    done
     614  fi
    602615  fi
    603616
     
    884897fi
    885898
    886 sfcs=`echo ${sfcvars} | tr ':' ' '`
    887 
    888899# getting min,max values
     900if test ${sfcvars} != 'None'; then
     901fcs=`echo ${sfcvars} | tr ':' ' '`
     902
    889903iv=1
    890904for sfcpv in ${sfcs}; do
     
    10921106# end of simulations
    10931107done
     1108fi
     1109
     1110fi
  • trunk/tools/obs_simComparison.conf

    r1983 r1984  
    5757sims = ./,control,control,#FFAAFF
    5858
     59# Header, Middle, and, tail of the name of the simulation files [H],[M],[T]
     60simHMT = wrfout,d01,00
     61
     62# time information from file
     63simtimedimn = time
     64simtimevarn = WRFtime
     65
    5966# Name of the variables to get from the simulations ',' separated list of variables names
    6067simvars = XLONG,XLAT,T,P,PB,PH,PHB,QVAPOR,U,V,MU,MUB,SINALPHA,COSALPHA,T2,U10,V10,PSFC,Q2
Note: See TracChangeset for help on using the changeset viewer.