spherex

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: 12 Imported by: 1 module, 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 spherex finds the images NASA's SPHEREx mission has taken of a place on the sky, as IRSA holds them, and names a cutout of each: a small multi-extension FITS file round the circle's centre.

The cutout has the image's extensions of pixels, flags, variance, zodiacal light and wavelength cut to the place, and its point spread function whole.

The mission's linear variable filters put a star at a different wavelength in each image, so the cutouts of one place, taken together, hold its spectrum between 0.75 and 5 micron. Making the spectrum is not done here; this package finds and fetches.

The images are asked of IRSA's TAP service, which lists them in its spherex.artifact and spherex.plane tables. The cutouts are cut by IRSA's image server from the address of the whole image.

The tables, the layout of the files and the cutout form were read on 2026-11-06 (sources.yaml).

IRSA asks that work using SPHEREx data say so, in the words the readme gives, and cite the release's DOI: 10.26131/IRSA652 for QR2 and 10.26131/IRSA662 for QR3.

IRSA's pages state no limit on the rate of requests. Find asks once, and the command fetches one cutout at a time.

A cutout is some 4 to 5 MB, nearly all of it the point spread function, which the image server does not cut. The server says no length for a cutout.

So a product here is held, by Fetch, to being a whole cutout: a FITS file all the way through, of the primary, the image, its flags, variance and zodiacal light of its size, the release's PSF and the wavelength table, in that order and no more.

A file cut short, even where a unit ends, or not FITS, is not kept.

The archive is asked only by name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

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

Archive is the SPHEREx images IRSA holds.

func New

func New(get web.Web, most int) (*Archive, error)

New is the SPHEREx images, asked through get for at most most images a search. It refuses no web and a most below one.

func (*Archive) ByNameOnly

func (*Archive) ByNameOnly() bool

ByNameOnly says the archive is asked only when it is named.

func (*Archive) Find

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

Find is a cutout of each image whose footprint meets the circle, the earliest first, at most as many as the archive was made to ask for. The cutout is centred on the circle's centre and is twice the radius a side, but never less nor more than numbers.yaml says.

func (*Archive) Name

func (archive *Archive) Name() string

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

Directories

Path Synopsis
Package spectrum measures a star's light in the SPHEREx cutouts the spherex archive fetched, one wavelength an image: together they are the star's spectrum from 0.75 to 5 microns.
Package spectrum measures a star's light in the SPHEREx cutouts the spherex archive fetched, one wavelength an image: together they are the star's spectrum from 0.75 to 5 microns.

Jump to

Keyboard shortcuts

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