class foxes.core.Data(foxes.models.model_book.Dict)[source]

Container for numpy array data and the associated meta data.

Attributes

dims: dict

The dimensions tuples, same or subset of data keys

loop_dims: array_like of str

List of the loop dimensions during xarray’s apply_ufunc calculations

sizes: dict

The dimension sizes

Public members

Data(data, dims, loop_dims, name='data')[source]

Constructor.

property n_states

The number of states

property n_turbines

The number of turbines

states_i0(counter=False, algo=None)[source]

Get the state counter for first state in chunk

add(name, data, dims)[source]

Add data entry

get_slice(s, dim_map={}, name=None, keep=True)[source]

Get a slice of data.

__getitem__(key)[source]

x.__getitem__(y) <==> x[y]