-
Notifications
You must be signed in to change notification settings - Fork 19
/
raggedindexedcontiguousarray.py
34 lines (25 loc) · 1.08 KB
/
raggedindexedcontiguousarray.py
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
import cfdm
from ...mixin_container import Container
from .mixin import ArrayMixin, CompressedArrayMixin
class RaggedIndexedContiguousArray(
CompressedArrayMixin,
ArrayMixin,
Container,
cfdm.RaggedIndexedContiguousArray,
):
"""An underlying indexed contiguous ragged array.
A collection of features, each of which is sequence of (vertical)
profiles, stored using an indexed contiguous ragged array combines
all feature elements along a single dimension (the "sample
dimension") such that a contiguous ragged array representation is
used for each profile and the indexed ragged array representation
to organise the profiles into timeseries.
The information needed to uncompress the data is stored in a
"count variable" that gives the size of each profile; and in a
"index variable" that specifies the feature that each profile
belongs to.
It is assumed that the compressed dimensions are the two left-most
dimensions in the compressed array.
See CF section 9 "Discrete Sampling Geometries".
.. versionadded:: 3.0.0
"""