You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow passing region to GMTBackendEntrypoint.open_dataset (#3932)
Support passing in a region as a Sequence [xmin, xmax, ymin, ymax] or
ISO country code to `xarray.open_dataset` when using `engine="gmt"`.
* Refactor _load_remote_dataset internals to use xr.load_dataarray
Remove duplicated code calling GMT read, since
`xr.load_dataarray(engine="gmt")` now works with region argument.
* Update TypeError regex for test_xarray_backend_gmt_read_invalid_kind
* Don't need to re-load GMTDataArray accessor info in GMTBackendEntrypoint
GMTDataArrayAccessor info should already be loaded by calling
`virtualfile_to_raster` which calls
`self.read_virtualfile(vfname, kind=kind).contents.to_xarray()`
that sets registration and gtype from the header.
* Add doctest for load_dataarray with region argument
* Remove @kwargs_to_strings from _load_remote_dataset
* Sort list of source files alphabetically
---------
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
0 commit comments