Exemple #1
0
 def test_plot_dews_locator_object(self, nodeid):
     locator = tephi.Locator(10)
     tephigram = Tephigram(isotherm_locator=locator,
                           dry_adiabat_locator=locator)
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Exemple #2
0
 def test_plot_dews_locator_adiabat_object(self, nodeid):
     tephigram = Tephigram(dry_adiabat_locator=tephi.Locator(10))
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Exemple #3
0
 def test_plot_dews_locator_isotherm_object(self, nodeid):
     tephigram = Tephigram(isotherm_locator=tephi.Locator(10))
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Exemple #4
0
 def test_plot_dews_locator_adiabat_object(self):
     tpg = Tephigram(dry_adiabat_locator=tephi.Locator(10))
     tpg.plot(self.dews)
     self.check_graphic()
Exemple #5
0
 def test_plot_dews_locator_isotherm_object(self):
     tpg = Tephigram(isotherm_locator=tephi.Locator(10))
     tpg.plot(self.dews)
     self.check_graphic()
    HeightTemp = list(zip(hPressure, Ctemperature))
    column_titles = [('pressure', 'temperature')]
    tephi.MIN_PRESSURE = 70
    tephi.MAX_PRESSURE = 1000
    tephi.ISOBAR_SPEC = [(50, 0.50), (100, 1.5), (200, None)]
    # tephi.ISOBAR_SPEC = [(25, 0.45), (50, 0.50), (100, 1.5), (200, None)]
    tephi.MIN_THETA = 0
    tephi.MAX_THETA = 700
    tephi.MIN_WET_ADIABAT = 0
    tephi.MAX_WET_ADIABAT = 200
    tephi.WET_ADIABAT_SPEC = [(5, None)]
    tephi.MIXING_RATIO_SPEC = [(1, 0.05), (2, 0.18), (4, 0.3), (8, 1.5)]
    #tephi.MIXING_RATIO_FIXED = [0.001, 0.01, 0.05, 0.1, 0.5, 1.0, 5.0, 10.0, 20.0, 50.0, 75.0,100.0,150.0]
    tpg = tephi.Tephigram(anchor=[(1100, 0), (70, 0)],
                          isotherm_locator=tephi.Locator(25),
                          dry_adiabat_locator=tephi.Locator(25))
    profile = tpg.plot(HeightTemp,
                       label='Temperature',
                       color='blue',
                       linewidth=2,
                       linestyle='-',
                       marker='')
    Wind = list(zip(windspeed, direction, hPressure))
    profile.barbs(Wind[::15],
                  length=8,
                  pivot='middle',
                  color='green',
                  linewidth=3,
                  gutter=0.15)
    # profile.barbs(Wind[], length=8, pivot='middle', color='red', linewidth=3, gutter=0.15)