transit_demo.py ¶
A demo for modeling transmission spectra with a blank mask coronagraph (i.e. the coronagraph is not blocking the star’s light).
-
scripts.transit_demo.
earth_analog_transits
(d=10.0, ntran=10, nout=2)¶ Simulate the transmission spectrum of Earth transiting a Sun-like star that is d parsecs away.
Parameters: - d (float) – Distance to system [pc]
- ntran (int) – Number of transits
- nout (int) – Number of out-of-transit transit durations to observe
Example
>>> from transit_demo import earth_analog_transits >>> earth_analog_transits()