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

Telescope.Asdf.NDArray

Synopsis

Documentation

data NDArrayData Source #

In-tree representation of an NDArray. You can parse a file as this and get it back. Not really what we want though but in haskell we can't easily just parse a multi-dimensional array we could do a simpler representation. Using an ADT

class FromNDArray a where Source #

Convert an NDArrayData into a type https:/asdf-standard.readthedocs.ioenlatestgeneratedstsci.eduasdfcorendarray-1.1.0.html

Methods

fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es a Source #

Instances

Instances details
FromNDArray [Text] Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es [Text] Source #

BinaryValue a => FromNDArray [[a]] Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es [[a]] Source #

BinaryValue a => FromNDArray [a] Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es [a] Source #

(BinaryValue a, Prim a, AxesIndex ix) => FromNDArray (Array D ix a) Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

fromNDArray :: forall (es :: [Effect]). Parser :> es => NDArrayData -> Eff es (Array D ix a) Source #

class ToNDArray a where Source #

Convert a type to an NDArrayData https:/asdf-standard.readthedocs.ioenlatestgeneratedstsci.eduasdfcorendarray-1.1.0.html

Methods

toNDArray :: a -> NDArrayData Source #

Instances

Instances details
(BinaryValue a, IsDataType a) => ToNDArray [[a]] Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

toNDArray :: [[a]] -> NDArrayData Source #

(BinaryValue a, IsDataType a) => ToNDArray [a] Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

toNDArray :: [a] -> NDArrayData Source #

(BinaryValue a, IsDataType a, Prim a, AxesIndex ix, PutArray ix) => ToNDArray (Array D ix a) Source # 
Instance details

Defined in Telescope.Asdf.NDArray

Methods

toNDArray :: Array D ix a -> NDArrayData Source #

data DataType Source #

Instances

Instances details
Show DataType Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

Eq DataType Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

FromAsdf DataType Source # 
Instance details

Defined in Telescope.Asdf.Class

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es DataType Source #

ToAsdf DataType Source # 
Instance details

Defined in Telescope.Asdf.Class

IsDataType 'Int8 Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

class IsDataType (a :: k) where Source #

Instances

Instances details
IsDataType 'Int8 Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

IsDataType Int16 Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

IsDataType Int32 Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

IsDataType Int64 Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

IsDataType Double Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

IsDataType Float Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

IsDataType a => IsDataType ([a] :: Type) Source # 
Instance details

Defined in Telescope.Asdf.NDArray.Types

parseGet :: forall (es :: [Effect]) a. Parser :> es => Get a -> ByteString -> Eff es a Source #

ndArrayPut :: IsDataType a => (a -> Axes 'Row) -> (a -> Put) -> a -> NDArrayData Source #

parseMassiv :: forall a ix (es :: [Effect]). (BinaryValue a, AxesIndex ix, Parser :> es) => NDArrayData -> Eff es (Array D ix a) Source #

parseNDArray :: forall a (es :: [Effect]). (FromNDArray a, Parser :> es) => Value -> Eff es a Source #

data ByteOrder #

Byte ordering.

Constructors

BigEndian

most-significant-byte occurs in lowest address.

LittleEndian

least-significant-byte occurs in lowest address.

Instances

Instances details
Bounded ByteOrder

Since: base-4.11.0.0

Instance details

Defined in GHC.ByteOrder

Enum ByteOrder

Since: base-4.11.0.0

Instance details

Defined in GHC.ByteOrder

Generic ByteOrder 
Instance details

Defined in GHC.ByteOrder

Associated Types

type Rep ByteOrder

Since: base-4.15.0.0

Instance details

Defined in GHC.ByteOrder

type Rep ByteOrder = D1 ('MetaData "ByteOrder" "GHC.ByteOrder" "base" 'False) (C1 ('MetaCons "BigEndian" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LittleEndian" 'PrefixI 'False) (U1 :: Type -> Type))
Read ByteOrder

Since: base-4.11.0.0

Instance details

Defined in GHC.ByteOrder

Show ByteOrder

Since: base-4.11.0.0

Instance details

Defined in GHC.ByteOrder

Eq ByteOrder

Since: base-4.11.0.0

Instance details

Defined in GHC.ByteOrder

Ord ByteOrder

Since: base-4.11.0.0

Instance details

Defined in GHC.ByteOrder

FromAsdf ByteOrder Source # 
Instance details

Defined in Telescope.Asdf.Class

Methods

parseValue :: forall (es :: [Effect]). Parser :> es => Value -> Eff es ByteOrder Source #

ToAsdf ByteOrder Source # 
Instance details

Defined in Telescope.Asdf.Class

type Rep ByteOrder

Since: base-4.15.0.0

Instance details

Defined in GHC.ByteOrder

type Rep ByteOrder = D1 ('MetaData "ByteOrder" "GHC.ByteOrder" "base" 'False) (C1 ('MetaCons "BigEndian" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LittleEndian" 'PrefixI 'False) (U1 :: Type -> Type))

data Parser (a :: Type -> Type) b Source #

Instances

Instances details
type DispatchOf Parser Source # 
Instance details

Defined in Telescope.Data.Parser