Skip to content

Commit 40534ef

Browse files
v3.17.0 documentation
1 parent eb9af8c commit 40534ef

File tree

4,614 files changed

+172579
-33755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,614 files changed

+172579
-33755
lines changed

docs/2_to_3_changes.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<h1 class="logo"><a href="index.html">cf 3.16.2</a></h1>
47+
<h1 class="logo"><a href="index.html">cf 3.17.0</a></h1>
4848

4949

5050

@@ -75,12 +75,10 @@ <h3 id="searchlabel">Quick search</h3>
7575
<script>$('#searchbox').show(0);</script>
7676
<ul>
7777
<li class="toctree-l1"><a class="reference internal" href="introduction.html"><strong>Introduction</strong></a></li>
78-
<li class="toctree-l1"><a class="reference internal" href="cf_data_model.html"><strong>CF data model</strong></a></li>
7978
<li class="toctree-l1"><a class="reference internal" href="installation.html"><strong>Installation</strong></a></li>
8079
<li class="toctree-l1"><a class="reference internal" href="cheat_sheet.html"><strong>Cheat Sheet</strong></a></li>
8180
<li class="toctree-l1"><a class="reference internal" href="recipes/index.html"><strong>Recipes using cf</strong></a></li>
8281
<li class="toctree-l1"><a class="reference internal" href="tutorial.html"><strong>Tutorial</strong></a></li>
83-
<li class="toctree-l1"><a class="reference internal" href="analysis.html"><strong>Analysis</strong></a></li>
8482
<li class="toctree-l1"><a class="reference internal" href="api_reference.html"><strong>API reference</strong></a></li>
8583
<li class="toctree-l1"><a class="reference internal" href="aggregation_rules.html"><strong>Aggregation rules</strong></a></li>
8684
<li class="toctree-l1"><a class="reference internal" href="performance.html"><strong>Performance</strong></a></li>
@@ -142,7 +140,7 @@ <h2>Python<a class="headerlink" href="#python" title="Permalink to this headline
142140
</section>
143141
<section id="in-place-operations">
144142
<h2>In-place operations<a class="headerlink" href="#in-place-operations" title="Permalink to this headline"></a></h2>
145-
<p>At version 3.x, in-place operations return <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a>, rather than the
143+
<p>At version 3.x, in-place operations return <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a>, rather than the
146144
modified construct. The keyword that defines the operation to be
147145
in-place is now <em>inplace</em> (rather than <em>i</em>).</p>
148146
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">g</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">tranpose</span><span class="p">()</span>
@@ -491,7 +489,7 @@ <h2>Changes to the API of existing methods<a class="headerlink" href="#changes-
491489
<div class="clearer"></div>
492490
</div>
493491
<div class="footer">
494-
&copy;2024, NCAS | Page built on 2024-04-26.
492+
&copy;2025, NCAS | Page built on 2025-04-02.
495493

496494
|
497495
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.5</a>

docs/Changelog.html

Lines changed: 339 additions & 253 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.

docs/_downloads/field_analysis.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,8 @@
146146
c = a.regridc([time], axes='T', method='linear')
147147
v = cf.read('vertical.nc')[0]
148148
print(v)
149-
z_p = v.construct('Z')
150-
print(z_p.array)
151-
z_ln_p = z_p.log()
152-
z_ln_p.axis = 'Z'
153-
print(z_ln_p.array)
154-
_ = v.replace_construct('Z', new=z_ln_p)
155-
new_z_p = cf.DimensionCoordinate(data=cf.Data([800, 705, 632, 510, 320.], 'hPa'))
156-
new_z_ln_p = new_z_p.log()
157-
new_z_ln_p.axis = 'Z'
158-
new_v = v.regridc([new_z_ln_p], axes='Z', method='linear')
159-
new_v.replace_construct('Z', new=new_z_p)
149+
new_z = cf.DimensionCoordinate(data=cf.Data([800, 705, 632, 510, 320.], 'hPa'))
150+
new_v = v.regridc([new_z], axes='Z', method='linear', z='Z', ln_z=True)
160151
print(new_v)
161152
q, t = cf.read('file.nc')
162153
t.data.stats()
-70.8 KB
Binary file not shown.

docs/_downloads/recipes_python.zip

-36.8 KB
Binary file not shown.

docs/_downloads/tutorial.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
y = cf.read('$PWD') # Raises Exception
1212
except Exception:
1313
pass
14-
y = cf.read('$PWD', ignore_read_error=True)
14+
y = cf.read('$PWD', file_type='netCDF')
1515
len(y)
1616
x = cf.read('file.nc')
1717
x
@@ -35,7 +35,7 @@
3535
len(y * 4)
3636
for f in y:
3737
print('field:', repr(f))
38-
q, t = cf.read('file.nc')
38+
t = cf.read('file.nc')[1]
3939
t.properties()
4040
t.has_property('standard_name')
4141
t.get_property('standard_name')
@@ -347,6 +347,8 @@
347347
lon.get_geometry()
348348
print(lon.bounds.data.array)
349349
print(lon.get_interior_ring().data.array)
350+
f = cf.example_field(8)
351+
print(f)
350352
a = t.constructs.get('domainancillary0')
351353
print(a.array)
352354
bounds = a.bounds
@@ -763,8 +765,8 @@
763765
import netCDF4
764766
nc = netCDF4.Dataset('file.nc', 'r')
765767
v = nc.variables['ta']
766-
netcdf_array = cf.NetCDFArray(filename='file.nc', address='ta',
767-
dtype=v.dtype, shape=v.shape)
768+
netcdf_array = cf.NetCDF4Array(filename='file.nc', address='ta',
769+
dtype=v.dtype, shape=v.shape)
768770
data_disk = cf.Data(netcdf_array)
769771
numpy_array = v[...]
770772
data_memory = cf.Data(numpy_array)
280 KB
Loading
280 KB
Loading
349 KB
Loading

0 commit comments

Comments
 (0)