cfdm.CellConnectivityArray¶
- class cfdm.CellConnectivityArray(*args, **kwargs)[source]¶
Bases:
CompressedArrayMixin,MeshArrayA connectivity array derived from a UGRID connectivity variable.
A UGRID connectivity variable contains indices which map each cell to its neighbours, as found in a UGRID “face_face_connectivity” or “volume_volume_connectivity” variable.
The connectivity array has one more column than the corresponding UGRID variable. The extra column, in the first position, contains the identifier for each cell.
Added in version (cfdm): 1.11.0.0
See also
Initialisation
- Parameters:
- cell_connectivity: array_like
A 2-d integer array that contains indices which map each cell to its neighbours, as found in a UGRID “face_face_connectivity”, or “volume_volume_connectivity” variable.
- start_index:
int The base of the indices provided by the integer index array. Must be
0or1for zero- or one-based indices respectively.- cell_dimension:
int The position of the data dimension that indexes the cells, either
0or1.- source: optional
Convert source, which can be any type of object, to a
CellConnectivityArrayinstance.All other parameters, apart from copy, are ignored and their values are instead inferred from source by assuming that it has the
CellConnectivityArrayAPI. Any parameters that can not be retrieved from source in this way are assumed to have their default value.Note that if
xis also aCellConnectivityArrayinstance thencfdm.CellConnectivityArray(source=x)is equivalent tox.copy().- copy:
bool, optional If True (the default) then deep copy the input parameters prior to initialisation. By default the parameters are not deep copied.
Methods¶
Methods
The |
|
Returns a numpy array containing the uncompressed data. |
|
Cast the data to a specified type. |
|
Returns an independent numpy array with the compressed data. |
|
Mapping of compressed to uncompressed dimensions. |
|
The data as required by the decompression algorithm. |
|
Return a deep copy of the array. |
|
The data-type of the uncompressed data. |
|
Return the Subarray class. |
|
The attributes of the array. |
|
The calendar of the array. |
|
Return the position of the cell dimension. |
|
Return axes that are compressed in the underlying array. |
|
Returns the compressed dimension's position in the array. |
|
Returns the array's compression type. |
|
Return the name of the file containing the compressed data. |
|
Return the start index. |
|
The units of the array. |
|
Number of array dimensions. |
|
Shape of the uncompressed data. |
|
Number of elements in the array. |
|
Return the underlying array object. |
|
Non-data parameters required by the |
|
Create the subarray shapes along each uncompressed dimension. |
|
Return descriptors for every subarray. |
|
Convert the data to a |
|
Bring data on disk into memory. |