Skip to content

FITSHeaderKey

user29A edited this page Nov 26, 2021 · 3 revisions

Constructors

public FITSHeaderKey(string line) Creates an instance of a FITSHeaderKey, out of a supplied String line. The line may be empty, but not more than 80 elements length. The key will be formatted as a FITS comment line if its internal structure appears to be configured as such.

public FITSHeaderKey(string name, string value, string comment) Creates an instance of a FITSHeaderKey, out of a supplied key name, key value, and key comment. If name is either "COMMENT" or an empty String the key will be formatted as a FITS comment line.

Properties and Members

public string Name The name of the key (elements 1 through 8).

public string Value The value of the key (elements 11 through 30 typically).

public string Comment The comment of the key (elements 34 through 80 typically). If the key is a comment then Comment contains the entire key line.

public bool IsCommentKey Returns whether the key is a comment.

public string GetFullyFomattedFITSLine() Generates and returns a fully formatted FITS key as an 80-element String. Can be used to build a header.

public bool ValueIsNumeric() Returns whether the key value is numeric.

public double ValueAsDouble() Returns the key value as a double precision number.

Clone this wiki locally