Ejemplo n.º 1
0
 def plot_sounding_axes(self):
     self.figure.clear()
     ax = self.figure.add_axes([0.05, 0.05, 0.90, 0.945])
     # ax = self.figure.add_axes([0.005,0.05,0.985,0.945])
     skewt.set_fontscalefactor(4)
     skewt.plot_sounding_axes(ax)
     self.canvas.draw()
Ejemplo n.º 2
0
 def plot_sounding_axes(self):
     self.figure.clear()
     ax = self.figure.add_axes([0.05, 0.05, 0.90, 0.945])
     # ax = self.figure.add_axes([0.005,0.05,0.985,0.945])
     ax.hold(True)
     skewt.set_fontscalefactor(4)
     skewt.plot_sounding_axes(ax)
     self.canvas.draw()
Ejemplo n.º 3
0
 def plot_sounding(self, z, th, p, qv, u, v):
     self.figure.clear()
     # ax = self.figure.add_axes([0.005,0.05,0.985,0.945])
     ax = self.figure.add_axes([0.05, 0.05, 0.90, 0.945])
     skewt.plot_sounding_axes(ax)
     skewt.plot_sounding(ax, z, th, p, qv, u, v)
     self.canvas.draw()
     # Send data to stats widget
     self.SStats.emit(z, th, p, qv, u, v)
Ejemplo n.º 4
0
 def plot_sounding(self, z, th, p, qv, u, v):
     self.figure.clear()
     # ax = self.figure.add_axes([0.005,0.05,0.985,0.945])
     ax = self.figure.add_axes([0.05, 0.05, 0.90, 0.945])
     ax.hold(True)
     skewt.plot_sounding_axes(ax)
     skewt.plot_sounding(ax, z, th, p, qv, u, v)
     self.canvas.draw()
     # Send data to stats widget
     self.SStats.emit(z, th, p, qv, u, v)
Ejemplo n.º 5
0
 def ncplot(self):
     '''Plots the sounding from the netCDF4 ouput of CM1'''
     file = nc.Dataset(self.filename)
     qv = file['qv'][0,:,0,0]
     z = file['z'][:]
     th = file['th'][0,:,0,0]
     p = file['prs'][0,:,0,0]
     u = file['u'][0,:,0,0]
     v = file['v'][0,:,0,0]
     fig1 = plt.figure(figsize = (15,10))
     ax1 = fig1.add_subplot(111)
     skewt.plot_sounding_axes(ax1)
     skewt.plot_sounding(ax1, z, th, p, qv, u, v)
     skewt.plot_legend(ax1)
     fig1.savefig(self.output_filename)