cf.RegridOperator.tosparse

RegridOperator.tosparse()[source]

Return the weights in sparse COOrdinate format.

See scipy.sparse._arrays.coo_array for sparse format details.

New in version 3.14.0.

See also

todense

Returns
scipy.sparse._arrays.coo_array

The sparse array of weights.