View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

batch filter header key modify

santiago wrote on Nov 26, 2008

is there any way to modify the fits header of a set of images like the "setairmass" task? that calculates de mid-exposure air mass and adds it as a key in the header.... i need to modify the filterId, example "R" to an other filter... the same on all images... is there any command like "setfilter" or something?

thanks,

Santiago Roland.-

Mike Fitzpatrick wrote on Nov 26, 2008

HEDIT is the task you would most commonly use to edit a single field in the header (e.g. the filter keyword) and it can operate on a list of images. For computing a new value like exposure midpoint, see the ASTHEDIT task which has functions that can help. Lastly, NHEDIT is a new task in v2.14.1 that can perform multiple operations on a header.

See the help pages for details

-Mike

Last post on Nov 26, 2008