Skip to content

Commit 291ec71

Browse files
committed
Better links in whats-new
1 parent cea21cd commit 291ec71

File tree

5 files changed

+37
-29
lines changed

5 files changed

+37
-29
lines changed

doc/api.rst

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ DataArray
1010
:toctree: generated/
1111
:template: autosummary/accessor_attribute.rst
1212

13+
DataArray.cf.axes
14+
DataArray.cf.cell_measures
15+
DataArray.cf.coordinates
16+
DataArray.cf.standard_names
1317
DataArray.cf.plot
1418

1519
.. autosummary::
1620
:toctree: generated/
1721
:template: autosummary/accessor_method.rst
1822

23+
DataArray.cf.__getitem__
1924
DataArray.cf.describe
20-
DataArray.cf.standard_names
21-
DataArray.cf.keys
22-
DataArray.cf.axes
23-
DataArray.cf.coordinates
24-
DataArray.cf.cell_measures
2525
DataArray.cf.guess_coord_axis
26+
DataArray.cf.keys
2627
DataArray.cf.rename_like
2728

2829
Dataset
@@ -32,20 +33,23 @@ Dataset
3233
:toctree: generated/
3334
:template: autosummary/accessor_attribute.rst
3435

36+
Dataset.cf.axes
37+
Dataset.cf.cell_measures
38+
Dataset.cf.coordinates
39+
Dataset.cf.standard_names
40+
3541
.. autosummary::
3642
:toctree: generated/
3743
:template: autosummary/accessor_method.rst
3844

45+
DataArray.cf.__getitem__
3946
Dataset.cf.add_bounds
47+
Dataset.cf.bounds_to_vertices
4048
Dataset.cf.decode_vertical_coords
4149
Dataset.cf.describe
4250
Dataset.cf.get_bounds
43-
Dataset.cf.bounds_to_vertices
44-
Dataset.cf.standard_names
45-
Dataset.cf.keys
46-
Dataset.cf.axes
47-
Dataset.cf.coordinates
4851
Dataset.cf.guess_coord_axis
52+
Dataset.cf.keys
4953
Dataset.cf.rename_like
5054

5155
.. currentmodule:: cf_xarray

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@
315315
autosummary_generate = True
316316

317317
autodoc_typehints = "none"
318-
318+
autodoc_default_options = {
319+
"members": True,
320+
"undoc-members": True,
321+
"private-members": True,
322+
}
319323
napoleon_use_param = True
320324
napoleon_use_rtype = True

doc/criteria.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Coordinates
2626

2727
Names
2828
~~~~~
29-
Regex used by :meth:`DataArray.cf.guess_coord_axis` and :meth:`Dataset.cf.guess_coord_axis` for identifying variables using their names.
29+
Regex used by :py:meth:`DataArray.cf.guess_coord_axis` and :py:meth:`Dataset.cf.guess_coord_axis` for identifying variables using their names.
3030

3131
.. csv-table::
3232
:file: _build/csv/all_regex.csv

doc/whats-new.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. currentmodule:: cf_xarray
1+
.. currentmodule:: xarray
22

33
What's New
44
----------
@@ -9,9 +9,9 @@ v0.4.1 (unreleased)
99
- Added scripts to document CF criteria with tables. By `Mattia Almansi`_.
1010
- Support for ``.drop()``, ``.drop_vars()``, ``.drop_sel()``, ``.drop_dims()``, ``.set_coords()``, ``.reset_coords()``. By `Mattia Almansi`_.
1111
- Support for using ``standard_name`` in more functions. (:pr:`128`) By `Deepak Cherian`_
12-
- Allow ``DataArray.cf[]`` with standard names. By `Deepak Cherian`_
13-
- Rewrite the ``values`` of ``.cf.coords`` and ``.cf.data_vars`` with objects returned
14-
by ``.cf.__getitem___``. This allows extraction of DataArrays when there are clashes
12+
- Allow :py:meth:`DataArray.cf.__getitem__` with standard names. By `Deepak Cherian`_
13+
- Rewrite the ``values`` of :py:attr:`Dataset.coords` and :py:attr:`Dataset.data_vars` with objects returned
14+
by :py:meth:`Dataset.cf.__getitem__`. This allows extraction of DataArrays when there are clashes
1515
between DataArray names and "special" CF names like ``T``.
1616
(:issue:`129`, :pr:`130`). By `Deepak Cherian`_
1717

@@ -23,13 +23,12 @@ v0.4.0 (Jan 22, 2021)
2323

