CImage:KwdSetVal
The KwdSetVal method inserts a general keyword value into the image header.
CImage:KwdSetVal( sKwd, value ) |
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.
Suppose a CImage named I exists. The following script fragment 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 |