Skip to content

Commit ee2f5f6

Browse files
authored
Update min/max values on earth_wdmam tests (#3865)
Update some values in World Digital Magnetic Anomaly Map (WDMAM) with_region tests, following update to version 2.2 at GenericMappingTools/remote-datasets#134.
1 parent fdfe687 commit ee2f5f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygmt/tests/test_datasets_earth_magnetic_anomaly.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def test_earth_mag_01d_wdmam_with_region():
144144
assert data.shape == (11, 21)
145145
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
146146
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
147-
npt.assert_allclose(data.min(), -56.0, atol=0.2)
148-
npt.assert_allclose(data.max(), 55.0, atol=0.2)
147+
npt.assert_allclose(data.min(), -56.4, atol=0.2)
148+
npt.assert_allclose(data.max(), 53.8, atol=0.2)
149149

150150

151151
def test_earth_mag_03m_wdmam_with_region():
@@ -161,8 +161,8 @@ def test_earth_mag_03m_wdmam_with_region():
161161
assert data.lat.max() == -58
162162
assert data.lon.min() == 10
163163
assert data.lon.max() == 13
164-
npt.assert_allclose(data.min(), -790.2, atol=0.2)
165-
npt.assert_allclose(data.max(), 528.0, atol=0.2)
164+
npt.assert_allclose(data.min(), -811.4, atol=0.2)
165+
npt.assert_allclose(data.max(), 505.0, atol=0.2)
166166

167167

168168
def test_earth_mag_data_source_error():

0 commit comments

Comments
 (0)