vista.known_sources.stars.Stars¶
- class vista.known_sources.stars.Stars(name, catalog=None, V_max=None, V_min=-10)[source]¶
Class to hold star data, converting to positions as necessary
- stars¶
A SkyCoord containing an array of star positions
- Type:
SkyCoord
- V_magnitudes¶
An array containing the magnitudes of the stars. These are not necessarily in the V band, as every survey is slightly different, but when applicable it contains magnitudes in some ~visual band. E.g., Hipparcos Hp, Gaia G
- Type:
NDArray
- __init__(name, catalog=None, V_max=None, V_min=-10)[source]¶
Create a Stars object
- Parameters:
name (str) – Name of the Stars object (e.g. ‘Hipparcos stars’, ‘Gaia stars’, etc.)
catalog (str, None) – Name of the catalog to query. If value is one of [“Hipparcos”, “Gaia”], it will query data from online. Otherwise, it is assumed to be the name of a csv file of star data that contains at least the columns [“ID”, “RA”, “Dec”, “V_mag”]. It may optionally also include the columns [“pmRA”, “pmDec”, “parallax”, “parallax_error”]. If any optional columns are not present, they are assumed to be zero. Units of RA and Dec must be degrees, pmRA and pmDec must be mas / year, and parallax and parallax error must be mas. It is assumed that the csv contains values at the J2000 epoch.
V_max (int, default=7) – Faintness limit (more positive = fainter)
V_min (int, default=-10) – Brightness limit (more negative = brighter)
Methods
__init__(name[, catalog, V_max, V_min])Create a Stars object
create_tracks(imagery)Create a list of Tracks for the sources for the provided imagery.
get_geodetics(times)Return an EarthLocation containing the positions of the stars at the provided times
get_pixels(imagery, times)Return the pixel positions of the source for the provided imagery and time(s).
- __init__(name, catalog=None, V_max=None, V_min=-10)[source]¶
Create a Stars object
- Parameters:
name (str) – Name of the Stars object (e.g. ‘Hipparcos stars’, ‘Gaia stars’, etc.)
catalog (str, None) – Name of the catalog to query. If value is one of [“Hipparcos”, “Gaia”], it will query data from online. Otherwise, it is assumed to be the name of a csv file of star data that contains at least the columns [“ID”, “RA”, “Dec”, “V_mag”]. It may optionally also include the columns [“pmRA”, “pmDec”, “parallax”, “parallax_error”]. If any optional columns are not present, they are assumed to be zero. Units of RA and Dec must be degrees, pmRA and pmDec must be mas / year, and parallax and parallax error must be mas. It is assumed that the csv contains values at the J2000 epoch.
V_max (int, default=7) – Faintness limit (more positive = fainter)
V_min (int, default=-10) – Brightness limit (more negative = brighter)
- get_geodetics(times)[source]¶
Return an EarthLocation containing the positions of the stars at the provided times
- Parameters:
times (np.datetime64 | NDArray[np.datetime64] | astropy.time.Time) – Time or array of times for which to retrieve positions
- Returns:
Astropy EarthLocation object containing geodetic coordinates in km
- Return type:
EarthLocation