next up previous contents
Next: 5. Setting Keyword Values Up: CFHT FITS Handling Library Previous: 3. Examining Extensions and   Contents

Subsections

4. Getting Keyword Values

4.1 fh_get_bool()

4.2 fh_get_int()

4.3 fh_get_flt()

4.4 fh_get_str()

Each of these will return FH_SUCCESS only if the keyword `name' was found an successfully converted to the corresponding type.

4.5 fh_idx_after()

4.6 fh_idx_before()

Use these functions to obtain `idx' numbers which would cause a new card to appear just before or after an existing card. Note that if the ``new'' card already exists too, it will be replaced and will not be relocated in the header.

Pass the return of this function as the `idx' argument to the fh_set*() routines. Alternatively, you can pass FH_AUTO or a fixed value (see the section on `idx' numbers.)

4.7 fh_search()

Use this to see if a keyword exists. A return of FH_SUCCESS means the keyword exists. If you pass a valid pointer in `idx', you will also receive its current `idx' value. (If you don't care, pass NULL for this parameter.)

4.8 fh_show()


next up previous contents
Next: 5. Setting Keyword Values Up: CFHT FITS Handling Library Previous: 3. Examining Extensions and   Contents
Sidik Isani
2001-04-22