fits-parse-0.4.2: Parse FITS files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Fits.Read

Synopsis

Documentation

readHDUs :: ByteString -> Either String [HeaderDataUnit] Source #

Parse and read all HDUs in the input string

readPrimaryHDU :: ByteString -> Either String HeaderDataUnit Source #

Parse and read only the Primary HDU from the input string

getKeyword :: Text -> (Value -> Maybe a) -> HeaderDataUnit -> Either String a Source #

Look up a keyword and parse it into the expected format

getHDU :: String -> Int -> [HeaderDataUnit] -> Either String HeaderDataUnit Source #

Get the HDU at an index and fail with a readable error

data FitsError Source #

Instances

Instances details
Show FitsError Source # 
Instance details

Defined in Data.Fits.Read

Eq FitsError Source # 
Instance details

Defined in Data.Fits.Read