AmmosReader 0.314 documentation
I provide an AMMOS data header for audio data frames.
I provide a specialized Ammos Reader for audio data.
Bases: ammosreader.AbstractAmmosReader.AbstractAmmosReader
I read the audio data embedded in an R&S AMMOS recording.
I return the raw pcm audio data for a given channel.
a_channel (int) – the channel I have to extract
bytes
I return the next audio data read from current position in file.
number_of_samples (int) – the number of samples per channel inside data body
number_of_channels (int) – number of channels (e.g. mono, stereo or even more)
sample_size (int) – sample size in bytes (1, 2 or 4 bytes)
the next audio data or None if incomplete
bytes
I return the next global frame body read from current position in file.
global_frame_header –
I return the next global frame body data header from current position in file.
data_header_size (int) – the number of bytes to read
the next Ammos Audio Data header or None if incomplete
I read a Ammos datastream from a socket.
I store the content of an R&S Ammos file in a more accessible way.
I provide an Ammos extended data header for audio data frames.
Bases: object
I implement an Ammos extended data header for IF data frames.
I provide an AMMOS global frame body.
Bases: object
I implement an AMMOS global frame body.
AMMOS frames can store data of various types. The data is described in the data header. The raw data is then stored in the data body.
I provide a Ammos data header for IF data frames.
I provide a specialized Ammos Reader for IF data.
Bases: ammosreader.AbstractAmmosReader.AbstractAmmosReader
I read the IF data embedded in an R&S AMMOS recording.
I return the next global frame body read from current position in file.
data_header_length (int) – the length of the data header
I store the information of a single PDW block.
Bases: object
I store information from a single ppdw data block.
I return an instance of an Pulse Data word.
time_of_arrival (Integer) – nanoseconds since 1970-01-01 00:00:00
pdw_format (Integer) – format code
center_frequency (Integer) – center frequency in KHz
is_valid (Boolean) – flag to mark if pdw data body is valid
is_pulse (Boolean) – flag to mark if pdw data body contains a pulse or a continuous wave signal
level_unit (Integer) – 0 means dBµV - 1 means dBµV/m
signal_start_missing (Boolean) – signal started before time of arrival
signal_end_missing (Boolean) – signal stops after time of arrival
pulse_width (Integer) – pulse width in nanoseconds - Zero if no valid pulse detected
frequency_shift_or_bandwidth (Integer) – Value in KHz - Value set to 1048575 means Unknown
pulse_level_or_pulse_field_strength (Float) – Pulse level or Pulse Field Strength depending on level_unit (-200.0…200.0) in 0.1 steps / minus 204.8 means no valid level detected
region_of_interest (Boolean) – Marks if signal is from region of interest
azimuth_confidence (Float) – degree in steps of 0.1 (0.0-6.2) / 6.3 means confidence unknown
modulation (String) – type of modulation (e.g. PSK-2, PSK-4, FM etc.)
sector (Integer) – reference antenna sector (0-15)
polarity (String) – Horizontal, Vertical, Clockwise, Counter clockwise
df_quality (Integer) – Direction finding quality in percent (0-100) - Zero means unknown
elevation – elevation of incoming signal (from -90 to 90 degree) in steps of 0.1 degree
minus 102.4 means unknown :type elevation: Float :param azimuth: azimuth of incoming signal (from 0 to 359.9 degree) in steps of 0.1 degree plus 409.5 means unknown :type azimuth: Float :param channel: detecting channel (0-16) - Zero means unknown :type channel: Integer :return: An instance of class PDW with attributes set according to the data of a data body :rtype: PDW
I create an instance of class PDW from data body (8 * 32 bits).
byte_string (byte string) – a byte string containing a single data body read from a ppdw file
an instance of class PDW with attributes set according to the data of a data body