Skip to content

pygmt.load_dataarray: Remove the deprecated function [Deprecated since v0.16.0] - #4837

Merged
seisman merged 2 commits into
GenericMappingTools:mainfrom
yogirajh007:remove-deprecated-load-dataarray
Aug 14, 2026
Merged

pygmt.load_dataarray: Remove the deprecated function [Deprecated since v0.16.0]#4837
seisman merged 2 commits into
GenericMappingTools:mainfrom
yogirajh007:remove-deprecated-load-dataarray

Conversation

@yogirajh007

@yogirajh007 yogirajh007 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Description of proposed changes

Removes the deprecated pygmt.load_dataarray function, which has been deprecated since v0.16.0 and scheduled for removal in v0.20.0.

This PR:

  • removes pygmt/io.py
  • removes the corresponding tests in pygmt/tests/test_io.py
  • removes the top-level load_dataarray export
  • removes load_dataarray from the API documentation

Users should use xarray.load_dataarray with the PyGMT backend instead:

xarray.load_dataarray(..., engine="gmt", raster_kind="grid")

Addresses the pygmt.load_dataarray task in #4824.

@seisman seisman added the deprecation Deprecating a feature label Aug 14, 2026
@seisman seisman added this to the 0.20.0 milestone Aug 14, 2026
@seisman
seisman merged commit 442454a into GenericMappingTools:main Aug 14, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Deprecating a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants