{ } Raw JSON

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-like

Name 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, int

Keyword name or index

ext, extname, extver

The rest of the arguments are for HDU specification. See getdata for explanations/examples.

**kwargs

Any additional keyword arguments to be passed to astropy.io.fits.open. Note: This function automatically specifies do_not_scale_image_data = True when opening the file so that values can be retrieved from the unmodified header.

Aliases

  • astropy.io.fits.delval