Skip to content

Commit 5dcd644

Browse files
committed
Merge branch 'main' into feature/magnetic_rose
2 parents 7ea7262 + 6440d26 commit 5dcd644

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

pygmt/tests/test_datasets_earth_deflection.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def test_earth_edefl_01d():
2323
assert data.gmt.registration is GridRegistration.GRIDLINE
2424
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2525
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
26-
npt.assert_allclose(data.min(), -142.64, atol=0.04)
27-
npt.assert_allclose(data.max(), 178.32, atol=0.04)
26+
npt.assert_allclose(data.min(), -143.4, atol=0.04)
27+
npt.assert_allclose(data.max(), 177.36, atol=0.04)
2828

2929

3030
def test_earth_edefl_01d_with_region():
@@ -37,7 +37,7 @@ def test_earth_edefl_01d_with_region():
3737
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3838
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
3939
npt.assert_allclose(data.min(), -28.92, atol=0.04)
40-
npt.assert_allclose(data.max(), 24.72, atol=0.04)
40+
npt.assert_allclose(data.max(), 24.8, atol=0.04)
4141

4242

4343
def test_earth_edefl_01m_default_registration():
@@ -52,8 +52,8 @@ def test_earth_edefl_01m_default_registration():
5252
npt.assert_allclose(data.coords["lat"].data.max(), 4.991666666)
5353
npt.assert_allclose(data.coords["lon"].data.min(), -9.99166666)
5454
npt.assert_allclose(data.coords["lon"].data.max(), -9.00833333)
55-
npt.assert_allclose(data.min(), -62.24, atol=0.04)
56-
npt.assert_allclose(data.max(), 15.52, atol=0.04)
55+
npt.assert_allclose(data.min(), -62.84, atol=0.04)
56+
npt.assert_allclose(data.max(), 15.16, atol=0.04)
5757

5858

5959
def test_earth_ndefl_01d():
@@ -85,8 +85,8 @@ def test_earth_ndefl_01d_with_region():
8585
assert data.gmt.registration is GridRegistration.GRIDLINE
8686
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
8787
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
88-
npt.assert_allclose(data.min(), -48.08, atol=0.04)
89-
npt.assert_allclose(data.max(), 18.92, atol=0.04)
88+
npt.assert_allclose(data.min(), -48.38, atol=0.04)
89+
npt.assert_allclose(data.max(), 18.84, atol=0.04)
9090

9191

9292
def test_earth_ndefl_01m_default_registration():
@@ -103,5 +103,5 @@ def test_earth_ndefl_01m_default_registration():
103103
npt.assert_allclose(data.coords["lat"].data.max(), 4.991666666)
104104
npt.assert_allclose(data.coords["lon"].data.min(), -9.99166666)
105105
npt.assert_allclose(data.coords["lon"].data.max(), -9.00833333)
106-
npt.assert_allclose(data.min(), -107.04, atol=0.04)
107-
npt.assert_allclose(data.max(), 20.28, atol=0.04)
106+
npt.assert_allclose(data.min(), -108.04, atol=0.04)
107+
npt.assert_allclose(data.max(), 20.16, atol=0.04)

pygmt/tests/test_datasets_earth_free_air_anomaly.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def test_earth_faa_01d():
2222
assert data.gmt.registration is GridRegistration.GRIDLINE
2323
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2424
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
25-
npt.assert_allclose(data.min(), -188.85, atol=0.025)
26-
npt.assert_allclose(data.max(), 161.25, atol=0.025)
25+
npt.assert_allclose(data.min(), -188.625, atol=0.025)
26+
npt.assert_allclose(data.max(), 161.1, atol=0.025)
2727

2828

