bundles / astropy 7.0.1 / astropy / io / fits / convenience / delval
function
astropy.io.fits.convenience:delval
source: /astropy/io/fits/convenience.py :378
Signature
def delval ( filename , keyword , * args , ** kwargs ) Summary
Delete all instances of keyword from a header in a FITS file.
Parameters
filename: path-like or file-likeName of the FITS file, or file object If opened, mode must be update (rb+). An opened file object or GzipFile object will be closed upon return.
keyword: str, intKeyword name or index
ext, extname, extverThe rest of the arguments are for HDU specification. See getdata for explanations/examples.
**kwargsAny additional keyword arguments to be passed to astropy.io.fits.open. Note: This function automatically specifies
do_not_scale_image_data = Truewhen opening the file so that values can be retrieved from the unmodified header.
Aliases
-
astropy.io.fits.delval