NearStarSourcestype
Where each value of a system comes from.
Import it
import type { NearStarSources } from "@johnmorrisdotca/hoshi-stars/near-stars";
Definition
interface NearStarSources {
position: NearStarSource;
distance: NearStarDistanceSource;
spectralType: NearStarSource | undefined;
magnitude: NearStarSource | undefined;
properMotion: NearStarSource | undefined;
}
Members
| Name | Type | Description |
|---|---|---|
position | NearStarSource | The right ascension and declination: |
distance | NearStarDistanceSource | The parallax and the distance. |
spectralType | NearStarSource | undefined | The spectral type, or |
magnitude | NearStarSource | undefined | The V magnitude, or |
properMotion | NearStarSource | undefined | The proper motion, or |
Examples
import { nearStarByName, type NearStarSources } from "@johnmorrisdotca/hoshi-stars/near-stars";
const sources: NearStarSources = nearStarByName("Barnard's Star")!.sources;
console.log(sources.position, sources.distance, sources.magnitude);2MASS GCTP GCTPWhat it prints (run when this page was built)