CImage:KwdSetVal


The KwdSetVal method inserts a general keyword value into the image header.

Syntax

CImage:KwdSetVal( sKwd, Value )

where

    sKwd is the keyword name

    Value is a string up to 70 characters long.

  

This method inserts into the image header a general keyword and value. This method tries to recognize the keyword name from the master list that Mira already accepts. If the name is found, Mira formats the value appropriately. Otherwise, Mira interprets the value as a string. If the keyword name already exists, its value is overwritten by the new value.

Example

Suppose a CImage named I exists. The following script sets a keyword and its value in the header:

 

I:KwdSetVal("CCDSUM",5)

-- set a numeric value for CCDSUM

I:KwdSetVal("AUTHOR","My Name")

-- set a string value for AUTHOR

Related Topics

KwdSetNum

KwdSetStr

KwdSetDate

KwdSetTime

CImage class