API¶
-
class
webb_scraping.target.
Target
(input_name)[source]¶ Bases:
object
Performance of web reconnaisanse on an interesting target.
- Attributes:
aliases: (list of strings) names by which the target is known in other catalogs. input_name: (str) name of target you’re interested in. webb_approved: (bool) whether or not the target has been included in approved webb program. hst_approved: (bool) whether or not the target has been included in a public HST program. webb_proposal_link: (list of strings) if there are associated JWST proposals, these are the associated URLs. webb_proposal_names: (list of strings) if there are associated JWST proposals, these are the associated proposal names. hst_data: (dict) keys are HST proposals, vals are links to associated data producs. exoplanet_archive_data: (dict) arxiv_links: (list) list to PDFs of arxiv papers that have self.input_name or self.aliases in their abstracts
__init__: initializes. scrape_all: master run method. find_aliases: finds aliases. search_webb_site: manual scraping, not preferred. -
find_aliases
()[source]¶ Uses astroquery and Simbad to find any aliases of input_name; these are then put into the self.aliases list.
-
run_all_calculations
(verbose=False)[source]¶ Calculates the TSM and ESM (Kempton+ 18) for this target, using known planet properties.
-
scrape_HST
()[source]¶ Checks MAST for the target’s relevant HST proposals/data. Modifies hst_approved: if there are observations, sets it to True; otherwise False. Appends links to relevant HST data to hst_data.
-
scrape_arxiv
(progress=False)[source]¶ Searches through arXiv abstracts for the target. Appends links of relevant arXiv pdfs to arxiv_links. If progress=True, outputs a tqdm progress bar.
-
webb_scraping.calculations.
ESM
(planet_properties, verbose=False)[source]¶ Takes in planet properties, computes ESM (Kempton+ 18) for it. Need to double-check units?
- Inputs:
planet_properties: (dict) contains planet orbital_distance (in AU), stellar radius (solar radii), stellar effective temperature (K), planet mass (Jupiter masses), orbital period (days), stellar K band magnitude (mag), and planet-star radius ratio. verbose: (bool) False. Dtermines whettehr properties are printed after computaiton. - Outputs:
ESM: (float) SNR proxy for emission spectroscopy introduced by Kempton+ 18.
-
webb_scraping.calculations.
TSM
(planet_properties, verbose=False)[source]¶ Takes in row of dataframe, computes TSM (Kempton+18) for it.
- Inputs:
planet_properties: (dict) contains planet orbital_distance (in AU), stellar radius (solar radii), stellar effective temperature (K), planet mass (Jupiter masses), stellar mass (solar masses), orbital period (days), stellar J band magnitude (mag), and planet-star radius ratio. verbose: (bool) False. Dtermines whettehr properties are printed after computaiton. - Outputs:
ESM: (float) SNR proxy for emission spectroscopy introduced by Kempton+ 18.