Skip to content

Commit c68ea48

Browse files
Remote Datasets: Use complete word for units in "load_remote_dataset" and related tests (#3725)
1 parent efbc0fb commit c68ea48

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pygmt/datasets/load_remote_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class GMTRemoteDataset(NamedTuple):
9494
),
9595
"earth_dist": GMTRemoteDataset(
9696
description="GSHHG Earth distance to shoreline",
97-
units="km",
97+
units="kilometers",
9898
extra_attributes={"horizontal_datum": "WGS84"},
9999
resolutions={
100100
"01d": Resolution("01d"),
@@ -152,7 +152,7 @@ class GMTRemoteDataset(NamedTuple):
152152
),
153153
"earth_geoid": GMTRemoteDataset(
154154
description="EGM2008 Earth geoid",
155-
units="m",
155+
units="meters",
156156
extra_attributes={"horizontal_datum": "WGS84"},
157157
resolutions={
158158
"01d": Resolution("01d"),

pygmt/tests/test_datasets_earth_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_earth_dist_01d():
1414
data = load_earth_dist(resolution="01d")
1515
assert data.name == "z"
1616
assert data.attrs["description"] == "GSHHG Earth distance to shoreline"
17-
assert data.attrs["units"] == "km"
17+
assert data.attrs["units"] == "kilometers"
1818
assert data.attrs["horizontal_datum"] == "WGS84"
1919
assert data.shape == (181, 361)
2020
assert data.gmt.registration == 0

pygmt/tests/test_datasets_earth_geoid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_earth_geoid_01d():
1515
assert data.name == "z"
1616
assert data.attrs["long_name"] == "geoid (m)"
1717
assert data.attrs["description"] == "EGM2008 Earth geoid"
18-
assert data.attrs["units"] == "m"
18+
assert data.attrs["units"] == "meters"
1919
assert data.attrs["horizontal_datum"] == "WGS84"
2020
assert data.shape == (181, 361)
2121
assert data.gmt.registration == 0

0 commit comments

Comments
 (0)