forked from pygeode/pygeode.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreduce.html
More file actions
587 lines (563 loc) · 38.9 KB
/
reduce.html
File metadata and controls
587 lines (563 loc) · 38.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Axis Reductions — PyGeode 1.0 alpha documentation</title>
<link rel="stylesheet" href="_static/pygtheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '1.0 alpha',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="PyGeode 1.0 alpha documentation" href="index.html" />
<link rel="up" title="Var class overview" href="var.html" />
<link rel="next" title="Array manipulation routines" href="varops.html" />
<link rel="prev" title="Element-wise math" href="ufunc.html" />
<link href="http://fonts.googleapis.com/css?family=Ubuntu:300,300italic,regular,italic,500,500italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="varops.html" title="Array manipulation routines"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="ufunc.html" title="Element-wise math"
accesskey="P">previous</a> |</li>
<li><a href="index.html">PyGeode 1.0 alpha documentation</a> »</li>
<li><a href="reference.html" >Reference</a> »</li>
<li><a href="var.html" accesskey="U">Var class overview</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="axis-reductions">
<h1>Axis Reductions<a class="headerlink" href="#axis-reductions" title="Permalink to this headline">¶</a></h1>
<p>These functions compute summary statistics over specified axes of a variable.
In general multiple axes can be reduced over at the same time. Many of them
wrap similar numpy functions, though they are also capable of performing these
operations on datasets too large to fit in memory. Most operations have two
versions, one which computes the reduction including every element without
checking for the presence of NaNs, and one which ignores any element which is a NaN, adjusting
the relevant normalization</p>
<dl class="method">
<dt id="pygeode.Var.mean">
<tt class="descclassname">Var.</tt><tt class="descname">mean</tt><big>(</big><em>var</em>, <em>*axes</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pygeode.Var.mean" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the mean of this variable. If weights are present on any of the
axes, a weighted mean is computed by default.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the average should be computed. If none are provided, the
mean is computed over the whole domain.</p>
</div></blockquote>
<p><strong>weights</strong> : boolean or <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> (optional)</p>
<blockquote>
<div><p>If provided, a weighted mean is performed. If True (the default), the default
weights associated with the variable are used (getweights). If False, or None, no
weighting is performed. Finally, custom weights can be provided in the form of a
<a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a>; this var must be defined on a subset of the axes being averaged over.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the mean is computed over
the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.nanmean" title="pygeode.Var.nanmean"><tt class="xref py py-obj docutils literal"><span class="pre">nanmean</span></tt></a>, <a class="reference internal" href="varquery.html#pygeode.Var.getweights" title="pygeode.Var.getweights"><tt class="xref py py-obj docutils literal"><span class="pre">getweights</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.nanmean">
<tt class="descclassname">Var.</tt><tt class="descname">nanmean</tt><big>(</big><em>var</em>, <em>*axes</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pygeode.Var.nanmean" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the mean of this variable, ignoring any NaNs in the domain.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the average should be computed. If none are provided, the
mean is computed over the whole domain.</p>
</div></blockquote>
<p><strong>weights</strong> : boolean or <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> (optional)</p>
<blockquote>
<div><p>If provided, a weighted mean is performed. If True (the default), the default
weights associated with the variable are used (getweights). If False, or None, no
weighting is performed. Finally, custom weights can be provided in the form of a
<a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a>; this var must be defined on a subset of the axes being averaged over.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the mean is computed over
the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.mean" title="pygeode.Var.mean"><tt class="xref py py-obj docutils literal"><span class="pre">mean</span></tt></a>, <a class="reference internal" href="varquery.html#pygeode.Var.getweights" title="pygeode.Var.getweights"><tt class="xref py py-obj docutils literal"><span class="pre">getweights</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.sum">
<tt class="descclassname">Var.</tt><tt class="descname">sum</tt><big>(</big><em>var</em>, <em>*axes</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pygeode.Var.sum" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the sum of this variable. NB: Unlike mean, weights are not used by default.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the sum should be computed. If none are provided, the
sum is computed over the whole domain.</p>
</div></blockquote>
<p><strong>weights</strong> : boolean or <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> (optional)</p>
<blockquote>
<div><p>If provided, a weighted sum is performed. If True, the default
weights associated with the variable are used (getweights). If False or None (the default), no
weighting is performed. Finally, custom weights can be provided in the form of a <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a>;
this var must be defined on a subset of the axes being summed over.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the sum is computed over
the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="varquery.html#pygeode.Var.getweights" title="pygeode.Var.getweights"><tt class="xref py py-obj docutils literal"><span class="pre">getweights</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.nansum">
<tt class="descclassname">Var.</tt><tt class="descname">nansum</tt><big>(</big><em>var</em>, <em>*axes</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pygeode.Var.nansum" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the sum of this variable, ignoring any NaNs.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the sum should be computed. If none are provided, the
sum is computed over the whole domain.</p>
</div></blockquote>
<p><strong>weights</strong> : boolean or <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> (optional)</p>
<blockquote>
<div><p>If provided, a weighted sum is performed. If True, the default
weights associated with the variable are used (getweights). If False or None (the default), no
weighting is performed. Finally, custom weights can be provided in the form of a <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a>;
this var must be defined on a subset of the axes being summed over.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the sum is computed over
the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="varquery.html#pygeode.Var.getweights" title="pygeode.Var.getweights"><tt class="xref py py-obj docutils literal"><span class="pre">getweights</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.stdev">
<tt class="descclassname">Var.</tt><tt class="descname">stdev</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.stdev" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the standard deviation of this variable.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the standard deviation should be computed. If none are provided, the
standard deviation is computed over the whole domain.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the variance is
computed over the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.variance" title="pygeode.Var.variance"><tt class="xref py py-obj docutils literal"><span class="pre">variance</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanstdev" title="pygeode.Var.nanstdev"><tt class="xref py py-obj docutils literal"><span class="pre">nanstdev</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanvariance" title="pygeode.Var.nanvariance"><tt class="xref py py-obj docutils literal"><span class="pre">nanvariance</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.nanstdev">
<tt class="descclassname">Var.</tt><tt class="descname">nanstdev</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.nanstdev" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the standard deviation of this variable, ignoring any NaNs present.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the standard deviation should be computed. If none are provided, the
standard deviation is computed over the whole domain.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the variance is
computed over the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.stdev" title="pygeode.Var.stdev"><tt class="xref py py-obj docutils literal"><span class="pre">stdev</span></tt></a>, <a class="reference internal" href="#pygeode.Var.variance" title="pygeode.Var.variance"><tt class="xref py py-obj docutils literal"><span class="pre">variance</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanvariance" title="pygeode.Var.nanvariance"><tt class="xref py py-obj docutils literal"><span class="pre">nanvariance</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.variance">
<tt class="descclassname">Var.</tt><tt class="descname">variance</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.variance" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the variance of this variable.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the variance should be computed. If none are provided, the
variance is computed over the whole domain.</p>
</div></blockquote>
<p><strong>weights</strong> : boolean or <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> (optional, default False)</p>
<blockquote>
<div><p>If provided, a weighted variance is calculated. If True, the default
weights associated with the variable are used (getweights). If False, or None, no
weighting is performed. Finally, custom weights can be provided in the form of a
<a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a>; this var must be defined on a subset of the axes being reduced.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the variance is
computed over the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.stdev" title="pygeode.Var.stdev"><tt class="xref py py-obj docutils literal"><span class="pre">stdev</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanvariance" title="pygeode.Var.nanvariance"><tt class="xref py py-obj docutils literal"><span class="pre">nanvariance</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanstdev" title="pygeode.Var.nanstdev"><tt class="xref py py-obj docutils literal"><span class="pre">nanstdev</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.nanvariance">
<tt class="descclassname">Var.</tt><tt class="descname">nanvariance</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.nanvariance" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the variance of this variable, ignoring any NaNs.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the variance should be computed. If none are provided, the
variance is computed over the whole domain.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the variance is
computed over the whole domain, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.variance" title="pygeode.Var.variance"><tt class="xref py py-obj docutils literal"><span class="pre">variance</span></tt></a>, <a class="reference internal" href="#pygeode.Var.stdev" title="pygeode.Var.stdev"><tt class="xref py py-obj docutils literal"><span class="pre">stdev</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanstdev" title="pygeode.Var.nanstdev"><tt class="xref py py-obj docutils literal"><span class="pre">nanstdev</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.min">
<tt class="descclassname">Var.</tt><tt class="descname">min</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.min" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the minimum value of this variable.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the minimum should be found. If none are provided, the
global minimum is found.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the global minimum
is requested, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.max" title="pygeode.Var.max"><tt class="xref py py-obj docutils literal"><span class="pre">max</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanmax" title="pygeode.Var.nanmax"><tt class="xref py py-obj docutils literal"><span class="pre">nanmax</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanmin" title="pygeode.Var.nanmin"><tt class="xref py py-obj docutils literal"><span class="pre">nanmin</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.nanmin">
<tt class="descclassname">Var.</tt><tt class="descname">nanmin</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.nanmin" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the minimum value of this variable, ignoring NaNs.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the minimum should be found. If none are provided, the
global minimum is found.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the global minimum
is requested, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.min" title="pygeode.Var.min"><tt class="xref py py-obj docutils literal"><span class="pre">min</span></tt></a>, <a class="reference internal" href="#pygeode.Var.max" title="pygeode.Var.max"><tt class="xref py py-obj docutils literal"><span class="pre">max</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanmax" title="pygeode.Var.nanmax"><tt class="xref py py-obj docutils literal"><span class="pre">nanmax</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.max">
<tt class="descclassname">Var.</tt><tt class="descname">max</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.max" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the maximum value of this variable.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the maximum should be found. If none are provided, the
global maximum is found.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the global maximum
is requested, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.min" title="pygeode.Var.min"><tt class="xref py py-obj docutils literal"><span class="pre">min</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanmax" title="pygeode.Var.nanmax"><tt class="xref py py-obj docutils literal"><span class="pre">nanmax</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanmin" title="pygeode.Var.nanmin"><tt class="xref py py-obj docutils literal"><span class="pre">nanmin</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.nanmax">
<tt class="descclassname">Var.</tt><tt class="descname">nanmax</tt><big>(</big><em>var</em>, <em>*axes</em><big>)</big><a class="headerlink" href="#pygeode.Var.nanmax" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the maximum value of this variable, ignoring NaNs.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>*axes</strong> : any number of axis identifiers (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axes over which the maximum should be found. If none are provided, the
global maximum is found.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on a subgrid of this variable. If the global maximum
is requested, a python scalar is returned.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.max" title="pygeode.Var.max"><tt class="xref py py-obj docutils literal"><span class="pre">max</span></tt></a>, <a class="reference internal" href="#pygeode.Var.min" title="pygeode.Var.min"><tt class="xref py py-obj docutils literal"><span class="pre">min</span></tt></a>, <a class="reference internal" href="#pygeode.Var.nanmin" title="pygeode.Var.nanmin"><tt class="xref py py-obj docutils literal"><span class="pre">nanmin</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.argmin">
<tt class="descclassname">Var.</tt><tt class="descname">argmin</tt><big>(</big><em>var</em>, <em>axis</em><big>)</big><a class="headerlink" href="#pygeode.Var.argmin" title="Permalink to this definition">¶</a></dt>
<dd><p>Finds the index of the minumum value of this variable along the given axis.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>axis</strong> : a single axis identifier (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axis over which the index of the minimum should be found.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on all axes of this variable except <tt class="docutils literal"><span class="pre">axis</span></tt>,
containing the index of the minimum.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.argmax" title="pygeode.Var.argmax"><tt class="xref py py-obj docutils literal"><span class="pre">argmax</span></tt></a></p>
</div>
</dd></dl>
<dl class="method">
<dt id="pygeode.Var.argmax">
<tt class="descclassname">Var.</tt><tt class="descname">argmax</tt><big>(</big><em>var</em>, <em>axis</em><big>)</big><a class="headerlink" href="#pygeode.Var.argmax" title="Permalink to this definition">¶</a></dt>
<dd><p>Finds the index of the maximum value of this variable along the given axis.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>axis</strong> : a single axis identifier (string, <a class="reference internal" href="axes.html#pygeode.Axis" title="pygeode.Axis"><tt class="xref py py-class docutils literal"><span class="pre">Axis</span></tt></a>, or int) (optional)</p>
<blockquote>
<div><p>Axis over which the index of the maximum should be found.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><strong>out</strong> : <a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a></p>
<blockquote class="last">
<div><p><a class="reference internal" href="var.html#pygeode.Var" title="pygeode.Var"><tt class="xref py py-class docutils literal"><span class="pre">Var</span></tt></a> defined on all axes of this variable except <tt class="docutils literal"><span class="pre">axis</span></tt>,
containing the index of the maximum.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#pygeode.Var.argmin" title="pygeode.Var.argmin"><tt class="xref py py-obj docutils literal"><span class="pre">argmin</span></tt></a></p>
</div>
</dd></dl>
<dl class="docutils">
<dt><strong>See Also:</strong></dt>
<dd><p class="first"><a class="reference internal" href="var.html"><em>Var class overview</em></a></p>
<p class="last"><em class="xref std std-ref">arrays.ndarray.calculation</em> (external Numpy documentation)</p>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="ufunc.html"
title="previous chapter">Element-wise math</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="varops.html"
title="next chapter">Array manipulation routines</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/reduce.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="varops.html" title="Array manipulation routines"
>next</a> |</li>
<li class="right" >
<a href="ufunc.html" title="Element-wise math"
>previous</a> |</li>
<li><a href="index.html">PyGeode 1.0 alpha documentation</a> »</li>
<li><a href="reference.html" >Reference</a> »</li>
<li><a href="var.html" >Var class overview</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2013, Mike Neish, Peter Hitchcock.
Last updated on Sep 13, 2015.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
</html>