Changeset 1014 in lmdz_wrf
- Timestamp:
- Aug 12, 2016, 6:10:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1013 r1014 9176 9176 tuple(finaldims)) 9177 9177 newNvar = newNvar + 1 9178 newvar[:] = finalvarvals[:] 9178 if len(finaldims) > 0: 9179 newvar[:] = finalvarvals[:] 9180 else: 9181 newvar[:] = finalvarvals 9179 9182 9180 9183 # new variable … … 16581 16584 newvar[:] = oldov[:] 16582 16585 for attrn in vinf.attributes: 16583 if vinf.FillValue is not None andattrn != '_FillValue':16586 if attrn != '_FillValue': 16584 16587 attrv = oldov.getncattr(attrn) 16585 16588 newattr = set_attribute(newvar,attrn,attrv)
Note: See TracChangeset
for help on using the changeset viewer.