diff options
author | Aaron LI <aly@aaronly.me> | 2018-07-23 14:51:22 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-07-23 14:51:22 +0800 |
commit | 9951665b5a325d4e1f5aebf7bd9c5bc3e841dab3 (patch) | |
tree | 07568e2d4cb8d495001bb0b4d2d9f976e8b5c0ca /astro | |
parent | 24a9e4eb1b716be9bf20fd540fae2208f47473b6 (diff) | |
download | atoolbox-9951665b5a325d4e1f5aebf7bd9c5bc3e841dab3.tar.bz2 |
astro/spectrogram.py: Improve FITS headers
Diffstat (limited to 'astro')
-rwxr-xr-x | astro/spectrogram.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |