Kepler-158 b

####################################
# WARNINGS specific to this planet #
####################################

- The mass is derived from a M-R relationship. It thus also has no errors and it may be very uncertain.
- The planet radius has large (>10%) errors.
- The semi-major axis does not have reported errors and is thus uncertain.
- There is no star spectral type measurement, we have instead guessed it based on the effective temperature (assuming it is a main sequence star).
- log(K phi_p) = 12.15, which is outside the bounds [12.17, 13.29] where the Caldiroli et al. (2022) parametrization for the mass-loss rate is formally valid. The used mass-loss rate may thus be inaccurate.

###################
# Used parameters #
###################

Planet radius [Rjup]: 0.189 +0.032 -0.032 (reference: Rowe et al. 2014, https://ui.adsabs.harvard.edu/abs/2014ApJ...784...45R/abstract )
Planet mass [Mjup]: 0.0162 +nan nan (reference: Calculated Value, None )
Semi-major axis [AU]: 0.111 +nan nan (reference: Rowe et al. 2014, https://ui.adsabs.harvard.edu/abs/2014ApJ...784...45R/abstract )
Transit impact parameter: 0.86 +0.32 -0.32 (reference: Rowe et al. 2014, https://ui.adsabs.harvard.edu/abs/2014ApJ...784...45R/abstract )
Star radius [Rsun]: 0.62 +0.08 -0.08 (reference: Rowe et al. 2014, https://ui.adsabs.harvard.edu/abs/2014ApJ...784...45R/abstract )
Star mass [Msun]: 0.66 +0.02 -0.02 (reference: Q1-Q8 KOI Table, https://exoplanetarchive.ipac.caltech.edu/docs/Kepler_KOI_docs.html )
Used SED: HATP12 which has type: K5.0 and Teff: 4653. This SED was selected based on the host star's reported Teff: 4623.0 (reference: Rowe et al. 2014, https://ui.adsabs.harvard.edu/abs/2014ApJ...784...45R/abstract )
Parker wind log10(Mass-loss rate [g s-1]): 9.058
Parker wind temperature [K]: 2365

#########################################
# Line depths of some important tracers #
#########################################

Helium 10833Å [%]: 0.937
Calcium 8544Å [%]: 0.00113
Magnesium 2796Å [%]: 0.868
Iron 2383Å [%]: 0.455
Carbon 1336Å [%]: 0.187
Oxygen 1302Å [%]: 0.376
Silicon 1265Å [%]: 0.704

#################################
# TSM of some important tracers #
#################################

Helium TSM = EW / 10833.25Å * 10^(-mJ / 5): 1.19e-09
Calcium TSM = EW / 8544.44Å * 10^(-mV / 5): 2.67e-13
Magnesium TSM = EW / 2796.352Å * (7.7pc / d): 7.11e-09
Carbon TSM = EW / 1335.68Å * (7.7pc / d): 5.03e-09
Oxygen TSM = EW / 1302.168Å * (7.7pc / d): 2.03e-09

##########################
# Reproducing this model #
##########################

You can reproduce these results (or change some of the input parameters) as follows:
Step 1: Install sunbather from www.github.com/dlinssen/sunbather (make sure to follow all steps of the installation)

Step 2: Add the following line to your $SUNBATHER_PROJECT_PATH/planets.txt file:
Kepler158b,Kepler-158 b,0.189,0.62,0.111,0.0162,0.66,0.86,HATP12_binned.spec

Step 3: In the /sunbather/src/ directory, run the following commands:
python construct_parker.py -plname Kepler158b -pdir z_1 -Mdot 9.058 -T 2365 -z 1 -avoid_pwinds_mubar
python convergeT_parker.py -plname Kepler158b -pdir z_1 -dir z_1 -Mdot 9.058 -T 2365 -z 1

Step 4: In a Python script, calculate the transit spectrum as follows:
import sys
sys.path.append('/YOUR/PATH/TO/sunbather/src/')
import tools
import RT
import numpy as np

sim = tools.Sim(tools.projectpath+'/sims/1D/Kepler158b/z_1/parker_2365_9.058/converged')
wavs = np.logspace(np.log10(911),np.log10(11000), num=1000000) #change wavelength grid as you want
species_to_include = tools.get_specieslist() #this includes all species, can be changed - see sunbather wiki
transit_spectrum, _, _ = RT.FinFout(sim, wavs, species_to_include)