Hedit
From BYU Astro Docs
Contents |
[edit]
Basic Information
The hedit command is used to add or update a header keyword in an image or group of images.
[edit]
Parameters
To edit rfits parameters, type:
epar hedit
Something like this should be displayed:
images = zero*.fits images to be edited fields = imagetyp fields to be edited value = zero value expression (add = yes) add rather than edit fields (addonly= no) add only if field does not exist (delete = no) delete rather than edit fields (verify = no) verify each edit operation (show = yes) print record of each edit operation (update = yes) enable updating of the image header (mode = ql)
The following is a generic guideline for how the parameter file should be configured. You should know and understand what you are trying to accomplish with your data before using the parameters given above and described below. See the hedit doc at iraf.net for complete details.
- images - A single image or group of images to be edited.
- fields - The header keyword to be added or updated (example: imagetyp).
- value - The value of the keyword to be added or updated (example: zero).
- add - Using no here will only update an existing keyword. Using yes here will update or add a keyword. Generally keep this yes.
- addonly - Using yes will only add new fields, but will not update them. Generally keep this no.
- delete = Using yes will delete the header fields instead of edit them. Using no will not delete the header fields. Generally keep this no.
- verify - Using yes will make you have to type yes to verify every change. Using no will update the headers automatically without verification.
- show = Using yes will print an output to the screen for each operation. Using no will not print an output.
- update - Using yes updates the header. Using no does not. Generally keep this yes.
- mode - Never ever change.
[edit]
Usage Examples
- Add or update the imagetyp of zeros, darks, and/or flats:
hedit zero*.fits imagetyp zero hedit dark*.fits imagetyp dark hedit flat*.fits imagetyp flat
- Add or update the subset (filter type) of flats:
hedit flatN*.fits subset N hedit flatV*.fits subset V hedit flatW*.fits subset W
[edit]

