Skip to content

Improve the description of rioxarray on the Ecosystem page #3686

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 4 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions doc/ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ can be directly used in data processing and plotting functions/methods of PyGMT.
add those tiles as basemap to matplotlib figures or write tile maps to disk into
geospatial raster files.

In PyGMT, {func}`pygmt.datasets.load_tile_map` and {class}`pygmt.Figure.tilemap` rely
on it.
In PyGMT, {func}`pygmt.datasets.load_tile_map` and {meth}`pygmt.Figure.tilemap` rely on it.

### rioxarray

Expand All @@ -73,13 +72,16 @@ of rasterio, it enables seamless reading, writing, and manipulation of multi-dim
arrays with geospatial attributes such as coordinate reference systems (CRS) and spatial
extent (bounds).

Currently, PyGMT relies on [rioxarray][] to save multi-band rasters to temporary files
in GeoTIFF format, to support processing and plotting 3-D {class}`xarray.DataArray`
images.
PyGMT relies on [rioxarray][] in several aspects:

1. To save multi-band rasters to temporary files in GeoTIFF format, to support processing
and plotting 3-D {class}`xarray.DataArray` images.
2. To write CRS information to the {class}`xarray.DataArray` objects.
3. To reproject raster tiles to the target CRS in {func}`pygmt.datasets.load_tile_map`.

```{note}
We're working towards removing the dependency of the [rioxarray][] package in
[PR #3468](https://github.com/GenericMappingTools/pygmt/pull/3468).
We're working towards avoiding temporary files when processing/plotting multi-band
rasters in [PR #3468](https://github.com/GenericMappingTools/pygmt/pull/3468).
```

### PyArrow
Expand Down
Loading