コード例 #1
0
ファイル: test_mss_plot_driver.py プロジェクト: Marilyth/MSS
 def test_repeated_locations(self):
     p1 = [45.00, 8., 25000]
     p2 = [50.00, 12., 25000]
     self.path = [p1, p1]
     img = self.plot(mpl_lsec_styles.LS_DefaultStyle(driver=self.lsec))
     assert img is not None
     self.path = [p1, p1, p2]
     img = self.plot(mpl_lsec_styles.LS_DefaultStyle(driver=self.lsec))
     assert img is not None
     self.path = [p1, p2, p2]
     img = self.plot(mpl_lsec_styles.LS_DefaultStyle(driver=self.lsec))
     assert img is not None
コード例 #2
0
 def test_LS_DefaultStyle_PL(self):
     img = self.plot(
         mpl_lsec_styles.LS_DefaultStyle(
             driver=self.lsec,
             variable="air_potential_temperature",
             filetype="pl"))
     assert img is not None
コード例 #3
0
 def test_LS_DefaultStyle(self):
     for variable in [
             "air_temperature", "specific_humidity",
             "cloud_area_fraction_in_atmosphere_layer",
             "specific_cloud_ice_water_content",
             "specific_cloud_liquid_water_content",
             "ertel_potential_vorticity"
     ]:
         img = self.plot(
             mpl_lsec_styles.LS_DefaultStyle(driver=self.lsec,
                                             variable=variable))
         assert img is not None