Skip to content

Commit 89a51c0

Browse files
authored
Update min/max value of remote datasets for recent upstream changes (#2978)
1 parent 3526a13 commit 89a51c0

6 files changed

+43
-43
lines changed

pygmt/tests/test_datasets_earth_age.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def test_earth_age_01d():
1919
assert data.gmt.registration == 0
2020
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2121
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
22-
npt.assert_allclose(data.min(), 0.17, atol=0.01)
23-
npt.assert_allclose(data.max(), 338.02, atol=0.01)
22+
npt.assert_allclose(data.min(), 0.37, atol=0.01)
23+
npt.assert_allclose(data.max(), 336.52, atol=0.01)
2424

2525

2626
def test_earth_age_01d_with_region():
@@ -32,8 +32,8 @@ def test_earth_age_01d_with_region():
3232
assert data.gmt.registration == 0
3333
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3434
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
35-
npt.assert_allclose(data.min(), 11.29, atol=0.01)
36-
npt.assert_allclose(data.max(), 125.12, atol=0.01)
35+
npt.assert_allclose(data.min(), 11.13, atol=0.01)
36+
npt.assert_allclose(data.max(), 124.64, atol=0.01)
3737

3838

3939
def test_earth_age_01m_default_registration():

pygmt/tests/test_datasets_earth_free_air_anomaly.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def test_earth_faa_01d():
1919
assert data.gmt.registration == 0
2020
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2121
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
22-
npt.assert_allclose(data.min(), -275.85, atol=0.025)
23-
npt.assert_allclose(data.max(), 308.35, atol=0.025)
22+
npt.assert_allclose(data.min(), -188.85, atol=0.025)
23+
npt.assert_allclose(data.max(), 161.25, atol=0.025)
2424

2525

2626
def test_earth_faa_01d_with_region():
@@ -32,8 +32,8 @@ def test_earth_faa_01d_with_region():
3232
assert data.gmt.registration == 0
3333
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3434
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
35-
npt.assert_allclose(data.min(), -58.475, atol=0.025)
36-
npt.assert_allclose(data.max(), 69.975, atol=0.025)
35+
npt.assert_allclose(data.min(), -36.125, atol=0.025)
36+
npt.assert_allclose(data.max(), 45.3, atol=0.025)
3737

3838

3939
def test_earth_faa_01m_default_registration():

pygmt/tests/test_datasets_earth_geoid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def test_earth_geoid_01d():
1919
assert data.gmt.registration == 0
2020
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2121
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
22-
npt.assert_allclose(data.min(), -106.45, atol=0.01)
23-
npt.assert_allclose(data.max(), 83.62, atol=0.01)
22+
npt.assert_allclose(data.min(), -106.06, atol=0.01)
23+
npt.assert_allclose(data.max(), 81.35, atol=0.01)
2424

2525

2626
def test_earth_geoid_01d_with_region():
@@ -32,8 +32,8 @@ def test_earth_geoid_01d_with_region():
3232
assert data.gmt.registration == 0
3333
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3434
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
35-
npt.assert_allclose(data.min(), 4.87, atol=0.01)
36-
npt.assert_allclose(data.max(), 29.89, atol=0.01)
35+
npt.assert_allclose(data.min(), 5.57, atol=0.01)
36+
npt.assert_allclose(data.max(), 29.21, atol=0.01)
3737

3838

3939
def test_earth_geoid_01m_default_registration():

pygmt/tests/test_datasets_earth_magnetic_anomaly.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def test_earth_mag_01d():
2121
assert data.gmt.registration == 0
2222
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2323
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
24-
npt.assert_allclose(data.min(), -384.0, atol=0.2)
25-
npt.assert_allclose(data.max(), 1057.2, atol=0.2)
24+
npt.assert_allclose(data.min(), -336.2, atol=0.2)
25+
npt.assert_allclose(data.max(), 517.0, atol=0.2)
2626

2727

2828
def test_earth_mag_01d_with_region():
@@ -34,8 +34,8 @@ def test_earth_mag_01d_with_region():
3434
assert data.gmt.registration == 0
3535
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3636
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
37-
npt.assert_allclose(data.min(), -180.4, atol=0.2)
38-
npt.assert_allclose(data.max(), 127.4, atol=0.2)
37+
npt.assert_allclose(data.min(), -54.4, atol=0.2)
38+
npt.assert_allclose(data.max(), 61.4, atol=0.2)
3939

4040

4141
def test_earth_mag_02m_default_registration():
@@ -67,8 +67,8 @@ def test_earth_mag4km_01d():
6767
assert data.gmt.registration == 0
6868
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
6969
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
70-
npt.assert_allclose(data.min(), -799.2, atol=0.2)
71-
npt.assert_allclose(data.max(), 3226.4, atol=0.2)
70+
npt.assert_allclose(data.min(), -436.8, atol=0.2)
71+
npt.assert_allclose(data.max(), 1087.2, atol=0.2)
7272

7373

7474
def test_earth_mag4km_01d_with_region():
@@ -84,8 +84,8 @@ def test_earth_mag4km_01d_with_region():
8484
assert data.shape == (11, 21)
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(), -153.2, atol=0.2)
88-
npt.assert_allclose(data.max(), 113.6, atol=0.2)
87+
npt.assert_allclose(data.min(), -49.6, atol=0.2)
88+
npt.assert_allclose(data.max(), 57.6, atol=0.2)
8989

