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

Telescope.Fits.Types

Synopsis

Documentation

data Fits Source #

Constructors

Fits 

Instances

Instances details
Show Fits Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

showsPrec :: Int -> Fits -> ShowS #

show :: Fits -> String #

showList :: [Fits] -> ShowS #

data PrimaryHDU Source #

Constructors

PrimaryHDU 

Instances

Instances details
Show PrimaryHDU Source # 
Instance details

Defined in Telescope.Fits.Types

data ImageHDU Source #

Constructors

ImageHDU 

Instances

Instances details
Show ImageHDU Source # 
Instance details

Defined in Telescope.Fits.Types

data BinTableHDU Source #

Constructors

BinTableHDU 

Instances

Instances details
Show BinTableHDU Source # 
Instance details

Defined in Telescope.Fits.Types

data DataArray Source #

Raw HDU Data. See DataArray

Constructors

DataArray 

Instances

Instances details
Show DataArray Source # 
Instance details

Defined in Telescope.Fits.Types

data Extension Source #

Instances

Instances details
Show Extension Source # 
Instance details

Defined in Telescope.Fits.Types

type Axis = Int Source #

newtype Axes (a :: Major) Source #

Constructors

Axes 

Fields

Instances

Instances details
IsList (Axes 'Row) Source # 
Instance details

Defined in Telescope.Data.Axes

Associated Types

type Item (Axes 'Row) 
Instance details

Defined in Telescope.Data.Axes

type Item (Axes 'Row) = Axis

Methods

fromList :: [Item (Axes 'Row)] -> Axes 'Row #

fromListN :: Int -> [Item (Axes 'Row)] -> Axes 'Row #

toList :: Axes 'Row -> [Item (Axes 'Row)] #

Show (Axes a) Source # 
Instance details

Defined in Telescope.Data.Axes

Methods

showsPrec :: Int -> Axes a -> ShowS #

show :: Axes a -> String #

showList :: [Axes a] -> ShowS #

Eq (Axes a) Source # 
Instance details

Defined in Telescope.Data.Axes

Methods

(==) :: Axes a -> Axes a -> Bool #

(/=) :: Axes a -> Axes a -> Bool #

ToAsdf (Axes 'Row) Source # 
Instance details

Defined in Telescope.Asdf.Class

type Item (Axes 'Row) Source # 
Instance details

Defined in Telescope.Data.Axes

type Item (Axes 'Row) = Axis

data Major Source #

Constructors

Row 
Column 

data BitPix Source #

Instances

Instances details
Show BitPix Source # 
Instance details

Defined in Telescope.Fits.Types

Eq BitPix Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

(==) :: BitPix -> BitPix -> Bool #

(/=) :: BitPix -> BitPix -> Bool #

newtype Header #

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

Instances

Instances details
Monoid Header 
Instance details

Defined in Data.Fits

Semigroup Header 
Instance details

Defined in Data.Fits

Show Header 
Instance details

Defined in Data.Fits

Eq Header 
Instance details

Defined in Data.Fits

Methods

(==) :: Header -> Header -> Bool #

(/=) :: Header -> Header -> Bool #

getKeywords :: Header -> [KeywordRecord] #

Return all KeywordRecords from the header, filtering out full-line comments and blanks

data HeaderRecord #

Headers contain lines that are any of the following

KEYWORD = VALUE / inline comment
COMMENT full line comment
(blank)

Instances

Instances details
Show HeaderRecord 
Instance details

Defined in Data.Fits

Eq HeaderRecord 
Instance details

Defined in Data.Fits

data KeywordRecord #

A single 80 character header keyword line of the form: KEYWORD = VALUE / comment KEYWORD=VALUE

Constructors

KeywordRecord 

Instances

Instances details
Show KeywordRecord 
Instance details

Defined in Data.Fits

Eq KeywordRecord 
Instance details

Defined in Data.Fits

data Value #

Value datatype for discriminating valid FITS KEYWORD=VALUE types in an HDU.

Instances

Instances details
Show Value 
Instance details

Defined in Data.Fits

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Eq Value 
Instance details

Defined in Data.Fits

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

data LogicalConstant #

Direct encoding of a Bool for parsing Value

Constructors

T 
F 

Instances

Instances details
Show LogicalConstant 
Instance details

Defined in Data.Fits

Eq LogicalConstant 
Instance details

Defined in Data.Fits

hduBlockSize :: Int #

The size of an HDU block is fixed at thirty-six eighty byte words. In other words 2,880 bytes. These blocks are padded with zeros to this boundary.

class IsBitPix (a :: k) where Source #

Methods

bitPix :: BitPix Source #

Instances

Instances details
IsBitPix Int16 Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

bitPix :: BitPix Source #

IsBitPix Int32 Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

bitPix :: BitPix Source #

IsBitPix Int64 Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

bitPix :: BitPix Source #

IsBitPix Int8 Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

bitPix :: BitPix Source #

IsBitPix Double Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

bitPix :: BitPix Source #

IsBitPix Float Source # 
Instance details

Defined in Telescope.Fits.Types

Methods

bitPix :: BitPix Source #