fits-ts
TypeScript library for handling .fits files.
TypeScript library for handling .fits files.
TypeScript library for handling .fits files.
All notable changes to this project will be documented in this file.
lastIndexWithData
in Fits
for tracking which HDU’s data is currently cached ensureHeadersParsed
in FitsReader
to prevent redundant header parsing makePadding
utility for consistent block padding in FitsWriter
??=
) when initializing loadPromise
in Fits
FitsData
into three explicit interfaces: ImageData
, TableData
, and HeaderData
FitsHeader.get
/ .getNumber
/ .getString
/ .getComment
now return null
instead of throwing on missing keys addHDU
, getData
, async iterators (entries
), and serialization (toBytes
) to handle optional data cleanly FitsIO
, simplified offset math, removed vestigial error blocks ImageIO
and TableIO
to operate on TypedArrays and fully support all FITS BITPIX
values formatHeaderLine
to align numeric vs string values within 20-char fields and pad comments correctly stats
util to accept Iterable<number>
, filter out non-finite values, and compute robust statisticsFits
interface supporting both reading and writing of FITS files with a simple API.FitsWriter
and FitsReader
, supporting round-trip serialization.NAXIS1
, NAXIS2
, and TFIELDS
.getStats()
for tables and image HDUs.FitsHeader
typing and validation.entries()
and entriesArray()
for iteration over HDUs with lazy data loading.Fits
.pako
.FitsHeader
parsing to handle modern FITS quirks more reliably.FitsHDU
is constructed and handled.TFORMn
, TTYPEn
, and TUNITn
in tables.BSCALE
/BZERO
default handling in both image reader and writer paths.fits-ts
, a TypeScript library for handling .fits
files.BSCALE
and BZERO
for scaling image data.L
, B
, I
, J
, E
, D
, A
).