FaintTiletype
A tile, decoded: the stars of one tile as parallel arrays, sorted by declination. magnitude is in magnitudes, and colourIndex is NaN where there is none.
Import it
import type { FaintTile } from "@johnmorrisdotca/hoshi-stars/faint";
Definition
interface FaintTile {
id: FaintTileId;
count: number;
rightAscension: Float64Array;
declination: Float64Array;
magnitude: Float64Array;
colourIndex: Float64Array;
parallaxMas?: Float64Array;
properMotionRa?: Float64Array;
properMotionDec?: Float64Array;
}
Members
| Name | Type | Description |
|---|---|---|
id | FaintTileId | |
count | number | |
rightAscension | Float64Array<ArrayBufferLike> | |
declination | Float64Array<ArrayBufferLike> | |
magnitude | Float64Array<ArrayBufferLike> | |
colourIndex | Float64Array<ArrayBufferLike> | |
parallaxMas (optional) | Float64Array<ArrayBufferLike> | undefined | Optional, from a source that has them (the package's own tiles do not): the parallax in milliarcseconds, |
properMotionRa (optional) | Float64Array<ArrayBufferLike> | undefined | Optional: the proper motion along right ascension in milliarcseconds a year, already times cos(declination) (the usual |
properMotionDec (optional) | Float64Array<ArrayBufferLike> | undefined | Optional: the proper motion along declination in milliarcseconds a year, |
Examples
import { decodeFaintTile } from "@johnmorrisdotca/hoshi-stars/faint";
const tile = decodeFaintTile({ level: 0, band: 9, column: 0 }, new Uint8Array(0));
console.log(tile.count); // 00What it prints (run when this page was built)