Changeset 2056 in lmdz_wrf
- Timestamp:
- Aug 7, 2018, 10:21:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/get_data_snd-sfc_validation.bash
r2042 r2056 74 74 # Concatenating files 75 75 values=${ofold}',Time,time' 76 HMT='simout_snddiags_,'${sndid} ,'nc'76 HMT='simout_snddiags_,'${sndid}'_'${expn},'nc' 77 77 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 78 78 -f ${HMT} -v all … … 108 108 # Concatenating files 109 109 values=${ofold}',Time,time' 110 HMT='simcdx_snddiags_,'${sndid},'nc' 111 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 112 -f ${HMT} -v all 113 if test $? -ne 0; then 114 echo ${errmsg} 115 echo " python failed!!" 116 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 117 -S ${values} -f ${HMT} -v all 118 exit 119 fi 120 echo " * Concatenating cdx sounding data at point: "${sndlon}", "${sndlat} >>\ 121 ${insoutf} 122 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 123 -S "'"${values}"'" -f ${HMT} -v all >> ${insoutf} 124 echo " " >> ${insoutf} 125 mv netcdf_fold_concatenated_HMT.nc ${ofile} 110 HMT='simcdx_snddiags_,'${sndid}'_'${expn},'nc' 111 Nfiles=`ls -1 ${ofold}/simcdx_snddiags_*${sndid}_${expn}*.nc | wc -l` 112 if test ${Nfiles} -gt 0; then 113 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 114 -f ${HMT} -v all 115 if test $? -ne 0; then 116 echo ${errmsg} 117 echo " python failed!!" 118 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 119 -S ${values} -f ${HMT} -v all 120 exit 121 fi 122 echo " * Concatenating cdx sounding data at point: "${sndlon}", "${sndlat} >>\ 123 ${insoutf} 124 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 125 -S "'"${values}"'" -f ${HMT} -v all >> ${insoutf} 126 echo " " >> ${insoutf} 127 mv netcdf_fold_concatenated_HMT.nc ${ofile} 128 fi 126 129 fi 127 130 fi … … 137 140 files=`ls -1 ${infolder}/${expn}/wrfout/wrfout_d${domn}*` 138 141 139 # out maps142 # out sfc pt 140 143 if test ! ${sfcdiags} = 'None' || test ! ${sfcnondiags} = 'None'; then 141 144 ofile=${ofold}/simout_sfcvars_${sfcid}_${expn}.nc … … 148 151 done 149 152 150 # Concatenating files 151 values=${ofold}',Time,time' 152 HMT='simout_sfcdiags_,'${sfcid},'nc' 153 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 154 -f ${HMT} -v all 155 if test $? -ne 0; then 156 echo ${errmsg} 157 echo " python failed!!" 158 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 159 -S ${values} -f ${HMT} -v all 160 exit 161 fi 162 echo " * Concatenating surface data at point: "${sfclon}", "${sfclat} >> ${insoutf} 163 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 164 -S "'"${values}"'" -f ${HMT} -v all >> ${insoutf} 165 echo " " >> ${insoutf} 166 mv netcdf_fold_concatenated_HMT.nc ${ofile} 153 # Concatenating files 154 values=${ofold}',Time,time' 155 HMT='simout_sfcdiags_,'${sfcid}'_'${expn},'nc' 156 Nfiles=`ls -1 ${ofold}/simout_sfcdiags_*${sndid}_${expn}*.nc | wc -l` 157 if test ${Nfiles} -gt 0; then 158 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 159 -f ${HMT} -v all 160 if test $? -ne 0; then 161 echo ${errmsg} 162 echo " python failed!!" 163 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 164 -S ${values} -f ${HMT} -v all 165 exit 166 fi 167 echo " * Concatenating surface data at point: "${sfclon}", "${sfclat} >> ${insoutf} 168 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 169 -S "'"${values}"'" -f ${HMT} -v all >> ${insoutf} 170 echo " " >> ${insoutf} 171 mv netcdf_fold_concatenated_HMT.nc ${ofile} 172 fi 167 173 fi 168 174 fi 169 175 170 # cdx maps176 # cdx sfc pt 171 177 if test ! ${cdxdiags} = 'None' || test ! ${cdxnondiags} = 'None'; then 172 178 files=`ls -1 ${infolder}/${expn}/wrfout/wrfcdx_d${domn}*` … … 182 188 # Concatenating files 183 189 values=${ofold}',Time,time' 184 HMT='simcdx_sfcdiags_,'${sfcid},'nc' 185 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 186 -f ${HMT} -v all 187 if test $? -ne 0; then 188 echo ${errmsg} 189 echo " python failed!!" 190 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 191 -S ${values} -f ${HMT} -v all 192 exit 193 fi 194 echo " * Concatenating cdx surface data at point: "${sfclon}", "${sfclat} >> ${insoutf} 195 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 196 -S "'"${values}"'" -f ${HMT} -v all >> ${insoutf} 197 echo " " >> ${insoutf} 198 mv netcdf_fold_concatenated_HMT.nc ${ofile} 190 HMT='simcdx_sfcdiags_,'${sfcid}'_'${expn},'nc' 191 Nfiles=`ls -1 ${ofold}/simcdx_sfcdiags_*${sndid}_${expn}*.nc | wc -l` 192 if test ${Nfiles} -gt 0; then 193 python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT -S ${values} \ 194 -f ${HMT} -v all 195 if test $? -ne 0; then 196 echo ${errmsg} 197 echo " python failed!!" 198 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 199 -S ${values} -f ${HMT} -v all 200 exit 201 fi 202 echo " * Concatenating cdx surface data at point: "${sfclon}", "${sfclat} >> ${insoutf} 203 echo python ${pyHOME}/nc_var.py -o netcdf_fold_concatenation_HMT \ 204 -S "'"${values}"'" -f ${HMT} -v all >> ${insoutf} 205 echo " " >> ${insoutf} 206 mv netcdf_fold_concatenated_HMT.nc ${ofile} 207 fi 199 208 fi 200 209 #exit
Note: See TracChangeset
for help on using the changeset viewer.