コード例 #1
0
ファイル: tests.py プロジェクト: jjhelmus/atmos
 def test_area_poly_sphere_different_radius(self):
     area_calc = util.area_poly_sphere(self.lat1, self.lon1, 2.)
     assert abs(area_calc - 4*self.area1) < 4*self.tol1
コード例 #2
0
ファイル: tests.py プロジェクト: jjhelmus/atmos
 def test_area_poly_sphere(self):
     area_calc = util.area_poly_sphere(self.lat1, self.lon1, 1.)
     assert abs(area_calc - self.area1) < self.tol1
コード例 #3
0
ファイル: tests.py プロジェクト: jjhelmus/atmos
 def test_area_poly_sphere_insufficient_vertices(self):
     util.area_poly_sphere(self.lat1[:2], self.lon1[:2], 1.)
コード例 #4
0
ファイル: tests.py プロジェクト: jjhelmus/atmos
 def test_area_poly_sphere_different_radius(self):
     area_calc = util.area_poly_sphere(self.lat1, self.lon1, 2.)
     assert abs(area_calc - 4 * self.area1) < 4 * self.tol1
コード例 #5
0
ファイル: tests.py プロジェクト: jjhelmus/atmos
 def test_area_poly_sphere(self):
     area_calc = util.area_poly_sphere(self.lat1, self.lon1, 1.)
     assert abs(area_calc - self.area1) < self.tol1
コード例 #6
0
ファイル: tests.py プロジェクト: jjhelmus/atmos
 def test_area_poly_sphere_insufficient_vertices(self):
     util.area_poly_sphere(self.lat1[:2], self.lon1[:2], 1.)