Skip to content

Commit 05f7b09

Browse files
Improve the description of rioxarray on the Ecosystem page (#3686)
Co-authored-by: Yvonne Fröhlich <[email protected]>
1 parent e8bc582 commit 05f7b09

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/ecosystem.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ can be directly used in data processing and plotting functions/methods of PyGMT.
6363
add those tiles as basemap to matplotlib figures or write tile maps to disk into
6464
geospatial raster files.
6565

66-
In PyGMT, {func}`pygmt.datasets.load_tile_map` and {class}`pygmt.Figure.tilemap` rely
67-
on it.
66+
In PyGMT, {func}`pygmt.datasets.load_tile_map` and {meth}`pygmt.Figure.tilemap` rely on it.
6867

6968
### rioxarray
7069

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

76-
Currently, PyGMT relies on [rioxarray][] to save multi-band rasters to temporary files
77-
in GeoTIFF format, to support processing and plotting 3-D {class}`xarray.DataArray`
78-
images.
75+
PyGMT relies on [rioxarray][] in several aspects:
76+
77+
1. To save multi-band rasters to temporary files in GeoTIFF format, to support processing
78+
and plotting 3-D {class}`xarray.DataArray` images.
79+
2. To write CRS information to the {class}`xarray.DataArray` objects.
80+
3. To reproject raster tiles to the target CRS in {func}`pygmt.datasets.load_tile_map`.
7981

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

8587
### PyArrow

0 commit comments

Comments
 (0)