Skip to content

Commit

Permalink
Apply to newly added datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jan 4, 2025
1 parent f1280cc commit aa84d62
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions pygmt/datasets/load_remote_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class GMTRemoteDataset(NamedTuple):
Attributes
----------
kind
The kind of the dataset source. Valid values are ``"grid"`` and ``"image"``.
description
The name assigned as an attribute to the DataArray.
kind
The kind of the dataset source. Valid values are ``"grid"`` and ``"image"``.
units
The units of the values in the DataArray.
resolutions
Expand All @@ -50,17 +50,17 @@ class GMTRemoteDataset(NamedTuple):
A dictionary of extra or unique attributes of the dataset.
"""

kind: Literal["grid", "image"]
description: str
kind: Literal["grid", "image"]
units: str | None
resolutions: dict[str, Resolution]
extra_attributes: dict[str, Any]


datasets = {
"earth_age": GMTRemoteDataset(
kind="grid",
description="EarthByte Earth seafloor crustal age",
kind="grid",
units="Myr",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -78,8 +78,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_day": GMTRemoteDataset(
kind="image",
description="NASA Day Images",
kind="image",
units=None,
extra_attributes={"long_name": "blue_marble", "horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -99,6 +99,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_dist": GMTRemoteDataset(
description="GSHHG Earth distance to shoreline",
kind="grid",
units="kilometers",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -117,6 +118,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_edefl": GMTRemoteDataset(
description="IGPP Earth east-west deflection",
kind="grid",
units="micro-radians",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -134,8 +136,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_faa": GMTRemoteDataset(
kind="grid",
description="IGPP Earth free-air anomaly",
kind="grid",
units="mGal",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -154,6 +156,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_faaerror": GMTRemoteDataset(
description="IGPP Earth free-air anomaly errors",
kind="grid",
units="mGal",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -171,8 +174,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_gebco": GMTRemoteDataset(
kind="grid",
description="GEBCO Earth relief",
kind="grid",
units="meters",
extra_attributes={"vertical_datum": "EGM96", "horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -194,8 +197,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_geoid": GMTRemoteDataset(
kind="grid",
description="EGM2008 Earth geoid",
kind="grid",
units="meters",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -213,8 +216,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_igpp": GMTRemoteDataset(
kind="grid",
description="IGPP Earth relief",
kind="grid",
units="meters",
extra_attributes={"vertical_datum": "EGM96", "horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -236,8 +239,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_mag": GMTRemoteDataset(
kind="grid",
description="EMAG2 Earth Magnetic Anomaly Model",
kind="grid",
units="nT",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -254,8 +257,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_mask": GMTRemoteDataset(
kind="grid",
description="GSHHG Earth mask",
kind="grid",
units=None,
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -276,6 +279,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_mss": GMTRemoteDataset(
description="CNES Earth mean sea surface",
kind="grid",
units="meters",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -293,8 +297,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_night": GMTRemoteDataset(
kind="image",
description="NASA Night Images",
kind="image",
units=None,
extra_attributes={"long_name": "black_marble", "horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -314,6 +318,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_mdt": GMTRemoteDataset(
description="CNES Earth mean dynamic topography",
kind="grid",
units="meters",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -327,6 +332,7 @@ class GMTRemoteDataset(NamedTuple):
),
"earth_ndefl": GMTRemoteDataset(
description="IGPP Earth north-south deflection",
kind="grid",
units="micro-radians",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -344,8 +350,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_vgg": GMTRemoteDataset(
kind="grid",
description="IGPP Earth vertical gravity gradient",
kind="grid",
units="Eotvos",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -363,8 +369,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"earth_wdmam": GMTRemoteDataset(
kind="grid",
description="WDMAM World Digital Magnetic Anomaly Map",
kind="grid",
units="nT",
extra_attributes={"horizontal_datum": "WGS84"},
resolutions={
Expand All @@ -380,8 +386,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"mars_relief": GMTRemoteDataset(
kind="grid",
description="NASA Mars (MOLA) relief",
kind="grid",
units="meters",
extra_attributes={},
resolutions={
Expand All @@ -402,8 +408,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"moon_relief": GMTRemoteDataset(
kind="grid",
description="USGS Moon (LOLA) relief",
kind="grid",
units="meters",
extra_attributes={},
resolutions={
Expand All @@ -424,8 +430,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"mercury_relief": GMTRemoteDataset(
kind="grid",
description="USGS Mercury relief",
kind="grid",
units="meters",
extra_attributes={},
resolutions={
Expand All @@ -444,8 +450,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"pluto_relief": GMTRemoteDataset(
kind="grid",
description="USGS Pluto relief",
kind="grid",
units="meters",
extra_attributes={},
resolutions={
Expand All @@ -464,8 +470,8 @@ class GMTRemoteDataset(NamedTuple):
},
),
"venus_relief": GMTRemoteDataset(
kind="grid",
description="NASA Magellan Venus relief",
kind="grid",
units="meters",
extra_attributes={},
resolutions={
Expand Down

0 comments on commit aa84d62

Please sign in to comment.