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 Source struct to catalog module in @observerly/skysolve #7

Merged
merged 1 commit into from
Oct 27, 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
Empty file added go.sum
Empty file.
25 changes: 25 additions & 0 deletions pkg/catalog/base.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*****************************************************************************************************************/

// @author Michael Roberts <michael@observerly.com>
// @package @observerly/skysolve
// @license Copyright © 2021-2025 observerly

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

package catalog

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

type Source struct {
UID string `json:"uid" gaia:"source_id"` // Source ID (unique)
Designation string `json:"designation" gaia:"designation"` // Source Designation
RA float64 `json:"ra" gaia:"ra"` // Right Ascension (in degrees)
Dec float64 `json:"dec" gaia:"dec"` // Declination (in degrees)
ProperMotionRA float64 `json:"pmra" gaia:"pmra"` // Proper Motion in RA (in mas/yr)
ProperMotionDec float64 `json:"pmdec" gaia:"pmdec"` // Proper Motion in Dec (in mas/yr)
Parallax float64 `json:"parallax" gaia:"parallax"` // Parallax (in mas)
PhotometricGMeanFlux float64 `json:"flux" gaia:"phot_g_mean_mag"` // Mean Flux (in e-/s)
PhotometricGMeanMagnitude float64 `json:"magnitude" gaia:"phot_g_mean_flux"` // Mean Magnitude (in mag)
}

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