changeFitsHeader(fn_old,
fn_new,
key,
value,
comment=None,
**kwargs)
| source code
|
Change a key in the header of a fits file and save to a new file.
Additionali just keywords for the writeto pyfits function can be
passed along with kwargs. eg output_verify='ignore'.
- Parameters:
fn_old (str) - The old filename of the fits file
fn_new (str) - The new filename of the fits file
key (str) - The header key to be changed. Has to be present already (for now)
value (str, int, float) - The new value
comment (str) - If desired, the comment for the keyword can be changed here. By
default, no change is made.
(default: None)
|