Fits files (craftutils.fits_files)¶
Convenience functions for managing FITS files, using astropy.io.fits
Functions¶
- craftutils.fits_files.get_rotation_angle(...)
Special thanks to this StackExchange solution <https://math.stackexchange.com/questions/301319/derive-a-rotation-from-a-2d-rotation-matrix> :param header: :return theta: rotation angle, in degrees.
- craftutils.fits_files.detect_edges(file: HDUList | str, ...)
Detects the edges of a rectangular non-zero block, where the frame consists of a single value. For use with background files with an obvious frame. :param file: :param value: the value of the frame. :return: