Changeset 911 for trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
- Timestamp:
- Mar 24, 2013, 6:46:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r910 r911 1020 1020 self.name_t = c 1021 1021 try: 1022 # speed up: only get first value, last one , and step.1022 # speed up: only get first value, last one. 1023 1023 dafirst = self.f.variables[self.name_t][0] 1024 1024 dalast = self.f.variables[self.name_t][self.dim_t-1] 1025 step = self.f.variables[self.name_t][1] - dafirst 1026 self.field_t = np.arange(dafirst,dalast,step) 1025 self.field_t = np.linspace(dafirst,dalast,num=self.dim_t) 1027 1026 if dafirst == dalast: self.field_t = np.array([dafirst]) 1028 1027 except:
Note: See TracChangeset
for help on using the changeset viewer.