Class GenericKey

java.lang.Object
nom.tam.fits.header.GenericKey

public final class GenericKey extends Object
Deprecated.
This class duplicates functionality that is available in FitsKey, Standard, ans/or IFitsHeader.
generic key interface, create an IFitsHeader from a key.
Author:
ritchie
  • Method Details

    • create

      public static IFitsHeader create(String key)
      Deprecated.
      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

      public static IFitsHeader[] create(String[] keys)
      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

      public static int getN(String key)
      Deprecated.
      Returns the number value that appear at the trailing end of a FITS keyword. For example for NAXIS2 it will return 2, while for TFORM17 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

      public static IFitsHeader lookup(String key)
      Deprecated.
      Lookup a string key in the standard key sets, resolving indexes and coordinate alternatives as appropriate for the set of standard FITS keywords. Same as Standard.match(String), which is preferred.
      Parameters:
      key - the fits key to search.
      Returns:
      the found fits key or null