patch_headers¶
-
msumastro.header_processing.patchers.
patch_headers
(dir=None, new_file_ext=None, save_location=None, overwrite=False, purge_bad=True, add_time=True, add_apparent_pos=True, add_overscan=True, fix_imagetype=True, add_unit=True)[source]¶ Add minimal information to Feder FITS headers.
- Parameters
- dirstr, optional
Directory containing the files to be patched. Default is the current directory,
.
- 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.
- purge_badbool, optional
Remove “bad” keywords form header before any other processing. See
purge_bad_keywords()
for details.- add_timebool, optional
If
True
, add time information (e.g. JD, LST); seeadd_time_info()
for details.- add_apparent_posbool, optional
If
True
, add apparent position (e.g. alt/az) to headers. Seeadd_object_pos_airmass()
for details.- add_overscanbool, optional
If
True
, add overscan keywords to the headers. Seeadd_overscan_header()
for details.- fix_imagetypebool, optional
If
True
, change image types to IRAF-style. Seechange_imagetype_to_IRAF()
for details.- add_unitbool, optional
If
True
, add image unit to FITS header.