Class CardType<T>
java.lang.Object
uk.ac.starlink.fits.CardType<T>
Defines different types of FITS header card.
Each instance knows how to parse an 80-byte card.
- Since:
- 4 Mar 2022
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionUnmofifiable list of all known card types.COMMENT card type.Card type with nothing in the keyword field.Non-standard comment card (no value indicator).static final CardType<double[]> Standard key/value card with complex content.static final CardType<double[]> HIERARCH key/value card with complex content.CONTINUE card type.END card type.HISTORY card type.static final CardType<BigInteger> Standard key/value card with integer content.static final CardType<BigInteger> HIERARCH key/value card with integer content.Standard key/value card with logical content.HIERARCH key/value card with logical content.Standard key/value card with floating point content.HIERARCH key/value card with floating point content.Standard key/value card with string content.HIERARCH key/value card with string content.Catch-all card type - apparently not legal FITS. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of values yielded by this CardType.Parses an 80-character string as a FITS header card.toString()
-
Field Details
-
HISTORY
-
COMMENT
-
COMMENT_BLANK
-
CONTINUE
-
END
-
STRING
-
STRING_HIER
-
LOGICAL
-
LOGICAL_HIER
-
INTEGER
Standard key/value card with integer content. -
INTEGER_HIER
HIERARCH key/value card with integer content. -
REAL
-
REAL_HIER
-
COMPLEX
Standard key/value card with complex content. -
COMPLEX_HIER
HIERARCH key/value card with complex content. -
COMMENT_OTHER
-
UNKNOWN
-
CARD_TYPES
-
-
Method Details
-
toString
-
getValueClass
-
toCard
Parses an 80-character string as a FITS header card.- Parameters:
txt80- 80-character string, should be ASCII-clean- Returns:
- parsed header card of this type, or null if card cannot be parsed as this type
-