exoplanet-dev / jaxoplanet

Astronomical time series analysis with JAX
https://jax.exoplanet.codes
MIT License
41 stars 12 forks source link

feat: starry limb-darkened flux #89

Closed lgrcia closed 9 months ago

lgrcia commented 1 year ago

A flux implementation for non-uniform limb-darkened maps. This merges lots of other branches so I open the PR mainly for discussion and I am happy to open another one once the mergings are figured out (See #74).

As discussed with @dfm, the limd-darkening map product is done on the polynomial representation. This has several advantages:

This version has been tested against starry (see tests/flux_test.py). The sparse matrices still have to be figured out to avoid calls to todense (can you help with that @dfm?). Also tests in float32 don't pass... (half the light curve is nan, to be solved)

Edit: I also added the theta_z rotation in the fused rotation, very simple edit and computing the left_project is straight-forward (see rotation.py). I hope we can use the None args for efficiency, as was implemented for the dot_rotation_matrix.

dfm commented 9 months ago

Superseded by #111