2424
v0.3.1 (Nov 25, 2020)
2525
=====================
26-
- Support ``Dataset.cf.cell_measures``. By `Deepak Cherian`_.
27-
- Added ``.axes`` to return a dictionary mapping available Axis standard names to variable names of an xarray object, ``.coordinates`` for Coordinates,
28-
``.cell_measures`` for Cell Measures, and ``.standard_names`` for all variables. `Kristen Thyng`_ and `Mattia Almansi`_.
29-
- Changed ``get_valid_keys()`` to ``.keys()``. `Kristen Thyng`_.
30-
- Added ``.cf.decode_vertical_coords`` for decoding of parameterized vertical coordinate variables.
26+
- Support :py:attr:`Dataset.cf.cell_measures`. By `Deepak Cherian`_.
27+
- Added :py:attr:`Dataset.cf.axes` to return a dictionary mapping available Axis standard names to variable names of an xarray object, :py:attr:`Dataset.cf.coordinates` for Coordinates, :py:attr:`Dataset.cf.cell_measures` for Cell Measures, and :py:attr:`Dataset.cf.standard_names` for all variables. `Kristen Thyng`_ and `Mattia Almansi`_.
28+
- Changed :py:meth:`Dataset.cf.get_valid_keys` to :py:meth:`Dataset.cf.keys`. `Kristen Thyng`_.
29+
- Added :py:meth:`Dataset.cf.decode_vertical_coords` for decoding of parameterized vertical coordinate variables.
3130
(:issue:`34`, :pr:`103`). `Deepak Cherian`_.
32-
- Added top-level :py:func:`bounds_to_vertices` and :py:func:`vertices_to_bounds` as well as ``.cf.bounds_to_vertices``
31+
- Added top-level :py:func:`~cf_xarray.bounds_to_vertices` and :py:func:`~cf_xarray.vertices_to_bounds` as well as :py:meth:`Dataset.cf.bounds_to_vertices`
3332
to convert from coordinate bounds in a CF format (shape (nx, 2)) to a vertices format (shape (nx+1)).
3433
(:pr:`108`). `Pascal Bourgault`_.
3534

@@ -45,7 +44,7 @@ model in particular. Thanks to Kristen Thyng for opening many issues.
4544
v0.2.1 (Aug 06, 2020)
4645
=====================
4746
- Support for the ``bounds`` attribute. (:pr:`68`, :issue:`32`). `Deepak Cherian`_.
48-
- Add ``.cf.guess_coord_axis`` to automagically guess axis and coord names, and add
47+
- Add :py:meth:`Dataset.cf.guess_coord_axis` to automagically guess axis and coord names, and add
4948
appropriate attributes. (:pr:`67`, :issue:`46`). `Deepak Cherian`_.
5049

5150
v0.2.0 (Jul 28, 2020)
@@ -54,21 +53,22 @@ v0.2.0 (Jul 28, 2020)
5453
- ``cf_xarray`` is now available on conda-forge. Thanks to `Anderson Banihirwe`_ and `Filipe Fernandes`_
5554
- Remap datetime accessor syntax for groupby. E.g. ``.cf.groupby("T.month")`` → ``.cf.groupby("ocean_time.month")``.
5655
(:pr:`64`, :issue:`6`). `Julia Kent`_.
57-
- Added ``.cf.rename_like`` to rename matching variables. Only coordinate variables
56+
- Added :py:meth:`Dataset.cf.rename_like` to rename matching variables. Only coordinate variables
5857
i.e. those that match the criteria for ``("latitude", "longitude", "vertical", "time")``
5958
are renamed for now. (:pr:`55`) `Deepak Cherian`_.
60-
- Added ``.cf.add_bounds`` to add guessed bounds for 1D coordinates. (:pr:`53`) `Deepak Cherian`_.
59+
- Added :py:meth:`Dataset.cf.add_bounds` to add guessed bounds for 1D coordinates. (:pr:`53`) `Deepak Cherian`_.
6160

6261
v0.1.5
6362
======
63+
64+
- Begin documenting things for contributors in :ref:`contribut`.
65+
- Parse ``ancillary_variables`` attribute. These variables are converted to coordinate variables.
66+
- Support :py:meth:`Dataset.reset_index`
6467
- Wrap ``.sizes`` and ``.chunks``. (:pr:`42`) `Deepak Cherian`_.
6568

6669
>>> ds.cf.sizes
6770
{'X': 53, 'Y': 25, 'T': 2920, 'longitude': 53, 'latitude': 25, 'time': 2920}
6871

69-
- Begin documenting things for contributors in :ref:`contribut`.
70-
- Parse ``ancillary_variables`` attribute. These variables are converted to coordinate variables.
71-
- Support ``reset_index``
7272

7373
v0.1.4
7474
======

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ test = pytest
116116
nobeep = True
117117

118118
[rstcheck]
119-
ignore_roles=pr,issue,meth
119+
ignore_roles=pr,issue,py:meth,py:attr
120120
ignore_directives=ipython,autodata,csv-table
121121
ignore_messages=(is not referenced\.$)

0 commit comments

Comments
 (0)