WCSKeywordProvider.java
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright 2002 Association for Universities for Research in Astronomy, Inc.,
* Observatory Control System, Gemini Telescopes Project.
*
* $Id: WCSKeywordProvider.java,v 1.1.1.1 2009/02/17 22:50:10 abrighto Exp $
*/
package jsky.coords;
/**
* A simple interface for accessing FITS/WCS keywords.
*
* @version $Revision: 1.1.1.1 $
* @author Allan Brighton
*/
public abstract interface WCSKeywordProvider {
/** Return true if the given keyword was found */
public boolean findKey(String key);
/** Return the value of the given keyword as a String, or null if not found. */
public String getStringValue(String key);
/** Return the value of the given keyword as a String, or null if not found. */
public String getStringValue(String key, String defaultValue);
/** Return the value of the given keyword as a double, or 0.0 if not found. */
public double getDoubleValue(String key);
/** Return the value of the given keyword as a double, or 0.0 if not found. */
public double getDoubleValue(String key, double defaultValue);
/** Return the value of the given keyword as a double, or 0.0 if not found. */
public float getFloatValue(String key);
/** Return the value of the given keyword as a double, or 0.0 if not found. */
public float getFloatValue(String key, float defaultValue);
/** Return the value of the given keyword as an int, or 0 if not found. */
public int getIntValue(String key);
/** Return the value of the given keyword as an int, or 0 if not found. */
public int getIntValue(String key, int defaultValue);
}