HawcPlusChannelGroup

class sofia_redux.scan.custom.hawc_plus.channels.channel_group.channel_group.HawcPlusChannelGroup(channel_data, indices=None, name=None)[source]

Bases: HawcPlusChannelData, ChannelGroup

Initialize a HAWC+ channel group.

The channel group acts on a subset of the full channel data.

Parameters:
channel_dataHawcPlusChannelData

The channel data on which to base the group.

indicesnumpy.ndarray (int), optional

The indices of ChannelData that will belong to the ChannelGroup. If no indices are supplied, the entire ChannelData will be referenced.

namestr, optional

The name of the ChannelGroup.

Methods Summary

read_pixel_data(filename)

Read a pixel data file and apply the results.

set_channel_data(index, channel_info)

Set the channel info for a selected index.

validate_pixel_data()

Validates data read from the pixel data file.

validate_weights()

Validates weight data.

Methods Documentation

read_pixel_data(filename)[source]

Read a pixel data file and apply the results.

Parameters:
filenamestr

File path to the pixel data file.

Returns:
None
set_channel_data(index, channel_info)[source]

Set the channel info for a selected index.

Parameters:
indexint

The channel index for which to set new data.

channel_infodict

A dictionary of the form {field: value} where. The attribute field at ‘index’ will be set to value.

Returns:
None
validate_pixel_data()[source]

Validates data read from the pixel data file.

Returns:
None
validate_weights()[source]

Validates weight data.

Returns:
None