2929
def test_earth_faa_01d_with_region():
@@ -35,8 +35,8 @@ def test_earth_faa_01d_with_region():
3535
assert data.gmt.registration is GridRegistration.GRIDLINE
3636
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3737
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
38-
npt.assert_allclose(data.min(), -36.125, atol=0.025)
39-
npt.assert_allclose(data.max(), 45.3, atol=0.025)
38+
npt.assert_allclose(data.min(), -36.075, atol=0.025)
39+
npt.assert_allclose(data.max(), 45.45, atol=0.025)
4040

4141

4242
def test_earth_faa_01m_default_registration():
@@ -51,8 +51,8 @@ def test_earth_faa_01m_default_registration():
5151
npt.assert_allclose(data.coords["lat"].data.max(), 4.991666666)
5252
npt.assert_allclose(data.coords["lon"].data.min(), -9.99166666)
5353
npt.assert_allclose(data.coords["lon"].data.max(), -9.00833333)
54-
npt.assert_allclose(data.min(), -49.225, atol=0.025)
55-
npt.assert_allclose(data.max(), 115.0, atol=0.025)
54+
npt.assert_allclose(data.min(), -49.85, atol=0.025)
55+
npt.assert_allclose(data.max(), 114.125, atol=0.025)
5656

5757

5858
def test_earth_faaerror_01d():
@@ -70,7 +70,7 @@ def test_earth_faaerror_01d():
7070
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
7171
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
7272
npt.assert_allclose(data.min(), 0.0, atol=0.04)
73-
npt.assert_allclose(data.max(), 49.16, atol=0.04)
73+
npt.assert_allclose(data.max(), 51.52, atol=0.04)
7474

7575

7676
def test_earth_faaerror_01d_with_region():
@@ -84,8 +84,8 @@ def test_earth_faaerror_01d_with_region():
8484
assert data.gmt.registration is GridRegistration.GRIDLINE
8585
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
8686
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
87-
npt.assert_allclose(data.min(), 0.72, atol=0.04)
88-
npt.assert_allclose(data.max(), 21.04, atol=0.04)
87+
npt.assert_allclose(data.min(), 0.60, atol=0.04)
88+
npt.assert_allclose(data.max(), 18.56, atol=0.04)
8989

9090

9191
def test_earth_faaerror_01m_default_registration():
@@ -103,4 +103,4 @@ def test_earth_faaerror_01m_default_registration():
103103
npt.assert_allclose(data.coords["lon"].data.min(), -9.99166666)
104104
npt.assert_allclose(data.coords["lon"].data.max(), -9.00833333)
105105
npt.assert_allclose(data.min(), 0.40, atol=0.04)
106-
npt.assert_allclose(data.max(), 13.36, atol=0.04)
106+
npt.assert_allclose(data.max(), 6.96, atol=0.04)

pygmt/tests/test_datasets_earth_vertical_gravity_gradient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_earth_vertical_gravity_gradient_01d():
2222
assert data.gmt.registration is GridRegistration.GRIDLINE
2323
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2424
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
25-
npt.assert_allclose(data.min(), -40.1875, atol=1 / 32)
25+
npt.assert_allclose(data.min(), -40.0625, atol=1 / 32)
2626
npt.assert_allclose(data.max(), 45.96875, atol=1 / 32)
2727
assert data[1, 1].isnull()
2828

@@ -56,5 +56,5 @@ def test_earth_vertical_gravity_gradient_01m_default_registration():
5656
npt.assert_allclose(data.coords["lat"].data.max(), 4.991666666)
5757
npt.assert_allclose(data.coords["lon"].data.min(), -9.99166666)
5858
npt.assert_allclose(data.coords["lon"].data.max(), -9.00833333)
59-
npt.assert_allclose(data.min(), -37.5625, atol=1 / 32)
60-
npt.assert_allclose(data.max(), 82.59375, atol=1 / 32)
59+
npt.assert_allclose(data.min(), -36.21875, atol=1 / 32)
60+
npt.assert_allclose(data.max(), 78.34375, atol=1 / 32)

0 commit comments

Comments
 (0)