dataset

dataset#

Full path: iqm.cpc.core.dataset

Utilities related to xarray dataset handling.

Functions

add_many_data_arrays(ds, arrays)

Efficiently add multiple DataArrays to a Dataset in one shot.

annotate(data[, annotation, prefix])

Add parameter data to an array.

apply_along_coordinate(...)

Apply a 1-dimensional function along a selected coordinate axis inside a Nd data array.

compute_1d_fit(x_values, y_values, model, ...)

Compute and return the fit results for a 1-dimensional array of values

compute_2d_fit(x_values, y_values, z_values, ...)

Compute and return the fit results for a 2-dimensional array of values

convert_2d_model(model[, ...])

Converts a function taking two independent variables and parameters to a format usable with curve_fit, by flattening the model by the second dimension.

generate_fit_parameter(data)

Construct a Parameter representing a fit to the given data array.

multifit_along_coordinates(, returns, ...)

Extension of apply_along_coordinate() to two dimensions.

split_along_dimension(data, dimension)

Slice an N-dimensional dataArray along specified dimension.

stack_along_dimension(data[, dimension, stack])

Stack (that is, combine) all other dimensions other than the given dimension into a single dimension.

turn_variable_to_coordinate(dataset, ...)

Turns variable of xarray dataset into a coordinate.