catalog

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GAIAQuery

type GAIAQuery struct {
	RA     float64 // right ascension (in degrees)
	Dec    float64 // right ascension (in degrees)
	Radius float64 // search radius (in degrees)
	Limit  float64 // limiting magnitude
}

type GAIAResponse added in v0.1.0

type GAIAResponse struct {
	// Assuming GAIA TAP returns a "data" field containing an array of records.
	Data [][]interface{} `json:"data"`
}

GAIAResponse represents the JSON structure returned by GAIA TAP service.

type GAIAServiceClient

type GAIAServiceClient struct {
	URI    string
	Query  GAIAQuery
	Client *http.Client
}

func NewGAIAServiceClient

func NewGAIAServiceClient() *GAIAServiceClient

Gaia DR3 service handler. The five-parameter astrometric solution, positions on the sky (α, δ), parallaxes, and proper motions, are given for around 1.46 billion sources, with a limiting magnitude of G = 21.

func (*GAIAServiceClient) Build

func (g *GAIAServiceClient) Build() (string, error)

func (*GAIAServiceClient) PerformRadialSearch

func (g *GAIAServiceClient) PerformRadialSearch(eq astrometry.ICRSEquatorialCoordinate, radius float64, limit float64) ([]Source, error)

type Source

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)
}

type SourceAsterism

type SourceAsterism struct {
	A        Source
	B        Source
	C        Source
	Features geometry.InvariantFeatures
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL