Changeset 4180d6a in ammosreader for src


Ignore:
Timestamp:
05/06/22 11:23:51 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
1d0974d, a574a93
Parents:
94f7c24
Message:

Add pymongo import script

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/_version.py

    r94f7c24 r4180d6a  
    22# file generated by setuptools_scm
    33# don't change, don't track in version control
    4 version = '0.1.dev57+gbfab5ea.d20220505'
    5 version_tuple = (0, 1, 'dev57', 'gbfab5ea.d20220505')
     4version = '0.1.dev59+g94f7c24.d20220506'
     5version_tuple = (0, 1, 'dev59', 'g94f7c24.d20220506')
  • src/ammosreader.egg-info/PKG-INFO

    r94f7c24 r4180d6a  
    11Metadata-Version: 2.1
    22Name: ammosreader
    3 Version: 0.1.dev57+gbfab5ea.d20220505
     3Version: 0.1.dev59+g94f7c24.d20220506
    44Summary: ammosreader: tool to parse R&S Ammos files
    55Home-page: http://gitlab.kid.local/kidzg/ammosreader
  • src/ammosreader/PDW.py

    r94f7c24 r4180d6a  
    138138        :rtype: PDW
    139139        """
    140         self.time_of_arrival = time_of_arrival
     140        self.time_of_arrival = time_of_arrival #
    141141        self.pdw_format_identifier = pdw_format_identifier
    142         self.center_frequency = center_frequency
    143         self.is_valid = is_valid
    144         self.is_pulse = is_pulse
    145         self.level_unit = level_unit
     142        self.center_frequency = center_frequency #
     143        self.is_valid = is_valid #
     144        self.is_pulse = is_pulse #
     145        self.level_unit = level_unit #
    146146        self.signal_start_missing = signal_start_missing
    147147        self.signal_end_missing = signal_end_missing
    148         self.pulse_width = pulse_width
    149         self.frequency_shift_or_bandwidth = frequency_shift_or_bandwidth
    150         self.pulse_level_or_pulse_field_strength = pulse_level_or_pulse_field_strength
     148        self.pulse_width = pulse_width #
     149        self.frequency_shift_or_bandwidth = frequency_shift_or_bandwidth #
     150        self.pulse_level_or_pulse_field_strength = pulse_level_or_pulse_field_strength #
    151151        self.region_of_interest = region_of_interest
    152152        self.azimuth_confidence = azimuth_confidence
    153         self.modulation = modulation
     153        self.modulation = modulation #
    154154        self.sector = sector
    155155        self.polarity = polarity
    156         self.df_quality = df_quality
    157         self.elevation = elevation
     156        self.df_quality = df_quality #
     157        self.elevation = elevation #
    158158        self.azimuth = azimuth
    159         self.channel = channel
     159        self.channel = channel #
    160160
    161161    def __str__(self):
     
    222222        return output
    223223
     224    def to_json(self):
     225        return {'TIMEOFARRIVAL': self.time_of_arrival.item(),
     226                'CENTERFREQUENCY': self.center_frequency,
     227                'VALID': self.is_valid,
     228                'PULSE': self.is_pulse,
     229                '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,
     233                'MODULATION': self.modulation,
     234                'ELEVATION': self.elevation,
     235                'AZIMUTH': self.azimuth,
     236                'CHANNEL': self.channel
     237                }
    224238
    225239if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.