Spot

class libra.Spot(x=None, y=None, z=None, r=None, stellar_radius=1, contrast=None)[source] [edit on github]

Bases: object

Properties of a starspot.

Parameters:

x : float

X position [stellar radii]

y : float

Y position [stellar radii]

z : float

Z position [stellar radii], default is z=sqrt(r_star^2 - x^2 - y^2).

r : float

Spot radius [stellar radii], default is r=1.

stellar_radius : float

Radius of the star, in the same units as x,y,z,r. Default is 1.

Methods Summary

from_latlon(latitude, longitude, radius[, …]) Construct a spot from latitude, longitude coordinates
from_sunspot_distribution([mean_latitude, …])
Parameters:

Methods Documentation

classmethod from_latlon(latitude, longitude, radius, contrast=None)[source] [edit on github]

Construct a spot from latitude, longitude coordinates

Parameters:

latitude : float

Spot latitude [deg]

longitude : float

Spot longitude [deg]

radius : float

Spot radius [stellar radii]

classmethod from_sunspot_distribution(mean_latitude=15, radius_multiplier=1, contrast=0.7)[source] [edit on github]
Parameters:

mean_latitude : float

Define the mean absolute latitude of the two symmetric active latitudes, where mean_latitude > 0.