caom

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 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 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

func Download

func Download(uri string) string

Download is the address a file is fetched from, by its data URI.

Types

type Asker

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

Asker asks MAST's API for an adapter, whose refusals its are.

func New

func New(base *celestialdata.Adapter) *Asker

New is an asker for the adapter base.

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.

func (*Asker) Files

func (asker *Asker) Files(id int64) ([]File, error)

Files is each file of an observation, 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.

Jump to

Keyboard shortcuts

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