Skip to content

Commit

Permalink
Merge pull request #485 from sebastic/test_area_def_geocentric_resolu…
Browse files Browse the repository at this point in the history
…tion

Closes #484
  • Loading branch information
djhoese authored Dec 7, 2022
2 parents 790c847 + 0d97737 commit 35782d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyresample/test/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ def test_area_def_geocentric_resolution(self):
3712, 3712,
area_extent)
geo_res = area_def.geocentric_resolution()
np.testing.assert_allclose(10646.562531, geo_res)
np.testing.assert_allclose(10646.562531, geo_res, rtol=1e-05)

# non-square area non-space area
area_extent = (-4570248.477339745, -3561247.267842293, 0, 3570248.477339745)
Expand All @@ -1438,7 +1438,7 @@ def test_area_def_geocentric_resolution(self):
2000, 5000,
area_extent)
geo_res = area_def.geocentric_resolution()
np.testing.assert_allclose(2397.687307, geo_res)
np.testing.assert_allclose(2397.687307, geo_res, rtol=1e-05)

# lon/lat
proj_dict = {'a': 6378169.0, 'b': 6356583.8, 'proj': 'latlong'}
Expand All @@ -1447,7 +1447,7 @@ def test_area_def_geocentric_resolution(self):
3712, 3712,
[-130, 30, -120, 40])
geo_res = area_def.geocentric_resolution()
np.testing.assert_allclose(298.647232, geo_res)
np.testing.assert_allclose(298.647232, geo_res, rtol=1e-04)

def test_area_def_geocentric_resolution_latlong(self):
"""Test the AreaDefinition.geocentric_resolution method on a latlong projection."""
Expand Down

0 comments on commit 35782d0

Please sign in to comment.