Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Triangulum Australae constellation module in @observerly/astrometry #354

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/constellations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export { sextans } from './constellations/sextans'
export { taurus } from './constellations/taurus'
export { telescopium } from './constellations/telescopium'
export { triangulum } from './constellations/triangulum'
export { triangulumAustralae } from './constellations/triangulumAustralae'

/*****************************************************************************************************************/

Expand Down
1 change: 1 addition & 0 deletions src/constellations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@ export { sextans } from './sextans'
export { taurus } from './taurus'
export { telescopium } from './telescopium'
export { triangulum } from './triangulum'
export { triangulumAustralae } from './triangulumAustralae'

/*****************************************************************************************************************/
79 changes: 79 additions & 0 deletions src/constellations/triangulumAustralae.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*****************************************************************************************************************/

// @author Michael Roberts <[email protected]>
// @package @observerly/astrometry/triangulumAustralae
// @license Copyright © 2021-2024 observerly

/*****************************************************************************************************************/

import type { EquatorialCoordinate } from '../common'

import { createConstellationAsGeoJSON } from './create'

/*****************************************************************************************************************/

const centrum: EquatorialCoordinate = {
ra: 240.8936041,
dec: -67.7123117
}

/*****************************************************************************************************************/

// prettier-ignore
const aster: number[][][] = [
// Atria to β Trianguli Australis:
[
[252.166229, -69.027712],
[238.786708, -63.429750]
],
// β Trianguli Australis to γ Trianguli Australis:
[
[238.786708, -63.429750],
[229.727875, -68.679472]
],
// γ Trianguli Australis to Atria:
[
[229.727875, -68.679472],
[252.166229, -69.027712]
]
]

/*****************************************************************************************************************/

// prettier-ignore
const boundaries: number[][][] = [
[
[224.166441, -70.511543],
[224.003634, -68.012207],
[226.557126, -67.990929],
[226.353535, -64.075127],
[230.166579, -64.041565],
[230.054570, -61.458748],
[232.589765, -61.435307],
[232.549868, -60.435493],
[249.034681, -60.264458],
[249.081630, -61.264195],
[251.537847, -61.236458],
[251.676321, -63.818996],
[254.195137, -63.790093],
[254.283515, -65.206253],
[255.542393, -65.191643],
[255.724983, -67.690582],
[258.242482, -67.661087],
[258.470679, -70.159744],
[224.166441, -70.511543]
]
]

/*****************************************************************************************************************/

// https://www.iau.org/public/themes/constellations/#tra
export const triangulumAustralae = createConstellationAsGeoJSON(
'Triangulum Australe',
'the southern triangle',
centrum,
aster,
boundaries
)

/*****************************************************************************************************************/
Loading