Struct cbf_psr_header
Defined in File PacketStructure.h
Struct Documentation
-
struct cbf_psr_header
Definition of the header structure which is located in every UDP packet that forms the CBF/PSR UDP data format.
Public Members
-
uint64_t packet_sequence_number
packet sequence number
-
uint64_t timestamp_attoseconds
timestamp - attoseconds from timestamp_seconds
-
uint32_t timestamp_seconds
timestamp - seconds from epoch
-
uint32_t channel_separation
The frequency spacing between channels in the packet in units of mili hertz.
-
uint64_t first_channel_freq
The channel centre frequency of the First Channel Number in the packet in units of milli hertz.
-
float scale_1
The value by which CBF voltage data is scaled before conversion to the values in the packet.
-
float scale_2
Scale factor #2 - Stokes Q [Mid.PSS only].
-
float scale_3
Scale factor #3 - Stokes U [Mid.PSS only].
-
float scale_4
Scale factor #4 - Stokes V [Mid.PSS only].
-
uint32_t first_channel_number
The first frequency channel index within the packet.
-
uint16_t channels_per_packet
The range of contiguous frequency channels contained in the packet.
-
uint16_t valid_channels_per_packet
The number of valid frequency channels in the packet, always <= channels_per_packet.
-
uint16_t time_samples_per_packet
The number time samples for each frequency channel contained within the packet.
-
uint16_t beam_number
The beam (of 16 possible beams for PST and 501 for Low.PSS and 1500 for Mid.PSS) to which the data in the packet belongs.
-
uint32_t magic_word
Enables a basic check of the packet contents during decoding [BEADFEED].
-
uint8_t packet_destination
0=Low.PSS, 1=Mid.PSS, 2=Low.PST, 3=Mid.PST
-
uint8_t data_precision
the number of bits per integer value stored in the Channel/Sample data section of the packet
-
uint8_t num_power_samples_averaged
The number voltage time samples, whose power is averaged, for each time sample in the packet. Valid only for Mid.PSS.
-
uint8_t num_time_samples_per_relative_weight
The number of times samples, for each frequency channel, over which a relative weight is calculated.
-
uint8_t os_ratio_numerator
The oversampling ratio numerator.
-
uint8_t os_ratio_denominator
The oversampling ratio denominator.
-
uint8_t cbf_version_major
The major release number for the beam-former version.
-
uint8_t cbf_version_minor
The minor release number for the beam-former version.
-
uint64_t scan_id
The scan ID specified by the LMC.
-
float offset_1
to be added to the corresponding Stokes parameters before appling scale_[1..4]
-
float offset_2
Offset #2 - Stokes Q [Mid.PSS only].
-
float offset_3
Offset #3 - Stokes Q [Mid.PSS only].
-
float offset_4
Offset #4 - Stokes Q [Mid.PSS only].
-
uint64_t packet_sequence_number