Changeset 7bc034f in ammosreader
- Timestamp:
- 08/14/23 13:59:36 (22 months ago)
- Branches:
- guix
- Children:
- 6da9b03
- Parents:
- 0b489f2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ammosreader/PDW.py
r0b489f2 r7bc034f 33 33 34 34 nanoseconds = (parts[0]) 35 print(nanoseconds) 35 36 unix_time = np.datetime64('now', 'ns').astype(int) 37 print(unix_time) 36 38 if nanoseconds >= unix_time: 37 39 raise OverflowError("Timestamp invalid") … … 254 256 'ELEVATION': self.elevation, 255 257 'AZIMUTH': self.azimuth, 256 'CHANNEL': self.channel 258 'CHANNEL': self.channel, 257 259 'UUID': uuid.uuid4() 258 260 } -
scripts/pdw_reader.py
r0b489f2 r7bc034f 24 24 current_pdw = PDW.from_bytes(current_bytes) 25 25 print(current_pdw) 26 27 if __name__ == '__main__': 28 main()
Note:
See TracChangeset
for help on using the changeset viewer.