9090

9191
def test_earth_mag4km_02m_default_registration():
@@ -122,8 +122,8 @@ def test_earth_mag_01d_wdmam():
122122
assert data.shape == (181, 361)
123123
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
124124
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
125-
npt.assert_allclose(data.min(), -794.0, atol=0.2)
126-
npt.assert_allclose(data.max(), 2169.8, atol=0.2)
125+
npt.assert_allclose(data.min(), -446.6, atol=0.2)
126+
npt.assert_allclose(data.max(), 1330.2, atol=0.2)
127127

128128

129129
def test_earth_mag_01d_wdmam_with_region():
@@ -139,8 +139,8 @@ def test_earth_mag_01d_wdmam_with_region():
139139
assert data.shape == (11, 21)
140140
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
141141
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
142-
npt.assert_allclose(data.min(), -145.6, atol=0.2)
143-
npt.assert_allclose(data.max(), 107.6, atol=0.2)
142+
npt.assert_allclose(data.min(), -56.0, atol=0.2)
143+
npt.assert_allclose(data.max(), 55.0, atol=0.2)
144144

145145

146146
def test_earth_mag_03m_wdmam_with_region():

pygmt/tests/test_datasets_earth_relief.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def test_earth_relief_01d_igpp_synbath(data_source):
2424
assert data.shape == (181, 361)
2525
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2626
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
27-
npt.assert_allclose(data.min(), -8600.5, atol=0.5)
28-
npt.assert_allclose(data.max(), 5559.0, atol=0.5)
27+
npt.assert_allclose(data.min(), -7174.0, atol=0.5)
28+
npt.assert_allclose(data.max(), 5350.0, atol=0.5)
2929

3030

3131
@pytest.mark.parametrize("data_source", ["gebco", "gebcosi"])
@@ -42,8 +42,8 @@ def test_earth_relief_01d_gebco(data_source):
4242
assert data.gmt.registration == 0
4343
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
4444
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
45-
npt.assert_allclose(data.min(), -8597.0, atol=1.0)
46-
npt.assert_allclose(data.max(), 5559.0, atol=1.0)
45+
npt.assert_allclose(data.min(), -7169.0, atol=1.0)
46+
npt.assert_allclose(data.max(), 5350.0, atol=1.0)
4747

4848

4949
def test_earth_relief_01d_with_region_srtm():
@@ -59,8 +59,8 @@ def test_earth_relief_01d_with_region_srtm():
5959
assert data.gmt.registration == 0
6060
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
6161
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
62-
npt.assert_allclose(data.min(), -5151, atol=0.5)
63-
npt.assert_allclose(data.max(), 805.5, atol=0.5)
62+
npt.assert_allclose(data.min(), -5136.0, atol=0.5)
63+
npt.assert_allclose(data.max(), 680.5, atol=0.5)
6464

6565

