Some tiny tools for handling FITS files
pip install fits-utilitiesUtility 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 ... keywordNIt is also possible to use wildcards:
hselect *.fits keyword1 keyword2 ... keywordNTo have a quick look of what images are:
hselect *.fitsDisplays full headers
imhead file_001.fitsDisplays 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.fitsOr for showing several (one after another)
showfits *fitsI plan to include some other tools (as needed) that should work as in IRAF, such as:
heditimstat
If you are interested in one of those let me know.