CLFits is a simple and robust command-line tool designed for viewing and editing FITS file headers. Whether you are an astronomer, astrophysicist, or just a space enthusiast, this tool provides a straightforward way to interact with FITS files. FITS (Flexible Image Transport System) is a standard format in astronomy for storing image data and associated metadata. CLFits aims to make working with these files efficient and user-friendly.
- View FITS File Headers: Quickly display the header information of your FITS files.
- Edit FITS File Headers: Modify header keywords and values easily.
- Support for Multiple FITS Files: Handle multiple files in one go.
- Cross-Platform Compatibility: Works on Windows, macOS, and Linux.
- Lightweight and Fast: Minimal installation footprint with quick execution.
To install CLFits, you need Python 3.6 or higher. You can download the latest version from the Releases section. After downloading, extract the files and run the following command in your terminal:
python setup.py installMake sure you have the required dependencies installed. You can do this by running:
pip install -r requirements.txtOnce installed, you can start using CLFits from your command line. The basic syntax for the tool is:
clfits [options] <FITS file>Replace <FITS file> with the path to your FITS file. You can use various options to customize your command.
CLFits offers several commands to manage FITS files effectively:
- view: Display the header of a FITS file.
- edit: Modify a specific keyword in the header.
- list: Show all keywords in the header.
- info: Provide detailed information about the FITS file.
- View Command:
clfits view <FITS file>- Edit Command:
clfits edit <FITS file> <keyword> <value>- List Command:
clfits list <FITS file>- Info Command:
clfits info <FITS file>To view the header of a FITS file named example.fits, use the following command:
clfits view example.fitsThis command will output the header information directly in your terminal.
If you want to change the value of a keyword, say OBJECT, to Galaxy, you can do so with:
clfits edit example.fits OBJECT GalaxyThis command will update the OBJECT keyword in the example.fits file.
To list all keywords in the header of a FITS file, use:
clfits list example.fitsThis will show you all the available keywords and their current values.
To obtain detailed information about a FITS file, run:
clfits info example.fitsThis will provide insights such as the file size, number of HDUs, and more.
We welcome contributions to CLFits. If you want to help improve the tool, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Create a pull request to the main repository.
Please ensure that your code adheres to the existing style and includes appropriate tests.
CLFits is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please reach out via the issues section of the repository or contact the author directly.
You can download the latest version of CLFits from the Releases section.