Changeset 1436 in lmdz_wrf
- Timestamp:
- Jan 20, 2017, 5:31:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1435 r1436 18097 18097 newvar = newonc.createVariable(oldv, nctype(vinf.dtype), vinf.dimns) 18098 18098 # Avoiding segmentation fault in Curie... 18099 for ix in range(newvar.shape[0]): 18100 newvar[ix,...] = oldov[ix,...] 18099 if len(newvar.shape) > 1: 18100 for ix in range(newvar.shape[0]): 18101 newvar[ix,...] = oldov[ix,...] 18102 else: 18103 newvar[:] = oldov[:] 18101 18104 for attrn in vinf.attributes: 18102 18105 if attrn != '_FillValue':
Note: See TracChangeset
for help on using the changeset viewer.