Changeset 2010 in lmdz_wrf


Ignore:
Timestamp:
Aug 2, 2018, 3:12:32 PM (7 years ago)
Author:
lfita
Message:

Addin not repeating steps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/get_data_snd-sfc_validation.bash

    r2005 r2010  
    5252    sndlat=`echo ${sndvn} | tr ',' ' ' | awk '{print $3}'`
    5353
    54     for filen in ${files}; do
    55       $pyHOME/get_WRFsounding-surface_data.bash ${scratch} ${ofold} ${expn} ${sndvn} \
    56         None ${filen} ${snddiags} ${sfcdiags} ${sfcnondiags}
    57     # end of files
    58     done
    59 
    60     # Concatenating files
    6154    ofile=${ofold}/simout_sndvars_${sndid}_${expn}.nc
    6255    if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi
    6356    if test ! -f ${ofile}; then
     57      for filen in ${files}; do
     58        $pyHOME/get_WRFsounding-surface_data.bash ${scratch} ${ofold} ${expn}        \
     59          ${sndvn} None ${filen} ${snddiags} ${sfcdiags} ${sfcnondiags}
     60      # end of files
     61      done
     62
     63    # Concatenating files
    6464      values=${ofold}',Time,time'
    6565      HMT='simout_snddiags_,'${sndid},'nc'
    66       python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values}         \
     66      python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values}       \
    6767       -f ${HMT} -v all
    6868      if test $? -ne 0; then
    6969        echo ${errmsg}
    7070        echo "  python failed!!"
    71         echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values}  \
     71        echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values}\
    7272        -f ${HMT} -v all
    7373        exit
    7474      fi
    75       echo " * Concatenating sounding data at point: "${sndlon}", "${sndlat} >> ${insoutf}
     75      echo " * Concatenating sounding data at point: "${sndlon}", "${sndlat} >> \
     76        ${insoutf}
    7677      echo python  ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S "'"${values}"'" \
    7778       -f ${HMT} -v all >> ${insoutf}
     
    9192    sfclat=`echo ${sfcvn} | tr ',' ' ' | awk '{print $3}'`
    9293
    93     for filen in ${files}; do
    94       $pyHOME/get_WRFsounding-surface_data.bash ${scratch} ${ofold} ${expn} None     \
    95         ${sfcvn} ${filen} ${snddiags} ${sfcdiags} ${sfcnondiags}
    96     # end of files
    97     done
    98 
    99     # Concatenating files
    10094    ofile=${ofold}/simout_sfcvars_${sfcid}_${expn}.nc
    10195    if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi
    10296    if test ! -f ${ofile}; then
     97      for filen in ${files}; do
     98        $pyHOME/get_WRFsounding-surface_data.bash ${scratch} ${ofold} ${expn} None   \
     99          ${sfcvn} ${filen} ${snddiags} ${sfcdiags} ${sfcnondiags}
     100      # end of files
     101      done
     102
     103    # Concatenating files
    103104      values=${ofold}',Time,time'
    104105      HMT='simout_sfcdiags_,'${sfcid},'nc'
Note: See TracChangeset for help on using the changeset viewer.