kammerje / fouriever

A single toolkit for calibrations, correlations, and companion search for kernel-phase, aperture masking, and long-baseline interferometry data.
6 stars 6 forks source link

Method for estimating the phases from the closure phases #15

Closed tomasstolker closed 1 year ago

tomasstolker commented 1 year ago

Hi @kammerje,

As discussed, this PR implements the estimate_phase method in the data class. It estimates the phases from the closure phases by inverting the phase-to-CP matrix (i.e. cpmat) and projecting the closure phases on this conversion matrix.

The phases are returned as array together with the u-v coordinates and a plot is created of the phases. The latter can optionally include an arrow in the direction of an actual companion, for example the best-fit parameters determined with chi2map, and the associated model phases in the background.

Let me know in case you have any feedback!