17 lines
485 B
Python
Executable File
17 lines
485 B
Python
Executable File
#!/usr/bin/env python3
|
|
import argparse
|
|
|
|
from spectrum_parser import read_spectrum
|
|
from spectrum_plot import plot_spectrum
|
|
|
|
|
|
if __name__ == '__main__':
|
|
parser = argparse.ArgumentParser(description='Plot RF observations')
|
|
parser.add_argument('path',
|
|
type=str,
|
|
help='Path to the directory with the input files $PATH/x_???.bin')
|
|
args = parser.parse_args()
|
|
|
|
z, headers = read_spectrum(args.path)
|
|
plot_spectrum(z, headers)
|