Skip to content

Commit aa84d62

Browse files
committed
Apply to newly added datasets
1 parent f1280cc commit aa84d62

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

pygmt/datasets/load_remote_dataset.py

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class GMTRemoteDataset(NamedTuple):
3838
3939
Attributes
4040
----------
41-
kind
42-
The kind of the dataset source. Valid values are ``"grid"`` and ``"image"``.
4341
description
4442
The name assigned as an attribute to the DataArray.
43+
kind
44+
The kind of the dataset source. Valid values are ``"grid"`` and ``"image"``.
4545
units
4646
The units of the values in the DataArray.
4747
resolutions
@@ -50,17 +50,17 @@ class GMTRemoteDataset(NamedTuple):
5050
A dictionary of extra or unique attributes of the dataset.
5151
"""
5252

53-
kind: Literal["grid", "image"]
5453
description: str
54+
kind: Literal["grid", "image"]
5555
units: str | None
5656
resolutions: dict[str, Resolution]
5757
extra_attributes: dict[str, Any]
5858

5959

6060
datasets = {
6161
"earth_age": GMTRemoteDataset(
62-
kind="grid",
6362
description="EarthByte Earth seafloor crustal age",
63+
kind="grid",
6464
units="Myr",
6565
extra_attributes={"horizontal_datum": "WGS84"},
6666
resolutions={
@@ -78,8 +78,8 @@ class GMTRemoteDataset(NamedTuple):
7878
},
7979
),
8080
"earth_day": GMTRemoteDataset(
81-
kind="image",
8281
description="NASA Day Images",
82+
kind="image",
8383
units=None,
8484
extra_attributes={"long_name": "blue_marble", "horizontal_datum": "WGS84"},
8585
resolutions={
@@ -99,6 +99,7 @@ class GMTRemoteDataset(NamedTuple):
9999
),
100100
"earth_dist": GMTRemoteDataset(
101101
description="GSHHG Earth distance to shoreline",
102+
kind="grid",
102103
units="kilometers",
103104
extra_attributes={"horizontal_datum": "WGS84"},
104105
resolutions={
@@ -117,6 +118,7 @@ class GMTRemoteDataset(NamedTuple):
117118
),
118119
"earth_edefl": GMTRemoteDataset(
119120
description="IGPP Earth east-west deflection",
121+
kind="grid",
120122
units="micro-radians",
121123
extra_attributes={"horizontal_datum": "WGS84"},
122124
resolutions={
@@ -134,8 +136,8 @@ class GMTRemoteDataset(NamedTuple):
134136
},
135137
),
136138
"earth_faa": GMTRemoteDataset(
137-
kind="grid",
138139
description="IGPP Earth free-air anomaly",
140+
kind="grid",
139141
units="mGal",
140142
extra_attributes={"horizontal_datum": "WGS84"},
141143
resolutions={
@@ -154,6 +156,7 @@ class GMTRemoteDataset(NamedTuple):
154156
),
155157
"earth_faaerror": GMTRemoteDataset(
156158
description="IGPP Earth free-air anomaly errors",
159+
kind="grid",
157160
units="mGal",
158161
extra_attributes={"horizontal_datum": "WGS84"},
159162
resolutions={
@@ -171,8 +174,8 @@ class GMTRemoteDataset(NamedTuple):
171174
},
172175
),
173176
"earth_gebco": GMTRemoteDataset(
174-
kind="grid",
175177
description="GEBCO Earth relief",
178+
kind="grid",
176179
units="meters",
177180
extra_attributes={"vertical_datum": "EGM96", "horizontal_datum": "WGS84"},
178181
resolutions={
@@ -194,8 +197,8 @@ class GMTRemoteDataset(NamedTuple):
194197
},
195198
),
196199
"earth_geoid": GMTRemoteDataset(
197-
kind="grid",
198200
description="EGM2008 Earth geoid",
201+
kind="grid",
199202
units="meters",
200203
extra_attributes={"horizontal_datum": "WGS84"},
201204
resolutions={
@@ -213,8 +216,8 @@ class GMTRemoteDataset(NamedTuple):
213216
},
214217
),
215218
"earth_igpp": GMTRemoteDataset(
216-
kind="grid",
217219
description="IGPP Earth relief",
220+
kind="grid",
218221
units="meters",
219222
extra_attributes={"vertical_datum": "EGM96", "horizontal_datum": "WGS84"},
220223
resolutions={
@@ -236,8 +239,8 @@ class GMTRemoteDataset(NamedTuple):
236239
},
237240
),
238241
"earth_mag": GMTRemoteDataset(
239-
kind="grid",
240242
description="EMAG2 Earth Magnetic Anomaly Model",
243+
kind="grid",
241244
units="nT",
242245
extra_attributes={"horizontal_datum": "WGS84"},
243246
resolutions={
@@ -254,8 +257,8 @@ class GMTRemoteDataset(NamedTuple):
254257
},
255258
),
256259
"earth_mask": GMTRemoteDataset(
257-
kind="grid",
258260
description="GSHHG Earth mask",
261+
kind="grid",
259262
units=None,
260263
extra_attributes={"horizontal_datum": "WGS84"},
261264
resolutions={
@@ -276,6 +279,7 @@ class GMTRemoteDataset(NamedTuple):
276279
),
277280
"earth_mss": GMTRemoteDataset(
278281
description="CNES Earth mean sea surface",
282+
kind="grid",
279283
units="meters",
280284
extra_attributes={"horizontal_datum": "WGS84"},
281285
resolutions={
@@ -293,8 +297,8 @@ class GMTRemoteDataset(NamedTuple):
293297
},
294298
),
295299
"earth_night": GMTRemoteDataset(
296-
kind="image",
297300
description="NASA Night Images",
301+
kind="image",
298302
units=None,
299303
extra_attributes={"long_name": "black_marble", "horizontal_datum": "WGS84"},
300304
resolutions={
@@ -314,6 +318,7 @@ class GMTRemoteDataset(NamedTuple):
314318
),
315319
"earth_mdt": GMTRemoteDataset(
316320
description="CNES Earth mean dynamic topography",
321+
kind="grid",
317322
units="meters",
318323
extra_attributes={"horizontal_datum": "WGS84"},
319324
resolutions={
@@ -327,6 +332,7 @@ class GMTRemoteDataset(NamedTuple):
327332
),
328333
"earth_ndefl": GMTRemoteDataset(
329334
description="IGPP Earth north-south deflection",
335+
kind="grid",
330336
units="micro-radians",
331337
extra_attributes={"horizontal_datum": "WGS84"},
332338
resolutions={
@@ -344,8 +350,8 @@ class GMTRemoteDataset(NamedTuple):
344350
},
345351
),
346352
"earth_vgg": GMTRemoteDataset(
347-
kind="grid",
348353
description="IGPP Earth vertical gravity gradient",
354+
kind="grid",
349355
units="Eotvos",
350356
extra_attributes={"horizontal_datum": "WGS84"},
351357
resolutions={
@@ -363,8 +369,8 @@ class GMTRemoteDataset(NamedTuple):
363369
},
364370
),
365371
"earth_wdmam": GMTRemoteDataset(
366-
kind="grid",
367372
description="WDMAM World Digital Magnetic Anomaly Map",
373+
kind="grid",
368374
units="nT",
369375
extra_attributes={"horizontal_datum": "WGS84"},
370376
resolutions={
@@ -380,8 +386,8 @@ class GMTRemoteDataset(NamedTuple):
380386
},
381387
),
382388
"mars_relief": GMTRemoteDataset(
383-
kind="grid",
384389
description="NASA Mars (MOLA) relief",
390+
kind="grid",
385391
units="meters",
386392
extra_attributes={},
387393
resolutions={
@@ -402,8 +408,8 @@ class GMTRemoteDataset(NamedTuple):
402408
},
403409
),
404410
"moon_relief": GMTRemoteDataset(
405-
kind="grid",
406411
description="USGS Moon (LOLA) relief",
412+
kind="grid",
407413
units="meters",
408414
extra_attributes={},
409415
resolutions={
@@ -424,8 +430,8 @@ class GMTRemoteDataset(NamedTuple):
424430
},
425431
),
426432
"mercury_relief": GMTRemoteDataset(
427-
kind="grid",
428433
description="USGS Mercury relief",
434+
kind="grid",
429435
units="meters",
430436
extra_attributes={},
431437
resolutions={
@@ -444,8 +450,8 @@ class GMTRemoteDataset(NamedTuple):
444450
},
445451
),
446452
"pluto_relief": GMTRemoteDataset(
447-
kind="grid",
448453
description="USGS Pluto relief",
454+
kind="grid",
449455
units="meters",
450456
extra_attributes={},
451457
resolutions={
@@ -464,8 +470,8 @@ class GMTRemoteDataset(NamedTuple):
464470
},
465471
),
466472
"venus_relief": GMTRemoteDataset(
467-
kind="grid",
468473
description="NASA Magellan Venus relief",
474+
kind="grid",
469475
units="meters",
470476
extra_attributes={},
471477
resolutions={

0 commit comments

Comments
 (0)