Documentation
¶
Overview ¶
Package caom asks MAST's API about the observations it keeps in its Common Archive Observation Model: those whose footprint meets a circle, and the files of each. It is what the tess and k2 adapters ask MAST through.
The questions go to MAST's API by the CAOM cone search and then each observation's products, read 2026-11-06 from MAST's pages and its answers (sources.yaml).
MAST answers a question it is still working on with EXECUTING, and is asked again until it is done. Its refusals are the adapter's that asks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asker ¶
type Asker struct {
// contains filtered or unexported fields
}
Asker asks MAST's API for an adapter, whose refusals its are.
func (*Asker) Cone ¶
func (asker *Asker) Cone(near *celestialdata.Near) ([]Observation, error)
Cone is each observation whose footprint meets the circle, in the order MAST gives them.
type File ¶
type File struct {
Name string `json:"productFilename"`
Kind string `json:"productType"`
URI string `json:"dataURI"`
Size int64 `json:"size"`
}
File is a row of a products search's answer.
type Observation ¶
type Observation struct {
Collection string `json:"obs_collection"`
Provenance string `json:"provenance_name"`
Project string `json:"project"`
Kind string `json:"dataproduct_type"`
Target string `json:"target_name"`
ObsID int64 `json:"obsid"`
Sequence int64 `json:"sequence_number"`
Exposure float64 `json:"t_exptime"`
}
Observation is a row of a cone search's answer.