telescope-0.2.0: Astronomical Observations (FITS, ASDF, WCS, etc)
Safe HaskellNone
LanguageGHC2021

Telescope.Fits.Encoding.Render

Synopsis

Documentation

renderDataKeywords :: BitPix -> Axes 'Column -> BuilderBlock Source #

Render required keywords for a data array

renderOtherKeywords :: Header -> BuilderBlock Source #

Header contains all other keywords. Filter out any that match system keywords so they aren't rendered twice

fillBlock :: (Int -> BuilderBlock) -> BuilderBlock -> BuilderBlock Source #

Fill out the header or data block to the nearest 2880 bytes

data BuilderBlock Source #

A builder that keeps track of its length so we can pad and justify things

Constructors

BuilderBlock 

Fields

builderBlock :: Int -> Builder -> BuilderBlock Source #

Smart constructor, don't allow negative lengths

runRender :: BuilderBlock -> ByteString Source #

Execute a BuilderBlock and create a bytestring