Changeset 464 in lmdz_wrf
- Timestamp:
- Jun 9, 2015, 5:08:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/validation_sim.py
r463 r464 1186 1186 valdimsim = {} 1187 1187 for dn in dims: 1188 if dims[dn][0] != 'None' and not osim.dimensions.has_key(dims[dn][0]): 1189 print errormsg 1190 print ' ' + main + ": simulation file '" + opts.fsim + "' does not have " + \ 1191 "dimension '" + dims[dn][0] + "' !!" 1192 print ' it has: ',osim.dimensions 1193 quit(-1) 1194 1195 if vardims[dn][0] != 'None' and not osim.variables.has_key(vardims[dn][0]) and \ 1196 not searchInlist(varNOcheck,vardims[dn][0]): 1197 print errormsg 1198 print ' ' + main + ": simulation file '" + opts.fsim + "' does not have " + \ 1199 "varibale dimension '" + vardims[dn][0] + "' !!" 1200 print ' it has variables:',osim.variables 1201 quit(-1) 1202 if searchInlist(varNOcheck,vardims[dn][0]): 1203 valdimsim[dn] = compute_varNOcheck(osim, vardims[dn][0]) 1204 else and vardims[dn][0] != 'None': 1205 valdimsim[dn] = osim.variables[vardims[dn][0]][:] 1188 if dims[dn][0] != 'None': 1189 if not osim.dimensions.has_key(dims[dn][0]): 1190 print errormsg 1191 print ' ' + main + ": simulation file '" + opts.fsim + \ 1192 "' does not have dimension '" + dims[dn][0] + "' !!" 1193 print ' it has: ',osim.dimensions 1194 quit(-1) 1195 1196 if not osim.variables.has_key(vardims[dn][0]) and \ 1197 not searchInlist(varNOcheck,vardims[dn][0]): 1198 print errormsg 1199 print ' ' + main + ": simulation file '" + opts.fsim + \ 1200 "' does not have varibale dimension '" + vardims[dn][0] + "' !!" 1201 print ' it has variables:',osim.variables 1202 quit(-1) 1203 if searchInlist(varNOcheck,vardims[dn][0]): 1204 valdimsim[dn] = compute_varNOcheck(osim, vardims[dn][0]) 1205 else: 1206 valdimsim[dn] = osim.variables[vardims[dn][0]][:] 1206 1207 1207 1208 # General characteristics
Note: See TracChangeset
for help on using the changeset viewer.