Documentation
¶
Overview ¶
Package dasch finds the light curves DASCH holds of a place on the sky: Harvard's Digital Access to a Sky Century @ Harvard, the photographic plates of the Harvard College Observatory, 1880s to 1989, scanned and measured; its final release is DR7.
DR7 serves a light curve only through the Starglass web API, which takes a POST with a JSON body, not an address a GET opens. Its public tier asks for no key.
The API was read on 2026-11-08 from DASCH's page on the DR7 web APIs, its page on the data products, Starglass's page on authentication, and daschlab's source (apiclient.py, lightcurves.py, refcat.py), which is Harvard's own client for it.
A search is two questions. The first, querycat, is a box search of the APASS reference catalogue, the one DASCH prefers, for the sources round a place; each source has two numbers, ref_number and gsc_bin_index.
The second, lightcurve, takes those and answers with one source's raw light curve: every measure of it, flagged or not. Find asks the first and names a light curve of each source in the circle. Each is a product whose address Lightcurves, a web, answers with the second.
The archive is asked only by name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrStopped = errors.New("the API asked us to stop")
ErrStopped is the API asking us to stop, by a 429. An asker that has been asked sends nothing more until the time the API gave, so a fetch of many light curves stops with the first refusal.
Functions ¶
func Pages ¶
func Pages() (*celestialdata.Fixed, error)
Pages is the archive of DASCH's own pages the adapter was built from, asked by name only. They are fetched to be kept as the record of what the adapter was read from, in cited-sources, which .game holds out of every release: they are Harvard's.
Types ¶
type Archive ¶
type Archive struct {
// contains filtered or unexported fields
}
Archive is DASCH DR7's light curves.
func New ¶
New is DASCH DR7's light curves, asked through doer, naming itself to DASCH by agent, and naming at most so many sources a circle, the nearest first. It refuses no doer, no agent, and fewer than one source.
func (*Archive) ByNameOnly ¶
ByNameOnly says the archive is asked only when it is named.
type Lightcurves ¶
type Lightcurves struct {
// contains filtered or unexported fields
}
Lightcurves is a web that asks DASCH for a light curve. Asked for a light curve's address, as Find makes it, it sends the question as a POST, which is the only way DR7 gives one.
It opens the answer as the CSV it holds: the first line the names of the columns, then a line a measure. It asks the web under it for anything else unchanged.
func NewLightcurves ¶
NewLightcurves is a web of light curves over under, asking through doer and naming itself to DASCH by agent. It refuses no web under it, no doer and no agent.
func (*Lightcurves) Get ¶
func (curves *Lightcurves) Get(address string) (io.ReadCloser, int64, error)
Get opens what an address holds. For a light curve's address, that is the light curve, as CSV; it asks DASCH once, and no more. An address that is a light curve's but holds no question DASCH takes is an error.