gaia

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gaia is the adapter for ESA's Gaia archive: rows of Gaia DR3's gaia_source, as FITS, asked as a job of the archive's TAP service. A job runs under the session SignIn starts, so the archive knows whose it is.

The archive's account of its service, read 2026-11-05: https://www.cosmos.esa.int/web/gaia-users/archive/programmatic-access

Index

Constants

View Source
const Service = "https://gea.esac.esa.int/tap-server"

Service is the archive's TAP service. Its session is kept for it.

Variables

This section is empty.

Functions

func Load

func Load(path string) ([]*http.Cookie, error)

Load reads the cookies Save wrote to path. It refuses a file anyone but its owner can read, and one with no session in it.

func Save

func Save(cookies []*http.Cookie, path string) error

Save writes a session's cookies to path, readable by its owner alone, over a session saved there before. Whoever holds them is the user who signed in, until they expire. It refuses cookies with no session, and a file anyone else can read.

func SignIn

func SignIn(get web.Web, user, password string) error

SignIn signs a user in to the archive through get, which keeps the session the archive sets. The password goes in the form and nowhere else.

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

Archive is gaia_source, asked for some columns of the rows that meet a condition.

func New

func New(columns, where string) (*Archive, error)

New is the archive, asked for columns of the rows that meet where, or of every row when where is none. It refuses no columns.

func (*Archive) ByNameOnly

func (*Archive) ByNameOnly() bool

ByNameOnly says the archive is asked only when it is named: its job runs under someone's name, and can run for hours.

func (*Archive) Find

func (archive *Archive) Find(near *celestialdata.Near) (
	[]*celestialdata.Product, error)

Find is one file: the rows within the circle, asked as a job when the file is fetched. A circle as wide as the sky asks for every row, with no circle in its query.

func (*Archive) Name

func (archive *Archive) Name() string

Name is the adapter's name as the command line takes it.

Jump to

Keyboard shortcuts

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