public class FITSKeywordProvider extends Object implements WCSKeywordProvider
Constructor and Description |
---|
FITSKeywordProvider(FITSImage fitsImage) |
Modifier and Type | Method and Description |
---|---|
boolean |
findKey(String key)
Return true if the given keyword was found
|
double |
getDoubleValue(String key)
Return the value of the given keyword as a double, or 0.0 if not found.
|
double |
getDoubleValue(String key,
double defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found.
|
float |
getFloatValue(String key)
Return the value of the given keyword as a double, or 0.0 if not found.
|
float |
getFloatValue(String key,
float defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found.
|
int |
getIntValue(String key)
Return the value of the given keyword as an int, or 0 if not found.
|
int |
getIntValue(String key,
int defaultValue)
Return the value of the given keyword as an int, or 0 if not found.
|
String |
getStringValue(String key)
Return the value of the given keyword as a String, or null if not found.
|
String |
getStringValue(String key,
String defaultValue)
Return the value of the given keyword as a String, or null if not found.
|
public FITSKeywordProvider(FITSImage fitsImage)
public boolean findKey(String key)
findKey
in interface WCSKeywordProvider
public String getStringValue(String key)
getStringValue
in interface WCSKeywordProvider
public String getStringValue(String key, String defaultValue)
getStringValue
in interface WCSKeywordProvider
public double getDoubleValue(String key)
getDoubleValue
in interface WCSKeywordProvider
public double getDoubleValue(String key, double defaultValue)
getDoubleValue
in interface WCSKeywordProvider
public float getFloatValue(String key)
getFloatValue
in interface WCSKeywordProvider
public float getFloatValue(String key, float defaultValue)
getFloatValue
in interface WCSKeywordProvider
public int getIntValue(String key)
getIntValue
in interface WCSKeywordProvider
public int getIntValue(String key, int defaultValue)
getIntValue
in interface WCSKeywordProvider
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.