Accessing and changing name, value, or comment in a FITS keyword.



next up previous
Next: Adding keywords to Up: Manipulating FITS Header Previous: Finding keywords in

Accessing and changing name, value, or comment in a FITS keyword.

    368:    char *getKwName(FitsKw);
    369:    char *getKwComm(FitsKw);
    370:    FitsDataType getKwType(FitsKw);
    371:    Bool getBoolKw(FitsKw);
    372:    int  getIntKw(FitsKw);
    373:    float getFloatKw(FitsKw);
    374:    double getDoubleKw(FitsKw);
    375:    int getStringKw(FitsKw, char *str, int maxch);
    376:    int putKwName(FitsKw, char *name);
    377:    void putKwComm(FitsKw, char *comment);
    378:    int putBoolKw(FitsKw, Bool value);
    379:    int putIntKw(FitsKw, int value);
    380:    int putFloatKw(FitsKw, float value);
    381:    int putDoubleKw(FitsKw, double value);
    382:    int putStringKw(FitsKw, char *value);

These functions must be preceded by a ``find'' or ``findnext'' operation. Data conversions in the ``get'' routines:

If the requested type conversion is not allowed, an error code is set.



Sdas Group
Wed Aug 21 10:27:26 EDT 1996