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 json: struct tags to Star in star module in @observerly/skysolve #191

Merged
merged 1 commit into from
Jan 30, 2025
Merged
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
12 changes: 6 additions & 6 deletions pkg/star/star.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import "github.com/observerly/skysolve/pkg/geometry"
/*****************************************************************************************************************/

type Star struct {
Designation string // e.g., some catalog ID or some colloquial name, e.g., "Sirius", or "HD 1" etc
X float64 // X pixel coordinate
Y float64 // Y pixel coordinate
RA float64 // Sky coordinates in the azimuthal plane (in degrees)
Dec float64 // Sky coordinates in the polar plane (in degrees)
Intensity float64 // Intensity of the star at the central pixel, X and Y
Designation string `json:"designation"` // e.g., some catalog ID or some colloquial name, e.g., "Sirius", or "HD 1" etc
X float64 `json:"X"` // X pixel coordinate
Y float64 `json:"Y"` // Y pixel coordinate
RA float64 `json:"ra"` // Sky coordinates in the azimuthal plane (in degrees)
Dec float64 `json:"dec"` // Sky coordinates in the polar plane (in degrees)
Intensity float64 `json:"intensity"` // Intensity of the star at the central pixel, X and Y
}

/*****************************************************************************************************************/
Expand Down