Package uk.ac.starlink.fits
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
HISTORY card type. -
COMMENT
COMMENT card type. -
COMMENT_BLANK
Card type with nothing in the keyword field. -
CONTINUE
CONTINUE card type. -
END
END card type. -
STRING
Standard key/value card with string content. -
STRING_HIER
HIERARCH key/value card with string content. -
LOGICAL
Standard key/value card with logical content. -
LOGICAL_HIER
HIERARCH key/value card with logical content. -
INTEGER
Standard key/value card with integer content. -
INTEGER_HIER
HIERARCH key/value card with integer content. -
REAL
Standard key/value card with floating point content. -
REAL_HIER
HIERARCH key/value card with floating point content. -
COMPLEX
Standard key/value card with complex content. -
COMPLEX_HIER
HIERARCH key/value card with complex content. -
COMMENT_OTHER
Non-standard comment card (no value indicator). -
UNKNOWN
Catch-all card type - apparently not legal FITS. -
CARD_TYPES
Unmofifiable list of all known card types.
-
-
Method Details
-
toString
-
getValueClass
Returns the type of values yielded by this CardType.- Returns:
- value class
-
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
-