star: Create _skyscapeR.star_ object

Description Usage Arguments See Also Examples

View source: R/stars.R

Description

This function retrieves information for a given star and saves it in the skyscapeR.star format ready to be used by other skyscapeR package function.

Usage

1
star(string, year = 2000)

Arguments

string

This can be either: 1) the common name for the star, 2) the Hipparchos catalogue number (if string begins with HIP), 3) the Bright Star Catalogue number (if string begins with HR), 4) the Messier catalogue number (if string begins with M), or 5) the Bayer designation (if string has exactly 5 characters, the second of which is a space).

year

Year for which to calculate the coordinates. Defaults to J2000.0 epoch.

See Also

swe_fixstar2_ut, swe_fixstar2_mag

Examples

1
2
3
4
5
6
7
8
9
# Retrieve data for Aldebaran:
Aldeb <- star('Aldebaran')

# Retrieve data for the Pleiades (M45):
P1 <- star('Pleiades')
P2 <- star('M45')

# Retrieve data for Sirius on 2999 BC:
ss <- star('Sirius', -3000)

f-silva-archaeo/skyscapeR documentation built on Jan. 22, 2019, 8:11 a.m.