4. Fits¶
The Fits object encapsulates the data and functionalities needed for performing a wide range of astronomical photometry tasks. Designed for simplicity and ease of use, Fits eliminates the need for external functions to modify or analyze a FITS file.
The object supports method chaining, meaning most methods return a Fits object, either the current one or a new instance. This allows users to chain multiple method calls for a streamlined workflow.
If a method returns a new Fits object, it can optionally accept two parameters: output and override. The output parameter is the path to the output file as a string, while override specifies whether to overwrite an existing file at the given path. If output is not provided or set to None, a temporary file will be created and automatically deleted when the object is destroyed (__del__).
File Operations:
Data Operations:
Image Processing:
Coordinate Systems:
Advanced Operations: