skyscapes.scene.system#
scene.System – the top-level PyTree container.
Holds a star, a heterogeneous tuple of planets, an optional disk, and the Kepler-solver callable (static so JIT doesn’t re-trace). The tuple makes the system variadic: a 1-planet system and an 8-planet system have compatible shapes as long as per-planet arrays broadcast correctly.
Classes#
Astrophysical scene: star + tuple of planets + optional disk. |
Module Contents#
- class skyscapes.scene.system.System[source]#
Bases:
equinox.ModuleAstrophysical scene: star + tuple of planets + optional disk.
- Attributes:
star: Host star (
AbstractStar). planets: Variable-length tuple ofPlanet. trig_solver: Scalar Kepler-trig solver (static; seeorbix.kepler.shortcuts.grid.get_grid_solver). Required – callers must provide a built solver, not None.disk: Optional extended-source disk (
AbstractDisk | None). midplane_inc_deg: System midplane inclination [deg] in thebarycentric -> sky frame. Default 0.0 means “midplane = sky” and is intentionally indistinguishable from a real face-on system at this inclination; this ambiguity is acceptable because the field is diagnostic-only after load (no runtime hot path consults it). Populated by
io.from_exovistafrom the FITS star header. After load, frame rotation has already been baked into eachPlanet’s orbital elements.- midplane_pa_deg: System midplane position angle [deg]. Same
semantics as
midplane_inc_deg.
- planets: tuple[skyscapes.scene.planet.Planet, Ellipsis]#
- trig_solver: collections.abc.Callable#
- disk: skyscapes.disk.AbstractDisk | None = None#
- positions(t_jd)[source]#
Concatenated on-sky positions, shape
(2, K_total, T).- Parameters:
t_jd (jaxtyping.Array)
- Return type:
jaxtyping.Array
- contrasts(wavelength_nm, t_jd)[source]#
Per-planet contrast, shape
(K_total, T).- Parameters:
wavelength_nm (jaxtyping.Array)
t_jd (jaxtyping.Array)
- Return type:
jaxtyping.Array
- planet_flux_densities(wavelength_nm, t_jd)[source]#
Per-planet flux density [ph/s/m^2/nm], shape
(K_total, T).- Parameters:
wavelength_nm (jaxtyping.Array)
t_jd (jaxtyping.Array)
- Return type:
jaxtyping.Array