Modifier and Type | Field and Description |
---|---|
String[] |
BORING_KEYS
Keywords which are never used as table parameters.
|
Constructor and Description |
---|
HeaderCards(Header hdr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Indicates whether the header collection contains a card with the
given keyword.
|
Double |
getDoubleValue(String key)
Returns the double value for a card with a given key.
|
Integer |
getIntValue(String key)
Returns the integer value for a card with a given key.
|
Long |
getLongValue(String key)
Returns the long value for a card with a given key.
|
String |
getStringValue(String key)
Returns the string value for a card with a given key.
|
DescribedValue[] |
getUnusedParams()
Returns an array of DescribedValue objects suitable for use as
items of per-table metadata derived from this FITS header.
|
void |
useKey(String key)
Marks a given keyword as used.
|
public final String[] BORING_KEYS
public HeaderCards(Header hdr)
hdr
- FITS header objectpublic Integer getIntValue(String key)
key
- header keywordpublic Long getLongValue(String key)
key
- header keywordpublic Double getDoubleValue(String key)
key
- header keywordpublic String getStringValue(String key)
key
- header keywordpublic void useKey(String key)
get*Value
methods.key
- header keywordpublic boolean containsKey(String key)
key
- header keywordkey
is presentpublic DescribedValue[] getUnusedParams()
useKey(java.lang.String)
has not been explicitly or implicitly called.
Certain standard structural FITS keywords (BORING_KEYS
)
are ignored as well.
The idea is that keywords which have already been read to determine table structure do not need to be recorded separately since their meaning is implicitly included in the table metadata already.
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.