Skip to content

Commit

Permalink
Update attrs (name, long_name, description) of blue_marble
Browse files Browse the repository at this point in the history
Set long_name to 'blue_marble', check that name is 'z' and description is 'NASA Day Images'.
  • Loading branch information
weiji14 committed Sep 28, 2024
1 parent 4ef65b0 commit 54184fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pygmt/datasets/load_remote_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class GMTRemoteDataset(NamedTuple):
"earth_day": GMTRemoteDataset(
description="NASA Day Images",
units=None,
extra_attributes={"horizontal_datum": "WGS84"},
extra_attributes={"long_name": "blue_marble", "horizontal_datum": "WGS84"},
resolutions={
"01d": Resolution("01d", registrations=["pixel"]),
"30m": Resolution("30m", registrations=["pixel"]),
Expand Down
5 changes: 3 additions & 2 deletions pygmt/tests/test_datasets_earth_daynight.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ def test_blue_marble_01d():
Test some properties of the Blue Marble 01d data.
"""
data = load_blue_marble(resolution="01d")
assert data.name == "blue_marble"
assert data.name == "z"
assert data.long_name == "blue_marble"
assert data.attrs["horizontal_datum"] == "WGS84"
assert data.attrs["long_name"] == "NASA Day Images"
assert data.attrs["description"] == "NASA Day Images"
assert data.shape == (3, 180, 360)
assert data.dtype == "uint8"
assert data.gmt.registration == 1
Expand Down

0 comments on commit 54184fb

Please sign in to comment.