bsc5

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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 bsc5 is the adapter for the Yale Bright Star Catalogue, its fifth revised edition (Hoffleit and Warren, 1991): 9,110 rows, the stars a naked eye sees with their J2000 places, V, B-V and spectral types, and fourteen with no place, novae and things found not stars.

The archive is the one file, ybsc5.gz, as Harvard's Telescope Data Center serves it, laid out as Warren's ybsc5.readme beside it says, read 2026-11-10 (sources.yaml). Read reads it; a Star is one row.

CDS Strasbourg keeps the same catalogue as V/50. It did not answer from here that day, so the adapter asks Harvard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*celestialdata.Fixed, error)

New is the archive of the catalogue, asked by name only. It holds the one file, whatever the circle.

Types

type Star

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

Star is one row of the catalogue: a star as the fifth edition gives it, the fields the reader reads.

func Read

func Read(file io.Reader) ([]Star, error)

Read is every row of the catalogue in a file, gzipped as Harvard serves it or not: a row a line, read by the byte columns the readme gives. A row it cannot read is refused, naming its line, and so is a file with no rows at all, which is a download cut short.

func (Star) BV

func (star Star) BV() (float64, bool)

BV is the star's B-V colour in the UBV system, in magnitudes, and whether the catalogue gives one.

func (Star) HD

func (star Star) HD() (int, bool)

HD is the star's number in the Henry Draper Catalogue, and whether the catalogue gives one.

func (Star) HR

func (star Star) HR() int

HR is the star's Harvard Revised number, its row in the catalogue, from 1 to 9110.

func (Star) Name

func (star Star) Name() string

Name is the star's Bayer or Flamsteed name as the catalogue writes it, such as "9Alp CMa" for Sirius, or none.

func (Star) Place

func (star Star) Place() *sky.Equatorial

Place is where the star is on the sky, J2000, or nil for the few rows with none: novae and objects found not to be stars.

func (Star) Spectral

func (star Star) Spectral() string

Spectral is the star's spectral type as the catalogue writes it, such as "A1Vm", or none.

func (Star) Visual

func (star Star) Visual() (float64, bool)

Visual is the star's visual magnitude, V, and whether the catalogue gives one.

Jump to

Keyboard shortcuts

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