Skip to content

Commit

Permalink
Remote Datasets: Use complete word for units in "load_remote_dataset"…
Browse files Browse the repository at this point in the history
… and related tests (#3725)
  • Loading branch information
yvonnefroehlich authored Dec 26, 2024
1 parent efbc0fb commit c68ea48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pygmt/datasets/load_remote_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_dist": GMTRemoteDataset(
description="GSHHG Earth distance to shoreline",
units="km",
units="kilometers",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
"01d": Resolution("01d"),
Expand Down Expand Up @@ -152,7 +152,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_geoid": GMTRemoteDataset(
description="EGM2008 Earth geoid",
units="m",
units="meters",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
"01d": Resolution("01d"),
Expand Down
2 changes: 1 addition & 1 deletion pygmt/tests/test_datasets_earth_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_earth_dist_01d():
data = load_earth_dist(resolution="01d")
assert data.name == "z"
assert data.attrs["description"] == "GSHHG Earth distance to shoreline"
assert data.attrs["units"] == "km"
assert data.attrs["units"] == "kilometers"
assert data.attrs["horizontal_datum"] == "WGS84"
assert data.shape == (181, 361)
assert data.gmt.registration == 0
Expand Down
2 changes: 1 addition & 1 deletion pygmt/tests/test_datasets_earth_geoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_earth_geoid_01d():
assert data.name == "z"
assert data.attrs["long_name"] == "geoid (m)"
assert data.attrs["description"] == "EGM2008 Earth geoid"
assert data.attrs["units"] == "m"
assert data.attrs["units"] == "meters"
assert data.attrs["horizontal_datum"] == "WGS84"
assert data.shape == (181, 361)
assert data.gmt.registration == 0
Expand Down

0 comments on commit c68ea48

Please sign in to comment.