CImage:KwdSetNum


The KwdSetNum method inserts a numeric value keyword string into the image header.

Syntax

CImage:KwdSetNum( sKwd, Value )

where

    sKwd is the keyword name

    Value is a number.

  

This method inserts into the image header a numeric value keyword such as GAIN or EXPTIME. 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 numeric keyword in the header:

 

t = 30.25

-- value is 30.25 seconds

I:KwdSetNum("EXPTIME",t)

-- set the EXPTIME keyword

Related Topics

KwdSetStr

KwdGetNum

CImage class