Changeset 2001 in lmdz_wrf
- Timestamp:
- Aug 1, 2018, 5:06:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/get_WRFsounding-surface_data.bash
r2000 r2001 18 18 odir=$2 19 19 expl=$3 20 sndid=`echo $4 | tr ',' ' ' | awk '{print $1}'` 21 sndlon=`echo $4 | tr ',' ' ' | awk '{print $2}'` 22 sndlat=`echo $4 | tr ',' ' ' | awk '{print $3}'` 23 24 sfcid=`echo $5 | tr ',' ' ' | awk '{print $1}'` 25 sfclon=`echo $5 | tr ',' ' ' | awk '{print $2}'` 26 sfclat=`echo $5 | tr ',' ' ' | awk '{print $3}'` 20 if test ! $4 = 'None'; them 21 sndid=`echo $4 | tr ',' ' ' | awk '{print $1}'` 22 sndlon=`echo $4 | tr ',' ' ' | awk '{print $2}'` 23 sndlat=`echo $4 | tr ',' ' ' | awk '{print $3}'` 24 else 25 sndid='None' 26 fi 27 28 if test ! $5 = 'None'; them 29 sfcid=`echo $5 | tr ',' ' ' | awk '{print $1}'` 30 sfclon=`echo $5 | tr ',' ' ' | awk '{print $2}'` 31 sfclat=`echo $5 | tr ',' ' ' | awk '{print $3}'` 32 else 33 sfcid='None' 34 fi 27 35 28 36 infilen=$6 … … 296 304 fi 297 305 } 298 rootsh=`pwd` 299 300 ofileins='allins_functions.inf' 301 302 if ${fscratch}; then 303 echo "All instructions _______ " > ${ofileins} 304 echo "******* ****** ***** **** *** ** *" >> ${ofileins} 305 echo " " >> ${ofileins} 306 ####### ####### 307 ## MAIN 308 ####### 309 310 rootsh=`pwd` 311 312 ofileins=${rootsh}'/allins_functions.inf' 313 314 if ${fscratch}; then 315 echo "All instructions _______ " > ${ofileins} 316 echo "******* ****** ***** **** *** ** *" >> ${ofileins} 317 echo " " >> ${ofileins} 318 fi 319 320 fdate=`echo ${infilen} | tr '_' ' ' | awk '{print $3"_"$4}'` 321 322 # Sounding 323 if test ! ${sndid} = 'None'; then 324 stid=${sndid} 325 simsndptf=${odir}'/simout_vars_sndpt_'${stid}'_'${expl}'_'${fdate}'.nc' 326 simsnddiagsf=${odir}'/simout_snddiags_'${stid}'_'${expl}'_'${fdate}'.nc' 327 328 fvals=${sndlon}'#'${sndlat}'#'${infilen}'#XLONG#XLAT#'${wrfsnddiags} 329 get_WRFsounding_data ${fvals} 330 fi 331 332 # Surface 333 if test ! ${sfcid} = 'None'; then 334 stid=${sfcid} 335 simsfcptf=${odir}'/simout_vars_sfcpt_'${stid}'_'${expl}'_'${fdate}'.nc' 336 simsfcdiagsf=${odir}'/simout_sfcdiags_'${stid}'_'${expl}'_'${fdate}'.nc' 337 338 fvals=${sfclon}'#'${sfclat}'#'${infilen}'#XLONG#XLAT#'${wrfsfcdiags}'#'${wrfsfcnodiags} 339 get_WRFsurface_data ${fvals} 340 fi 341 306 342 fi 307 308 fdate=`echo ${infilen} | tr '_' ' ' | awk '{print $3"_"$4}'`309 310 # Sounding311 stid=${sndid}312 simsndptf=${odir}'/simout_vars_sndpt_'${stid}'_'${expl}'_'${fdate}'.nc'313 simsnddiagsf=${odir}'/simout_snddiags_'${stid}'_'${expl}'_'${fdate}'.nc'314 315 fvals=${sndlon}'#'${sndlat}'#'${infilen}'#XLONG#XLAT#'${wrfsnddiags}316 get_WRFsounding_data ${fvals}317 318 # Surface319 stid=${sfcid}320 simsfcptf=${odir}'/simout_vars_sfcpt_'${stid}'_'${expl}'_'${fdate}'.nc'321 simsfcdiagsf=${odir}'/simout_sfcdiags_'${stid}'_'${expl}'_'${fdate}'.nc'322 323 fvals=${sfclon}'#'${sfclat}'#'${infilen}'#XLONG#XLAT#'${wrfsfcdiags}'#'${wrfsfcnodiags}324 get_WRFsurface_data ${fvals}325 fi
Note: See TracChangeset
for help on using the changeset viewer.