geoutils.operators.LocalData

geoutils.operators.LocalData#

class geoutils.operators.LocalData(values, valid, source_ids, coordinates=None, target=None, distances=None, sample_weights=None, support_weights=None, interpolation_weights=None, error_covariance=None)[source]#

This data class stores the nearby source values used to calculate one interpolator/reducer output.

We convert arrays with np.asanyarray() to avoid copies where possible. This object is only used temporarily for each neighbourhood.

Parameters:
__init__(values, valid, source_ids, coordinates=None, target=None, distances=None, sample_weights=None, support_weights=None, interpolation_weights=None, error_covariance=None)#

Methods

__init__(values, valid, source_ids[, ...])

precision_weights(weights)

Adjust nonnegative observation weights using their error covariance.

select(selection)

Select observations from this LocalData object.

Attributes

coordinates

distances

error_covariance

interpolation_weights

sample_weights

support_weights

target

values

valid

source_ids