Changeset 1979 in lmdz_wrf for trunk/tools
- Timestamp:
- Jul 25, 2018, 7:47:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1969 r1979 2264 2264 glob_attrs = ncf.ncattrs() 2265 2265 2266 attrPos = searchInlist(glob_attrs, values) 2267 2268 if not attrPos: 2266 if not gen.searchInlist(glob_attrs, values): 2269 2267 print errormsg 2270 print ' grattr: File "' + ncfile + '" does not have attribute "' + values + '" !!!!' 2271 print errormsg 2268 print ' ' + fname + ": File '" + ncfile + "' does not have attribute '" + \ 2269 values + "' !!" 2270 gattrsort = glob_attrs + [] 2271 gattrsort.sort() 2272 print ' available ones:', gattrsort 2272 2273 ncf.close() 2273 2274 quit(-1) 2275 2276 attrPos = gen.searchInlist(glob_attrs, values) 2274 2277 2275 2278 print ncf.getncattr(values) … … 24141 24144 fname = 'ifile' 24142 24145 24146 if ncfile == 'h': 24147 print fname + '_____________________________________________________________' 24148 print ifile.__doc__ 24149 quit() 24150 24143 24151 onc = NetCDFFile(ncfile,'r') 24144 24152
Note: See TracChangeset
for help on using the changeset viewer.