WeightMap

class sofia_redux.scan.source_models.maps.weight_map.WeightMap(observation=None)[source]

Bases: Overlay

Create a weight map overlay of an observation.

The weight map overlay returns and operates on the weight image of the Observation2D basis.

Parameters:
observationObservation2D

Attributes Summary

data

Return the data values of the weight map.

Methods Summary

discard([indices])

Set the flags for discarded indices to DISCARD and data to zero.

Attributes Documentation

data

Return the data values of the weight map.

Returns:
data_valuesnumpy.ndarray

Methods Documentation

discard(indices=None)[source]

Set the flags for discarded indices to DISCARD and data to zero.

Parameters:
indicestuple (numpy.ndarray (int)) or numpy.ndarray (bool), optional

The indices to discard. Either supplied as a boolean mask of shape (self.data.shape).

Returns:
None