# PDW module

class `PDW.``PDW`(time_of_arrival, pdw_format_identifier, center_frequency, is_valid, is_pulse, level_unit, signal_start_missing, signal_end_missing, pulse_width, frequency_shift_or_bandwidth, pulse_level_or_pulse_field_strength, region_of_interest, azimuth_confidence, modulation, sector, polarity, df_quality, elevation, azimuth, channel)

  Bases: `object`

  I store information from a single ppdw data block

  `__init__`(time_of_arrival, pdw_format_identifier, center_frequency, is_valid, is_pulse, level_unit, signal_start_missing, signal_end_missing, pulse_width, frequency_shift_or_bandwidth, pulse_level_or_pulse_field_strength, region_of_interest, azimuth_confidence, modulation, sector, polarity, df_quality, elevation, azimuth, channel)

    Parameters: | 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
    Returns: | An instance of class PDW with attributes set according to the data of a data body
    Return type: | PDW

  classmethod `from_bytes`(byte_string)

    I create an instance of class PDW from data body (8 * 32 bits)

    Parameters: | byte_string (byte string) – a byte string containing a single data body read from a ppdw file
    Returns: | an instance of class PDW with attributes set according to the data of a data body
    Return type: | PDW