pygmt.datasets.load_earth_age(resolution='01d', region=None, registration=None)[source]

Load Earth seafloor crustal ages in various resolutions.

The grids are downloaded to a user data directory (usually ~/.gmt/server/earth/earth_age/) the first time you invoke this function. Afterwards, it will load the grid from the data directory. So you’ll need an internet connection the first time around.

These grids can also be accessed by passing in the file name @earth_age_res[_reg] to any grid plotting/processing function. res is the grid resolution (see below), and reg is grid registration type (p for pixel registration or g for gridline registration).

Refer to for more details.

  • resolution (str) – The grid resolution. The suffix d and m stand for arc-degree, arc-minute and arc-second. It can be '01d', '30m', '20m', '15m', '10m', '06m', '05m', '04m', '03m', '02m', or '01m'.

  • region (str or list) – The subregion of the grid to load, in the forms of a list [xmin, xmax, ymin, ymax] or a string xmin/xmax/ymin/ymax. Required for grids with resolutions higher than 5 arc-minute (i.e., 05m).

  • registration (str) – Grid registration type. Either pixel for pixel registration or gridline for gridline registration. Default is None, where a pixel-registered grid is returned unless only the gridline-registered grid is available.


grid (xarray.DataArray) – The Earth seafloor crustal age grid. Coordinates are latitude and longitude in degrees. Age is in millions of years (Myr).


The xarray.DataArray grid doesn’t support slice operation, for Earth seafloor crustal age with resolutions of 5 arc-minutes or higher, which are stored as smaller tiles.