add_object_info

msumastro.header_processing.patchers.add_object_info(directory=None, object_list=None, object_list_dir=None, match_radius=20.0, new_file_ext=None, save_location=None, overwrite=False, detailed_history=True)[source]

Add object information to FITS files that contain pointing information given a list of objects.

Parameters
directorystr

Directory containing the FITS files to be fixed. Default is the current directory, ..

object_liststr, optional

Name of file containing list of objects. Default is set by read_object_list() which also explains the format of this file.

object_list_dirstr, optional

Directory in which the object_list is contained. Default is directory.

match_radiusfloat, optional

Maximum distance, in arcmin, between the RA/Dec of the image and a particular object for the image to be considered an image of that object.

new_file_extstr, optional

Name added to the FITS files with updated header information. It is added to the base name of the input file, between the old file name and the .fit or .fits extension. Default is ‘new’.

save_locationstr, optional

Directory to which the patched files should be written, if not dir.

overwritebool, optional

Set to True to replace the original files.