Characterizing Variable Stars with APOGEE + TESS#
Learning Goals#
By the end of this tutorial, you will:
Understand how to search the MAST Archive and download SDSS APOGEE data using
astroquery.mast
Plot a stellar spectrum and an HR diagram and using APOGEE data
Understand how to search for TESS light curves complementing the APOGEE observations
Explore different types of variable stars using their APOGEE parameters and TESS light curves
Table of Contents#
Introduction
Imports
Accessing APOGEE data at MAST
Querying all APOGEE data
Searching for a specific star
Downloading APOGEE data products
Plotting an APOGEE spectrum
Downloading the APOGEE allStar catalog
Plotting an HR diagram from APOGEE
Searching for TESS data of this star
Coordinate search using astroquery.mast
Plotting a light curve from TESS
Combining APOGEE and TESS data
Plotting APOGEE and TESS data together
Exploring Different types of Variable Stars
RR-Lyrae Variable: 2M11361176+8117369
Rotationally Variable - 2M19181706+5141323
Eclipsing Binary - 2M19203184+3830492
Additional Resources
How to Cite
About This Notebook
Introduction#
The Apache Point Observatory Galactic Evolution Experiment (APOGEE) survey provides infrared-wavelength high-resolution spectroscopy for over 650,000 unique stars from the Milky Way and nearby dwarf galaxies. APOGEE collected data between 2011 - 2020 as part of the Sloan Digital Sky Survey (SDSS-IV) project. APOGEE data is now available at the Mikulski Archive for Space Telescopes (MAST) through the SDSS Legacy Archive at MAST.
In this notebook tutorial, we will demonstrate how to access APOGEE data at MAST using Python. One APOGEE star, a Cepheid Variable named V1154-Cyg
will be used to demonstrate the basics of how to download and plot APOGEE data. We will then combine this APOGEE spectrum with light curves from the TESS mission, also accessible from MAST, to study this variable star.
Imports#
The main packages we’re using for this notebook and their use-cases are:
astroquery.mast Observations for searching the MAST archive
astropy.io fits for accessing FITS files
astropy.table Table for accessing FITS tables
astropy.units for working with astronomical units
astropy.coordinates for handling astronomical coordinates
matplotlib.pyplot for plotting data
numpy to handle array functions
%matplotlib inline
from astroquery.mast import Observations
import astropy.io.fits as fits
from astropy.table import Table
from astropy.coordinates import SkyCoord
import astropy.units as u
import matplotlib.pyplot as plt
import numpy as np
This cell updates some of the settings in matplotlib
to use larger font sizes in the figures:
#Update Plotting Parameters
params = {'axes.labelsize': 12, 'xtick.labelsize': 12, 'ytick.labelsize': 12,
'text.usetex': False, 'lines.linewidth': 1,
'axes.titlesize': 18, 'font.family': 'serif', 'font.size': 12}
plt.rcParams.update(params)
Accessing APOGEE data at MAST#
The SDSS Legacy Archive at MAST hosts all of the science-ready data products from the SDSS-IV APOGEE Survey, which includes spectra for over 650,000 unique stars in the Milky Way. APOGEE acquired observations in both the northern and southern hemispheres, targeting the disk, bulge, bar, and halo components of the Milky Way, as well as several hundred stars in nearby satellite galaxies (including the LMC and SMC). This notebook will demonstrate how to search and download APOGEE data using MAST!
Querying all APOGEE data#
Searching for APOGEE data is straightforward with astroquery.mast
. In this example, we use Observations.query_criteria
and search for provenance_name = 'APOGEE'
. This will return a table describing all of the APOGEE data hosted by the MAST archive.
Other useful search parameters for APOGEE data might include:
obs_collection = 'SDSS'
: searches for all SDSS dataTo specify telescope, use the
instrument_name
field. For example,instrument_name = 'apogee-lco25m'
limits the search to the stars that were observed with the Las Campanas Observatory 2.5-m telescope in the southern hemisphere.Use
target_name
to search for stars using their APOGEE ID (usually the 2MASS ID - for example'2M05320041-0017041'
)obs_id
can help search for specific targets or fields. Note that wild cards (*
) are allowed in the search fields, for example:obs_id='*n7789*'
for anything in the “N7789” fieldobs_id='*2M05320041-0017041*'
for a specific star name (2MASS ID)
# Search for APOGEE data
# Using the pagesize and page parameters to only return first 10 results
apogee_obs_list = Observations.query_criteria(provenance_name='APOGEE', pagesize=10, page=1)
# Display First Ten Entries in Table
apogee_obs_list
intentType | obs_collection | provenance_name | instrument_name | project | filters | wavelength_region | target_name | target_classification | obs_id | s_ra | s_dec | dataproduct_type | proposal_pi | calib_level | t_min | t_max | t_exptime | em_min | em_max | obs_title | t_obs_release | proposal_id | proposal_type | sequence_number | s_region | jpegURL | dataURL | dataRights | mtFlag | srcDen | obsid | objID |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str7 | str4 | str6 | str13 | str4 | str4 | str8 | str18 | str4 | str51 | float64 | float64 | str8 | str18 | int64 | float64 | float64 | float64 | float64 | float64 | str63 | float64 | str3 | str1 | int64 | str51 | str1 | str92 | str6 | bool | float64 | str9 | str9 |
science | SDSS | APOGEE | apogee-lco25m | SDSS | None | INFRARED | 2M06015966-6511312 | STAR | sdss_apogee_lco25m_275-29-o_tess_2m06015966-6511312 | 90.498613 | -65.192024 | spectrum | SDSS Collaboration | 3 | 58803.16980202546 | 58803.16980202546 | 4000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 90.498613 -65.192024 0.00018194444444444445 | -- | mast:SDSS/apogee/lco25m/275-29-O_TESS/2M06015966-6511312/asStar-dr17-2M06015966-6511312.fits | PUBLIC | False | nan | 234526617 | 675892862 |
science | SDSS | APOGEE | apogee-lco25m | SDSS | None | INFRARED | 2M19040099-3105425 | STAR | sdss_apogee_lco25m_sgrc-3_2m19040099-3105425 | 286.004128 | -31.095142 | spectrum | SDSS Collaboration | 3 | 58272.40463387731 | 58386.08833475695 | 20000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 286.004128 -31.095142 0.00018194444444444445 | -- | mast:SDSS/apogee/lco25m/SGRC-3/2M19040099-3105425/asStar-dr17-2M19040099-3105425.fits | PUBLIC | False | nan | 234602474 | 676189155 |
science | SDSS | APOGEE | apogee-apo25m | SDSS | None | INFRARED | 2M04164154+6021333 | STAR | sdss_apogee_apo25m_146+08_2m04164154+6021333 | 64.173086 | 60.359257 | spectrum | SDSS Collaboration | 3 | 57375.192900775466 | 57405.106328368056 | 12000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 64.173086 60.359257 0.0002777777777777778 | -- | mast:SDSS/apogee/apo25m/146+08/2M04164154+6021333/apStar-dr17-2M04164154+6021333.fits | PUBLIC | False | nan | 234102062 | 674246652 |
science | SDSS | APOGEE | apogee-apo25m | SDSS | None | INFRARED | 2M01302583+6121267 | STAR | sdss_apogee_apo25m_128+00_2m01302583+6121267 | 22.607651 | 61.35743 | spectrum | SDSS Collaboration | 3 | 55927.05033636574 | 56234.18446045139 | 12000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 22.607651 61.35743 0.0002777777777777778 | -- | mast:SDSS/apogee/apo25m/128+00/2M01302583+6121267/apStar-dr17-2M01302583+6121267.fits | PUBLIC | False | nan | 234163418 | 674578448 |
science | SDSS | APOGEE | apogee-apo25m | SDSS | None | INFRARED | 2M00230856+5909407 | STAR | sdss_apogee_apo25m_120-04_2m00230856+5909407 | 5.785674 | 59.161308 | spectrum | SDSS Collaboration | 3 | 55850.199708148146 | 55876.10345052083 | 12000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 5.785674 59.161308 0.0002777777777777778 | -- | mast:SDSS/apogee/apo25m/120-04/2M00230856+5909407/apStar-dr17-2M00230856+5909407.fits | PUBLIC | False | nan | 233850987 | 673171837 |
science | SDSS | APOGEE | apogee-lco25m | SDSS | None | INFRARED | 2M06532565-5934359 | STAR | sdss_apogee_lco25m_270-23-o_2m06532565-5934359 | 103.356886 | -59.576645 | spectrum | SDSS Collaboration | 3 | 58831.2889096875 | 58858.23940331019 | 16000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 103.356886 -59.576645 0.00018194444444444445 | -- | mast:SDSS/apogee/lco25m/270-23-O/2M06532565-5934359/asStar-dr17-2M06532565-5934359.fits | PUBLIC | False | nan | 234508082 | 675834494 |
science | SDSS | APOGEE | apogee-lco25m | SDSS | None | INFRARED | 2M10374795-6005195 | STAR | sdss_apogee_lco25m_287-01-c_2m10374795-6005195 | 159.449817 | -60.08876 | spectrum | SDSS Collaboration | 3 | 58913.999080277776 | 59187.270011030094 | 8000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 159.449817 -60.08876 0.00018194444444444445 | -- | mast:SDSS/apogee/lco25m/287-01-C/2M10374795-6005195/asStar-dr17-2M10374795-6005195.fits | PUBLIC | False | nan | 234568700 | 676053921 |
science | SDSS | APOGEE | apogee-apo25m | SDSS | None | INFRARED | 2M03032813+0107147 | STAR | sdss_apogee_apo25m_178-48_mga_2m03032813+0107147 | 45.86722 | 1.120754 | spectrum | SDSS Collaboration | 3 | 57779.11813167824 | 57783.097161412035 | 16000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 45.86722 1.120754 0.0002777777777777778 | -- | mast:SDSS/apogee/apo25m/178-48_MGA/2M03032813+0107147/apStar-dr17-2M03032813+0107147.fits | PUBLIC | False | nan | 234193034 | 674700500 |
science | SDSS | APOGEE | apogee-lco25m | SDSS | None | INFRARED | 2M06224728-7539285 | STAR | sdss_apogee_lco25m_lmc16_2m06224728-7539285 | 95.697025 | -75.657944 | spectrum | SDSS Collaboration | 3 | 58096.22771655093 | 58473.19855858797 | 36000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 95.697025 -75.657944 0.00018194444444444445 | -- | mast:SDSS/apogee/lco25m/LMC16/2M06224728-7539285/asStar-dr17-2M06224728-7539285.fits | PUBLIC | False | nan | 234493306 | 675790568 |
science | SDSS | APOGEE | apogee-apo25m | SDSS | None | INFRARED | 2M00381127+5351499 | STAR | sdss_apogee_apo25m_120-08_2m00381127+5351499 | 9.546987 | 53.863873 | spectrum | SDSS Collaboration | 3 | 56226.212095601855 | 56254.14381722222 | 12000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 9.546987 53.863873 0.0002777777777777778 | -- | mast:SDSS/apogee/apo25m/120-08/2M00381127+5351499/apStar-dr17-2M00381127+5351499.fits | PUBLIC | False | nan | 234132807 | 674410076 |
Searching for a specific star#
Let’s narrow down the search to one particular star: cepheid variable “V1154-Cyg”. Cepheid Variables are pulsating stars, which physically grow larger and smaller, and as a result brighter and dimmer, on a regular rhythm of few days. Cepheid variables in particular are useful to study in astronomy because their pulsation period correlates with their intrinsic brightness, making it easy to determine how far away the star is! Later in this notebook, we will look at some other kinds of variable stars.
We can search for this star in particular using the target_name
keyword:
# Search for APOGEE star V1154_Cyg
apogee_obs_list = Observations.query_criteria(provenance_name='APOGEE',
target_name='V1154_Cyg')
# Display results
apogee_obs_list
intentType | obs_collection | provenance_name | instrument_name | project | filters | wavelength_region | target_name | target_classification | obs_id | s_ra | s_dec | dataproduct_type | proposal_pi | calib_level | t_min | t_max | t_exptime | em_min | em_max | obs_title | t_obs_release | proposal_id | proposal_type | sequence_number | s_region | jpegURL | dataURL | dataRights | mtFlag | srcDen | obsid | objID |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str7 | str4 | str6 | str12 | str4 | str4 | str8 | str9 | str4 | str35 | float64 | float64 | str8 | str18 | int64 | float64 | float64 | float64 | float64 | float64 | str63 | float64 | str3 | str1 | int64 | str55 | str1 | str67 | str6 | bool | float64 | str9 | str9 |
science | SDSS | APOGEE | apogee-apo1m | SDSS | None | INFRARED | V1154_Cyg | STAR | sdss_apogee_apo1m_cepheid_v1154_cyg | 297.06439209 | 43.1268806458 | spectrum | SDSS Collaboration | 3 | 58002.324245497686 | 58069.124077939814 | 24000.0 | 1514.0 | 1696.0 | Apache Point Observatory Galactic Evolution Experiment (APOGEE) | 59554.0 | N/A | -- | -- | CIRCLE 297.06439209 43.1268806458 0.0002777777777777778 | -- | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apStar-dr17-V1154_Cyg.fits | PUBLIC | False | nan | 233753893 | 675403444 |
From this results table, we can see some basic metadata related to this observation:
This star was observed with the APO 1-M telescope (
instrument_name
)It’s coordinates are in the
s_ra
ands_dec
columnsFrom the
t_min
column, we can see that this star was first observed on the date of MJD 58002 (Correpsonding to 2017-09-06) and last observed on MJD 58069 (2017-11-12 )APOGEE provides infrared-wavelength (
wavelength_region
) spectra (dataproduct_type
) with wavelength range of 1514 - 1696 nanometers (em_min
,em_max
)
Downloading APOGEE data products#
List all of the data products available for this star using Observations.get_product_list()
.
There are 8 total files available for this star, which include the individual spectra from each visit (APVISIT; apVisit-dr17-*-V1154_Cyg.fits
), the combined spectrum (APSTAR; apStar-dr17-V1154_Cyg.fits
), the processed and anaylzed spectrum (ASPCAPSTAR; aspcapStar-dr17-V1154_Cyg.fits
) which contains the best-fit model and stellar parameters from the APOGEE Stellar Parameters and Chemical Abundance Pipeline (ASPCAP). Only the apStar and aspcapStar files are tagged as “Minimum Recommended Products’
More information on the APOGEE data products available at MAST can be found on the APOGEE Data Products in the Archive Manual, and more information on all of these products can be seen in the search results table:
# List all products available for this observation
products = Observations.get_product_list(apogee_obs_list)
# Show table
products
obsID | obs_collection | dataproduct_type | obs_id | description | type | dataURI | productType | productGroupDescription | productSubGroupDescription | productDocumentationURL | project | prvversion | proposal_id | productFilename | size | parent_obsid | dataRights | calib_level | filters |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str9 | str4 | str12 | str35 | str209 | str1 | str74 | str7 | str28 | str15 | str1 | str6 | str4 | str3 | str33 | int64 | str9 | str6 | int64 | str4 |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE single-visit spectrum from one night of observation. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apVisit-dr17-58002-V1154_Cyg.fits | SCIENCE | -- | APVISIT | -- | APOGEE | dr17 | N/A | apVisit-dr17-58002-V1154_Cyg.fits | 498240 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE single-visit spectrum from one night of observation. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apVisit-dr17-58004-V1154_Cyg.fits | SCIENCE | -- | APVISIT | -- | APOGEE | dr17 | N/A | apVisit-dr17-58004-V1154_Cyg.fits | 498240 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE single-visit spectrum from one night of observation. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apVisit-dr17-58013-V1154_Cyg.fits | SCIENCE | -- | APVISIT | -- | APOGEE | dr17 | N/A | apVisit-dr17-58013-V1154_Cyg.fits | 498240 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE single-visit spectrum from one night of observation. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apVisit-dr17-58041-V1154_Cyg.fits | SCIENCE | -- | APVISIT | -- | APOGEE | dr17 | N/A | apVisit-dr17-58041-V1154_Cyg.fits | 498240 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE single-visit spectrum from one night of observation. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apVisit-dr17-58050-V1154_Cyg.fits | SCIENCE | -- | APVISIT | -- | APOGEE | dr17 | N/A | apVisit-dr17-58050-V1154_Cyg.fits | 498240 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE single-visit spectrum from one night of observation. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apVisit-dr17-58069-V1154_Cyg.fits | SCIENCE | -- | APVISIT | -- | APOGEE | dr17 | N/A | apVisit-dr17-58069-V1154_Cyg.fits | 498240 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE combined, RV-corrected spectrum from all nights of observation for a single star. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/apStar-dr17-V1154_Cyg.fits | SCIENCE | Minimum Recommended Products | APSTAR | -- | APOGEE | dr17 | N/A | apStar-dr17-V1154_Cyg.fits | 4057920 | 233753893 | PUBLIC | 3 | None |
233753893 | SDSS | spectrum | sdss_apogee_apo1m_cepheid_v1154_cyg | SDSS APOGEE post-analysis pipeline (ASPCAP) spectrum. The combined spectrum is pseudo-continuum normalized, and includes the measured parameter estimates and best matching synthetic ASPCAP spectrum. | S | mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/aspcapStar-dr17-V1154_Cyg.fits | SCIENCE | Minimum Recommended Products | ASPCAPSTAR | -- | APOGEE | dr17 | N/A | aspcapStar-dr17-V1154_Cyg.fits | 247680 | 233753893 | PUBLIC | 3 | None |
234628801 | SDSS | measurements | sdss_apogee_allstar | SDSS APOGEE allStar catalog. This summary table contains stellar parameters, radial velocities, chemical compositions and observation metadata for each star observed in APOGEE, combined across multiple visits. | D | mast:SDSS/apogee/allStar-dr17-synspec_rev1.fits | SCIENCE | -- | APOGEE Catalogs | -- | APOGEE | dr17 | N/A | allStar-dr17-synspec_rev1.fits | 3970621440 | 233753893 | PUBLIC | 3 | -- |
234630899 | SDSS | measurements | sdss_apogee_allvisit | SDSS APOGEE allVisit catalog. This summary table contains target information, photometry, and observation summaries for each individual visit observed in APOGEE. | D | mast:SDSS/apogee/allVisit-dr17-synspec_rev1.fits | SCIENCE | -- | APOGEE Catalogs | -- | APOGEE | dr17 | N/A | allVisit-dr17-synspec_rev1.fits | 2800627200 | 233753893 | PUBLIC | 3 | -- |
Now we will download the aspcapStar spectrum for this star using Observations.download_products()
. The download will print a status message when completed.
manifest = Observations.download_products(products, productSubGroupDescription='ASPCAPSTAR')
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:SDSS/apogee/apo1m/cepheid/V1154_Cyg/aspcapStar-dr17-V1154_Cyg.fits to ./mastDownload/SDSS/sdss_apogee_apo1m_cepheid_v1154_cyg/aspcapStar-dr17-V1154_Cyg.fits ...
[Done]
Plotting an APOGEE Spectrum#
Now let’s take a look at the file and plot the spectrum.
Based on the descriptions in the aspcapStar Data Model, this file has four extensions:
HDU0: The Primary Header and file metadata
HDU1: The array containing the observed combined spectrum
HDU2: The error array for the spectrum
HDU3: The best fit model spectrum from ASPCAP
HDU4: The ASPCAP Data Table, containing the best fit stellar parameter values and other information for this star
# Open file
aspcap_star = fits.open(manifest['Local Path'][0])
# Display file information
aspcap_star.info()
Filename: ./mastDownload/SDSS/sdss_apogee_apo1m_cepheid_v1154_cyg/aspcapStar-dr17-V1154_Cyg.fits
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 5 ()
1 1 ImageHDU 11 (8575,) float64
2 1 ImageHDU 11 (8575,) float64
3 1 ImageHDU 11 (8575,) float64
4 1 BinTableHDU 270 1R x 123C [64A, 30A, 6A, J, 20A, 30A, D, D, D, D, E, E, E, E, E, E, 16A, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, J, J, E, E, 16A, E, 32A, E, E, J, J, J, J, J, J, 132A, 32A, 32A, J, J, J, J, E, E, K, 132A, K, 132A, E, E, E, E, E, E, E, E, E, E, E, J, J, E, E, E, E, E, E, K, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, E, 8A, 189E, 21E, 9E, 81E, E, 9E, 81E, 9K, K, 256A, E, E, E, 27E, 27D, 27E, 27E, 27E, 27E, 27E, 27E, 27K]
We can plot the spectrum using this information! The wavelength information can be found in the file hearer (HUD0), and observed flux is contained in the first extension (HDU1).
plt.figure(figsize=(15, 5))
# Get wavelength information from the header
# CRVAL1 is the minimum wavlength, CDELT1 is the step size (in log space) and NAXIS1 is the number of pixels
apogee_wls = np.logspace(aspcap_star[1].header['CRVAL1'],
aspcap_star[1].header['CRVAL1']+aspcap_star[1].header['CDELT1']*aspcap_star[3].header['NAXIS1'],
aspcap_star[1].header['NAXIS1'])
# Get the observed and model flux from extensions 1 and 3
observed_flux = aspcap_star[1].data
model_flux = aspcap_star[3].data
# Mask the data using the error array in extenion 2
pixel_mask = (aspcap_star[2].data < 0.1) # use only pixels with small errors (10% or less)
# Plot the observed spectrum
plt.plot(apogee_wls[pixel_mask], observed_flux[pixel_mask], c='k', label='Observed Spectrum')
# Plot the model spectrum
plt.plot(apogee_wls[pixel_mask], model_flux[pixel_mask], c='darkred', label='Best Fit Model Spectrum')
# Set axes limits
plt.ylim(0.6, 1.1)
plt.xlim(np.min(apogee_wls), np.max(apogee_wls))
# Set labels
apogee_id = aspcap_star[4].data['APOGEE_ID'][0] # String containing star's name
plt.title(f"APOGEE Spectrum - {apogee_id}")
plt.xlabel(r'Wavelength [$\AA$]')
plt.ylabel('Flux')
plt.grid()
plt.legend()
plt.show()
This is the APOGEE spectrum for this star! It looks great. We can tell it must be a hot star because of the large Hydrogen Absorption lines (for example around 15346, 15443, 15560 and 16113 angstroms - this is the Hydrogen Brackett Series!) The gaps in the spectrum around 15800 and 16400 Angstroms are due to the APOGEE instrumentation: APOGEE observes across 3 ccds, which have a small gap in wavelength coverage between them.
Downloading the APOGEE allStar Catalog#
We can also download the APOGEE allStar catalog, which contains a lot of useful information for the full APOGEE sample, including stellar parameters, chemical abundances, positions, and observation data for all of the stars in APOGEE.
We can do this with the download_file
function in astroquery, knowing the MAST data URL for the allStar catalog is mast:SDSS/apogee/allStar-dr17-synspec_rev1.fits
.
This is a fairly large file (3.9 GB), so this download may take a few minutes!
# Download allStar file - this may take a few minutes!
Observations.download_file('mast:SDSS/apogee/allStar-dr17-synspec_rev1.fits')
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:SDSS/apogee/allStar-dr17-synspec_rev1.fits to allStar-dr17-synspec_rev1.fits ...
[Done]
('COMPLETE', None, None)
# Open file
allstar = Table.read('allStar-dr17-synspec_rev1.fits', hdu=1)
# Display table
allstar[:10]
FILE | APOGEE_ID | TARGET_ID | APSTAR_ID | ASPCAP_ID | TELESCOPE | LOCATION_ID | FIELD | ALT_ID | RA | DEC | GLON | GLAT | J | J_ERR | H | H_ERR | K | K_ERR | SRC_H | WASH_M | WASH_M_ERR | WASH_T2 | WASH_T2_ERR | DDO51 | DDO51_ERR | IRAC_3_6 | IRAC_3_6_ERR | IRAC_4_5 | IRAC_4_5_ERR | IRAC_5_8 | IRAC_5_8_ERR | IRAC_8_0 | IRAC_8_0_ERR | WISE_4_5 | WISE_4_5_ERR | TARG_4_5 | TARG_4_5_ERR | WASH_DDO51_GIANT_FLAG | WASH_DDO51_STAR_FLAG | TARG_PMRA | TARG_PMDEC | TARG_PM_SRC | AK_TARG | AK_TARG_METHOD | AK_WISE | SFD_EBV | APOGEE_TARGET1 | APOGEE_TARGET2 | APOGEE2_TARGET1 | APOGEE2_TARGET2 | APOGEE2_TARGET3 | APOGEE2_TARGET4 | TARGFLAGS | SURVEY | PROGRAMNAME | NVISITS | SNR | SNREV | STARFLAG | STARFLAGS | ANDFLAG | ANDFLAGS | VHELIO_AVG | VSCATTER | VERR | RV_TEFF | RV_LOGG | RV_FEH | RV_ALPHA | RV_CARB | RV_CHI2 | RV_CCFWHM | RV_AUTOFWHM | RV_FLAG | N_COMPONENTS | MEANFIB | SIGFIB | MIN_H | MAX_H | MIN_JK | MAX_JK | GAIAEDR3_SOURCE_ID | GAIAEDR3_PARALLAX | GAIAEDR3_PARALLAX_ERROR | GAIAEDR3_PMRA | GAIAEDR3_PMRA_ERROR | GAIAEDR3_PMDEC | GAIAEDR3_PMDEC_ERROR | GAIAEDR3_PHOT_G_MEAN_MAG | GAIAEDR3_PHOT_BP_MEAN_MAG | GAIAEDR3_PHOT_RP_MEAN_MAG | GAIAEDR3_DR2_RADIAL_VELOCITY | GAIAEDR3_DR2_RADIAL_VELOCITY_ERROR | GAIAEDR3_R_MED_GEO | GAIAEDR3_R_LO_GEO | GAIAEDR3_R_HI_GEO | GAIAEDR3_R_MED_PHOTOGEO | GAIAEDR3_R_LO_PHOTOGEO | GAIAEDR3_R_HI_PHOTOGEO | ASPCAP_GRID | FPARAM_GRID | CHI2_GRID | FPARAM | FPARAM_COV | ASPCAP_CHI2 | PARAM | PARAM_COV | PARAMFLAG | ASPCAPFLAG | ASPCAPFLAGS | FRAC_BADPIX | FRAC_LOWSNR | FRAC_SIGSKY | FELEM | FELEM_ERR | X_H | X_H_ERR | X_M | X_M_ERR | ELEM_CHI2 | ELEMFRAC | ELEMFLAG | EXTRATARG | MEMBERFLAG | MEMBER | X_H_SPEC | X_M_SPEC | TEFF | TEFF_ERR | LOGG | LOGG_ERR | M_H | M_H_ERR | ALPHA_M | ALPHA_M_ERR | VMICRO | VMACRO | VSINI | TEFF_SPEC | LOGG_SPEC | C_FE | C_FE_SPEC | C_FE_ERR | C_FE_FLAG | CI_FE | CI_FE_SPEC | CI_FE_ERR | CI_FE_FLAG | N_FE | N_FE_SPEC | N_FE_ERR | N_FE_FLAG | O_FE | O_FE_SPEC | O_FE_ERR | O_FE_FLAG | NA_FE | NA_FE_SPEC | NA_FE_ERR | NA_FE_FLAG | MG_FE | MG_FE_SPEC | MG_FE_ERR | MG_FE_FLAG | AL_FE | AL_FE_SPEC | AL_FE_ERR | AL_FE_FLAG | SI_FE | SI_FE_SPEC | SI_FE_ERR | SI_FE_FLAG | P_FE | P_FE_SPEC | P_FE_ERR | P_FE_FLAG | S_FE | S_FE_SPEC | S_FE_ERR | S_FE_FLAG | K_FE | K_FE_SPEC | K_FE_ERR | K_FE_FLAG | CA_FE | CA_FE_SPEC | CA_FE_ERR | CA_FE_FLAG | TI_FE | TI_FE_SPEC | TI_FE_ERR | TI_FE_FLAG | TIII_FE | TIII_FE_SPEC | TIII_FE_ERR | TIII_FE_FLAG | V_FE | V_FE_SPEC | V_FE_ERR | V_FE_FLAG | CR_FE | CR_FE_SPEC | CR_FE_ERR | CR_FE_FLAG | MN_FE | MN_FE_SPEC | MN_FE_ERR | MN_FE_FLAG | FE_H | FE_H_SPEC | FE_H_ERR | FE_H_FLAG | CO_FE | CO_FE_SPEC | CO_FE_ERR | CO_FE_FLAG | NI_FE | NI_FE_SPEC | NI_FE_ERR | NI_FE_FLAG | CU_FE | CU_FE_SPEC | CU_FE_ERR | CU_FE_FLAG | CE_FE | CE_FE_SPEC | CE_FE_ERR | CE_FE_FLAG | YB_FE | YB_FE_SPEC | YB_FE_ERR | YB_FE_FLAG | VISIT_PK |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bytes64 | bytes30 | bytes58 | bytes71 | bytes77 | bytes6 | int32 | bytes20 | bytes30 | float64 | float64 | float64 | float64 | float32 | float32 | float32 | float32 | float32 | float32 | bytes16 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | int32 | int32 | float32 | float32 | bytes16 | float32 | bytes32 | float32 | float32 | int32 | int32 | int32 | int32 | int32 | int32 | bytes132 | bytes32 | bytes32 | int32 | float32 | float32 | int64 | bytes132 | int64 | bytes132 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | int32 | int32 | float32 | float32 | float32 | float32 | float32 | float32 | int64 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | bytes8 | float32[21,9] | float32[21] | float32[9] | float32[9,9] | float32 | float32[9] | float32[9,9] | int64[9] | int64 | bytes256 | float32 | float32 | float32 | float32[27] | float64[27] | float32[27] | float32[27] | float32[27] | float32[27] | float32[27] | float32[27] | int64[27] | int32 | int64 | bytes10 | float32[27] | float32[27] | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | float32 | float32 | float32 | int32 | int32[100] |
apStar-dr17-VESTA.fits | VESTA | apo1m.calibration.VESTA | apogee.apo1m.stars.calibration.VESTA | apogee.apo1m.synspec_fix.calibration.VESTA | apo1m | 1 | calibration | -- | -- | 292.21913091040517 | -30.60291936369881 | 99.999 | 0.0 | 99.999 | 0.0 | 99.999 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0 | 0 | 0.0 | 0.0 | -- | -- | -- | 0 | 4194304 | 0 | 4194304 | 0 | 0 | APOGEE_1MTARGETAPOGEE2_1M_TARGET | apo1m | 2 | 418.9276 | 441.15744 | 0 | -- | 0 | -- | 9.257312 | 10.185515 | 0.024030898 | 5980.2134 | 4.643887 | -0.20365137 | 0.0 | 0.0 | 16.54169 | 25.09239 | 20.4308 | 0 | 1 | 223.00002 | 0.0 | -9999.99 | 9999.99 | -9999.99 | 9999.99 | 0 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | GKd_b | -- .. -- | -- .. -- | 5766.8 .. 0.0 | 222.64 .. 0.0 | 2.565429 | 5694.8984 .. 0.0 | 644.19434 .. 1.0 | 256 .. 0 | 133 | TEFF_WARN,VMICRO_WARN,STAR_WARN | 0.0022624435 | 0.025951557 | 0.022890605 | 0.002652 .. -0.44471 | 0.007184497080743313 .. 0.011793218553066254 | 0.0083094 .. -- | 0.029537989 .. 0.15617779 | 0.002652 .. -- | 0.02910603 .. 0.15617779 | 1.7949402 .. 0.9765152 | 0.9752284 .. 1.0 | 0 .. 258 | 9 | 0 | -- | 0.0083094 .. -- | 0.002652 .. -- | 5694.8984 | 25.380983 | 4.4285197 | 0.019973632 | 0.0056574 | 0.0050330725 | 0.0066791 | 0.0065177004 | 0.41264823 | 0.0 | 4.7789226 | 5766.8 | 4.3832 | 0.0048467997 | 0.0048467997 | 0.029537989 | 0 | 0.0112799 | 0.0112799 | 0.028592646 | 0 | 0.12426481 | 0.12426481 | 0.02302215 | 0 | 0.1149377 | 0.1102448 | 0.04933612 | 0 | 0.146668 | 0.0682044 | 0.11133619 | 0 | 0.0351473 | -0.0321412 | 0.011496054 | 0 | 0.075221404 | 0.0627954 | 0.013626931 | 0 | 0.0671891 | -0.0059539 | 0.011801136 | 0 | -- | -- | 0.08544085 | 2 | -0.0894567 | -0.062389202 | 0.04145411 | 0 | -0.0944697 | -0.1892926 | 0.032671887 | 0 | -0.0168292 | 0.0524548 | 0.010810016 | 0 | -0.23147619 | -0.18454519 | 0.056192484 | 0 | -- | -- | -- | 64 | 0.09424795 | 0.1291174 | 0.096014254 | 0 | -0.025774302 | 0.1367674 | 0.048695326 | 0 | 0.04086991 | -0.1118126 | 0.011467298 | 0 | 0.0034626 | 0.0034626 | 0.0054009217 | 0 | -- | -- | -- | 64 | 0.051278397 | 0.0489284 | 0.010265504 | 0 | -- | -- | 0.059402972 | 2 | -- | -- | -- | 64 | -- | -- | 1.0 | 2 | 0 .. -2147483648 | |||||
apStar-dr17-2M00000002+7417074.fits | 2M00000002+7417074 | apo25m.120+12.2M00000002+7417074 | apogee.apo25m.stars.120+12.2M00000002+7417074 | apogee.apo25m.synspec_fix.120+12.2M00000002+7417074 | apo25m | 5046 | 120+12 | none | 0.000103 | 74.285408 | 119.40180722431822 | 11.767413541486242 | 8.597 | 0.039 | 7.667 | 0.029 | 7.314 | 0.018 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 7.353 | 0.02 | 7.353 | 0.02 | -1 | 1 | -2.8 | 2.4 | UCAC4 | 0.24235167 | RJCE_WISE | 0.24235167 | 0.434002 | 0 | 0 | -2147465196 | 0 | 0 | 0 | APOGEE2_TWOBIN_GT_0_8,APOGEE2_WISE_DERED,APOGEE2_SHORT,APOGEE2_NORMAL_SAMPLE | apogee2 | disk | 3 | 827.1565 | 669.4165 | 3072 | PERSIST_MED,PERSIST_LOW | 0 | -- | -51.731453 | 0.20453316 | 0.020595735 | 3671.8015 | 1.0904876 | -0.4014044 | 0.0 | 0.0 | 82.4185 | 17.408659 | 12.790598 | 0 | 1 | 23.955153 | 30.17173 | 7.0 | 12.2 | 0.8 | 9999.99 | 538028216707715712 | 0.28544167 | 0.019475 | 0.04858199 | 0.0240315 | 0.5222485 | 0.0220981 | 11.6988 | 13.2722 | 10.4956 | -51.9247 | 0.365646 | 3234.5747 | 3027.0295 | 3464.5564 | 3268.601 | 3115.693 | 3507.7324 | Mg_d | -- .. -- | -- .. -- | 3621.7 .. 0.0 | 0.64348 .. 0.0 | 15.293258 | 3723.9111 .. 0.0 | 16.48606 .. 1.0 | 0 .. 0 | 0 | -- | 0.0 | 0.0 | 0.0 | -0.0037053 .. 0.22482 | 0.00035680527798831463 .. 0.0001349740632576868 | -0.15138529 .. -- | 0.008765366 .. 0.023297967 | -0.0037053 .. -- | 0.005022976 .. 0.023297967 | 10.580349 .. 11.945381 | 1.0 .. 1.0 | 0 .. 2 | 0 | 0 | -- | -0.15138529 .. -- | -0.0037053 .. -- | 3723.9111 | 4.0603027 | 0.9045983 | 0.021523084 | -0.14768 | 0.0071834084 | 0.036922 | 0.0047346926 | 1.7121823 | 3.223484 | -- | 3621.7 | 1.0245 | 0.009294704 | 0.009294704 | 0.008765366 | 0 | -0.0068259984 | -0.0068259984 | 0.01767106 | 0 | 0.15122 | 0.15122 | 0.010197737 | 0 | 0.08340199 | 0.026739001 | 0.008202335 | 0 | 0.050111994 | 0.030709997 | 0.033257607 | 0 | 0.030429006 | -0.033094004 | 0.01085715 | 0 | -- | -- | -- | 64 | -0.028965399 | -0.023566008 | 0.012181395 | 0 | -- | -- | 0.08651207 | 2 | -- | -- | -- | 64 | 0.086219 | 0.016460001 | 0.033020236 | 0 | -0.098511994 | -0.08050701 | 0.012287183 | 0 | -- | -- | -- | 64 | -- | -- | -- | 64 | -0.10815802 | -0.15312001 | 0.03185416 | 0 | -- | -- | -- | 64 | -- | -- | -- | 64 | -0.16068 | -0.16068 | 0.009251297 | 0 | 0.07508999 | 0.027019992 | 0.020173697 | 0 | 0.0076825023 | -0.035710007 | 0.010609036 | 0 | -- | -- | 0.0012211672 | 2 | -- | -- | -- | 64 | -- | -- | 1.0 | 2 | 2 .. -2147483648 |
apStar-dr17-2M00000019-1924498.fits | 2M00000019-1924498 | apo25m.060-75.2M00000019-1924498 | apogee.apo25m.stars.060-75.2M00000019-1924498 | apogee.apo25m.synspec_fix.060-75.2M00000019-1924498 | apo25m | 5071 | 060-75 | none | 0.000832 | -19.413851 | 63.39412165971994 | -75.90639677002453 | 11.074 | 0.022 | 10.74 | 0.026 | 10.67 | 0.023 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 10.666 | 0.02 | -- | -- | -1 | 1 | 19.6 | -6.5 | UCAC4 | 0.006158138 | SFD | 0.022031453 | 0.020391187 | 0 | 0 | -2147399648 | 0 | 0 | 0 | APOGEE2_SFD_DERED,APOGEE2_SHORT,APOGEE2_NORMAL_SAMPLE,APOGEE2_ONEBIN_GT_0_3 | apogee2 | halo | 3 | 229.87506 | 233.31459 | 0 | -- | 0 | -- | 19.073862 | 0.08796514 | 0.038598746 | 5854.687 | 4.653328 | -0.43613896 | 0.0 | 0.0 | 5.798537 | 24.573051 | 19.399437 | 0 | 1 | 166.0 | 0.0 | 7.0 | 12.2 | 0.3 | 9999.99 | 2413929812587459072 | 0.08209286 | 0.315081 | 20.290022 | 0.302588 | -10.34126 | 0.273871 | 12.2882 | 12.5149 | 11.6597 | 17.8804 | 2.12088 | 2294.9001 | 1648.5955 | 3922.614 | 888.34845 | 797.92316 | 970.81085 | GKd_b | -- .. -- | -- .. -- | 5522.4 .. 0.0 | 236.7 .. 0.0 | 2.8099592 | 5501.773 .. 0.0 | 652.9846 .. 1.0 | 0 .. 0 | 68 | VMICRO_WARN,N_M_WARN | 0.0001330849 | 0.024886878 | 0.024753792 | 0.054958 .. 0.42443 | 0.01083282008767128 .. 0.005686562974005938 | -0.21379201 .. -- | 0.033176932 .. 0.14766781 | 0.054958 .. -- | 0.032482434 .. 0.14766781 | 2.0648096 .. 1.1057603 | 0.97642267 .. 0.90909094 | 0 .. 258 | 0 | 0 | -- | -0.21379201 .. -- | 0.054958 .. -- | 5501.773 | 25.553564 | 4.304115 | 0.024554765 | -0.26875 | 0.00675281 | 0.0909783 | 0.007372802 | 0.40969437 | 0.0 | 6.2736454 | 5522.4 | 4.195 | 0.061738 | 0.061738 | 0.033176932 | 0 | 0.07063 | 0.07063 | 0.0335504 | 0 | -0.1119 | -0.1119 | 0.032630105 | 256 | 0.23534289 | 0.23065 | 0.046297114 | 0 | -0.19082639 | -0.26929 | 0.14572309 | 0 | 0.1652385 | 0.09795 | 0.0134352 | 0 | 0.29630372 | 0.2838777 | 0.015542613 | 0 | 0.09659299 | 0.023449987 | 0.013420052 | 0 | -- | -- | 0.09277598 | 2 | 0.0933325 | 0.1204 | 0.05110017 | 0 | 0.115572914 | 0.020750016 | 0.03550276 | 0 | 0.09726599 | 0.16655 | 0.013750082 | 0 | 0.11265901 | 0.15959 | 0.058767546 | 0 | -- | -- | -- | 64 | 0.050500557 | 0.085370004 | 0.10188051 | 0 | -0.13098171 | 0.031560004 | 0.060479984 | 0 | -0.07802749 | -0.23071 | 0.017135529 | 0 | -0.27553 | -0.27553 | 0.0072527267 | 0 | -- | -- | -- | 64 | 0.013930023 | 0.01158002 | 0.0138354665 | 0 | -- | -- | 0.102593824 | 2 | -- | -- | -- | 64 | -- | -- | 1.0 | 2 | 5 .. -2147483648 |
apStar-dr17-2M00000032+5737103.fits | 2M00000032+5737103 | apo25m.116-04.2M00000032+5737103 | apogee.apo25m.stars.116-04.2M00000032+5737103 | apogee.apo25m.synspec_fix.116-04.2M00000032+5737103 | apo25m | 4424 | 116-04 | none | 0.001335 | 57.61953 | 116.06537094825998 | -4.564767514078821 | 10.905 | 0.023 | 10.635 | 0.03 | 10.483 | 0.022 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 10.447 | 0.02 | 10.43 | 0.0 | -1 | 1 | 0.0 | 0.0 | NOMAD | 0.14228994 | RJCE_WISE_PARTSKY | 0.12668462 | -- | -2147483584 | -2147483136 | 0 | 0 | 0 | 0 | APOGEE_NO_DERED,APOGEE_TELLURIC | apogee | apogee | 3 | 121.3259 | 152.67575 | 512 | PERSIST_HIGH | 512 | PERSIST_HIGH | -20.545164 | 0.13039595 | 0.065306276 | 6399.002 | 4.2702193 | -0.7024221 | 0.0 | 0.0 | 3.5777946 | 28.498526 | 16.853964 | 0 | 1 | 24.65309 | 26.664583 | -9999.99 | 9999.99 | -9999.99 | 9999.99 | 422596679964513792 | 1.2985312 | 0.00952245 | -0.41027406 | 0.00872931 | -3.2266014 | 0.00897243 | 12.2209 | 12.65 | 11.6189 | -19.196 | 1.35642 | 762.9458 | 758.2913 | 767.3334 | 761.33 | 756.7403 | 766.5322 | Fd_d | -- .. 0.0 | -- .. 1.9277912 | 6210.7 .. 0.0 | 568.35 .. 0.0 | 1.9277912 | 6099.781 .. 0.0 | 2101.9775 .. 1.0 | 0 .. 0 | 0 | -- | 0.0 | 0.026084643 | 0.025818473 | 0.10486 .. 0.49942 | 0.011564601212739944 .. 0.009124253876507282 | -0.14024001 .. -- | 0.06806532 .. 0.2674648 | 0.10486 .. -- | 0.06770368 .. 0.2674648 | 1.7376808 .. 1.7360011 | 0.97735685 .. 1.0 | 0 .. 259 | 21 | 0 | -- | -0.14024001 .. -- | 0.10486 .. -- | 6099.781 | 45.84733 | 3.6739705 | 0.030661006 | -0.2451 | 0.007007128 | 0.0291593 | 0.0117554255 | 2.1434333 | 0.0 | 14.965801 | 6210.7 | 3.5259 | 0.11273 | 0.11273 | 0.06806532 | 0 | 0.124440014 | 0.124440014 | 0.04663956 | 0 | 0.11456001 | 0.11456001 | 0.3859263 | 32 | 0.045068905 | 0.040376008 | 0.14561577 | 0 | -0.17934635 | -0.25780997 | 0.2537789 | 0 | 0.038494498 | -0.02879399 | 0.015499505 | 0 | 0.059596017 | 0.047170013 | 0.018452007 | 0 | 0.138218 | 0.06507501 | 0.017027052 | 0 | -- | -- | 0.17657314 | 2 | -0.09011951 | -0.063052 | 0.05961984 | 0 | 0.1422829 | 0.047460005 | 0.055038594 | 0 | -0.12913498 | -0.05985099 | 0.017904686 | 0 | 0.17051901 | 0.21745001 | 0.11648151 | 0 | -- | -- | -- | 64 | -0.0054694414 | 0.029400006 | 0.22281295 | 0 | -1.1124718 | -0.9499301 | 0.10237639 | 0 | 0.06363252 | -0.089049995 | 0.019090015 | 0 | -0.25297 | -0.25297 | 0.007645966 | 0 | -- | -- | -- | 64 | -0.108749986 | -0.11109999 | 0.016554732 | 0 | -- | -- | 0.12383858 | 2 | -- | -- | -- | 64 | -- | -- | 1.0 | 2 | 8 .. -2147483648 |
apStar-dr17-2M00000032+5737103.fits | 2M00000032+5737103 | apo25m.N7789.2M00000032+5737103 | apogee.apo25m.stars.N7789.2M00000032+5737103 | apogee.apo25m.synspec_fix.N7789.2M00000032+5737103 | apo25m | 4264 | N7789 | none | 0.001335 | 57.61953 | 116.06537094825998 | -4.564767514078821 | 10.905 | 0.023 | 10.635 | 0.03 | 10.483 | 0.022 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 10.447 | 0.02 | 10.43 | 0.0 | -1 | 1 | 0.0 | 0.0 | NOMAD | 0.10556992 | RJCE_WISE_PARTSKY | 0.12668462 | -- | -2147481600 | 0 | 0 | 0 | 0 | 0 | APOGEE_SHORT | apogee | apogee | 3 | 221.82442 | 218.28241 | 0 | -- | 0 | -- | -20.43465 | 0.16389665 | 0.06299931 | 6401.9634 | 4.253023 | -0.7244207 | 0.0 | 0.0 | 4.19423 | 30.619078 | 17.232864 | 0 | 1 | 263.63733 | 7.5055537 | 5.0 | 12.5 | 0.0 | 9999.99 | 422596679964513792 | 1.2985312 | 0.00952245 | -0.41027406 | 0.00872931 | -3.2266014 | 0.00897243 | 12.2209 | 12.65 | 11.6189 | -19.196 | 1.35642 | 762.9458 | 758.2913 | 767.3334 | 761.33 | 756.7403 | 766.5322 | Fd_a | -- .. -- | -- .. -- | 6284.1 .. 0.0 | 409.34 .. 0.0 | 2.5697448 | 6162.0303 .. 0.0 | 1743.381 .. 1.0 | 0 .. 0 | 0 | -- | 0.0 | 0.023955284 | 0.023422943 | 0.039991 .. 0.13647 | 0.010498571209609509 .. 0.009732984937727451 | -0.181519 .. -- | 0.058728103 .. 0.25136894 | 0.039991 .. -- | 0.058453497 .. 0.25136894 | 2.2316186 .. 2.1450133 | 0.976819 .. 1.0 | 0 .. 2 | 0 | 0 | -- | -0.181519 .. -- | 0.039991 .. -- | 6162.0303 | 41.753815 | 3.7155607 | 0.025935415 | -0.22151 | 0.005672638 | 0.0480663 | 0.0098556075 | 1.9578978 | 0.0 | 14.993395 | 6284.1 | 3.5585 | 0.032650992 | 0.032650992 | 0.058728103 | 0 | 0.07072501 | 0.07072501 | 0.0379301 | 0 | -0.48906004 | -0.48906004 | 0.6771427 | 288 | 0.1405729 | 0.13588001 | 0.1240136 | 0 | -1.1662664 | -1.24473 | 0.21401054 | 0 | -0.0010954887 | -0.06838401 | 0.012893598 | 0 | 0.013085991 | 0.00065998733 | 0.01392558 | 0 | 0.130076 | 0.056933 | 0.013552375 | 0 | -- | -- | 0.14318512 | 2 | 0.1281325 | 0.1552 | 0.047598016 | 0 | -0.00018709898 | -0.09501 | 0.04692315 | 0 | -0.170857 | -0.101573005 | 0.013922116 | 0 | -- | -- | -- | 1 | -- | -- | -- | 64 | -0.059629455 | -0.024760008 | 0.1768987 | 0 | -0.7412817 | -0.57874 | 0.08290682 | 0 | -0.15302749 | -0.30571002 | 0.015023822 | 0 | -0.21417 | -0.21417 | 0.006151416 | 0 | -- | -- | -- | 64 | -0.06943999 | -0.071789995 | 0.012637844 | 0 | -- | -- | 0.10710319 | 2 | -- | -- | -- | 64 | -- | -- | 1.0 | 2 | 8 .. -2147483648 |
asStar-dr17-2M00000035-7323394.fits | 2M00000035-7323394 | lco25m.SMC12.2M00000035-7323394 | apogee.lco25m.stars.SMC12.2M00000035-7323394 | apogee.lco25m.synspec_fix.SMC12.2M00000035-7323394 | lco25m | 7218 | SMC12 | none | 0.001467 | -73.394287 | 307.93944096852624 | -43.23030464963282 | 15.008 | 0.045 | 14.352 | 0.058 | 14.277 | 0.068 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 14.101 | 0.035 | -- | -- | -1 | 1 | 0.2 | -1.1 | GAIA-DR2 | 0.0109211225 | SFD | 0.18451837 | 0.03616266 | 0 | 0 | -2139095040 | -2147418112 | 0 | 0 | APOGEE2_MAGCLOUD_CANDIDATE,APOGEE2_GAIA_OVERLAP | apogee2s | magclouds | 3 | 35.325546 | 36.777847 | 0 | -- | 0 | -- | 165.67194 | 0.11191834 | 0.18812515 | 4667.159 | 2.1917586 | -1.3530375 | 0.0 | 0.0 | 1.9189901 | 19.576447 | 14.388681 | 0 | 1 | 186.95737 | 3.4641016 | -9999.99 | 9999.99 | -9999.99 | 9999.99 | 4689447878791422208 | -0.02394128 | 0.0450072 | 0.25540805 | 0.0535888 | -1.2691755 | 0.05572 | 16.7478 | 17.3861 | 15.9896 | -- | -- | 12516.2295 | 8956.699 | 17395.037 | 7310.7515 | 5323.142 | 11760.366 | GKg_a | -- .. -- | -- .. -- | 4378.4 .. 0.0 | 451.09 .. 0.0 | 2.4131815 | 4555.4043 .. 0.0 | 451.09 .. 1.0 | 32 .. 0 | 0 | -- | 0.005855736 | 0.10500399 | 0.099813685 | -0.27891 .. -1.4973 | 0.01720406860113144 .. 0.21653637290000916 | -1.46211 .. -- | 0.05615539 .. 0.21653637 | -0.27891 .. -- | 0.052546624 .. 0.21653637 | 2.9201825 .. 0.59452486 | 0.89734745 .. 1.0 | 0 .. 35 | 1 | 0 | -- | -1.46211 .. -- | -0.27891 .. -- | 4555.4043 | 21.23888 | 1.4988511 | 0.08263534 | -1.1832 | 0.01980606 | 0.008442001 | 0.025910037 | 1.3814018 | 5.9081445 | -- | 4378.4 | 1.4375 | -0.2907101 | -0.2907101 | 0.05615539 | 0 | -- | -- | -- | 1 | 0.4755299 | 0.4755299 | 0.05375353 | 0 | 0.15253294 | 0.0958699 | 0.0514805 | 0 | 0.54831195 | 0.5289099 | 0.31064698 | 0 | 0.0068899393 | -0.056632996 | 0.037691224 | 0 | -0.4556191 | -0.31430006 | 0.060009684 | 0 | 0.03765154 | 0.043051004 | 0.04376385 | 0 | -- | -- | 0.33437207 | 2 | -0.38900805 | -0.41279006 | 0.20971017 | 0 | -0.92324126 | -0.99300015 | 0.11022522 | 0 | -0.33387506 | -0.31587005 | 0.06149751 | 0 | -0.31694686 | -0.3165201 | 0.06565627 | 0 | -- | -- | -- | 1 | 0.18676192 | 0.14179993 | 0.26470387 | 0 | 0.6405339 | 0.63811994 | 0.1910224 | 0 | -0.15649807 | -0.27340007 | 0.060496844 | 0 | -1.1714 | -1.1714 | 0.021403484 | 0 | 0.020969868 | -0.027100086 | 0.25751317 | 0 | -0.03820753 | -0.08160007 | 0.05399687 | 0 | -- | -- | 0.2767953 | 2 | -0.15516007 | -0.09950006 | 0.14683686 | 0 | -- | -- | 1.0 | 2 | 14 .. -2147483648 |
apStar-dr17-2M00000068+5710233.fits | 2M00000068+5710233 | apo25m.N7789.2M00000068+5710233 | apogee.apo25m.stars.N7789.2M00000068+5710233 | apogee.apo25m.synspec_fix.N7789.2M00000068+5710233 | apo25m | 4264 | N7789 | none | 0.00285 | 57.173164 | 115.97715352490295 | -5.002392369725437 | 10.664 | 0.023 | 10.132 | 0.03 | 10.018 | 0.02 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 10.032 | 0.02 | 10.036 | 0.0 | -1 | 1 | 8.0 | -18.0 | NOMAD | 0.0055077374 | RJCE_WISE_PARTSKY | 0.04590035 | 0.52296805 | -2147481600 | 0 | 0 | 0 | 0 | 0 | APOGEE_SHORT | apogee | apogee | 3 | 294.87552 | 282.74594 | 0 | -- | 0 | -- | -12.673787 | 0.1202452 | 0.02927704 | 5315.2827 | 3.8085988 | -0.28758374 | 0.0 | 0.0 | 9.714903 | 21.645975 | 17.972471 | 0 | 1 | 263.85187 | 4.582576 | 5.0 | 12.5 | 0.0 | 9999.99 | 421077597267551104 | 1.3863556 | 0.0175672 | 5.7917247 | 0.0161734 | -12.735589 | 0.0156473 | 12.2759 | 12.8311 | 11.5693 | -12.7359 | 0.843714 | 718.71344 | 709.5037 | 727.03937 | 715.0294 | 706.5003 | 723.68005 | GKg_a | -- .. -- | -- .. -- | 4991.4 .. 0.0 | 50.409 .. 0.0 | 4.3508086 | 5031.2637 .. 0.0 | 102.92217 .. 1.0 | 0 .. 0 | 0 | -- | 0.0 | 0.016768698 | 0.016768698 | -0.025931 .. 0.14331 | 0.002885030349716544 .. 0.0019492049468681216 | -0.186011 .. -- | 0.015217459 .. 0.084045514 | -0.025931 .. -- | 0.013979203 .. 0.084045514 | 2.8813765 .. 1.571267 | 0.9859233 .. 1.0 | 0 .. 2 | 0 | 0 | -- | -0.186011 .. -- | -0.025931 .. -- | 5031.2637 | 10.145057 | 3.456132 | 0.023554068 | -0.16008 | 0.0060127303 | 0.055704 | 0.006062756 | 0.6719702 | 3.2469554 | -- | 4991.4 | 3.4848 | -0.025730997 | -0.025730997 | 0.015217459 | 0 | -0.048318997 | -0.048318997 | 0.025040172 | 0 | 0.084176004 | 0.084176004 | 0.018590936 | 0 | 0.113698006 | 0.057035 | 0.023433072 | 0 | 0.116491005 | 0.09708901 | 0.070134394 | 0 | 0.09206001 | 0.028537005 | 0.011304746 | 0 | 0.014116794 | 0.1554358 | 0.01830222 | 0 | 0.014887601 | 0.020287007 | 0.013643116 | 0 | -- | -- | 0.14435549 | 2 | 0.0254879 | 0.0017058998 | 0.03408197 | 0 | -0.027150989 | -0.096909985 | 0.036666114 | 0 | 0.038241006 | 0.056246005 | 0.0137921795 | 0 | 0.021284178 | 0.021711007 | 0.022342823 | 0 | -0.18249099 | -0.14073999 | 0.0896181 | 0 | 0.2024978 | 0.1575358 | 0.09460406 | 0 | 0.028904006 | 0.026490003 | 0.04231854 | 0 | -0.029748008 | -0.14665 | 0.014515168 | 0 | -0.16028 | -0.16028 | 0.0068899784 | 0 | -0.26304 | -0.31111002 | 0.06605998 | 0 | 0.059072502 | 0.01568 | 0.011600921 | 0 | -- | -- | 0.004401441 | 2 | -0.055580005 | 8.0004334e-05 | 0.08657244 | 0 | -- | -- | 1.0 | 2 | 26 .. -2147483648 |
apStar-dr17-2M00000103+1525513.fits | 2M00000103+1525513 | apo25m.107-46_MGA.2M00000103+1525513 | apogee.apo25m.stars.107-46_MGA.2M00000103+1525513 | apogee.apo25m.synspec_fix.107-46_MGA.2M00000103+1525513 | apo25m | 2897 | 107-46_MGA | none | 0.004322 | 15.430942 | 105.06543952239785 | -45.64934806772288 | 11.278 | 0.023 | 11.006 | 0.024 | 10.947 | 0.019 | 2MASS | 12.535349 | 0.008470587 | 11.699041 | 0.013818886 | 12.51272 | 0.0060115126 | -- | -- | -- | -- | -- | -- | -- | -- | 10.937 | 0.02 | 10.937 | 0.02 | 0 | 1 | -2.2 | -6.3 | URAT1 | 0.017441347 | RJCE_WISE | 0.017441347 | 0.05089189 | 0 | 0 | -2147383280 | 0 | 0 | 0 | APOGEE2_WISE_DERED,APOGEE2_SHORT,APOGEE2_MANGA_LED,APOGEE2_ONEBIN_GT_0_3 | manga-apogee2 | manga | 2 | 126.0876 | 125.95473 | 0 | -- | 0 | -- | -12.087924 | 0.07386845 | 0.059875343 | 6144.212 | 4.5084305 | -0.6296392 | 0.0 | 0.0 | 2.9653468 | 22.95365 | 18.269304 | 0 | 1 | 222.99998 | 0.0 | 7.0 | 11.5 | 0.3 | 9999.99 | 2772097619417608704 | 2.084405 | 0.0180373 | -3.242845 | 0.0171125 | -8.751442 | 0.0100616 | 12.2821 | 12.5812 | 11.8179 | -13.93 | 1.53426 | 473.27496 | 469.28427 | 477.08853 | 473.27005 | 468.36456 | 477.71826 | Fd_b | -- .. -- | -- .. -- | 6032.1 .. 0.0 | 1158.2 .. 0.0 | 1.7911007 | 5945.751 .. 0.0 | 1957.7793 .. 1.0 | 0 .. 0 | 68 | VMICRO_WARN,N_M_WARN | 0.0035932926 | 0.048842162 | 0.044051103 | 0.055067 .. 0.49774 | 0.017340991646051407 .. 0.012145369313657284 | -0.21197301 .. -- | 0.06668289 .. 0.25171465 | 0.055067 .. -- | 0.06618328 .. 0.25171465 | 1.6491114 .. 1.5356774 | 0.9537347 .. 1.0 | 0 .. 259 | 0 | 0 | -- | -0.21197301 .. -- | 0.055067 .. -- | 5945.751 | 44.2468 | 4.1231923 | 0.033373106 | -0.26704 | 0.008147499 | 0.0124087995 | 0.012325597 | 0.4594836 | 0.0 | 6.7522736 | 6032.1 | 4.1332 | 0.049916983 | 0.049916983 | 0.06668289 | 0 | 0.08909398 | 0.08909398 | 0.051253866 | 0 | -0.48443002 | -0.48443002 | 2.749503 | 288 | 0.016417876 | 0.011724979 | 0.1333837 | 0 | -- | -- | -- | 1 | 0.046251476 | -0.021037012 | 0.017325642 | 0 | 0.152826 | 0.14039999 | 0.022063216 | 0 | 0.06266858 | -0.010474414 | 0.019304113 | 0 | -- | -- | 0.18383512 | 2 | -0.06725854 | -0.040191025 | 0.06857822 | 0 | 0.2479229 | 0.15309998 | 0.057280675 | 0 | 0.05133599 | 0.12061998 | 0.020555608 | 0 | 0.07975899 | 0.12668999 | 0.11411647 | 0 | -- | -- | -- | 65 | -0.2820894 | -0.24721998 | 0.2298377 | 0 | -0.074151695 | 0.08838999 | 0.10897364 | 0 | 0.05873251 | -0.09395 | 0.022381885 | 0 | -0.26189 | -0.26189 | 0.008906194 | 0 | -- | -- | -- | 64 | -0.037420005 | -0.039770007 | 0.019600047 | 0 | -- | -- | 0.13341403 | 2 | -- | -- | -- | 64 | -- | -- | 1.0 | 2 | 29 .. -2147483648 |
apStar-dr17-2M00000133+5721163.fits | 2M00000133+5721163 | apo25m.NGC7789_btx.2M00000133+5721163 | apogee.apo25m.stars.NGC7789_btx.2M00000133+5721163 | apogee.apo25m.synspec_fix.NGC7789_btx.2M00000133+5721163 | apo25m | 5922 | NGC7789_btx | none | 0.005558 | 57.354549 | 116.0147761731873 | -4.824916594631061 | 13.261 | 0.029 | 12.605 | 0.036 | 12.383 | 0.025 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 12.285 | 0.023 | 12.285 | 0.023 | -1 | 1 | -2.3 | -1.7 | URAT1 | 0.2478597 | RJCE_WISE | 0.2478597 | -- | 0 | 0 | -2147463150 | 0 | 0 | 0 | APOGEE2_TWOBIN_0_5_TO_0_8,APOGEE2_WISE_DERED,APOGEE2_MEDIUM,APOGEE2_NORMAL_SAMPLE | apogee2-manga | cal_btx | 7 | 116.9411 | 120.29548 | 50331652 | BRIGHT_NEIGHBOR,MTPFLUX_LT_75,MTPFLUX_LT_50 | 0 | -- | -101.713486 | 0.124212764 | 0.06651952 | 5121.166 | 2.971028 | -0.69338036 | 0.0 | 0.0 | 3.0047355 | 19.881489 | 15.877813 | 0 | 1 | 209.96074 | 46.425056 | 12.2 | 12.8 | 0.5 | 0.8 | 421086363305436800 | 0.12760994 | 0.0295789 | -1.146765 | 0.0252195 | 0.36416152 | 0.026015 | 15.551 | 16.4267 | 14.6271 | -- | -- | 5883.378 | 5068.6562 | 7047.5034 | 5923.955 | 5205.137 | 6869.6465 | GKg_b | -- .. -- | -- .. -- | 4897.1 .. 0.0 | 129.53 .. 0.0 | 2.1735518 | 4974.601 .. 0.0 | 234.4223 .. 1.0 | 0 .. 0 | 0 | -- | 0.0 | 0.026616981 | 0.025419217 | -0.065567 .. -0.3655 | 0.005662243347615004 .. 0.010711676441133022 | -0.57870704 .. -- | 0.028721372 .. 0.13720466 | -0.065567 .. -- | 0.02698478 .. 0.13720466 | 1.7831587 .. 3.1545687 | 0.97238356 .. 1.0 | 0 .. 2 | 0 | 0 | -- | -0.57870704 .. -- | -0.065567 .. -- | 4974.601 | 15.310856 | 2.3882506 | 0.035517264 | -0.51314 | 0.009835593 | 0.10715 | 0.010655452 | 1.644599 | 3.991985 | -- | 4897.1 | 2.4374 | -0.06917703 | -0.06917703 | 0.028721372 | 0 | -0.12475002 | -0.12475002 | 0.04545748 | 0 | 0.24307999 | 0.24307999 | 0.031480383 | 0 | 0.18594298 | 0.12927997 | 0.03931299 | 0 | 0.015072018 | -0.0043299794 | 0.1399616 | 0 | 0.13348898 | 0.06996599 | 0.018901803 | 0 | 0.15851098 | 0.29983002 | 0.03126547 | 0 | 0.09223059 | 0.097629994 | 0.023038033 | 0 | -- | -- | 0.21638519 | 2 | 0.21185198 | 0.18807 | 0.07251271 | 0 | 0.15433902 | 0.084580004 | 0.05922407 | 0 | 0.091995 | 0.109999985 | 0.026300231 | 0 | 0.079597145 | 0.080023974 | 0.038204666 | 0 | -0.088947 | -0.04719603 | 0.13803796 | 0 | -0.09750801 | -0.14247 | 0.16629891 | 0 | -0.20686603 | -0.20928001 | 0.084797986 | 0 | -0.107198 | -0.2241 | 0.026769126 | 0 | -0.50953 | -0.50953 | 0.011011918 | 0 | 0.08471 | 0.03664002 | 0.13777909 | 0 | 0.022392541 | -0.020999968 | 0.022661773 | 0 | -- | -- | 0.025130676 | 2 | -0.25649 | -0.20082998 | 0.1323888 | 0 | -- | -- | 1.0 | 2 | 31 .. -2147483648 |
apStar-dr17-2M00000211+6327470.fits | 2M00000211+6327470 | apo25m.117+01.2M00000211+6327470 | apogee.apo25m.stars.117+01.2M00000211+6327470 | apogee.apo25m.synspec_fix.117+01.2M00000211+6327470 | apo25m | 4591 | 117+01 | none | 0.008802 | 63.463078 | 117.22798533970578 | 1.1621667852398176 | 11.88 | 0.024 | 11.107 | 0.03 | 10.861 | 0.022 | 2MASS | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 10.796 | 0.02 | 10.779 | 0.02 | -1 | 1 | 0.0 | 12.0 | NOMAD | 0.25520405 | RJCE_WISE_ALLSKY | 0.23959874 | -- | -2147481584 | 0 | 0 | 0 | 0 | 0 | APOGEE_WISE_DERED,APOGEE_SHORT | apogee | apogee | 4 | 111.05336 | 169.02042 | 1536 | PERSIST_HIGH,PERSIST_MED | 0 | -- | -106.63186 | 0.05348474 | 0.029085979 | 4880.47 | 2.722735 | -0.1659817 | 0.0 | 0.0 | 6.9853888 | 19.063057 | 15.8899145 | 0 | 1 | 71.3066 | 21.26617 | 7.0 | 12.2 | 0.5 | 9999.99 | 431594980053422720 | 0.06958374 | 0.0354776 | -0.92378795 | 0.0366333 | -0.9080061 | 0.0357022 | 14.383 | 15.3504 | 13.3986 | -- | -- | 8216.638 | 6704.6914 | 9909.039 | 6924.286 | 5814.2314 | 8930.6 | GKg_c | -- .. -- | -- .. -- | 4597.5 .. 0.0 | 22.344 .. 0.0 | 3.4628208 | 4681.4634 .. 0.0 | 76.84869 .. 1.0 | 0 .. 0 | 0 | -- | 0.0001330849 | 0.029145595 | 0.025286132 | -0.18688 .. -0.14579 | 0.0018862661672756076 .. 0.0017332916613668203 | -0.255647 .. -- | 0.013141024 .. 0.059426643 | -0.18688 .. -- | 0.011139332 .. 0.059426643 | 2.789973 .. 1.40757 | 0.970987 .. 1.0 | 0 .. 2 | 0 | 0 | -- | -0.255647 .. -- | -0.18688 .. -- | 4681.4634 | 8.766338 | 2.245527 | 0.024334472 | -0.068767 | 0.0069714976 | 0.0076940004 | 0.006016588 | 1.4825181 | 3.078036 | -- | 4597.5 | 2.3951 | -0.180636 | -0.180636 | 0.013141024 | 0 | -0.27499598 | -0.27499598 | 0.024851637 | 0 | 0.345594 | 0.345594 | 0.01605724 | 0 | 0.027782995 | -0.02888 | 0.01655986 | 0 | 0.125575 | 0.106173 | 0.06036871 | 0 | 0.012056999 | -0.051466003 | 0.012006314 | 0 | -0.02440101 | 0.116918005 | 0.022165433 | 0 | -0.014249399 | -0.008850001 | 0.014606775 | 0 | -- | -- | 0.13051915 | 2 | 0.105533 | 0.081751 | 0.038431432 | 0 | -0.07762 | -0.147379 | 0.03843756 | 0 | -0.0017625019 | 0.016242497 | 0.014627382 | 0 | -0.065623835 | -0.065197006 | 0.021184651 | 0 | -0.15478702 | -0.11303601 | 0.0785465 | 0 | -0.40178698 | -0.44674897 | 0.076038815 | 0 | -0.046804994 | -0.049218997 | 0.037531063 | 0 | 0.010702997 | -0.106199 | 0.015316123 | 0 | -0.075011 | -0.075011 | 0.008395829 | 0 | -0.164809 | -0.21287899 | 0.054854833 | 0 | -0.025256492 | -0.068648994 | 0.012732975 | 0 | -- | -- | -- | 259 | 0.19404098 | 0.24970098 | 0.07000649 | 0 | -- | -- | 1.0 | 2 | 38 .. -2147483648 |
Plotting an HR Diagram (or Kiel Diagram) with APOGEE#
When characterizing stars, a useful plot is the HR diagram, which helps classify stars by their different types (for example, a star can be a Sun-like main sequence star or a massive Red Giant star). Let’s plot an HR Diagram using APOGEE data.
Traditional HR diagrams plot a star’s color on the x-axis and its brightness (or magnitude) on the y-axis. For this excerise, we’ll be using the star’s temperature (\(T_{eff}\)) as a substitute for color and the surface gravity (\(\log g\)) as a proxy for brightness. This variation on the HR diagram is technically called a Kiel Diagram, but they are very similar in appearance and interpretation.
# Plot HR Diagram form APOGEE catalog
plt.figure(figsize=(10, 10))
# Plot Temperature (TEFF) against surface gravity (LOGG)
# And color points by their metallicity (FE_H)
im = plt.scatter(allstar['TEFF'], allstar['LOGG'], c=allstar['FE_H'],
marker='.', s=1, zorder=1,
cmap='jet', vmin=-1, vmax=0.5)
# Add colorbar legend to plot
plt.colorbar(im, location='bottom', label='Metallicity [Fe/H]')
# Labels and titles
plt.xlim(7000, 3000)
plt.ylim(5.5, -0.5)
plt.xlabel(r'Effective Temperature [$T_{\rm{eff}}$, K]')
plt.ylabel(r'Surface Gravity [$\log(g)$]')
plt.grid()
plt.title('APOGEE Stellar Parameters - allStar')
plt.show()
This is an HR Diagram made with APOGEE data! The Main Sequence stars are along the bottom, and the Red Giant Branch is in the upper-right portion. The Horizontal Branch stars are the upper-left group of dark blue (metal poor) points.
Searching for TESS Data of this Star#
Now let’s search MAST for a light curve of our Cepheid Variable star.
Coordinate search using astroquery.mast#
# Retrieve RA and DEC of APOGEE star
ra = apogee_obs_list['s_ra'][0]
dec = apogee_obs_list['s_dec'][0]
# make a SkyCoord object from these coordinates
coord = SkyCoord(ra=ra*u.deg, dec=dec*u.deg)
print(coord)
# Search for TESS observations based on coordinates
tess_obs = Observations.query_criteria(coordinates=coord, # Search by coordinates
radius=(1/60/60)*u.deg, # search within 1 arcsecond
# Search for TESS observations
obs_collection='TESS',
# Select only Science observations (not calibration files)
intentType='science',
# Search for time series data (light curves)
dataproduct_type='timeseries',
dataURL='*_lc.fits'
)
# Display Results
tess_obs
<SkyCoord (ICRS): (ra, dec) in deg
(297.06439209, 43.12688065)>
intentType | obs_collection | provenance_name | instrument_name | project | filters | wavelength_region | target_name | target_classification | obs_id | s_ra | s_dec | dataproduct_type | proposal_pi | calib_level | t_min | t_max | t_exptime | em_min | em_max | obs_title | t_obs_release | proposal_id | proposal_type | sequence_number | s_region | jpegURL | dataURL | dataRights | mtFlag | srcDen | obsid | objID | objID1 | distance |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str7 | str4 | str4 | str10 | str4 | str4 | str7 | str9 | str1 | str47 | float64 | float64 | str10 | str14 | int64 | float64 | float64 | float64 | float64 | float64 | str1 | float64 | str7 | str1 | int64 | str47 | str1 | str73 | str6 | bool | float64 | str8 | str9 | str9 | float64 |
science | TESS | SPOC | Photometer | TESS | TESS | Optical | 272943843 | -- | tess2019226182529-s0015-0000000272943843-0151-s | 297.064442996851 | 43.1269331469927 | timeseries | Ricker, George | 3 | 58710.86620314 | 58736.91161649 | 120.0 | 600.0 | 1000.0 | -- | 58756.3333334 | G022062 | -- | 15 | CIRCLE ICRS 297.06444300 43.12693315 0.00138889 | -- | mast:TESS/product/tess2019226182529-s0015-0000000272943843-0151-s_lc.fits | PUBLIC | False | nan | 27483764 | 70551762 | 70551762 | 0.0 |
science | TESS | SPOC | Photometer | TESS | TESS | Optical | 272943843 | -- | tess2021204101404-s0041-0000000272943843-0212-s | 297.064442996851 | 43.1269331469927 | timeseries | Ricker, George | 3 | 59419.4908296875 | 59446.08111446759 | 120.0 | 600.0 | 1000.0 | -- | 59477.0 | G04028 | -- | 41 | CIRCLE 297.064443 43.12693315 0.00138889 | -- | mast:TESS/product/tess2021204101404-s0041-0000000272943843-0212-s_lc.fits | PUBLIC | False | nan | 62803464 | 120246308 | 120246308 | 0.0 |
science | TESS | SPOC | Photometer | TESS | TESS | Optical | 272943843 | -- | tess2022190063128-s0054-0000000272943843-0227-s | 297.064442996851 | 43.1269331469927 | timeseries | Ricker, George | 3 | 59769.40013475694 | 59795.63100395833 | 120.0 | 600.0 | 1000.0 | -- | 59828.0 | G04028 | -- | 54 | CIRCLE 297.064443 43.12693315 0.00138889 | -- | mast:TESS/product/tess2022190063128-s0054-0000000272943843-0227-s_lc.fits | PUBLIC | False | nan | 91557375 | 175289917 | 175289917 | 0.0 |
science | TESS | SPOC | Photometer | TESS | TESS | Optical | 272943843 | -- | tess2022217014003-s0055-0000000272943843-0242-s | 297.064442996851 | 43.1269331469927 | timeseries | Ricker, George | 3 | 59796.60183872685 | 59823.76548444445 | 120.0 | 600.0 | 1000.0 | -- | 59841.0 | G04028 | -- | 55 | CIRCLE 297.064443 43.12693315 0.00138889 | -- | mast:TESS/product/tess2022217014003-s0055-0000000272943843-0242-s_lc.fits | PUBLIC | False | nan | 93784511 | 182251539 | 182251539 | 0.0 |
There are a handful of results, but we can find the closest match to this star using the “distance” column which returns the distance (in arcsecs) of each match to our cone search. There are several results with distance of 0, (this star was observed in multiple TESS sectors), so we will just use the first result.
tess_obs[np.argmin(tess_obs['distance'])]
intentType | obs_collection | provenance_name | instrument_name | project | filters | wavelength_region | target_name | target_classification | obs_id | s_ra | s_dec | dataproduct_type | proposal_pi | calib_level | t_min | t_max | t_exptime | em_min | em_max | obs_title | t_obs_release | proposal_id | proposal_type | sequence_number | s_region | jpegURL | dataURL | dataRights | mtFlag | srcDen | obsid | objID | objID1 | distance |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str7 | str4 | str4 | str10 | str4 | str4 | str7 | str9 | str1 | str47 | float64 | float64 | str10 | str14 | int64 | float64 | float64 | float64 | float64 | float64 | str1 | float64 | str7 | str1 | int64 | str47 | str1 | str73 | str6 | bool | float64 | str8 | str9 | str9 | float64 |
science | TESS | SPOC | Photometer | TESS | TESS | Optical | 272943843 | -- | tess2019226182529-s0015-0000000272943843-0151-s | 297.064442996851 | 43.1269331469927 | timeseries | Ricker, George | 3 | 58710.86620314 | 58736.91161649 | 120.0 | 600.0 | 1000.0 | -- | 58756.3333334 | G022062 | -- | 15 | CIRCLE ICRS 297.06444300 43.12693315 0.00138889 | -- | mast:TESS/product/tess2019226182529-s0015-0000000272943843-0151-s_lc.fits | PUBLIC | False | nan | 27483764 | 70551762 | 70551762 | 0.0 |
And download this file similar to what we did with APOGEE before:
# Get product list
tess_products = Observations.get_product_list(tess_obs[np.argmin(tess_obs['distance'])])
# Show products
tess_products
obsID | obs_collection | dataproduct_type | obs_id | description | type | dataURI | productType | productGroupDescription | productSubGroupDescription | productDocumentationURL | project | prvversion | proposal_id | productFilename | size | parent_obsid | dataRights | calib_level | filters |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str8 | str4 | str10 | str47 | str18 | str1 | str73 | str7 | str28 | str2 | str1 | str4 | str20 | str7 | str55 | int64 | str8 | str6 | int64 | str4 |
27483764 | TESS | timeseries | tess2019226182529-s0015-0000000272943843-0151-s | Light curves | S | mast:TESS/product/tess2019226182529-s0015-0000000272943843-0151-s_lc.fits | SCIENCE | Minimum Recommended Products | LC | -- | SPOC | spoc-4.0.28-20200407 | G022062 | tess2019226182529-s0015-0000000272943843-0151-s_lc.fits | 1906560 | 27483764 | PUBLIC | 3 | TESS |
27483764 | TESS | timeseries | tess2019226182529-s0015-0000000272943843-0151-s | Target pixel files | S | mast:TESS/product/tess2019226182529-s0015-0000000272943843-0151-s_tp.fits | SCIENCE | Minimum Recommended Products | TP | -- | SPOC | spoc-4.0.28-20200407 | G022062 | tess2019226182529-s0015-0000000272943843-0151-s_tp.fits | 45956160 | 27483764 | PUBLIC | 2 | TESS |
# Download Products
manifest = Observations.download_products(tess_products, description='Light curves')
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019226182529-s0015-0000000272943843-0151-s_lc.fits to ./mastDownload/TESS/tess2019226182529-s0015-0000000272943843-0151-s/tess2019226182529-s0015-0000000272943843-0151-s_lc.fits ...
[Done]
Plotting a light curve from TESS#
The TESS light curve file has three extensions:
The primary header (HDU0)
The light curve data (HDU1)
aperture Information (HDU2)
# Open file
tess_lc = fits.open(manifest['Local Path'][0])
# Print file information
tess_lc.info()
Filename: ./mastDownload/TESS/tess2019226182529-s0015-0000000272943843-0151-s/tess2019226182529-s0015-0000000272943843-0151-s_lc.fits
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 44 ()
1 LIGHTCURVE 1 BinTableHDU 161 18757R x 20C [D, E, J, E, E, E, E, E, E, J, D, E, D, E, D, E, D, E, E, E]
2 APERTURE 1 ImageHDU 49 (11, 11) int32
We can plot the light curve by using the TIME
and SAP_FLUX
data from the first extension:
plt.figure(figsize=(15, 5))
# Plot the observed spectrum
plt.plot(tess_lc['LIGHTCURVE'].data['TIME'], tess_lc['LIGHTCURVE'].data['SAP_FLUX'], c='k', label='TESS Light Curve')
# Plot a vertical line for every day
for i in range(int(np.nanmin(tess_lc['LIGHTCURVE'].data['TIME'])), int(np.nanmax(tess_lc['LIGHTCURVE'].data['TIME']))):
plt.axvline(i, c='lightgrey')
# Set labels
plt.title(f"TESS-SPOC Light Curve - {tess_lc[0].header['OBJECT']}")
plt.xlabel('Time [BTJD]')
plt.ylabel('Flux')
plt.grid()
plt.show()
This is a very typical light curve for a Cepheid Variable star, and TESS observed the variations in flux really well! This star cycles over a period of about 6 days.
Combining APOGEE and TESS data#
Now we are ready to combine everything: the HR Diagram, the spectrum, and the TESS light curve into a single plot!
Plotting APOGEE and TESS data together#
In the below cell, we define a helper function to plot all of the data together for our Cepheid Variable star:
def plot_spectrum_and_lc(apogee_spec, tess_lightcurve):
"""Helper function for plotting the HR Diagram, APOGEE Spectrum, and TESS Light Curve for a star"""
# Set up axes for subplots
plt.figure(figsize=(20, 10))
ax1 = plt.subplot2grid((3, 5), (0, 0), colspan=2, rowspan=3)
ax2 = plt.subplot2grid((3, 5), (0, 2), colspan=3, rowspan=1)
ax3 = plt.subplot2grid((3, 5), (1, 2), colspan=3, rowspan=1)
# ===================
# AX1 - HR Diagram
# ===================
# Plot HR Diagram form APOGEE catalog
# Only plot 1 out of every 10 points with [::10] to reduce plotting time
im = ax1.scatter(allstar['TEFF'][::10], allstar['LOGG'][::10], c=allstar['FE_H'][::10],
marker='.', s=1, cmap='jet', vmin=-1, vmax=0.5, zorder=1)
plt.colorbar(im, ax=ax1, location='bottom', label='Metallicity [Fe/H]')
# Plot the specific star
indx = np.where(allstar['APOGEE_ID'] == apogee_spec[4].data['APOGEE_ID'][0])[0][0]
if allstar['TEFF'][indx]: # if the star has valid apogee parameters
ax1.scatter(allstar['TEFF'][indx], allstar['LOGG'][indx], c=allstar['FE_H'][indx],
marker='*', s=1000, cmap='jet', edgecolor='k', lw=2,
vmin=-1, vmax=0.5, zorder=5, label='APOGEE Parameters')
else: # params from aspcapstar (uncalibrated)
print('WARNING: Quality Warning Flags on ASPCAP star parameters. ASPCAP parameters may not be reliable for this star.')
ax1.scatter(apogee_spec[4].data['FPARAM'][0][0], apogee_spec[4].data['FPARAM'][0][1], c=apogee_spec[4].data['FPARAM'][0][3],
marker='*', s=1000, cmap='jet', edgecolor='k', lw=2, vmin=-1, vmax=0.5, zorder=5, label='APOGEE Parameters')
# Labels and titles
ax1.set_xlim(7000, 3000)
ax1.set_ylim(5.5, -0.5)
ax1.set_xlabel(r'Effective Temperature [$T_{\rm{eff}}$, K]')
ax1.set_ylabel(r'Surface Gravity [$\log(g)$]')
ax1.grid()
ax1.set_title('APOGEE Stellar Parameters - allStar')
# ===================
# AX2 - APOGEE Spectrum
# ===================
# Get the observed and model flux from extensions 1 and 3
observed_flux = apogee_spec[1].data
model_flux = apogee_spec[3].data
# Mask the data using the error array in extenion 2
pixel_mask = (apogee_spec[2].data < 0.1) # use only pixels with small errors (10% or less)
# Plot the observed spectrum
ax2.plot(apogee_wls[pixel_mask], observed_flux[pixel_mask], c='k', label='Observed Spectrum')
# Plot the model spectrum
ax2.plot(apogee_wls[pixel_mask], model_flux[pixel_mask], c='darkred', label='Best Fit Model Spectrum')
# Set axes limits
ax2.set_ylim(0.6, 1.1)
ax2.set_xlim(np.min(apogee_wls), np.max(apogee_wls))
apogee_id = apogee_spec[4].data['APOGEE_ID'][0] # String containing star's name
ax2.set_title(f"APOGEE Spectrum - {apogee_id}")
ax2.set_xlabel(r'Wavelength [$\AA$]')
ax2.set_ylabel('Flux')
ax2.grid()
ax2.legend()
# ===================
# AX3 - TESS Light Curve
# ===================
# Plot Light Curve
ax3.plot(tess_lightcurve['LIGHTCURVE'].data['TIME'], tess_lightcurve['LIGHTCURVE'].data['SAP_FLUX'], c='k', label='TESS Light Curve')
# Plot a vertical line for every day
for i in range(int(np.nanmin(tess_lightcurve['LIGHTCURVE'].data['TIME'])), int(np.nanmax(tess_lightcurve['LIGHTCURVE'].data['TIME']))):
ax3.axvline(i, c='lightgrey')
# Set labels
ax3.set_title(f"TESS-SPOC Light Curve - {tess_lightcurve[0].header['OBJECT']}")
ax3.set_xlabel('Time [BTJD]')
ax3.set_ylabel('Flux')
ax3.grid()
plt.tight_layout()
save_name = f"{apogee_id}_APOGEE_spec_TESS_lightcurve.png"
plt.savefig(save_name, bbox_inches='tight')
print(f"Saved to {save_name}")
plt.show()
aspcap_star = fits.open('mastDownload/SDSS/sdss_apogee_apo1m_cepheid_v1154_cyg/aspcapStar-dr17-V1154_Cyg.fits')
tess_lc = fits.open(manifest['Local Path'][0])
plot_spectrum_and_lc(aspcap_star, tess_lc)
Saved to V1154_Cyg_APOGEE_spec_TESS_lightcurve.png
Like we saw before, this star is a metal-poor horiztonal branch star, and has a period of about 6 days. A very cool example of a Cepheid Variable!
Exploring different types of Variable Stars#
So far in this notebook, we’ve plotted the stellar parameters, spectrum, and light curve of a Cepheid variable star. But what about other types of variables? Here are a few more stars in APOGEE that we will explore and plot in this section!
2M11361176+8117369: a RR Lyrae Variable Star, a type of quickly-pulsating old, low-mass star
2M19181706+5141323: a “Rotationally Variable” Star, a main sequence dwarf star with large starspots blocking out some of the flux on one side of the star as it rotates
2M19223768+5044541: an Eclipsing Binary Star, a type of close binary system with two stars rotating around each other
Since we’re going to be going through the same process for each star (search for APOGEE data -> search for TESS data -> plot results), Let’s write a helper function:
def plot_variable_star(apogee_id: str) -> None:
"""
This function takes a star name from APOGEE and downloads the APOGEE and TESS
data for this star. It then plots the APOGEE spectrum and TESS Lightcurve together.
Parameters:
============
apogee_id: str
name of star we want to plot
"""
print("="*50)
print(f"Plotting Spectrum and Light Curve for {apogee_id}")
print("="*50)
# Search for APOGEE Data
print("Searching For APOGEE Data...")
apogee_obs_list = Observations.query_criteria(provenance_name='APOGEE',
target_name=apogee_id)
print("Downloading APOGEE Data...")
# Download APOGEE Spectrum
product_list = Observations.get_product_list(apogee_obs_list)
manifest = Observations.download_products(product_list, productSubGroupDescription='ASPCAPSTAR')
# Open APOGEE Spectrum
aspcapstar = fits.open(manifest['Local Path'][0])
# Coordinates of Star
coord = SkyCoord(ra=apogee_obs_list['s_ra'][0]*u.deg, dec=apogee_obs_list['s_dec'][0]*u.deg)
# Search for TESS observations based on coordinates
print("Searching For TESS Data...")
tess_obs = Observations.query_criteria(coordinates=coord, # Search by coordinates
radius=(1/60/60)*u.deg, # search within 1 arcsecond
obs_collection='TESS', # Search for TESS observations
intentType='science', # Select only Science observations (not calibration files)
dataproduct_type='timeseries', dataURL="*lc.fits") # Search for time series data (light curves)
# Pick closest match by distance
tess_obs = tess_obs[np.argmin(tess_obs['distance'])]
# Download TESS Light Curve
print("Downloading TESS Data...")
tess_products = Observations.get_product_list(tess_obs)
manifest = Observations.download_products(tess_products, description='Light curves')
# Open light curve
tess_lc = fits.open(manifest['Local Path'][0])
# Plot star
print("Making Plot...")
plot_spectrum_and_lc(aspcapstar, tess_lc)
RR Lyrae Variable - 2M11361176+8117369#
# Define the star name we want to search for
star_name = '2M11361176+8117369'
# Call our helper function to download data and plot the results
plot_variable_star(star_name)
==================================================
Plotting Spectrum and Light Curve for 2M11361176+8117369
==================================================
Searching For APOGEE Data...
Downloading APOGEE Data...
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:SDSS/apogee/apo1m/rrlyr/2M11361176%2B8117369/aspcapStar-dr17-2M11361176%2B8117369.fits to ./mastDownload/SDSS/sdss_apogee_apo1m_rrlyr_2m11361176+8117369/aspcapStar-dr17-2M11361176+8117369.fits ...
[Done]
Searching For TESS Data...
Downloading TESS Data...
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2021175071901-s0040-0000000372758482-0211-s_lc.fits to ./mastDownload/TESS/tess2021175071901-s0040-0000000372758482-0211-s/tess2021175071901-s0040-0000000372758482-0211-s_lc.fits ...
[Done]
Making Plot...
Saved to 2M11361176+8117369_APOGEE_spec_TESS_lightcurve.png
This star is also a horizontal branch star, but it is hotter and more metal-poor than the Cepheid Variable was. It pulsates a lot more quickly too - from the light curve, the pulsation period is about 12 hours!
Rotationally Variable - 2M19181706+5141323#
star_name = '2M19181706+5141323'
plot_variable_star(star_name)
==================================================
Plotting Spectrum and Light Curve for 2M19181706+5141323
==================================================
Searching For APOGEE Data...
Downloading APOGEE Data...
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:SDSS/apogee/apo25m/K01_082%2B17/2M19181706%2B5141323/aspcapStar-dr17-2M19181706%2B5141323.fits to ./mastDownload/SDSS/sdss_apogee_apo25m_k01_082+17_2m19181706+5141323/aspcapStar-dr17-2M19181706+5141323.fits ...
[Done]
Searching For TESS Data...
Downloading TESS Data...
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019226182529-s0015-0000000416267333-0151-s_lc.fits to ./mastDownload/TESS/tess2019226182529-s0015-0000000416267333-0151-s/tess2019226182529-s0015-0000000416267333-0151-s_lc.fits ...
[Done]
Making Plot...
Saved to 2M19181706+5141323_APOGEE_spec_TESS_lightcurve.png
This star is a main-sequence dwarf star, a lot like the Sun but a little bit cooler in temperature. Its light curve is not as periodic as the other two, because the variation in flux is caused by the stars rotation, not pulsation! Large star spots likely block out the flux on part of this star, causing it to dip in brightness roughly every 14 days.
Eclipsing Binary Star - 2M19203184+3830492#
star_name = '2M19203184+3830492'
plot_variable_star(star_name)
==================================================
Plotting Spectrum and Light Curve for 2M19203184+3830492
==================================================
Searching For APOGEE Data...
Downloading APOGEE Data...
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:SDSS/apogee/apo25m/K21_071%2B10/2M19203184%2B3830492/aspcapStar-dr17-2M19203184%2B3830492.fits to ./mastDownload/SDSS/sdss_apogee_apo25m_k21_071+10_2m19203184+3830492/aspcapStar-dr17-2M19203184+3830492.fits ...
[Done]
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:SDSS/apogee/apo25m/N6791/2M19203184%2B3830492/aspcapStar-dr17-2M19203184%2B3830492.fits to ./mastDownload/SDSS/sdss_apogee_apo25m_n6791_2m19203184+3830492/aspcapStar-dr17-2M19203184+3830492.fits ...
[Done]
Searching For TESS Data...
Downloading TESS Data...
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2021175071901-s0040-0000000122304494-0211-s_lc.fits to ./mastDownload/TESS/tess2021175071901-s0040-0000000122304494-0211-s/tess2021175071901-s0040-0000000122304494-0211-s_lc.fits ...
[Done]
Making Plot...
WARNING: Quality Warning Flags on ASPCAP star parameters. ASPCAP parameters may not be reliable for this star.
Saved to 2M19203184+3830492_APOGEE_spec_TESS_lightcurve.png
Every few days, this star’s flux dips dramatically in brightness by over 25%! This system is an eclipsing binary pair - a pair of stars orbiting around each other, and eclipsing one another along our line-of-sight, causing the fluctuations in brightness seen in the light curve.
Because this is an eclipsing binary pair, the ASPCAP parameters have a quality warning and may not be as reliable as the parameter estimates for other stars (which explains why the star is slightly off of the main sequence in the HR Diagram!). The single visit spectra (apVisit files) are probably more useful for most science cases involving binary stars than the combined spectrum (aspcapStar file) we plotted here. The apVisit files can be dowloaded using the productSubGroupDescription='APVISIT'
keyword when downloading the products.
Congratulations! You have reached the end of this tutorial notebook. You have learned how to access and download APOGEE data from MAST, and combine it with TESS light curves to characterize different types of variable stars.
Additional Resources#
Additional resources are linked below:
Citations#
If you use MaNGA data for published research, see the following links for information on which citations to include in your paper:
About this Notebook#
Author(s): Julie Imig (jimig@stsci.edu)
Keyword(s): Tutorial, SDSS, APOGEE, TESS, stars
First published: January 2025
Last updated: January 2025