pygmt.datasets.load_earth_relief¶
-
pygmt.datasets.
load_earth_relief
(resolution='60m')[source]¶ Load Earth relief grids (topography and bathymetry) in various resolutions.
The grids are downloaded to a user data directory (usually
~/.gmt/
) the first time you invoke this function. Afterwards, it will load the data from the cache. So you’ll need an internet connection the first time around.These grids can also be accessed by passing in the file name
'@earth_relief_XXm'
or'@earth_relief_XXs'
to any grid plotting/processing function.- Parameters
resolution (str) – The grid resolution. The suffix
m
ands
stand for arc-minute and arc-second. It can be'60m'
,'30m'
,'10m'
,'05m'
,'02m'
,'01m'
,'30s'
or'15s'
.- Returns
grid (xarray.DataArray) – The Earth relief grid. Coordinates are latitude and longitude in degrees. Relief is in meters.