Skip to content

Commit 9da3ea3

Browse files
seismanweiji14
andauthored
Reorganize the list of data files for caching (#3171)
Co-authored-by: Wei Ji <[email protected]>
1 parent 7f77c77 commit 9da3ea3

File tree

1 file changed

+45
-59
lines changed

1 file changed

+45
-59
lines changed

pygmt/helpers/caching.py

Lines changed: 45 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -9,89 +9,75 @@ def cache_data():
99
"""
1010
Download GMT remote data files used in PyGMT tests and docs to cache folder.
1111
"""
12-
# List of datasets to download
12+
# List of data files to download.
1313
datasets = [
14-
# Earth relief grids
14+
# List of GMT remote datasets.
15+
"@earth_age_01d_g",
16+
"@earth_day_01d_p",
17+
"@earth_faa_01d_g",
1518
"@earth_gebco_01d_g",
1619
"@earth_gebcosi_01d_g",
1720
"@earth_gebcosi_15m_p",
18-
"@earth_relief_01d_p",
19-
"@earth_relief_01d_g",
20-
"@earth_relief_30m_p",
21-
"@earth_relief_30m_g",
22-
"@earth_relief_10m_p",
23-
"@earth_relief_10m_g",
24-
"@earth_relief_05m_p",
25-
"@earth_relief_05m_g",
26-
"@earth_synbath_01d_g",
27-
# List of tiles of 03s srtm data.
28-
# Names like @N35E135.earth_relief_03s_g.nc are for internal use only.
29-
# The naming scheme may change. DO NOT USE IT IN YOUR SCRIPTS.
30-
"@N30W120.earth_relief_15s_p.nc",
31-
"@N35E135.earth_relief_03s_g.nc",
32-
"@N37W120.earth_relief_03s_g.nc",
33-
"@N00W090.earth_relief_03m_p.nc",
34-
"@N00E135.earth_relief_30s_g.nc",
35-
"@N00W010.earth_relief_15s_p.nc", # Specific grid for 15s test
36-
"@N04W010.earth_relief_03s_g.nc", # Specific grid for 03s test
37-
# Earth synbath relief grid
38-
"@S15W105.earth_synbath_30s_p.nc",
39-
# Earth seafloor age grids
40-
"@earth_age_01d_g",
41-
"@N00W030.earth_age_01m_g.nc", # Specific grid for 01m test
42-
# Earth geoid grids
4321
"@earth_geoid_01d_g",
44-
"@N00W030.earth_geoid_01m_g.nc", # Specific grid for 01m test
45-
# Earth magnetic anomaly grids
4622
"@earth_mag_01d_g",
47-
"@S30W060.earth_mag_02m_p.nc", # Specific grid for 02m test
4823
"@earth_mag4km_01d_g",
49-
"@S30W120.earth_mag4km_02m_p.nc", # Specific grid for 02m test
50-
# Earth mask grid
5124
"@earth_mask_01d_g",
52-
# Earth free-air anomaly grids
53-
"@earth_faa_01d_g",
54-
"@N00W030.earth_faa_01m_p.nc", # Specific grid for 01m test
55-
# Earth vertical gravity gradient grids
25+
"@earth_relief_01d_g",
26+
"@earth_relief_01d_p",
27+
"@earth_relief_10m_g",
28+
"@earth_relief_10m_p",
29+
"@earth_relief_30m_g",
30+
"@earth_relief_30m_p",
31+
"@earth_relief_05m_g",
32+
"@earth_relief_05m_p",
33+
"@earth_synbath_01d_g",
5634
"@earth_vgg_01d_g",
57-
"@N00W030.earth_vgg_01m_p.nc", # Specific grid for 01m test
58-
# Earth WDMAM grids
5935
"@earth_wdmam_01d_g",
60-
"@S90E000.earth_wdmam_03m_g.nc", # Specific grid for 03m test
61-
# Earth day/night images
62-
"@earth_day_01d_p",
63-
# Mars relief grids
6436
"@mars_relief_01d_g",
65-
"@N00W030.mars_relief_01m_g.nc", # Specific grid for 01m tes
66-
# Mercury relief grids
6737
"@mercury_relief_01d_g",
68-
"@N00W030.mercury_relief_01m_p.nc", # Specific grid for 01m test
69-
# Moon relief grids
7038
"@moon_relief_01d_g",
71-
"@N00W030.moon_relief_01m_p.nc", # Specific grid for 01m test
72-
# Pluto relief grids
7339
"@pluto_relief_01d_g",
74-
"@N00W030.pluto_relief_01m_p.nc", # Specific grid for 01m test
75-
# Venus relief grids
7640
"@venus_relief_01d_g",
77-
"@N00W030.venus_relief_01m_g.nc", # Specific grid for 01m test
78-
# Other cache files
79-
"@capitals.gmt",
80-
"@circuit.png",
81-
"@earth_relief_20m_holes.grd",
41+
# List of tiled remote datasets.
42+
# Names like @N35E135.earth_relief_03s_g.nc are for internal use only.
43+
# The naming scheme may change. DO NOT USE IT IN YOUR SCRIPTS.
44+
"@N00W030.earth_age_01m_g.nc",
45+
"@N00W030.earth_faa_01m_p.nc",
46+
"@N00W030.earth_geoid_01m_g.nc",
47+
"@S30W060.earth_mag_02m_p.nc",
48+
"@S30W120.earth_mag4km_02m_p.nc",
49+
"@N00W090.earth_relief_03m_p.nc",
50+
"@N00E135.earth_relief_30s_g.nc",
51+
"@N00W010.earth_relief_15s_p.nc",
52+
"@N30W120.earth_relief_15s_p.nc",
53+
"@N04W010.earth_relief_03s_g.nc",
54+
"@N35E135.earth_relief_03s_g.nc",
55+
"@N37W120.earth_relief_03s_g.nc",
56+
"@S15W105.earth_synbath_30s_p.nc",
57+
"@N00W030.earth_vgg_01m_p.nc",
58+
"@S90E000.earth_wdmam_03m_g.nc",
59+
"@N00W030.mars_relief_01m_g.nc",
60+
"@N00W030.mercury_relief_01m_p.nc",
61+
"@N00W030.moon_relief_01m_p.nc",
62+
"@N00W030.pluto_relief_01m_p.nc",
63+
"@N00W030.venus_relief_01m_g.nc",
64+
# List of cache files.
8265
"@EGM96_to_36.txt",
8366
"@MaunaLoa_CO2.txt",
84-
"@RidgeTest.shp",
85-
"@RidgeTest.shx",
8667
"@RidgeTest.dbf",
8768
"@RidgeTest.prj",
69+
"@RidgeTest.shp",
70+
"@RidgeTest.shx",
8871
"@Table_5_11.txt",
8972
"@Table_5_11_mean.xyz",
73+
"@capitals.gmt",
74+
"@circuit.png",
75+
"@earth_relief_20m_holes.grd",
9076
"@fractures_06.txt",
9177
"@hotspots.txt",
92-
"@ridge.txt",
9378
"@mars370d.txt",
94-
"@srtm_tiles.nc", # needed for 03s and 01s relief data
79+
"@ridge.txt",
80+
"@srtm_tiles.nc", # Needed for earth relief 03s and 01s data.
9581
"@static_earth_relief.nc",
9682
"@ternary.txt",
9783
"@test.dat.nc",

0 commit comments

Comments
 (0)