6666
def test_earth_relief_01d_with_region_gebco():
@@ -76,8 +76,8 @@ def test_earth_relief_01d_with_region_gebco():
7676
assert data.gmt.registration == 0
7777
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
7878
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
79-
npt.assert_allclose(data.min(), -5151.0, atol=1.0)
80-
npt.assert_allclose(data.max(), 806.0, atol=1.0)
79+
npt.assert_allclose(data.min(), -5136.0, atol=1.0)
80+
npt.assert_allclose(data.max(), 681.0, atol=1.0)
8181

8282

8383
def test_earth_relief_30m():
@@ -89,8 +89,8 @@ def test_earth_relief_30m():
8989
assert data.gmt.registration == 0
9090
npt.assert_allclose(data.lat, np.arange(-90, 90.5, 0.5))
9191
npt.assert_allclose(data.lon, np.arange(-180, 180.5, 0.5))
92-
npt.assert_allclose(data.min(), -9454.5, atol=0.5)
93-
npt.assert_allclose(data.max(), 5887.5, atol=0.5)
92+
npt.assert_allclose(data.min(), -8279.5, atol=0.5)
93+
npt.assert_allclose(data.max(), 5544.0, atol=0.5)
9494

9595

9696
def test_earth_gebcosi_15m_with_region():
@@ -107,8 +107,8 @@ def test_earth_gebcosi_15m_with_region():
107107
assert data.gmt.registration == 1
108108
npt.assert_allclose(data.lat, np.arange(-87.875, -84, 0.25))
109109
npt.assert_allclose(data.lon, np.arange(85.125, 87, 0.25))
110-
npt.assert_allclose(data.min(), -531, atol=1.0)
111-
npt.assert_allclose(data.max(), 474, atol=1.0)
110+
npt.assert_allclose(data.min(), -492, atol=1.0)
111+
npt.assert_allclose(data.max(), 435, atol=1.0)
112112

113113

114114
def test_earth_relief_30s_synbath():
@@ -122,8 +122,8 @@ def test_earth_relief_30s_synbath():
122122
data_source="synbath",
123123
)
124124
assert data.shape == (60, 120)
125-
npt.assert_allclose(data.min(), -3552.5, atol=0.5)
126-
npt.assert_allclose(data.max(), -2257.5, atol=0.5)
125+
npt.assert_allclose(data.min(), -3546.5, atol=0.5)
126+
npt.assert_allclose(data.max(), -2282.0, atol=0.5)
127127

128128

129129
def test_earth_relief_03s_landonly_srtm():
@@ -198,5 +198,5 @@ def test_earth_relief_03s_default_registration():
198198
npt.assert_allclose(data.coords["lat"].data.max(), 5)
199199
npt.assert_allclose(data.coords["lon"].data.min(), -10)
200200
npt.assert_allclose(data.coords["lon"].data.max(), -9.8)
201-
npt.assert_allclose(data.min(), -2070.0, atol=0.5)
201+
npt.assert_allclose(data.min(), -2131.9, atol=0.5)
202202
npt.assert_allclose(data.max(), -924.5, atol=0.5)

pygmt/tests/test_datasets_earth_vertical_gravity_gradient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def test_earth_vertical_gravity_gradient_01d():
1919
assert data.gmt.registration == 0
2020
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2121
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
22-
npt.assert_allclose(data.min(), -137.125, atol=1 / 32)
23-
npt.assert_allclose(data.max(), 104.59375, atol=1 / 32)
22+
npt.assert_allclose(data.min(), -40.1875, atol=1 / 32)
23+
npt.assert_allclose(data.max(), 45.96875, atol=1 / 32)
2424
assert data[1, 1].isnull() # noqa: PD003 # ruff's bug
2525

2626

@@ -35,8 +35,8 @@ def test_earth_vertical_gravity_gradient_01d_with_region():
3535
assert data.gmt.registration == 0
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(), -15.6875, atol=1 / 32)
39-
npt.assert_allclose(data.max(), 19.875, atol=1 / 32)
38+
npt.assert_allclose(data.min(), -5.34375, atol=1 / 32)
39+
npt.assert_allclose(data.max(), 5.59375, atol=1 / 32)
4040

4141

4242
def test_earth_vertical_gravity_gradient_01m_default_registration():

0 commit comments

Comments
 (0)