From 9951665b5a325d4e1f5aebf7bd9c5bc3e841dab3 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 23 Jul 2018 14:51:22 +0800 Subject: astro/spectrogram.py: Improve FITS headers --- astro/spectrogram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astro/spectrogram.py b/astro/spectrogram.py index b1fcfe9..2edc09a 100755 --- a/astro/spectrogram.py +++ b/astro/spectrogram.py @@ -93,10 +93,11 @@ def main(): header = fits.Header() header.add_history(' '.join(sys.argv)) - header['SP_TYPE'] = args.type + header['SP_TYPE'] = (args.type, 'cosine (DCT) or fourier (FFT)') spectrogram = Spectrogram(cube) spectrogram.set_window(args.window) + header['SP_WIND'] = (args.window, 'window function along frequency') if args.type == 'cosine': sp_mag = spectrogram.calc_cosine() -- cgit v1.2.2