Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Telescope.Fits.Header.Header
Synopsis
- newtype Header = Header {
- records :: [HeaderRecord]
- data HeaderRecord
- lookupKeyword :: Text -> Header -> Maybe Value
- findKeyword :: (KeywordRecord -> Bool) -> Header -> Maybe Value
- keywords :: Header -> [KeywordRecord]
- keyword :: Text -> Value -> Maybe Text -> HeaderRecord
Documentation
The header part of the HDU is vital carrying not only authorship
metadata, but also specifying how to make sense of the binary payload
that starts 2,880 bytes after the start of the HeaderData
.
Constructors
Header | |
Fields
|
data HeaderRecord Source #
Headers contain lines that are any of the following
KEYWORD = VALUE / inline comment COMMENT full line comment (blank)
Instances
Show HeaderRecord Source # | |
Defined in Telescope.Fits.Header.Header Methods showsPrec :: Int -> HeaderRecord -> ShowS # show :: HeaderRecord -> String # showList :: [HeaderRecord] -> ShowS # | |
Eq HeaderRecord Source # | |
Defined in Telescope.Fits.Header.Header | |
ToHeader HeaderRecord Source # | |
Defined in Telescope.Fits.Header.Class Methods toHeader :: HeaderRecord -> Header Source # | |
FromHeader [HeaderRecord] Source # | |
Defined in Telescope.Fits.Header.Class Methods parseHeader :: forall (es :: [Effect]). Parser :> es => Header -> Eff es [HeaderRecord] Source # |
findKeyword :: (KeywordRecord -> Bool) -> Header -> Maybe Value Source #
keywords :: Header -> [KeywordRecord] Source #
Return all KeywordRecord
s from the header, filtering out full-line comments and blanks