Skip to content

Commit f7b87f5

Browse files
[docs] Add link to auth page on rc files. Incidentally pdoc re-inserted missing date2index and date2num stuff.
1 parent 7c61f6e commit f7b87f5

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

‎docs/index.html‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
11731173
<span>def <span class="ident">date2index</span></span>(<span>dates, nctime, calendar=None, select='exact', has_year_zero=None)</span>
11741174
</code></dt>
11751175
<dd>
1176-
<div class="desc"><p>Return indices of a netCDF time variable corresponding to the given dates.</p>
1176+
<div class="desc"><p>date2index(dates, nctime, calendar=None, select=u'exact', has_year_zero=None)</p>
1177+
<p>Return indices of a netCDF time variable corresponding to the given dates.</p>
11771178
<p><strong>dates</strong>: A datetime object or a sequence of datetime objects.
11781179
The datetime objects should not include a time-zone offset.</p>
11791180
<p><strong>nctime</strong>: A netCDF time variable object. The nctime object must have a
@@ -1212,7 +1213,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
12121213
<span>def <span class="ident">date2num</span></span>(<span>dates, units, calendar=None, has_year_zero=None, longdouble=False)</span>
12131214
</code></dt>
12141215
<dd>
1215-
<div class="desc"><p>Return numeric time values given datetime objects. The units
1216+
<div class="desc"><p>date2num(dates, units, calendar=None, has_year_zero=None, longdouble=False)</p>
1217+
<p>Return numeric time values given datetime objects. The units
12161218
of the numeric time values are described by the <strong>units</strong> argument
12171219
and the <strong>calendar</strong> keyword. The datetime objects must
12181220
be in UTC with no time-zone offset.
@@ -1292,7 +1294,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
12921294
<span>def <span class="ident">num2date</span></span>(<span>times, units, calendar='standard', only_use_cftime_datetimes=True, only_use_python_datetimes=False, has_year_zero=None)</span>
12931295
</code></dt>
12941296
<dd>
1295-
<div class="desc"><p>Return datetime objects given numeric time values. The units
1297+
<div class="desc"><p>num2date(times, units, calendar=u'standard', only_use_cftime_datetimes=True, only_use_python_datetimes=False, has_year_zero=None)</p>
1298+
<p>Return datetime objects given numeric time values. The units
12961299
of the numeric time values are described by the <strong>units</strong> argument
12971300
and the <strong>calendar</strong> keyword. The returned datetime objects represent
12981301
UTC with no time-zone offset, even if the specified
@@ -1348,14 +1351,18 @@ <h2 class="section-title" id="header-functions">Functions</h2>
13481351
</code></dt>
13491352
<dd>
13501353
<div class="desc"><p><strong><code>rc_get(key)</code></strong></p>
1351-
<p>Returns the internal netcdf-c rc table value corresponding to key.</p></div>
1354+
<p>Returns the internal netcdf-c rc table value corresponding to key.
1355+
See <a href="https://docs.unidata.ucar.edu/netcdf-c/current/auth.html">https://docs.unidata.ucar.edu/netcdf-c/current/auth.html</a>
1356+
for more information on rc files and values.</p></div>
13521357
</dd>
13531358
<dt id="netCDF4.rc_set"><code class="name flex">
13541359
<span>def <span class="ident">rc_set</span></span>(<span>key, value)</span>
13551360
</code></dt>
13561361
<dd>
13571362
<div class="desc"><p><strong><code>rc_set(key, value)</code></strong></p>
1358-
<p>Sets the internal netcdf-c rc table value corresponding to key.</p></div>
1363+
<p>Sets the internal netcdf-c rc table value corresponding to key.
1364+
See <a href="https://docs.unidata.ucar.edu/netcdf-c/current/auth.html">https://docs.unidata.ucar.edu/netcdf-c/current/auth.html</a>
1365+
for more information on rc files and values.</p></div>
13591366
</dd>
13601367
<dt id="netCDF4.set_alignment"><code class="name flex">
13611368
<span>def <span class="ident">set_alignment</span></span>(<span>threshold, alignment)</span>

‎src/netCDF4/_netCDF4.pyx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,8 @@ def rc_get(key):
13231323
**```rc_get(key)```**
13241324
13251325
Returns the internal netcdf-c rc table value corresponding to key.
1326+
See <https://docs.unidata.ucar.edu/netcdf-c/current/auth.html>
1327+
for more information on rc files and values.
13261328
"""
13271329
cdef int ierr
13281330
cdef char *keyc
@@ -1345,7 +1347,9 @@ def rc_set(key, value):
13451347
**```rc_set(key, value)```**
13461348
13471349
Sets the internal netcdf-c rc table value corresponding to key.
1348-
"""
1350+
See <https://docs.unidata.ucar.edu/netcdf-c/current/auth.html>
1351+
for more information on rc files and values.
1352+
"""
13491353
cdef int ierr
13501354
cdef char *keyc
13511355
cdef char *valuec

0 commit comments

Comments
 (0)