55
66import pandas as pd
77from pygmt .exceptions import GMTInvalidInput
8+ from pygmt .io import load_dataarray
89from pygmt .src import which
910
1011
@@ -23,6 +24,7 @@ def list_sample_data():
2324 """
2425 names = {
2526 "bathymetry" : "Table of ship bathymetric observations off Baja California" ,
27+ "earth_relief_holes" : "Regional 20 arc-minute Earth relief grid with holes" ,
2628 "fractures" : "Table of hypothetical fracture lengths and azimuths" ,
2729 "hotspots" : "Table of locations, names, and symbol sizes of hotpots from "
2830 " Mueller et al., 1993" ,
@@ -65,6 +67,7 @@ def load_sample_data(name):
6567
6668 load_func = {
6769 "bathymetry" : load_sample_bathymetry ,
70+ "earth_relief_holes" : _load_earth_relief_holes ,
6871 "fractures" : load_fractures_compilation ,
6972 "hotspots" : load_hotspots ,
7073 "japan_quakes" : load_japan_quakes ,
@@ -343,3 +346,17 @@ def load_mars_shape(**kwargs):
343346 fname , sep = "\t " , header = None , names = ["longitude" , "latitude" , "radius(m)" ]
344347 )
345348 return data
349+
350+
351+ def _load_earth_relief_holes (** kwargs ): # pylint: disable=unused-argument
352+ """
353+ Loads the remote file @earth_relief_20m_holes.grd.
354+
355+ Returns
356+ -------
357+ grid : :class:`xarray.DataArray`
358+ The Earth relief grid. Coordinates are latitude and longitude in
359+ degrees. Relief is in meters.
360+ """
361+ fname = which ("@earth_relief_20m_holes.grd" , download = "c" )
362+ return load_dataarray (fname , engine = "netcdf4" )
0 commit comments