h_edit is an interactive FITS header editor.
Prototype
void h_edit(hlist *root, char *func_name)UsageWhere func_name is the name of the function calling h_edit.
Upon entry into the function, the user will first be shown a menu of choices:
1 - print headerOptions
2 - add card to header
3 - modify header card
4 - delete card from header
5 - quit
A. Printing the current header
This option will just print the header to stderr
B. Adding a card to a header
1. Provide the header key.
2. Next the field type. This can be one of the following:
0 - list the field types3. Then enter the card information
1 - logical (T or F)
2 - string
3 - float
4 - int
5 - complex
6 - history
7 - comment
If the header card NAXIS3 is added, the card NAXIS is automatically fixed. Also, HISTORY and COMMENT cards are always added at the end of the header. If the requested card is a HISTORY card, the function will seek out the last HISTORY card already in the header, and put the new on after it. This also goes for COMMENT cards.
C. Modifying a header card
1. Provide the header key.
2. Next the field type. This can be one of the following:
0 - list the field types3. Then enter the card information
1 - logical (T or F)
2 - string
3 - float
4 - int
5 - complex
If the card is not found, the user is told and the function returns to the main menu
D. Deleting a header card
1. Provide the header key.
(Note: If the requested key is SIMPLE or END, the card will not be deleted.)This function also takes care of the NAXIS card in cases where the NAXIS3 header card is deleted. If the card is not found, the user is told and the function returns to the main menu.
E. Quit the editor
Using this option will exit the user from the header editor