Changeset a19529a in ammosreader


Ignore:
Timestamp:
07/22/22 10:51:00 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
aebe4a1
Parents:
0033a40
Message:

more fields added to json representation

Location:
ammosreader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AmmosAudioReader.py

    r0033a40 ra19529a  
    8585        I return the next global frame body read from current position in file.
    8686
    87         :param global_frame_header:
     87        :param data_header_length: the length of the data header
     88        :type data_header_length: int
    8889        """
    8990        audio_data_header = None
  • ammosreader/PDW.py

    r0033a40 ra19529a  
    223223
    224224    def to_json(self):
    225         return {'TIMEOFARRIVAL': self.time_of_arrival.item(),
     225        return {'TIMEOFARRIVAL': self.time_of_arrival,
     226                'FORMATIDENTIFIER': self.pdw_format_identifier,
    226227                'CENTERFREQUENCY': self.center_frequency,
    227228                'VALID': self.is_valid,
    228229                'PULSE': self.is_pulse,
     230                'PULSELEVEL': self.pulse_level_or_pulse_field_strength,
    229231                'PULSEWIDTH': self.pulse_width,
    230                 'LEVELUNIT': self.level_unit,
    231                 'FREQUENCYSHIFTORBANDWIDTH': self.frequency_shift_or_bandwidth,
    232                 'PULSELEVELORFIELDSTRENGTH': self.pulse_level_or_pulse_field_strength,
     232                'BANDWIDTH': self.frequency_shift_or_bandwidth,
     233                'REGIONOFINTEREST': self.region_of_interest,
     234                'AZIMUTHCONFIDENCE': self.azimuth_confidence,
    233235                'MODULATION': self.modulation,
     236                'SECTOR': self.sector,
     237                'POLARITY': self.polarity,
     238                'DFQUALITY': self.df_quality,
    234239                'ELEVATION': self.elevation,
    235240                'AZIMUTH': self.azimuth,
Note: See TracChangeset for help on using the changeset viewer.