Skip to content

Commit

Permalink
Improve the description of the rioxarray on the Ecosystem page
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Dec 13, 2024
1 parent 351247d commit 8950400
Showing 1 changed file with 9 additions and 7 deletions.
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 {meth}`pygmt.Figure.tilemap`.

```{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 to get rid of temporary files when processing/plotting multi-band
rasters in [PR #3468](https://github.com/GenericMappingTools/pygmt/pull/3468).
```

### PyArrow
Expand Down

0 comments on commit 8950400

Please sign in to comment.