xarray_size_check

File Purpose: misc. tools related to checking xarray size,

and doing manipulations more efficiently with chunking for very large arrays.

Functions

xarray_ds_to_array(ds[, dim, name])

returns ds.to_array(...) but first check that the result won't be too big.

xarray_max_dim_sizes(array, *more_arrays[, ...])

return dict of {dim: max size across all arrays} for all dims in any of the arrays.

xarray_multiply_then_sum_along(array, ...[, ...])

returns result of product of arrays then .sum(dim=dim).

xarray_predict_result_size(array, *more_arrays)

return prediction of how large the product of these xarray objects would be.

xarray_result_size_check(array, *more_arrays)

ensure that the result of combining these xarrays (e.g., via product) is not too large.