Skip to main content

Star Catalog

The stars command provides access to the Hipparcos bright star catalog, containing precise astrometric and photometric data for bright stars visible to the naked eye and binoculars.

Overview

The Hipparcos catalog (named after the ancient Greek astronomer) was compiled from observations by ESA's Hipparcos satellite (1989-1993). It provides:

  • Precise positions — Milliarcsecond accuracy
  • Proper motions — Stellar movement across the sky
  • Parallax — Distance measurements
  • Photometry — Brightness and color data
  • Spectral types — Stellar classification

Spectral Classes

Stars are classified by spectral type (temperature sequence):

ClassColorTemperatureExamples
OBlue>30,000 KRare, massive stars
BBlue-white10,000-30,000 KRigel, Spica
AWhite7,500-10,000 KVega, Sirius
FYellow-white6,000-7,500 KProcyon, Canopus
GYellow5,200-6,000 KSun, Alpha Centauri A
KOrange3,700-5,200 KArcturus, Aldebaran
MRed2,400-3,700 KBetelgeuse, Antares

stars list

List stars from the Hipparcos catalog with optional filters.

starward stars list [OPTIONS]

Options:

OptionDescription
--constellation CODEFilter by constellation (3-letter code)
--magnitude MAGShow stars brighter than magnitude
--spectral CLASSFilter by spectral class (O, B, A, F, G, K, M)
--limit NMaximum results (default: 50)

Examples:

# List brightest stars
starward stars list

# Stars in Orion
starward stars list --constellation Ori

# Bright stars (magnitude < 2)
starward stars list --magnitude 2

# Red giants (K and M type)
starward stars list --spectral K
starward stars list --spectral M

# Combine filters: bright blue stars
starward stars list --spectral B --magnitude 3

stars show

Display detailed information about a star.

starward stars show HIP_NUMBER

Arguments:

ArgumentDescription
HIP_NUMBERHipparcos catalog number

Example:

starward stars show 32349

Output:

HIP 32349 — Sirius
────────────────────────────────────────
Bayer α Canis Majoris
Constellation CMa
Coordinates 06h 45m 08.9s −16° 42′ 58″
Magnitude −1.46
Spectral Type A1V
B−V Color 0.00
Parallax 379.21 mas
Distance 8.60 ly
────────────────────────────────────────

Well-Known Stars

HIPNameDescription
32349SiriusBrightest star in the night sky
91262VegaStandard star, A0V reference
11767PolarisNorth Star, Cepheid variable
27989BetelgeuseRed supergiant in Orion
69673ArcturusBrightest star in northern hemisphere
24436RigelBlue supergiant in Orion
21421AldebaranOrange giant, eye of Taurus
37826PolluxBrightest star in Gemini

Search stars by name, Bayer designation, spectral type, or constellation.

starward stars search QUERY [OPTIONS]

Arguments:

ArgumentDescription
QUERYSearch term (case-insensitive)

Options:

OptionDescription
--limit NMaximum results (default: 25)

Examples:

# Search by common name
starward stars search "sirius"
starward stars search "betelgeuse"

# Search by Bayer designation
starward stars search "alpha"
starward stars search "alpha orionis"

# Search by spectral type
starward stars search "A0V"
starward stars search "M2"

# Search by constellation
starward stars search "Ori"

stars stats

Display catalog statistics.

starward stars stats

Output:

Hipparcos Catalog Statistics
────────────────────────────────────────
Total stars 9,110
Named stars 312
Brightest Sirius (−1.46)

By Spectral Class:
O 15
B 234
A 1,456
F 1,823
G 2,145
K 2,567
M 870
────────────────────────────────────────

stars altitude

Calculate the current altitude of a star.

starward stars altitude HIP_NUMBER [OPTIONS]

Options:

OptionDescription
--lat FLOATObserver latitude (degrees)
--lon FLOATObserver longitude (degrees)
--observer NAMEUse named observer profile
--jd FLOATJulian Date (default: now)

Example:

starward stars altitude 32349 --lat 40.7 --lon -74.0

Output:

Sirius (HIP 32349)
Altitude: 23° 45′ 12″
Azimuth: 187° 32′ 44″
Status: Above horizon

stars rise / transit / set

Calculate rise, transit, or set times for a star.

starward stars rise HIP_NUMBER [OPTIONS]
starward stars transit HIP_NUMBER [OPTIONS]
starward stars set HIP_NUMBER [OPTIONS]

Options: Same as altitude command.

Examples:

# When does Sirius rise tonight?
starward stars rise 32349 --lat 40.7 --lon -74.0

# When does Vega transit?
starward stars transit 91262 --observer greenwich

# When does Betelgeuse set?
starward stars set 27989 --lat 51.5 --lon 0

Output:

Sirius (HIP 32349) Rise Time
────────────────────────────────────────
Rise: 18:23:45 UTC
Azimuth: 118° 32′ (ESE)
────────────────────────────────────────

JSON Output

All commands support JSON output for scripting:

starward --json stars show 32349
starward --json stars list --constellation Ori
starward --json stars stats

Example JSON:

{
"number": 32349,
"name": "Sirius",
"bayer": "Alpha Canis Majoris",
"constellation": "CMa",
"ra_hours": 6.7525,
"dec_degrees": -16.7161,
"magnitude": -1.46,
"spectral_type": "A1V",
"bv_color": 0.00,
"parallax_mas": 379.21,
"distance_ly": 8.60
}

Tips

Finding Stars

# Find a star by common name
starward stars search "arcturus"
starward stars search "polaris"

# Find stars by Greek letter designation
starward stars search "alpha centauri"
starward stars search "beta orionis"

# Find all named stars in a constellation
starward stars list --constellation Ori

Observing Bright Stars

# List the 10 brightest stars
starward stars list --magnitude 1.5

# Check if a star is visible now
starward stars altitude 32349 --lat 40.7 --lon -74.0

# Find best viewing time (transit)
starward stars transit 91262 --observer home

Stellar Classification

# Find hot blue stars
starward stars list --spectral B --magnitude 4

# Find red giants
starward stars list --spectral K --magnitude 3
starward stars list --spectral M --magnitude 4

# Find Sun-like stars
starward stars list --spectral G --magnitude 5

Scripting Examples

# Get coordinates for a star
starward --json stars show 32349 | jq '{ra: .ra_hours, dec: .dec_degrees}'

# Export all Orion stars
starward --json stars list --constellation Ori > orion_stars.json

# Get magnitude of brightest stars
starward --json stars list --magnitude 1 | jq '.[].magnitude'

See Also


Next: Object Finder — Cross-catalog search