Changeset 2042 in lmdz_wrf


Ignore:
Timestamp:
Aug 7, 2018, 4:38:54 PM (7 years ago)
Author:
lfita
Message:

Fixing if

File:
1 edited

Legend:

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

    r2041 r2042  
    6262
    6363    # Sounding values
    64     if test ${snddiags} != 'None'; then
     64    if test ! ${snddiags} = 'None'; then
    6565      ofile=${ofold}/simout_sndvars_${sndid}_${expn}.nc
    6666      if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi
     
    9696
    9797    # cordex values
    98     if test ${cdxdiags} != 'None' || test ${cdxnondiags} != 'None'; then
     98    if test ! ${cdxdiags} = 'None' || test ! ${cdxnondiags} = 'None'; then
    9999      ofile=${ofold}/simcdx_sndvars_${sndid}_${expn}.nc
    100100      if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi
     
    138138
    139139    # out maps
    140     if test ${sfcdiags} != 'None' || test ${sfcnondiags} != 'None'; then
     140    if test ! ${sfcdiags} = 'None' || test ! ${sfcnondiags} = 'None'; then
    141141      ofile=${ofold}/simout_sfcvars_${sfcid}_${expn}.nc
    142142      if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi
     
    169169
    170170    # cdx maps
    171     if test ${cdxdiags} != 'None' || test ${cdxnondiags} != 'None'; then
     171    if test ! ${cdxdiags} = 'None' || test ! ${cdxnondiags} = 'None'; then
    172172      files=`ls -1 ${infolder}/${expn}/wrfout/wrfcdx_d${domn}*`
    173173      ofile=${ofold}/simcdx_sfcvars_${sfcid}_${expn}.nc
Note: See TracChangeset for help on using the changeset viewer.