AmmosReader 0.314 documentation
Bases: object
Bases: object
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
d = {} for k, v in iterable:
d[k] = v
in the keyword argument list. For example: dict(one=1, two=2)
I parse an R&S AMMOS recording.
Bases: object
I read the audio data embedded in an R&S AMMOS recording.
I add a tag to my tag list.
tag (dict) – The tag to add to my tag list
I read all remaining frames into my container until end of file is reached.
a container containing all frames read
I return the next audio data read from current position in file.
sample_count (int) – the number of samples per channel inside data body
channel_count (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 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 return the next global frame body extended data header from current position in file.
the next Ammos Audio Extended Data header or None if incomplete
Bases: object
I store information from a single ppdw data block.
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 (Float) – elevation of incoming signal (from -90 to 90 degree) in steps of 0.1 degree minus 102.4 means unknown
azimuth (Float) – azimuth of incoming signal (from 0 to 359.9 degree) in steps of 0.1 degree plus 409.5 means unknown
channel (Integer) – detecting channel (0-16) - Zero means unknown
An instance of class PDW with attributes set according to the data of a data body
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