This package provides a simple interface to read Flexible Image Transport System (FITS) files and access their header to retrieve information. It allows the user to typeset a key’s value directly in the document or store it in a macro for further processing.
[!IMPORTANT] You need to compile with Lua(La)TeX.
The latest version can be found on its CTAN page. Simply download the *.dtx files and fits-astro.ins file. Then, run
pdf(la)tex|xe(la)tex|lua(la)tex fits-astro.ins
and place the resultant .sty file in your working directory or in your texmf tree.
[!NOTE] To compile the documentations, you need to run
fits-astro-fr|en.dtxwith LuaLaTeX.
Alternatively, if you’re using a TeX distribution, you can run:
tlmgr install fits-astro
mpm --install=fits-astro
The package provides a set of macros to retrieve and manipulate the key-value pairs FITS file headers. A file can be loaded in the following two ways:
\loadheader\HEADER{my_file.fits}
\loadheader{HEADER}{my_file.fits}
From there, any key can be accessed using the identification you used:
\headerkey\HEADER{EXPTIME}
\headerkey{HEADER}{EXPTIME}
The values can also be stored in macros for further processing.
For more examples, please refer to the documentation:
Contributions are always welcome. Check the CONTRIBUTING.md file for more information.
This work may be distributed and/or modified under the conditions of The LaTeX Project Public License v1.3c or later.
This work has the LPPL status maintained. The current maintainer of this work is Valentin Dao.
This work consists of the file listed in the MANIFEST.md file.
See LICENSE for more information.
Valentin Dao: email