Skip to content

Commit e53c7ae

Browse files
authored
Cache earth_relief_15s tile and set GMT_DATA_SERVER to use https (#1553)
* Cache @N30W120.earth_relief_15s_p * Set GMT_DATA_SERVER to https://oceania.generic-mapping-tools.org/
1 parent e10df16 commit e53c7ae

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/cache_data.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
- name: Download remote data
5252
run: |
5353
python -c "from pygmt.helpers.testing import download_test_data; download_test_data()"
54+
env:
55+
GMT_DATA_SERVER: https://oceania.generic-mapping-tools.org/
5456

5557
# Upload the downloaded files as artifacts to GitHub
5658
- name: Upload artifacts to GitHub

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"build:miniconda": "curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash ~/miniconda.sh -b -p $HOME/miniconda",
44
"build:pygmt": "conda install mamba -c conda-forge -y && mamba env create -f environment.yml && source activate pygmt && make install",
55
"build:docs": "source activate pygmt && cd doc && make all && mv _build/html ../public",
6-
"build": "export PATH=$HOME/miniconda/bin:$PATH && npm run build:miniconda && npm run build:pygmt && npm run build:docs"
6+
"build": "export PATH=$HOME/miniconda/bin:$PATH && export GMT_DATA_SERVER=https://oceania.generic-mapping-tools.org && npm run build:miniconda && npm run build:pygmt && npm run build:docs"
77
}
88
}

pygmt/helpers/testing.py

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def download_test_data():
161161
# List of tiles of 03s srtm data.
162162
# Names like @N35E135.earth_relief_03s_g.nc is for internal use only.
163163
# The naming scheme may change. DO NOT USE IT IN YOUR SCRIPTS.
164+
"@N30W120.earth_relief_15s_p.nc",
164165
"@N35E135.earth_relief_03s_g.nc",
165166
"@N37W120.earth_relief_03s_g.nc",
166167
"@N00W090.earth_relief_03m_p.nc",

0 commit comments

Comments
 (0)