HawcPlusPolImbalance

class sofia_redux.scan.custom.hawc_plus.channels.gain_provider.pol_imbalance.HawcPlusPolImbalance[source]

Bases: ZeroMeanGains

A gain provider that returns 1.0 for pol 0 channels and -1.0 otherwise.

The average value will give an indication of the relative polarization imbalance.

Methods Summary

get_relative_gain(channel_data)

Returns 1.0 for pol=0 channels and -1.0 for other channels.

set_raw_gain(channel_data, gain)

Not implemented for polarization imbalance.

Methods Documentation

get_relative_gain(channel_data)[source]

Returns 1.0 for pol=0 channels and -1.0 for other channels.

Parameters:
channel_dataChannelData or ChannelGroup

Channel data or channel group data

Returns:
gainnumpy.ndarray (float)

The relative gain

set_raw_gain(channel_data, gain)[source]

Not implemented for polarization imbalance.

Parameters:
channel_dataChannelData or ChannelGroup
gainnumpy.ndarray (float)
Returns:
None