From 6baf2c79b0eefca67ee222bd2e9d26c611347c8c Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sun, 14 Jan 2024 16:48:07 +0800 Subject: [PATCH] Update to the latest dataset definition --- pygmt/datasets/load_remote_dataset.py | 28 ++++++++++++------------ pygmt/tests/test_datasets_moon_relief.py | 6 ----- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/pygmt/datasets/load_remote_dataset.py b/pygmt/datasets/load_remote_dataset.py index ac456ba4493..b2b222ef4e0 100644 --- a/pygmt/datasets/load_remote_dataset.py +++ b/pygmt/datasets/load_remote_dataset.py @@ -233,20 +233,20 @@ class GMTRemoteDataset(NamedTuple): units="meters", extra_attributes={}, resolutions={ - "01d": Resolution(["gridline", "pixel"], False), - "30m": Resolution(["gridline", "pixel"], False), - "20m": Resolution(["gridline", "pixel"], False), - "15m": Resolution(["gridline", "pixel"], False), - "10m": Resolution(["gridline", "pixel"], False), - "06m": Resolution(["gridline", "pixel"], False), - "05m": Resolution(["gridline", "pixel"], True), - "04m": Resolution(["gridline", "pixel"], True), - "03m": Resolution(["gridline", "pixel"], True), - "02m": Resolution(["gridline", "pixel"], True), - "01m": Resolution(["gridline", "pixel"], True), - "30s": Resolution(["gridline", "pixel"], True), - "15s": Resolution(["gridline", "pixel"], True), - "14s": Resolution(["pixel"], True), + "01d": Resolution("01d"), + "30m": Resolution("30m"), + "20m": Resolution("20m"), + "15m": Resolution("15m"), + "10m": Resolution("10m"), + "06m": Resolution("06m"), + "05m": Resolution("05m", tiled=True), + "04m": Resolution("04m", tiled=True), + "03m": Resolution("03m", tiled=True), + "02m": Resolution("02m", tiled=True), + "01m": Resolution("01m", tiled=True), + "30s": Resolution("30s", tiled=True), + "15s": Resolution("15s", tiled=True), + "14s": Resolution("14s", registrations=["pixel"], tiled=True), }, ), } diff --git a/pygmt/tests/test_datasets_moon_relief.py b/pygmt/tests/test_datasets_moon_relief.py index d607dd441f4..e13faa48b6f 100644 --- a/pygmt/tests/test_datasets_moon_relief.py +++ b/pygmt/tests/test_datasets_moon_relief.py @@ -3,15 +3,9 @@ """ import numpy as np import numpy.testing as npt -import pytest from pygmt.datasets import load_moon_relief -@pytest.fixture(autouse=True) -def _use_candidate_server(monkeypatch): - monkeypatch.setenv("GMT_DATA_SERVER", "candidate") - - def test_moon_relief_01d(): """ Test some properties of the Moon relief 01d data.