Changeset 2010 in lmdz_wrf
- Timestamp:
- Aug 2, 2018, 3:12:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/get_data_snd-sfc_validation.bash
r2005 r2010 52 52 sndlat=`echo ${sndvn} | tr ',' ' ' | awk '{print $3}'` 53 53 54 for filen in ${files}; do55 $pyHOME/get_WRFsounding-surface_data.bash ${scratch} ${ofold} ${expn} ${sndvn} \56 None ${filen} ${snddiags} ${sfcdiags} ${sfcnondiags}57 # end of files58 done59 60 # Concatenating files61 54 ofile=${ofold}/simout_sndvars_${sndid}_${expn}.nc 62 55 if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi 63 56 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 64 64 values=${ofold}',Time,time' 65 65 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} \ 67 67 -f ${HMT} -v all 68 68 if test $? -ne 0; then 69 69 echo ${errmsg} 70 70 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}\ 72 72 -f ${HMT} -v all 73 73 exit 74 74 fi 75 echo " * Concatenating sounding data at point: "${sndlon}", "${sndlat} >> ${insoutf} 75 echo " * Concatenating sounding data at point: "${sndlon}", "${sndlat} >> \ 76 ${insoutf} 76 77 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S "'"${values}"'" \ 77 78 -f ${HMT} -v all >> ${insoutf} … … 91 92 sfclat=`echo ${sfcvn} | tr ',' ' ' | awk '{print $3}'` 92 93 93 for filen in ${files}; do94 $pyHOME/get_WRFsounding-surface_data.bash ${scratch} ${ofold} ${expn} None \95 ${sfcvn} ${filen} ${snddiags} ${sfcdiags} ${sfcnondiags}96 # end of files97 done98 99 # Concatenating files100 94 ofile=${ofold}/simout_sfcvars_${sfcid}_${expn}.nc 101 95 if test ${scratch} = 'true'; then rm ${ofile} >& /dev/null; fi 102 96 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 103 104 values=${ofold}',Time,time' 104 105 HMT='simout_sfcdiags_,'${sfcid},'nc'
Note: See TracChangeset
for help on using the changeset viewer.