75 if np.isscalar(files):
76 self.
data = Dataset(files)
78 self.
data = MFDataset(files)
79 pz = self.
data.variables[ZSCALE][:, 0, 0]
80 px = self.
data.variables[XSCALE]
81 py = self.
data.variables[YSCALE]
82 pt = np.array([tinit + i * tstep
for i
in
83 range(self.
data.variables[TIME].shape[0])])
84 self.
boundsmax = [pt[-1], pz[-1], px[-1], py[-1]]
85 self.
boundsmin = [pt[0], pz[0], px[0], py[0]]
91 """ Get value of variable on points
94 points: a ndarray containing the point coordinates on the last
96 var: the name of the variable in the mesoNH file(s)
97 method: 'nearest' and 'linear' interpolation are currently supported
99 points = np.array(points)
101 caxes = tuple(range(p.ndim-1))
102 bounds = zip(p.min(axis=caxes), p.max(axis=caxes))