aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-07-23 14:51:22 +0800
committerAaron LI <aly@aaronly.me>2018-07-23 14:51:22 +0800
commit9951665b5a325d4e1f5aebf7bd9c5bc3e841dab3 (patch)
tree07568e2d4cb8d495001bb0b4d2d9f976e8b5c0ca /astro
parent24a9e4eb1b716be9bf20fd540fae2208f47473b6 (diff)
downloadatoolbox-9951665b5a325d4e1f5aebf7bd9c5bc3e841dab3.tar.bz2
astro/spectrogram.py: Improve FITS headers
Diffstat (limited to 'astro')
-rwxr-xr-xastro/spectrogram.py3
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()