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

+3-5
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

+339-253
Large diffs are not rendered by default.

docs/_downloads/cf_tutorial_files.zip

0 Bytes
Binary file not shown.

docs/_downloads/field_analysis.py

+2-11
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()

docs/_downloads/recipes_jupyter.zip

-70.8 KB
Binary file not shown.

docs/_downloads/recipes_python.zip

-36.8 KB
Binary file not shown.

docs/_downloads/tutorial.py

+6-4
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
349 KB
Loading
200 KB
Loading
200 KB
Loading
320 KB
Loading
320 KB
Loading
248 KB
Loading
248 KB
Loading

docs/_static/copybutton.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const messages = {
2020
},
2121
'fr' : {
2222
'copy': 'Copier',
23-
'copy_to_clipboard': 'Copier dans le presse-papier',
23+
'copy_to_clipboard': 'Copié dans le presse-papier',
2424
'copy_success': 'Copié !',
2525
'copy_failure': 'Échec de la copie',
2626
},
@@ -224,7 +224,7 @@ var copyTargetText = (trigger) => {
224224
var target = document.querySelector(trigger.attributes['data-clipboard-target'].value);
225225

226226
// get filtered text
227-
let exclude = '.linenos';
227+
let exclude = '.linenos, .gp';
228228

229229
let text = filterText(target, exclude);
230230
return formatCopyText(text, '$ ', false, true, true, true, '', '')

docs/_static/documentation_options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '3.16.2',
3+
VERSION: '3.17.0',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/_static/pygments.css

+62-61
Original file line numberDiff line numberDiff line change
@@ -5,79 +5,80 @@ td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5
55
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
66
.highlight .hll { background-color: #ffffcc }
77
.highlight { background: #f8f8f8; }
8-
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
9-
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
10-
.highlight .g { color: #000000 } /* Generic */
8+
.highlight .c { color: #8F5902; font-style: italic } /* Comment */
9+
.highlight .err { color: #A40000; border: 1px solid #EF2929 } /* Error */
10+
.highlight .g { color: #000 } /* Generic */
1111
.highlight .k { color: #004461; font-weight: bold } /* Keyword */
12-
.highlight .l { color: #000000 } /* Literal */
13-
.highlight .n { color: #000000 } /* Name */
12+
.highlight .l { color: #000 } /* Literal */
13+
.highlight .n { color: #000 } /* Name */
1414
.highlight .o { color: #582800 } /* Operator */
15-
.highlight .x { color: #000000 } /* Other */
16-
.highlight .p { color: #000000; font-weight: bold } /* Punctuation */
17-
.highlight .ch { color: #8f5902; font-style: italic } /* Comment.Hashbang */
18-
.highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
19-
.highlight .cp { color: #8f5902 } /* Comment.Preproc */
20-
.highlight .cpf { color: #8f5902; font-style: italic } /* Comment.PreprocFile */
21-
.highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */
22-
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
23-
.highlight .gd { color: #a40000 } /* Generic.Deleted */
24-
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
25-
.highlight .gr { color: #ef2929 } /* Generic.Error */
15+
.highlight .x { color: #000 } /* Other */
16+
.highlight .p { color: #000; font-weight: bold } /* Punctuation */
17+
.highlight .ch { color: #8F5902; font-style: italic } /* Comment.Hashbang */
18+
.highlight .cm { color: #8F5902; font-style: italic } /* Comment.Multiline */
19+
.highlight .cp { color: #8F5902 } /* Comment.Preproc */
20+
.highlight .cpf { color: #8F5902; font-style: italic } /* Comment.PreprocFile */
21+
.highlight .c1 { color: #8F5902; font-style: italic } /* Comment.Single */
22+
.highlight .cs { color: #8F5902; font-style: italic } /* Comment.Special */
23+
.highlight .gd { color: #A40000 } /* Generic.Deleted */
24+
.highlight .ge { color: #000; font-style: italic } /* Generic.Emph */
25+
.highlight .ges { color: #000 } /* Generic.EmphStrong */
26+
.highlight .gr { color: #EF2929 } /* Generic.Error */
2627
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
2728
.highlight .gi { color: #00A000 } /* Generic.Inserted */
28-
.highlight .go { color: #888888 } /* Generic.Output */
29+
.highlight .go { color: #888 } /* Generic.Output */
2930
.highlight .gp { color: #745334 } /* Generic.Prompt */
30-
.highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */
31+
.highlight .gs { color: #000; font-weight: bold } /* Generic.Strong */
3132
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
32-
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
33+
.highlight .gt { color: #A40000; font-weight: bold } /* Generic.Traceback */
3334
.highlight .kc { color: #004461; font-weight: bold } /* Keyword.Constant */
3435
.highlight .kd { color: #004461; font-weight: bold } /* Keyword.Declaration */
3536
.highlight .kn { color: #004461; font-weight: bold } /* Keyword.Namespace */
3637
.highlight .kp { color: #004461; font-weight: bold } /* Keyword.Pseudo */
3738
.highlight .kr { color: #004461; font-weight: bold } /* Keyword.Reserved */
3839
.highlight .kt { color: #004461; font-weight: bold } /* Keyword.Type */
39-
.highlight .ld { color: #000000 } /* Literal.Date */
40-
.highlight .m { color: #990000 } /* Literal.Number */
41-
.highlight .s { color: #4e9a06 } /* Literal.String */
42-
.highlight .na { color: #c4a000 } /* Name.Attribute */
40+
.highlight .ld { color: #000 } /* Literal.Date */
41+
.highlight .m { color: #900 } /* Literal.Number */
42+
.highlight .s { color: #4E9A06 } /* Literal.String */
43+
.highlight .na { color: #C4A000 } /* Name.Attribute */
4344
.highlight .nb { color: #004461 } /* Name.Builtin */
44-
.highlight .nc { color: #000000 } /* Name.Class */
45-
.highlight .no { color: #000000 } /* Name.Constant */
46-
.highlight .nd { color: #888888 } /* Name.Decorator */
47-
.highlight .ni { color: #ce5c00 } /* Name.Entity */
48-
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
49-
.highlight .nf { color: #000000 } /* Name.Function */
50-
.highlight .nl { color: #f57900 } /* Name.Label */
51-
.highlight .nn { color: #000000 } /* Name.Namespace */
52-
.highlight .nx { color: #000000 } /* Name.Other */
53-
.highlight .py { color: #000000 } /* Name.Property */
45+
.highlight .nc { color: #000 } /* Name.Class */
46+
.highlight .no { color: #000 } /* Name.Constant */
47+
.highlight .nd { color: #888 } /* Name.Decorator */
48+
.highlight .ni { color: #CE5C00 } /* Name.Entity */
49+
.highlight .ne { color: #C00; font-weight: bold } /* Name.Exception */
50+
.highlight .nf { color: #000 } /* Name.Function */
51+
.highlight .nl { color: #F57900 } /* Name.Label */
52+
.highlight .nn { color: #000 } /* Name.Namespace */
53+
.highlight .nx { color: #000 } /* Name.Other */
54+
.highlight .py { color: #000 } /* Name.Property */
5455
.highlight .nt { color: #004461; font-weight: bold } /* Name.Tag */
55-
.highlight .nv { color: #000000 } /* Name.Variable */
56+
.highlight .nv { color: #000 } /* Name.Variable */
5657
.highlight .ow { color: #004461; font-weight: bold } /* Operator.Word */
57-
.highlight .pm { color: #000000; font-weight: bold } /* Punctuation.Marker */
58-
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
59-
.highlight .mb { color: #990000 } /* Literal.Number.Bin */
60-
.highlight .mf { color: #990000 } /* Literal.Number.Float */
61-
.highlight .mh { color: #990000 } /* Literal.Number.Hex */
62-
.highlight .mi { color: #990000 } /* Literal.Number.Integer */
63-
.highlight .mo { color: #990000 } /* Literal.Number.Oct */
64-
.highlight .sa { color: #4e9a06 } /* Literal.String.Affix */
65-
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
66-
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
67-
.highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */
68-
.highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
69-
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
70-
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
71-
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
72-
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
73-
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
74-
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
75-
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
76-
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
77-
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
78-
.highlight .fm { color: #000000 } /* Name.Function.Magic */
79-
.highlight .vc { color: #000000 } /* Name.Variable.Class */
80-
.highlight .vg { color: #000000 } /* Name.Variable.Global */
81-
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
82-
.highlight .vm { color: #000000 } /* Name.Variable.Magic */
83-
.highlight .il { color: #990000 } /* Literal.Number.Integer.Long */
58+
.highlight .pm { color: #000; font-weight: bold } /* Punctuation.Marker */
59+
.highlight .w { color: #F8F8F8; text-decoration: underline } /* Text.Whitespace */
60+
.highlight .mb { color: #900 } /* Literal.Number.Bin */
61+
.highlight .mf { color: #900 } /* Literal.Number.Float */
62+
.highlight .mh { color: #900 } /* Literal.Number.Hex */
63+
.highlight .mi { color: #900 } /* Literal.Number.Integer */
64+
.highlight .mo { color: #900 } /* Literal.Number.Oct */
65+
.highlight .sa { color: #4E9A06 } /* Literal.String.Affix */
66+
.highlight .sb { color: #4E9A06 } /* Literal.String.Backtick */
67+
.highlight .sc { color: #4E9A06 } /* Literal.String.Char */
68+
.highlight .dl { color: #4E9A06 } /* Literal.String.Delimiter */
69+
.highlight .sd { color: #8F5902; font-style: italic } /* Literal.String.Doc */
70+
.highlight .s2 { color: #4E9A06 } /* Literal.String.Double */
71+
.highlight .se { color: #4E9A06 } /* Literal.String.Escape */
72+
.highlight .sh { color: #4E9A06 } /* Literal.String.Heredoc */
73+
.highlight .si { color: #4E9A06 } /* Literal.String.Interpol */
74+
.highlight .sx { color: #4E9A06 } /* Literal.String.Other */
75+
.highlight .sr { color: #4E9A06 } /* Literal.String.Regex */
76+
.highlight .s1 { color: #4E9A06 } /* Literal.String.Single */
77+
.highlight .ss { color: #4E9A06 } /* Literal.String.Symbol */
78+
.highlight .bp { color: #3465A4 } /* Name.Builtin.Pseudo */
79+
.highlight .fm { color: #000 } /* Name.Function.Magic */
80+
.highlight .vc { color: #000 } /* Name.Variable.Class */
81+
.highlight .vg { color: #000 } /* Name.Variable.Global */
82+
.highlight .vi { color: #000 } /* Name.Variable.Instance */
83+
.highlight .vm { color: #000 } /* Name.Variable.Magic */
84+
.highlight .il { color: #900 } /* Literal.Number.Integer.Long */

0 commit comments

Comments
 (0)