Changeset 2062 in lmdz_wrf for trunk


Ignore:
Timestamp:
Aug 9, 2018, 10:12:00 PM (6 years ago)
Author:
lfita
Message:

Adding joining of 1D sounding variables

File:
1 edited

Legend:

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

    r2043 r2062  
    14481448    timefS=`date +%Y%m%d%H%M%S -d"${Dref} ${timev} ${Tu}"`
    14491449
    1450     # for now...
    1451     sndstn=${stid}
     1450    sndstn=`python $pyHOME/nc_var.py -o grattr -f ${sndorigfn} -S Station_name |     \
     1451      tr ' ' '!'`
    14521452
    14531453    fivals=${it}'#'${stid}'#'${sndstn}'#'${timeS}'#'${ofigdir}'#'${timefS}'#'
     
    15051505  sndlat=`ncdump -h ${sndorigfn} | grep Station_latitude | awk '{print $3}'`
    15061506  sndts=`echo ${sndtimes} | tr ',' ' '`
    1507 
    1508   # for now...
    1509   sndstn=${stid}
     1507  sndstn=`python $pyHOME/nc_var.py -o grattr -f ${sndorigfn} -S Station_name |       \
     1508    tr ' ' '!'`
    15101509
    15111510  # Time characteristics
     
    16861685# End of soundings stations
    16871686done
     1687
     1688# Joining sounding 1D variables
     1689obssnd1Dfile=${odir}'/all_sounding_1D.nc'
     1690if test ! -f ${obssnd1Dfile}; then
     1691  python ${pyHOME}/nc_var.py -o join_sounding_obsfiles -S ${snddir}':UWyoming_snd'   \
     1692    -v all
     1693  if test $? -ne 0; then
     1694    echo ${errmsg}
     1695    echo "  python failed!!"
     1696    echo python ${pyHOME}/nc_var.py -o join_sounding_obsfiles                        \
     1697      -S ${snddir}':UWyoming_snd' -v all
     1698  fi
     1699  echo " * Joining all 1D variables from all sounding station files : " >> ${ofileins}
     1700  echo python ${pyHOME}/nc_var.py -o join_sounding_obsfiles                          \
     1701      -S ${snddir}':UWyoming_snd' -v all >> ${ofileins}   
     1702  echo " " >> ${ofileins}   
     1703  mv joined_soundingstations.nc ${obssnd1Dfile}
     1704fi
     1705
    16881706exit
    16891707
     
    17051723  echo " * Joining all surface station files : " >> ${ofileins}
    17061724  echo python ${pyHOME}/nc_var.py -o join_singlestation_obsfiles -S                  \
    1707     ${sfcdir}':OBSnetcdf' -v all
     1725    ${sfcdir}':OBSnetcdf' -v all >> ${ofileins}   
    17081726  echo " " >> ${ofileins}   
    17091727  mv joined_singlestations.nc ${obssfcfile}
Note: See TracChangeset for help on using the changeset viewer.