Skip to content

simontorres/fits_utilities

Repository files navigation

Fits Utilities Build Status Documentation Status DOI

Fits Utilities

Some tiny tools for handling FITS files

Install

pip install fits-utilities

hselect

Utility to read headers from FITS files. It works as Iraf's hselect and imhead longheader=no

This tool is intended to be used from a terminal in order to have easy access to them

Mode of Use:

hselect image.fits keyword1 keyword2 ... keywordN

It is also possible to use wildcards:

hselect *.fits keyword1 keyword2 ... keywordN

To have a quick look of what images are:

hselect *.fits

imhead

Displays full headers

imhead file_001.fits

showfits

Displays images using matplotlib. For 1D files the x-axis will always show Wavelength even if it is pixels. This is inteded as a quick look tool only

showfits file_001.fits

Or for showing several (one after another)

showfits *fits

Future plans

I plan to include some other tools (as needed) that should work as in IRAF, such as:

  1. hedit
  2. imstat

If you are interested in one of those let me know.