From 895040086d7d5d78dc74b6c60a74c221b8a77e28 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 13 Dec 2024 12:30:49 +0800 Subject: [PATCH 1/3] Improve the description of the rioxarray on the Ecosystem page --- doc/ecosystem.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/ecosystem.md b/doc/ecosystem.md index 0f43835d7d3..8f67e38b344 100644 --- a/doc/ecosystem.md +++ b/doc/ecosystem.md @@ -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 @@ -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 From f408fe6d83d8d78bda1a78b079182be6aaa49a9a Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 13 Dec 2024 14:37:21 +0800 Subject: [PATCH 2/3] Fix pygmt.Figure.tilemap to pygmt.datasets.load_tile_map --- doc/ecosystem.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ecosystem.md b/doc/ecosystem.md index 8f67e38b344..6d92d2353bd 100644 --- a/doc/ecosystem.md +++ b/doc/ecosystem.md @@ -77,7 +77,7 @@ 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`. +3. To reproject raster tiles to the target CRS in {func}`pygmt.datasets.load_tile_map`. ```{note} We're working towards to get rid of temporary files when processing/plotting multi-band From ec3bf8b1b294b8c9f93cad12fa9271a6191643bc Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 13 Dec 2024 21:52:41 +0800 Subject: [PATCH 3/3] Update doc/ecosystem.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com> --- doc/ecosystem.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ecosystem.md b/doc/ecosystem.md index 6d92d2353bd..25490f9f7ad 100644 --- a/doc/ecosystem.md +++ b/doc/ecosystem.md @@ -80,7 +80,7 @@ PyGMT relies on [rioxarray][] in several aspects: 3. To reproject raster tiles to the target CRS in {func}`pygmt.datasets.load_tile_map`. ```{note} -We're working towards to get rid of temporary files when processing/plotting multi-band +We're working towards avoiding temporary files when processing/plotting multi-band rasters in [PR #3468](https://github.com/GenericMappingTools/pygmt/pull/3468). ```