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

Telescope.Data.Axes

Synopsis

Documentation

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 

totalItems :: forall (a :: Major). Axes a -> Int Source #

class AxisOrder (ax :: k) where Source #

Specify which numbered axis a type represents

data X
instance AxisOrder X where
  axisN = 1

data Y
instance AxisOrder Y where
  axisN = 2

Methods

axisN :: Natural Source #