File: cf.FieldList.rst

package info (click to toggle)
cf-python 1.3.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,996 kB
  • sloc: python: 51,733; ansic: 2,736; makefile: 78; sh: 2
file content (351 lines) | stat: -rw-r--r-- 6,785 bytes parent folder | download
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
.. currentmodule:: cf
.. default-role:: obj

.. _fieldlist:

cf.FieldList
============

.. autoclass:: cf.FieldList
   :no-members:
   :no-inherited-members:

.. _fieldlist_methods:

Domain operations
-----------------

**Domain axes**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.autocyclic

Subspacing
----------

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.subspace

Mathematical functions
----------------------

**Trigonometry**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.cos
   ~cf.FieldList.sin
   ~cf.FieldList.tan

**Exponents and logarithms**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.exp
   ~cf.FieldList.log


**Rounding**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.ceil  
   ~cf.FieldList.floor
   ~cf.FieldList.rint
   ~cf.FieldList.trunc

**Statistics**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.collapse

**Miscellaneous mathematical functions**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.clip

Data array operations
---------------------

.. rubric:: Data array mask

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: attribute.rst

   ~cf.FieldList.binary_mask
   ~cf.FieldList.mask

**Order and number of dimensions**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.expand_dims
   ~cf.FieldList.squeeze
   ~cf.FieldList.transpose
   ~cf.FieldList.unsqueeze

**Rearranging elements**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.anchor
   ~cf.FieldList.flip
   ~cf.FieldList.roll

Regridding operations
---------------------

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.regrids


Logic functions
---------------
 
**Comparison**

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.equals
   ~cf.FieldList.equivalent
   ~cf.FieldList.equivalent_data
   ~cf.FieldList.equivalent_domain


Miscellaneous
-------------

.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.binary_mask
   ~cf.FieldList.chunk
   ~cf.FieldList.close
   cf.FieldList.concatenate
   ~cf.FieldList.convert_reference_time
   ~cf.FieldList.copy 
   ~cf.FieldList.datum
   ~cf.FieldList.dump
   ~cf.FieldList.fill_value
   ~cf.FieldList.identity
   ~cf.FieldList.insert_data
   ~cf.FieldList.mask_invalid
   ~cf.FieldList.match
   ~cf.FieldList.name
   ~cf.FieldList.override_units
   ~cf.FieldList.override_calendar
   ~cf.FieldList.remove_data
   ~cf.FieldList.select
   ~cf.FieldList.weights
   ~cf.FieldList.where

List-like operations
--------------------

These methods provide functionality similar to that of a
:ref:`built-in list <python:tut-morelists>`.


.. autosummary::
   :nosignatures:
   :toctree: ../generated/
   :template: method.rst

   ~cf.FieldList.append
   ~cf.FieldList.count
   ~cf.FieldList.extend
   ~cf.FieldList.index
   ~cf.FieldList.insert
   ~cf.FieldList.pop
   ~cf.FieldList.reverse
   ~cf.FieldList.sort
   ~cf.FieldList.__contains__
   ~cf.FieldList.__getitem__ 
   ~cf.FieldList.__len__
   ~cf.FieldList.__setitem__ 

Arithmetic and comparison operations
------------------------------------

Any arithmetic, bitwise or comparison operation is applied
independently to each field element of the field list

In particular, the built-in :py:obj:`list` arithmetic and comparison
operator behaviours do not apply. For example, adding ``2`` to a field
list will add ``2`` to the data array of each of its fields, but the
``+`` operator will concatenate two built-in lists.

**Comparison operators**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__lt__
   ~cf.FieldList.__le__
   ~cf.FieldList.__eq__
   ~cf.FieldList.__ne__
   ~cf.FieldList.__gt__
   ~cf.FieldList.__ge__

**Binary arithmetic operators**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__add__     
   ~cf.FieldList.__sub__     
   ~cf.FieldList.__mul__     
   ~cf.FieldList.__div__     
   ~cf.FieldList.__truediv__ 
   ~cf.FieldList.__floordiv__
   ~cf.FieldList.__pow__     
   ~cf.FieldList.__mod__     

**Binary arithmetic operators with reflected (swapped) operands**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__radd__     
   ~cf.FieldList.__rsub__     
   ~cf.FieldList.__rmul__     
   ~cf.FieldList.__rdiv__     
   ~cf.FieldList.__rtruediv__ 
   ~cf.FieldList.__rfloordiv__
   ~cf.FieldList.__rpow__   
   ~cf.FieldList.__rmod__   

**Augmented arithmetic assignments**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__iadd__ 
   ~cf.FieldList.__isub__ 
   ~cf.FieldList.__imul__ 
   ~cf.FieldList.__idiv__ 
   ~cf.FieldList.__itruediv__
   ~cf.FieldList.__ifloordiv__
   ~cf.FieldList.__ipow__ 
   ~cf.FieldList.__imod__ 

**Unary arithmetic operators**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__neg__    
   ~cf.FieldList.__pos__    
   ~cf.FieldList.__abs__    

**Binary bitwise operators**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__and__     
   ~cf.FieldList.__or__
   ~cf.FieldList.__xor__     
   ~cf.FieldList.__lshift__
   ~cf.FieldList.__rshift__     

**Binary bitwise operators with reflected (swapped) operands**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__rand__     
   ~cf.FieldList.__ror__
   ~cf.FieldList.__rxor__     
   ~cf.FieldList.__rlshift__
   ~cf.FieldList.__rrshift__     

**Augmented bitwise assignments**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__iand__     
   ~cf.FieldList.__ior__
   ~cf.FieldList.__ixor__     
   ~cf.FieldList.__ilshift__
   ~cf.FieldList.__irshift__     

**Unary bitwise operators**

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__invert__ 

Special methods
---------------

.. autosummary::
   :nosignatures:
   :toctree: generated/
   :template: method.rst

   ~cf.FieldList.__deepcopy__
   ~cf.FieldList.__repr__
   ~cf.FieldList.__str__