Skip to contents

Calculates star's habitable zone inner and outer radius, based on star's luminosity.

Usage

calculate_star_habitable_zone(st_lum, log_lum = TRUE)

Arguments

st_lum

A numeric Stellar luminosity value (log10(L/Lsun) or linear).

log_lum

A logical value. If TRUE assumes st_lum is logarithmic. Defaults to TRUE.

Value

A numeric vector of 2 elements where first is habitable zone inner radius and second is the outer radius.

Examples

calculate_star_habitable_zone(0) # habitable zone for sun, with logarithmic units
#> [1] 0.9534626 1.3736056
calculate_star_habitable_zone(1, log_lum = FALSE) # habitable zone for sun, with linear units
#> [1] 0.9534626 1.3736056