katgpucbf.spead module

Common SPEAD-related constants and helper function.

katgpucbf.spead.ADC_SAMPLES_ID = 13056

SPEAD ID of adc_samples item (digitiser data)

katgpucbf.spead.BEAM_ANTS_ID = 20484

SPEAD ID of beam_ants item

katgpucbf.spead.BF_RAW_ID = 20480

SPEAD ID of bf_raw item

katgpucbf.spead.DEFAULT_PORT = 7148

Default UDP port

katgpucbf.spead.DIGITISER_ID_ID = 12545

SPEAD ID of digitiser_id item

katgpucbf.spead.DIGITISER_STATUS_ID = 12546

SPEAD ID of digitiser_status item

katgpucbf.spead.DIGITISER_STATUS_SATURATION_COUNT_SHIFT = 32

First bit position in digitiser status SPEAD item for ADC saturation count

katgpucbf.spead.DIGITISER_STATUS_SATURATION_FLAG_BIT = 1

Bit position in digitiser_status SPEAD item for ADC saturation flag

katgpucbf.spead.FENG_ID_ID = 16641

SPEAD ID of feng_id item

katgpucbf.spead.FENG_RAW_ID = 17152

SPEAD ID of feng_raw item

katgpucbf.spead.FLAVOUR = <spead2._spead2.Flavour object>

SPEAD flavour used for all send streams

katgpucbf.spead.FREQUENCY_ID = 16643

SPEAD ID of frequency item (which is actually a channel number).

katgpucbf.spead.IMMEDIATE_DTYPE = dtype('>u8')

dtype for items that need to be immediate yet passed by reference

katgpucbf.spead.IMMEDIATE_FORMAT = [('u', 48)]

Format for immediate items

katgpucbf.spead.MAX_PACKET_SIZE = 8872

Maximum packet size to send (only used for descriptors)

katgpucbf.spead.TIMESTAMP_ID = 5632

SPEAD ID of timestamp item (number of ADC samples since the sync epoch)

katgpucbf.spead.XENG_RAW_ID = 6144

SPEAD ID of xeng_raw item

katgpucbf.spead.make_immediate(id: int, value: Any) Item[source]

Synthesize an immediate item.

Parameters:
  • id – The SPEAD identifier for the item

  • value – The value of the item