Reference · Pictures of deep-sky objects and where each lies on the sky
deepSkyPicturefunction
The widest picture of an object by its designation (M31, m 31, Messier 31, NGC 7000), ignoring case and spacing: the survey picture, which shows the whole object and the sky round it. It is
found by the object's own id: NGC 224 finds nothing, because the picture is filed as M31. For the finer pictures of part of an object, use deepSkyPicturesOf.
Import it
import { deepSkyPicture } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
Definition
function deepSkyPicture(text: string): DeepSkyPicture | undefined
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The object's id. |
Returns
DeepSkyPicture | undefined
The picture, or undefined where the object has none.
Examples
import { deepSkyPicture } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
console.log(deepSkyPicture("M 42")?.source.name, deepSkyPicture("M40")?.file);ESO undefinedWhat it prints (run when this page was built)