Skip to content

Commit 0c31fc4

Browse files
authored
Fix Xarray to xarray in source code and documentation (#4461)
1 parent f599ff9 commit 0c31fc4

11 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/ISSUE_TEMPLATE/4-release_checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ assignees: ''
2020

2121
**Before release**:
2222

23-
- [ ] Check [SPEC 0](https://scientific-python.org/specs/spec-0000/) to see if we need to bump the minimum supported versions of GMT, Python and core package dependencies (NumPy, pandas, Xarray)
23+
- [ ] Check [SPEC 0](https://scientific-python.org/specs/spec-0000/) to see if we need to bump the minimum supported versions of GMT, Python and core package dependencies (NumPy, pandas, xarray)
2424
- [ ] Review the ["PyGMT Team" page](https://www.pygmt.org/dev/team.html)
2525
- [ ] README looks good on TestPyPI. Visit [TestPyPI](https://test.pypi.org/project/pygmt/#history), click the latest pre-release, and check the homepage.
2626
- [ ] Review new parameter names added/changed for clarity and consistency across the API

doc/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Getting metadata from tabular or grid data:
199199
info
200200
grdinfo
201201

202-
Xarray Integration
202+
xarray Integration
203203
------------------
204204

205205
.. autosummary::

doc/changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
### Maintenance
6464

6565
* Add support for Python 3.14 ([#4150](https://github.com/GenericMappingTools/pygmt/pull/4150))
66-
* SPEC 0: Bump minimum supported version to Python 3.12, NumPy 2.0, and Xarray 2024.5 ([#4248](https://github.com/GenericMappingTools/pygmt/pull/4248), [#4090](https://github.com/GenericMappingTools/pygmt/pull/4090))
66+
* SPEC 0: Bump minimum supported version to Python 3.12, NumPy 2.0, and xarray 2024.5 ([#4248](https://github.com/GenericMappingTools/pygmt/pull/4248), [#4090](https://github.com/GenericMappingTools/pygmt/pull/4090))
6767
* DOC: Update naming convention in contributors guide: Separate words in parameter names by underscores ([#4284](https://github.com/GenericMappingTools/pygmt/pull/4284))
6868
* fmt_docstrings: Use string template syntax for docstring placeholders and support curly braces in docstrings ([#4210](https://github.com/GenericMappingTools/pygmt/pull/4210))
6969
* Remove dev dependency on "geodatasets" ([#4230](https://github.com/GenericMappingTools/pygmt/pull/4230))
@@ -136,7 +136,7 @@
136136

137137
* **BREAKING** Figure.text: Raise GMTTypeError if text is a sequence when position is given ([#4065](https://github.com/GenericMappingTools/pygmt/pull/4065))
138138
* Switch from pre-commit to prek ([#4082](https://github.com/GenericMappingTools/pygmt/pull/4082))
139-
* SPEC 0: Bump minimum supported version to pandas 2.2 and Xarray 2023.10 ([#4092](https://github.com/GenericMappingTools/pygmt/pull/4092), [#4091](https://github.com/GenericMappingTools/pygmt/pull/4091))
139+
* SPEC 0: Bump minimum supported version to pandas 2.2 and xarray 2023.10 ([#4092](https://github.com/GenericMappingTools/pygmt/pull/4092), [#4091](https://github.com/GenericMappingTools/pygmt/pull/4091))
140140
* Remove the support of non-aliased aliases in use_alias/fmt_docstrings ([#4042](https://github.com/GenericMappingTools/pygmt/pull/4042))
141141
* CI: Bump to macOS 26 in the GMT Dev Tests workflow ([#4084](https://github.com/GenericMappingTools/pygmt/pull/4084))
142142
* CI: Bump to macOS 14 in the GMT Legacy Tests workflow ([#3996](https://github.com/GenericMappingTools/pygmt/pull/3996))

doc/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ When writing tests, don't test everything that the GMT function already tests, s
601601
every unique combination of arguments. An exception to this would be the most popular
602602
methods, such as <code>pygmt.Figure.plot</code> and <code>pygmt.Figure.basemap</code>.
603603
The highest priority for tests should be the Python-specific code, such as numpy,
604-
pandas, and Xarray objects and the virtualfile mechanism.
604+
pandas, and xarray objects and the virtualfile mechanism.
605605

606606
If you're **new to testing**, see existing test files for examples of things to do.
607607
**Don't let the tests keep you from submitting your contribution!**

doc/ecosystem.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PyGMT provides a Python interface to the Generic Mapping Tools (GMT), which is a
44
line program that provides a wide range of tools for manipulating geospatial data and
55
making publication-quality maps and figures. PyGMT integrates well with the
66
[scientific Python ecosystem](https://scientific-python.org/), with [NumPy][] for its
7-
fundamental array data structure, [pandas][] for tabular data I/O and [Xarray][] for
7+
fundamental array data structure, [pandas][] for tabular data I/O and [xarray][] for
88
raster grids/images/cubes I/O.
99

1010
In addition to these core dependencies, PyGMT also relies on several optional packages to
@@ -32,9 +32,9 @@ designed to make working with "relational" or "labeled" data both easy and intui
3232
It aims to be the fundamental high-level building block for doing practical, real-world
3333
data analysis in Python.
3434

35-
### Xarray*
35+
### xarray*
3636

37-
[Xarray][] is an open source project and Python package that introduces labels in the
37+
[xarray][] is an open source project and Python package that introduces labels in the
3838
form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, which
3939
allows for more intuitive, more concise, and less error-prone user experience.
4040

@@ -67,7 +67,7 @@ In PyGMT, {func}`pygmt.datasets.load_tile_map` and {meth}`pygmt.Figure.tilemap`
6767

6868
### rioxarray
6969

70-
[rioxarray][] is a geospatial [Xarray][] extension powered by [rasterio][]. Built on top
70+
[rioxarray][] is a geospatial [xarray][] extension powered by [rasterio][]. Built on top
7171
of rasterio, it enables seamless reading, writing, and manipulation of multi-dimensional
7272
arrays with geospatial attributes such as coordinate reference systems (CRS) and spatial
7373
extent (bounds).

doc/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ PyGMT requires the following packages to be installed:
9494

9595
- [NumPy](https://numpy.org)
9696
- [pandas](https://pandas.pydata.org)
97-
- [Xarray](https://xarray.dev/)
97+
- [xarray](https://xarray.dev/)
9898
- [packaging](https://packaging.pypa.io)
9999

100100
:::{note}

doc/maintenance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ publishing the actual release notes at [](changes.md).
261261
`git shortlog vX.Y.Z..HEAD -sne --group=author --group=trailer:co-authored-by`).
262262
8. Update `doc/minversions.md` with new information on the new release version,
263263
including a vX.Y.Z documentation link, and minimum required versions of GMT, Python
264-
and core package dependencies (NumPy, pandas, Xarray). Follow
264+
and core package dependencies (NumPy, pandas, xarray). Follow
265265
[SPEC 0](https://scientific-python.org/specs/spec-0000/) for updates.
266266
9. Refresh citation information. Specifically, the BibTeX in `README.md` and
267267
`CITATION.cff` needs to be updated with any metadata changes, including the

doc/minversions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PyGMT has adopted [SPEC 0](https://scientific-python.org/specs/spec-0000/) along
2727
rest of the scientific Python ecosystem, and will therefore:
2828

2929
- Drop support for Python versions 3 years after their initial release.
30-
- Drop support for core package dependencies (NumPy, pandas, Xarray) 2 years after their
30+
- Drop support for core package dependencies (NumPy, pandas, xarray) 2 years after their
3131
initial release.
3232

3333
In addition to the above, the PyGMT team has also decided to:
@@ -44,7 +44,7 @@ drop support for core (and optional) package dependencies earlier than recommend
4444
compatibility reasons.
4545
:::
4646

47-
| PyGMT Version | Documentation | GMT | Python | NumPy | pandas | Xarray |
47+
| PyGMT Version | Documentation | GMT | Python | NumPy | pandas | xarray |
4848
|---|---|---|---|---|---|---|
4949
| [Dev][]* | <doc:dev>, [HTML+ZIP](doc:dev/pygmt-docs.zip), [PDF](doc:dev/pygmt-docs.pdf) | {{ requires.gmt }} | {{ requires.python }} | {{ requires.numpy }} | {{ requires.pandas }} | {{ requires.xarray }} |
5050
| <tag:v0.18.0> | <doc:v0.18.0>, <html:v0.18.0>, <pdf:v0.18.0> | >=6.5.0 | >=3.12 | >=2.0 | >=2.2 | >=2024.5 |

pygmt/_show_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def show_versions(file: TextIO | None = sys.stdout) -> None:
145145
146146
- PyGMT itself
147147
- System information (Python version, Operating System)
148-
- Core dependency versions (NumPy, pandas, Xarray, etc)
148+
- Core dependency versions (NumPy, pandas, xarray, etc)
149149
- GDAL and Ghostscript versions
150150
- GMT library information
151151

pygmt/xarray/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
PyGMT integration with Xarray accessors and backends.
2+
PyGMT integration with xarray accessors and backends.
33
"""
44

55
from pygmt.xarray.accessor import GMTDataArrayAccessor

0 commit comments

Comments
 (0)