next up previous contents
Next: 6. Summary of All Up: CFHT FITS Handling Library Previous: 4. Getting Keyword Values   Contents

Subsections

5. Setting Keyword Values

5.1 fh_remove()

5.2 fh_this_unit_only()

Once you've called this function on a header unit, subsequent fh_set*() calls will only affect the primary header unit. This has no effect on basic FITS, or if `hu' is already an extension.

5.3 fh_set_com()

`name' should be either "COMMENT" or "HISTORY" and value is the rest of the line (upto 72 characters.)

5.4 fh_set_bool()

5.5 fh_set_int()

5.6 fh_set_flt()

Use this to set float or `REAL' values. Your value must be of type `double' and will be inserted in the FITS card as a number with a decimal point somewhere, and possibly an exponent (as determined by the instruction to printf). `prec' is a precision value, which should reflect the number of significant digits in `value'.

When printing a year, with a century, prec should be at least 4 to ensure that the value is not printed with an exponent.

5.7 fh_set_str()

5.8 fh_set_value()

5.9 fh_merge()


next up previous contents
Next: 6. Summary of All Up: CFHT FITS Handling Library Previous: 4. Getting Keyword Values   Contents
Sidik Isani
2001-04-22