C2Array#

This is a class for remote arrays. This kind of array can also work as operand on a LazyExpr, LazyUDF or reduction.

Methods#

__init__

Create an instance of a remote NDArray.

__getitem__

Get a slice of the array.

get_chunk

Get the compressed unidimensional chunk of a C2Array.

Attributes#

shape

The shape of the remote array

chunks

The chunks of the remote array

blocks

The blocks of the remote array

dtype

The dtype of the remote array

cparams

The compression parameters of the remote array

URLPath class#

__init__(path, /[, urlbase, auth_token])

Create an instance of a remote data file (aka C2Array) urlpath.

Context managers#

c2context(*[, urlbase, username, password, ...])

Context manager that sets parameters in Caterva2 subscriber requests.