|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.image.fits.FITSKeywordProvider
public class FITSKeywordProvider
A simple class accessing FITS/WCS keywords, where keywords are inherited from an empty primary FITS extension, if present.
Constructor Summary | |
---|---|
FITSKeywordProvider(FITSImage fitsImage)
|
Method Summary | |
---|---|
boolean |
findKey(java.lang.String key)
Return true if the given keyword was found |
double |
getDoubleValue(java.lang.String key)
Return the value of the given keyword as a double, or 0.0 if not found. |
double |
getDoubleValue(java.lang.String key,
double defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found. |
float |
getFloatValue(java.lang.String key)
Return the value of the given keyword as a double, or 0.0 if not found. |
float |
getFloatValue(java.lang.String key,
float defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found. |
int |
getIntValue(java.lang.String key)
Return the value of the given keyword as an int, or 0 if not found. |
int |
getIntValue(java.lang.String key,
int defaultValue)
Return the value of the given keyword as an int, or 0 if not found. |
java.lang.String |
getStringValue(java.lang.String key)
Return the value of the given keyword as a String, or null if not found. |
java.lang.String |
getStringValue(java.lang.String key,
java.lang.String defaultValue)
Return the value of the given keyword as a String, or null if not found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FITSKeywordProvider(FITSImage fitsImage)
Method Detail |
---|
public boolean findKey(java.lang.String key)
findKey
in interface WCSKeywordProvider
public java.lang.String getStringValue(java.lang.String key)
getStringValue
in interface WCSKeywordProvider
public java.lang.String getStringValue(java.lang.String key, java.lang.String defaultValue)
getStringValue
in interface WCSKeywordProvider
public double getDoubleValue(java.lang.String key)
getDoubleValue
in interface WCSKeywordProvider
public double getDoubleValue(java.lang.String key, double defaultValue)
getDoubleValue
in interface WCSKeywordProvider
public float getFloatValue(java.lang.String key)
getFloatValue
in interface WCSKeywordProvider
public float getFloatValue(java.lang.String key, float defaultValue)
getFloatValue
in interface WCSKeywordProvider
public int getIntValue(java.lang.String key)
getIntValue
in interface WCSKeywordProvider
public int getIntValue(java.lang.String key, int defaultValue)
getIntValue
in interface WCSKeywordProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |