Class FitsDataBlock
- Namespace
- FitsModel
- Assembly
- FitsModel.dll
Represents a single 2880 byte data block of a FITS file.
public class FitsDataBlock
- Inheritance
-
FitsDataBlock
- Inherited Members
Constructors
FitsDataBlock()
Creates a data block with a size of 2880 bytes.
public FitsDataBlock()
FitsDataBlock(byte[])
Creates a data block with the specified raw data.
public FitsDataBlock(byte[] data)
Parameters
data
byte[]Raw data for this data block. Must contain exactly 2880 bytes."/>
Exceptions
- FitsModelException
Thrown if
data
is null or does not contain 2880 bytes.
Properties
Data
Raw data of this data block.
public byte[] Data { get; }
Property Value
- byte[]
Methods
ChunkHeaderEntries()
Chunks this data block into 80 byte header entries.
public IEnumerable<FitsHeaderEntry> ChunkHeaderEntries()
Returns
ChunkValues(BitPix)
Chunks this data block into byte arrays where each byte array contains the data for a single value based on the specified BitPix value.
public IEnumerable<byte[]> ChunkValues(BitPix bitPix)
Parameters
bitPix
BitPix
Returns
- IEnumerable<byte[]>
ToString()
public override string ToString()