Changeset 2053 in lmdz_wrf for trunk


Ignore:
Timestamp:
Aug 7, 2018, 7:40:45 PM (6 years ago)
Author:
lfita
Message:

Getting the right if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/get_WRFsounding-surface_data.bash

    r2051 r2053  
    863863
    864864  # cdx snd
    865   if test ! ${sndid} = 'None' && test ! ${wrfcdxdiags} = 'None' ||                   \
    866    test ! ${wrfcdxnodiags} = 'None'; then
    867     stid=${sndid}
    868     simsfcptf=${odir}'/simcdx_vars_sfcpt_'${stid}'_'${expl}'_'${fdate}'.nc'
    869     simsfcdiagsf=${odir}'/simcdx_sfcdiags_'${stid}'_'${expl}'_'${fdate}'.nc'
     865  if test ! ${sndid} = 'None'; then
     866    if test ! ${wrfcdxdiags} = 'None' || test ! ${wrfcdxnodiags} = 'None'; then
     867      stid=${sndid}
     868      simsfcptf=${odir}'/simcdx_vars_sfcpt_'${stid}'_'${expl}'_'${fdate}'.nc'
     869      simsfcdiagsf=${odir}'/simcdx_sfcdiags_'${stid}'_'${expl}'_'${fdate}'.nc'
    870870 
    871     fvals=${sndlon}'#'${sndlat}'#'${infilen}'#LON#LAT#'${wrfcdxdiags}'#'
    872     fvals=${fvals}${wrfcdxnodiags}
    873     get_WRFCDXsurface_data ${fvals}
     871      fvals=${sndlon}'#'${sndlat}'#'${infilen}'#LON#LAT#'${wrfcdxdiags}'#'
     872      fvals=${fvals}${wrfcdxnodiags}
     873      get_WRFCDXsurface_data ${fvals}
     874    fi
    874875  fi
    875876
    876877  # cdx Surface
    877   if test ! ${sfcid} = 'None' && test ! ${wrfcdxdiags} = 'None' ||                   \
    878    test ! ${wrfcdxnodiags} = 'None'; then
    879     stid=${sfcid}
    880     simsfcptf=${odir}'/simcdx_vars_sfcpt_'${stid}'_'${expl}'_'${fdate}'.nc'
    881     simsfcdiagsf=${odir}'/simcdx_sfcdiags_'${stid}'_'${expl}'_'${fdate}'.nc'
     878  if test ! ${sfcid} = 'None'; then
     879   if test ! ${wrfcdxdiags} = 'None' || test ! ${wrfcdxnodiags} = 'None'; then
     880      stid=${sfcid}
     881      simsfcptf=${odir}'/simcdx_vars_sfcpt_'${stid}'_'${expl}'_'${fdate}'.nc'
     882      simsfcdiagsf=${odir}'/simcdx_sfcdiags_'${stid}'_'${expl}'_'${fdate}'.nc'
    882883 
    883     fvals=${sfclon}'#'${sfclat}'#'${infilen}'#LON#LAT#'${wrfcdxdiags}'#'
    884     fvals=${fvals}${wrfcdxnodiags}
    885     get_WRFCDXsurface_data ${fvals}
     884      fvals=${sfclon}'#'${sfclat}'#'${infilen}'#LON#LAT#'${wrfcdxdiags}'#'
     885      fvals=${fvals}${wrfcdxnodiags}
     886      get_WRFCDXsurface_data ${fvals}
     887    fi
    886888  fi
    887889
Note: See TracChangeset for help on using the changeset viewer.