Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data DataArray = DataArray {}
- dataArray :: Dimensions -> ByteString -> DataArray
- decodeDataArray :: forall ix a m. (MonadThrow m, MonadCatch m, Index ix, AxesIndex ix, Prim a, BinaryValue a) => DataArray -> m (Array D ix a)
- encodeDataArray :: forall r ix a. (Source r a, Stream r Ix1 a, Size r, PutArray ix, Index ix, AxesIndex ix, BinaryValue a, Prim a, IsBitPix a) => Array r ix a -> DataArray
Documentation
Raw HDU Data. See DataArray
dataArray :: Dimensions -> ByteString -> DataArray Source #
Create a DataArray from raw Fits info
decodeDataArray :: forall ix a m. (MonadThrow m, MonadCatch m, Index ix, AxesIndex ix, Prim a, BinaryValue a) => DataArray -> m (Array D ix a) Source #
Decode a DataArray
of arbitrary dimensions ix
and type a
. Consider inspecting the DataArray's (.bitpix) and (.axes) if these are unknown.
>>>
decodeDataArray @Ix2 @Float hdu.dataArray
Array D Seq (Sz (2 :. 3)) [ [ 1.0, 2.0, 3.0 ] , [ 4.0, 5.0, 6.0 ] ]
This creates a delayed (D) array, which will postpone evaluation of cells until needed