Skip to content

Commit 2fa2939

Browse files
authored
Add cf table reference (#236)
* Update accessor.py * update url
1 parent f1c35fc commit 2fa2939

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cf_xarray/accessor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ def add_canonical_attributes(
15321532
) -> Union[Dataset, DataArray]:
15331533
"""
15341534
Add canonical CF attributes to variables with standard names.
1535-
Attributes are parsed from the official CF standard name table.
1535+
Attributes are parsed from the official CF standard name table [1]_.
15361536
This function adds an entry to the "history" attribute.
15371537
15381538
Parameters
@@ -1554,6 +1554,10 @@ def add_canonical_attributes(
15541554
Notes
15551555
-----
15561556
The ``"units"`` attribute is never added to datetime-like variables.
1557+
1558+
References
1559+
----------
1560+
.. [1] https://cfconventions.org/standard-names.html
15571561
"""
15581562

15591563
# Arguments to add to history

doc/examples/introduction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@
10071007
"## Feature: Add canonical CF attributes\n",
10081008
"\n",
10091009
"`cf_xarray` can add missing canonical CF attributes consistent with the official\n",
1010-
"[CF standard name table](https://cfconventions.org/Data/cf-standard-names/77/build/cf-standard-name-table.html).\n"
1010+
"[CF standard name table](https://cfconventions.org/standard-names.html).\n"
10111011
]
10121012
},
10131013
{

0 commit comments

Comments
 (0)