4.40. solve_field¶
Solves the field for the given FITS file using Astrometry.net.
- Fits.solve_field(api_key: str, solve_timeout=120, force_image_upload=False, output=None, override=False) Self¶
Solves the field for the given FITS file using Astrometry.net.
Parameters
api_keystrThe API key for Astrometry.net (https://nova.astrometry.net/api_help).
solve_timeoutint, optional, default=120The timeout for the solve operation, in seconds.
force_image_uploadbool, optional, default=FalseIf
True, the image will be uploaded to Astrometry.net even if it is possible to detect sources locally. Note that this may take longer than detecting sources locally, and the image will be uploaded unless photutils is installed.outputstr, optionalNew path to save the solved FITS file.
overridebool, optional, default=FalseIf
True, will overwrite the output path if a file already exists.
Returns
FitsA
Fitsobject of the solved field image.
Raises
UnsolvableIf the data is unsolvable or if a timeout occurs.
4.40.1. Example:¶
from myraflib import Fits
fits = Fits.sample()
solved_fits = fits.solve_field("MY-API-KEY")