FitsHeader
in package
Table of Contents
Properties
- $keywords : array<string|int, Keyword>
- $blanks : array<string|int, string>
- $headerBlock : string
Methods
- __construct() : mixed
- getKeywordRecord() : Keyword|null
- Retrieve a Keyword record based on key name
- getKeywordValue() : string
- Note: the keyword key string is case-sensitive
- isValid() : bool
- Check if header contains a multiple of 36 records (aka 'card images')
- toString() : string
- Return the FITS header as a string (byte stream)
- readKeywords() : array<string|int, Keyword>
- Initialize the keyword records array
Properties
$keywords read-only
public
array<string|int, Keyword>
$keywords
$blanks
private
array<string|int, string>
$blanks
$headerBlock
private
string
$headerBlock
Methods
__construct()
public
__construct(string $headerBlock) : mixed
Parameters
- $headerBlock : string
getKeywordRecord()
Retrieve a Keyword record based on key name
public
getKeywordRecord(string $key) : Keyword|null
Parameters
- $key : string
Return values
Keyword|nullgetKeywordValue()
Note: the keyword key string is case-sensitive
public
getKeywordValue(string $key) : string
Parameters
- $key : string
Return values
stringisValid()
Check if header contains a multiple of 36 records (aka 'card images')
public
isValid() : bool
Return values
booltoString()
Return the FITS header as a string (byte stream)
public
toString() : string
Return values
stringreadKeywords()
Initialize the keyword records array
private
readKeywords() : array<string|int, Keyword>
From the spec: each keyword record, including any comments, is at most 80 bytes long