Changeset 778 in lmdz_wrf
- Timestamp:
- May 27, 2016, 4:40:04 PM (9 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var.py
r762 r778 171 171 ncvar.get_attribute(opts.values, opts.ncfile, opts.varname) 172 172 elif oper == 'get_namelist_vars': 173 gen.get_namelist_vars(opts.values, opts.ncfile)173 ncvar.get_namelist_vars(opts.values, opts.ncfile) 174 174 elif oper == 'getvalues_lonlat': 175 175 ncvar.getvalues_lonlat(opts.values, opts.ncfile) -
trunk/tools/nc_var_tools.py
r777 r778 5852 5852 5853 5853 arguments = '[lonName],[latName],[lonSW],[latSW],[lonNE],[latNE]' 5854 check_arguments(fname,values,arguments,',')5854 gen.check_arguments(fname,values,arguments,',') 5855 5855 5856 5856 … … 6021 6021 6022 6022 # Adding lonn/latn to the output file 6023 if not searchInlist(varns,lonn): varns.append(lonn)6024 if not searchInlist(varns,latn): varns.append(latn)6023 if not gen.searchInlist(varns,lonn): varns.append(lonn) 6024 if not gen.searchInlist(varns,latn): varns.append(latn) 6025 6025 6026 6026 for vn in varns: … … 6031 6031 vn + "' !!" 6032 6032 quit(-1) 6033 if not searchInlist(objfile.variables, vn):6033 if not gen.searchInlist(objfile.variables, vn): 6034 6034 print errormsg 6035 6035 print ' ' + fname + ': variable name "' + vn + '" is not in file "' + \ … … 6043 6043 varslice = [] 6044 6044 for dimn in varinf.dimns: 6045 if not searchInlist(newncobj.dimensions, dimn):6045 if not gen.searchInlist(newncobj.dimensions, dimn): 6046 6046 newncobj.createDimension(dimn, len(objfile.dimensions[dimn])) 6047 6047 if dimn == dlonn:
Note: See TracChangeset
for help on using the changeset viewer.