Reference · Pictures of deep-sky objects and where each lies on the sky
DeepSkyPicturetype
A picture of one deep-sky object. It is a tangent-plane image about its centre with north at the top and east on the left (the way sky photographs are), turned by rotation, so its place on
the sky is exact and pictureCorners gives its corners.
Import it
import type { DeepSkyPicture } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
Definition
interface DeepSkyPicture {
id: string;
object: string;
file: string;
width: number;
height: number;
centre: SkyPoint;
arcsecPerPixel: number;
rotation: number;
source: PictureSource;
credit: string;
address: string;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | The picture's own id: the object's id ( |
object | string | The id of the deep-sky object the picture shows ( |
file | string | The file's path under the folder the pictures are served from, |
width | number | Width in pixels. |
height | number | Height in pixels. |
centre | SkyPoint | The sky point at the middle of the picture (J2000, degrees). |
arcsecPerPixel | number | The angular size of a pixel in arc-seconds. |
rotation | number | Degrees the picture's top is turned from north toward east; 0 for north up. |
source | PictureSource | Where the picture comes from. |
credit | string | The credit line for this picture: the survey's, or the release's own for a picture from a space agency. |
address | string | Where the picture was read from: the SkyView address the first band was cut from (the one that says exactly what was asked), or the page of the release. |
Examples
import { deepSkyPicture, type DeepSkyPicture } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
const picture: DeepSkyPicture = deepSkyPicture("M31")!;
console.log(picture.file, picture.width, picture.arcsecPerPixel);pictures/M31.webp 1800 7.25What it prints (run when this page was built)