cf.PointTopologyArray


class cf.PointTopologyArray(*args, **kwargs)[source]

Initialisation

Parameters:
edge_node_connectivity: array_like, optional

A 2-d integer array of indices that corresponds to a UGRID “edge_node_connectivity” variable.

face_node_connectivity: array_like, optional

A 2-d integer array of indices that corresponds to a UGRID “face_node_connectivity” variable.

shape: tuple, optional

The shape of the point cell domain topology array. If the shape is unknown (because the connectivity array has not been read yet) then set to None, which will result in a shape of (nan, nan).

start_index: int

The base of the indices provided by the integer index array. Must be 0 or 1 for zero- or one-based indices respectively.

cell_dimension: int

The position of the data dimension that indexes the cells, either 0 or 1.

source: optional

Convert source, which can be any type of object, to a PointTopologyArray instance.

All other parameters, apart from copy, are ignored and their values are instead inferred from source by assuming that it has the PointTopologyArray API. Any parameters that can not be retrieved from source in this way are assumed to have their default value.

Note that if x is also a PointTopologyArray instance then cf.PointTopologyArray(source=x) is equivalent to x.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

__init__

Initialisation

compressed_dimensions

Mapping of compressed to uncompressed dimensions.

conformed_data

The data as required by the decompression algorithm.

copy

Return a deep copy of the array.

get_attributes

The attributes of the array.

get_Subarray

Return the Subarray class.

get_calendar

The calendar of the array.

get_cell_dimension

Return the position of the cell dimension.

get_compressed_axes

Return axes that are compressed in the underlying array.

get_compressed_dimension

Returns the compressed dimension's position in the array.

get_compression_type

Returns the array's compression type.

get_start_index

Return the start index.

get_units

The units of the array.

source

Return the underlying array object.

subarray_parameters

Non-data parameters required by the Subarray class.

subarray_shapes

Create the subarray shapes along each uncompressed dimension.

subarrays

Return descriptors for every subarray.

to_dask_array

Convert the data to a dask array.

to_memory

Bring data on disk into memory.

Attributes

Units

The Units object containing the units of the array.

array

Returns a numpy array containing the uncompressed data.

astype

Cast the data to a specified type.

compressed_array

Returns an independent numpy array with the compressed data.

dtype

The data-type of the uncompressed data.

ndim

Number of array dimensions.

shape

Shape of the uncompressed data.

size

Number of elements in the array.