- Timestamp:
- Apr 28, 2017, 8:13:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1547 r1548 7391 7391 if dimv != 'WRFtime': 7392 7392 odimv = objnc.variables[dimv] 7393 print fname + ': Lluis dictslice:', dictslice 7394 print fname + ': Lluis odimv:', odimv.dimensions 7393 7395 varslice, Dddv[dimn] = SliceVarDict(odimv, dictslice) 7396 print fname + ': Lluis varslice:', varslice 7397 print fname + ': Lluis Dddv:', Dddv 7394 7398 Ddv[dimn] = odimv[tuple(varslice)] 7395 7399 Dtdv[dimn] = odimv.dtype … … 7443 7447 found = False 7444 7448 if not gen.searchInlist(Dddv.keys(), dimn): 7445 print errormsg7449 print warnmsg 7446 7450 print ' ' + fname + ": sliced variable has dimension '" + dimn+ \ 7447 7451 "' but there is no slicing-dimension information" 7448 print " add range for the dimension as '[dim]|[dimv]|[range]'" 7449 quit(-1) 7450 7452 print " add range for the dimension as '[dim]|[dimv]|[range]'" 7453 print ' trying now tacking all values of the dimension-variable' 7454 print " ", varn + "'s dimensions:", dimvarvals 7455 print ' provided slicing dimension-variables:', Dddv.keys() 7456 Dddv[dimn] = dimn 7457 #quit(-1) 7451 7458 else: 7452 7459 # Computing using results of previous computations
Note: See TracChangeset
for help on using the changeset viewer.