Skip to content

Revise the notes about registration and gtype of remote datasets #2384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 22, 2023
11 changes: 8 additions & 3 deletions pygmt/datasets/earth_age.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ def load_earth_age(resolution="01d", region=None, registration=None):

Note
----
The :class:`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.

The registration and coordinate system type of the returned
:class:`xarray.DataArray` grids can be accessed via the GMT accessors
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
However, these properties may be lost after specific grid operations and
need to be set manually before passing the grid further to PyGMT functions.
Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
workarounds.

Examples
--------
Expand Down