Documentation ¶
Overview ¶
Copyright 2014 Shahriar Iravanian (siravan@svtsim.com). All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file.
extract is a test application for the fits (or go-fits) package. It shows different usage of the fits package. extract accepts one input in command line, which can be a file name or a URL pointing to a FITS file extract reads the file and for each HDU writes the header key/value pairs to stdout In addition, it extracts the data for each HDU and writes it in the relevant format For images, the output format is 16-bit grayscale PNG For tables, extract generates a text file containing the data For one-dimensional images, it generates a simple one-column text file