@@ -142,89 +142,6 @@ def wrapper(*args, ext="png", request=None, **kwargs):
142
142
return decorator
143
143
144
144
145
- def download_test_data ():
146
- """
147
- Convenience function to download remote data files used in PyGMT tests and docs.
148
- """
149
- # List of datasets to download
150
- datasets = [
151
- # Earth relief grids
152
- "@earth_gebco_01d_g" ,
153
- "@earth_gebcosi_01d_g" ,
154
- "@earth_gebcosi_15m_p" ,
155
- "@earth_relief_01d_p" ,
156
- "@earth_relief_01d_g" ,
157
- "@earth_relief_30m_p" ,
158
- "@earth_relief_30m_g" ,
159
- "@earth_relief_10m_p" ,
160
- "@earth_relief_10m_g" ,
161
- "@earth_relief_05m_p" ,
162
- "@earth_relief_05m_g" ,
163
- "@earth_synbath_01d_g" ,
164
- # List of tiles of 03s srtm data.
165
- # Names like @N35E135.earth_relief_03s_g.nc is for internal use only.
166
- # The naming scheme may change. DO NOT USE IT IN YOUR SCRIPTS.
167
- "@N30W120.earth_relief_15s_p.nc" ,
168
- "@N35E135.earth_relief_03s_g.nc" ,
169
- "@N37W120.earth_relief_03s_g.nc" ,
170
- "@N00W090.earth_relief_03m_p.nc" ,
171
- "@N00E135.earth_relief_30s_g.nc" ,
172
- "@N00W010.earth_relief_15s_p.nc" , # Specific grid for 15s test
173
- "@N04W010.earth_relief_03s_g.nc" , # Specific grid for 03s test
174
- # Earth synbath relief grids
175
- "@S15W105.earth_synbath_30s_p.nc" ,
176
- # Earth seafloor age grids
177
- "@earth_age_01d_g" ,
178
- "@N00W030.earth_age_01m_g.nc" , # Specific grid for 01m test
179
- # Earth geoid grids
180
- "@earth_geoid_01d_g" ,
181
- "@N00W030.earth_geoid_01m_g.nc" , # Specific grid for 01m test
182
- # Earth magnetic anomaly grids
183
- "@earth_mag_01d_g" ,
184
- "@S30W060.earth_mag_02m_p.nc" , # Specific grid for 02m test
185
- "@earth_mag4km_01d_g" ,
186
- "@S30W120.earth_mag4km_02m_p.nc" , # Specific grid for 02m test
187
- # Earth mask grid
188
- "@earth_mask_01d_g" ,
189
- # Earth free-air anomaly grids
190
- "@earth_faa_01d_g" ,
191
- "@N00W030.earth_faa_01m_p.nc" , # Specific grid for 01m test
192
- # Earth vertical gravity gradient grids
193
- "@earth_vgg_01d_g" ,
194
- "@N00W030.earth_vgg_01m_p.nc" , # Specific grid for 01m test
195
- # Earth WDMAM grids
196
- "@earth_wdmam_01d_g" ,
197
- "@S90E000.earth_wdmam_03m_g.nc" , # Specific grid for 03m test
198
- # Earth day/night grids
199
- "@earth_day_01d_p" ,
200
- # Other cache files
201
- "@capitals.gmt" ,
202
- "@circuit.png" ,
203
- "@earth_relief_20m_holes.grd" ,
204
- "@EGM96_to_36.txt" ,
205
- "@MaunaLoa_CO2.txt" ,
206
- "@RidgeTest.shp" ,
207
- "@RidgeTest.shx" ,
208
- "@RidgeTest.dbf" ,
209
- "@RidgeTest.prj" ,
210
- "@Table_5_11.txt" ,
211
- "@Table_5_11_mean.xyz" ,
212
- "@fractures_06.txt" ,
213
- "@hotspots.txt" ,
214
- "@ridge.txt" ,
215
- "@mars370d.txt" ,
216
- "@srtm_tiles.nc" , # needed for 03s and 01s relief data
217
- "@static_earth_relief.nc" ,
218
- "@ternary.txt" ,
219
- "@test.dat.nc" ,
220
- "@tut_bathy.nc" ,
221
- "@tut_quakes.ngdc" ,
222
- "@tut_ship.xyz" ,
223
- "@usgs_quakes_22.txt" ,
224
- ]
225
- which (fname = datasets , download = "a" )
226
-
227
-
228
145
def load_static_earth_relief ():
229
146
"""
230
147
Load the static_earth_relief file for internal testing.
0 commit comments