Changeset 1412 in lmdz_wrf for trunk/tools
- Timestamp:
- Jan 17, 2017, 4:48:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diagnostics.py
r1408 r1412 981 981 982 982 # Attributes of the variable 983 Vvals = gen.variables_values('WRFg reop')983 Vvals = gen.variables_values('WRFgeop') 984 984 dictcompvars['WRFgeop'] = {'name': Vvals[0], 'standard_name': Vvals[1], \ 985 985 'long_name': Vvals[4].replace('|',' '), 'units': Vvals[5]} … … 1694 1694 diagout = WRFgeop/grav 1695 1695 1696 ncvar.insert_variable(ncobj, 'zhgt', diagout, dnames, dvnames, newnc) 1696 # Removing the nonChecking variable-dimensions from the initial list 1697 varsadd = [] 1698 diagoutvd = list(dvnames) 1699 for nonvd in NONchkvardims: 1700 if gen.searchInlist(dvnames,nonvd): diagoutvd.remove(nonvd) 1701 varsadd.append(nonvd) 1702 1703 ncvar.insert_variable(ncobj, 'zhgt', diagout, dnames, diagoutvd, newnc) 1697 1704 1698 1705 else:
Note: See TracChangeset
for help on using the changeset viewer.