jsky.coords
Interface WCSKeywordProvider

All Known Implementing Classes:
FITSKeywordProvider

public interface WCSKeywordProvider

A simple interface for accessing FITS/WCS keywords.

Version:
$Revision: 1.1 $
Author:
Allan Brighton

Method Summary
 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.
 

Method Detail

findKey

boolean findKey(String key)
Return true if the given keyword was found


getStringValue

String getStringValue(String key)
Return the value of the given keyword as a String, or null if not found.


getStringValue

String getStringValue(String key,
                      String defaultValue)
Return the value of the given keyword as a String, or null if not found.


getDoubleValue

double getDoubleValue(String key)
Return the value of the given keyword as a double, or 0.0 if not found.


getDoubleValue

double getDoubleValue(String key,
                      double defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found.


getFloatValue

float getFloatValue(String key)
Return the value of the given keyword as a double, or 0.0 if not found.


getFloatValue

float getFloatValue(String key,
                    float defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found.


getIntValue

int getIntValue(String key)
Return the value of the given keyword as an int, or 0 if not found.


getIntValue

int getIntValue(String key,
                int defaultValue)
Return the value of the given keyword as an int, or 0 if not found.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.