Changeset 756 in lmdz_wrf
- Timestamp:
- May 4, 2016, 12:32:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diagnostics.py
r654 r756 12 12 import re 13 13 import nc_var_tools as ncvar 14 import generic_tools as gen 14 15 import datetime as dtime 15 16 … … 872 873 else: 873 874 depvars = diags[idiag].split('|')[1].split('@') 874 if ncvar.searchInlist(depvars, 'WRFgeop'): WRFgeop_compute = True875 if ncvar.searchInlist(depvars, 'WRFp'): WRFp_compute = True876 if ncvar.searchInlist(depvars, 'WRFt'): WRFt_compute = True877 if ncvar.searchInlist(depvars, 'WRFrh'): WRFrh_compute = True878 if ncvar.searchInlist(depvars, 'WRFght'): WRFght_compute = True879 if ncvar.searchInlist(depvars, 'WRFdens'): WRFdens_compute = True880 if ncvar.searchInlist(depvars, 'WRFpos'): WRFpos_compute = True881 if ncvar.searchInlist(depvars, 'WRFtime'): WRFtime_compute = True875 if gen.searchInlist(depvars, 'WRFgeop'): WRFgeop_compute = True 876 if gen.searchInlist(depvars, 'WRFp'): WRFp_compute = True 877 if gen.searchInlist(depvars, 'WRFt'): WRFt_compute = True 878 if gen.searchInlist(depvars, 'WRFrh'): WRFrh_compute = True 879 if gen.searchInlist(depvars, 'WRFght'): WRFght_compute = True 880 if gen.searchInlist(depvars, 'WRFdens'): WRFdens_compute = True 881 if gen.searchInlist(depvars, 'WRFpos'): WRFpos_compute = True 882 if gen.searchInlist(depvars, 'WRFtime'): WRFtime_compute = True 882 883 883 884 if WRFgeop_compute: … … 1013 1014 for depv in depvars: 1014 1015 if not ncobj.variables.has_key(depv) and not \ 1015 ncvar.searchInlist(NONcheckingvars, depv) and\1016 not ncvar.searchInlist(methods, depv):1016 gen.searchInlist(NONcheckingvars, depv) and \ 1017 not gen.searchInlist(methods, depv): 1017 1018 print errormsg 1018 1019 print ' ' + main + ": file '" + opts.ncfile + \ … … 1022 1023 depvars = diags[idiag].split('|')[1] 1023 1024 if not ncobj.variables.has_key(depvars) and not \ 1024 ncvar.searchInlist(NONcheckingvars, depvars) and\1025 not ncvar.searchInlist(methods, depvars):1026 print errormsg , 'Lluis',methods1025 gen.searchInlist(NONcheckingvars, depvars) and \ 1026 not gen.searchInlist(methods, depvars): 1027 print errormsg 1027 1028 print ' ' + main + ": file '" + opts.ncfile + \ 1028 1029 "' does not have variable '" + depvars + "' !!"
Note: See TracChangeset
for help on using the changeset viewer.