Package nom.tam.fits.header
Class GenericKey
java.lang.Object
nom.tam.fits.header.GenericKey
Deprecated.
generic key interface, create an IFitsHeader from a key.
- Author:
- ritchie
-
Method Summary
Modifier and TypeMethodDescriptionstatic IFitsHeader
Deprecated.UseFitsKey(String, VALUE, String)
instead.static IFitsHeader[]
Deprecated.(for internal use) Creates a array of generic FITS header keys.static int
Deprecated.UseIFitsHeader.extractIndices(String)
instead.static IFitsHeader
Deprecated.UseStandard.match(String)
instead.
-
Method Details
-
create
Deprecated.UseFitsKey(String, VALUE, String)
instead.Creates a generic FITS header key that may be used in any HDU, with any type of value, and does not have a standard comment.- Parameters:
key
- the string to create the key for- Returns:
- the IFitsHeader implementation for the key.
-
create
Deprecated.(for internal use) Creates a array of generic FITS header keys. The resulting keys have no HDU assignment or value type restrictions, not default comments. As such they may be used for accessing existing keys by the specified names, more so than for adding new values.- Parameters:
keys
- the array of string keys- Returns:
- the equivalent array of super-generic standarddized keys.
-
getN
Deprecated.UseIFitsHeader.extractIndices(String)
instead.Returns the number value that appear at the trailing end of a FITS keyword. For example forNAXIS2
it will return 2, while forTFORM17
it will return 17. If there keyword does not end with a number, 0 is returned (FITS keywords are always numbered from 1 and up).- Parameters:
key
- The FITS keyword from which to extract the trailing number.- Returns:
- the number contained at the end of the keyword or else 0 if the keyword does not end with a number.
-
lookup
Deprecated.UseStandard.match(String)
instead.Lookup a string key in the standard key sets, resolving indexes and coordinate alternatives as appropriate for the set of standard FITS keywords. Same asStandard.match(String)
, which is preferred.- Parameters:
key
- the fits key to search.- Returns:
- the found fits key or null
-
FitsKey
,Standard
, ans/orIFitsHeader
.