AmmosSource
guix
Last change
on this file since 6d0f203 was 6d0f203, checked in by Enrico Schwass <ennoausberlin@…>, 3 years ago |
apply changes from Franks session
|
-
Property mode
set to
100644
|
File size:
554 bytes
|
Line | |
---|
1 | #!/usr/bin/env python3
|
---|
2 |
|
---|
3 | import sys
|
---|
4 | import os
|
---|
5 |
|
---|
6 | from ammosreader.AmmosIFReader import AmmosIFReader
|
---|
7 |
|
---|
8 | if __name__ == '__main__':
|
---|
9 |
|
---|
10 | if len(sys.argv) != 2:
|
---|
11 | sys.exit()
|
---|
12 |
|
---|
13 | file_name = sys.argv[1]
|
---|
14 |
|
---|
15 | print("File name:", file_name)
|
---|
16 |
|
---|
17 | dat_file = AmmosIFReader(file_name)
|
---|
18 |
|
---|
19 | dat_file.read_all_frames_left()
|
---|
20 | print("Frequencies", dat_file.container.frequencies())
|
---|
21 | print("Frame types:", dat_file.container.frame_types())
|
---|
22 | print("Frame sizes:", dat_file.container.frame_sizes())
|
---|
23 | print("Homogenic:", dat_file.container.is_homogenic())
|
---|
Note:
See
TracBrowser
for help on using the repository browser.