CImage:KwdSetTime

CImage:KwdSetVal


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

Syntax

CImage:KwdSetVal( sKwd, value )

bullet.gif    sKwd is the keyword name

bullet.gif    value is a string up to 70 characters long.

Remarks

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

CImage class

KwdSetNum

KwdSetStr

KwdSetDate

KwdSetTime


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.