Hdu
Defined in: hdu/hdu.ts:16
One Header-Data Unit: its parsed FitsHeader and the location of its data within the source, without decoding the data itself.
FITS Standard v4.0 §3.3-3.4: primary HDU and extensions
Properties
Section titled “Properties”dataByteLength
Section titled “dataByteLength”readonly dataByteLength: number;Defined in: hdu/hdu.ts:28
Data unit length in bytes, padded to the 2880 block.
dataOffset
Section titled “dataOffset”readonly dataOffset: number;Defined in: hdu/hdu.ts:26
Byte offset of the data unit from the start of the source.
dataSizeKnown
Section titled “dataSizeKnown”readonly dataSizeKnown: boolean;Defined in: hdu/hdu.ts:35
false when dataByteLength does not reflect the full declared data
unit: a structural keyword was missing or out of domain, or the source
was truncated. Reading dataOffset .. dataOffset + dataByteLength is
only safe when this is true.
header
Section titled “header”readonly header: FitsHeader;Defined in: hdu/hdu.ts:20
readonly index: number;Defined in: hdu/hdu.ts:18
Zero-based position in the file.
readonly optional name?: string;Defined in: hdu/hdu.ts:22
EXTNAME, when present.
readonly type: HduType;Defined in: hdu/hdu.ts:19
version?
Section titled “version?”readonly optional version?: number;Defined in: hdu/hdu.ts:24
EXTVER, when present.