addparent

sofia_redux.instruments.forcast.readfits.addparent(name, header, comment='id or name of file used in the processing')[source]

Add an id or file name to a header as PARENTn

Adds the ID or filename of an input file to a specified header array, under the keyword PARENTn, where n is some integer greater than 0. If a previous PARENTn keyword exists, n will be incremented to produce the new keyword.

If no PARENTn keyword exists, a new card will be appended to the end of the header. Otherwise, the card will be inserted after PARENT(n-1).

Parameters:
namestr

Name or id of the file to be recorded in the header

headerastropy.io.fits.header.Header

Input header to be updated

commentstr

Comment for PARENTn

Returns:
None