oimSimulator
Data/model simulation
Functions:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Classes:
|
Contains |
- oimodeler.oimSimulator.corrFlux2Vis2(vcompl)
- oimodeler.oimSimulator.corrFlux2VisAmpAbs(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2VisAmpDif(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2VisAmpCor(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2VisPhiAbs(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2VisPhiDif(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2T3Amp(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2T3Phi(vcompl: ndarray) ndarray
- oimodeler.oimSimulator.corrFlux2Flux(vcompl: ndarray) ndarray
- class oimodeler.oimSimulator.oimSimulator(data=None, model=None, fitter=None, cprior=None, priorWeight=1, **kwargs)
Contains
- setModel(model)
- addData(data)
- prepareData()
- prepareBootstrap()
- compute(computeChi2: bool = False, computeSimulatedData: bool = False, checkSimulatedData: bool = True, dataTypes=None, cprior=None)
- computeAll(checkSimulatedData=True, dataTypes=None, cprior=None)
- plotWlTemplate(shape, simulated: bool = True, savefig=None, xunit: str = 'm', plotFuntionData=<function _errorplot>, plotFunctionSimulatedData=<function Axes.plot>, kwargsData: Dict = {}, kwargsSimulatedData: Dict = {}, **kwargs)
- plot(arr: str | List[str], simulated: bool = True, savefig: str | Path | None = None, visLog: bool = False, xaxis: str = 'SPAFREQ', xunit: str = 'cycle/rad', cname: str = 'EFF_WAVE', cunit: str = 'micron', cmap: str = 'plasma', colorbar: bool = True, kwargsData: Dict = {}, kwargsSimulatedData: Dict = {}, fig: Figure | None = None, axe: Axes | None = None) None
Plots data vs. simulated data.
- Parameters:
arr (str or list of str) – The name of the OIFITS column that is plotted.
simulated (bool, optional) – If True, simulated data are plotted. Default is True.
savefig (str or pathlib.Path, optional) – Saves the plot. Default is None.
visLog (bool, optional) – If True, sets the y-scale to logarithmic. Default is False.
xaxis (str, optional) – OIFITS information plotted on the x-axis. Default is “SPAFREQ”.
xunit (str, optional) – Unit of the x-axis. Default is “cycle/rad”.
cname (str, optional) – OIFITS information plotted on the colorbar. Default is “EFF_WAVE”.
cunit (str, optional) – Unit of the colorbar. Default is “micron”.
cmap (str, optional) – Name of the colormap. Default is “plasma”.
colorbar (bool, optional) – If True, plots a colorbar. Default is True.
kwargsData (dict, optional) – Keyword arguments passed to the data oiplot. Default is {}.
kwargsSimulatedData (dict, optional) – Keyword arguments passed to the simulated data oiplot. Default is {}.
fig (matplotlib.figure.Figure, optional) – Figure used for the plotting. Default is None.
axe (matplotlib.axes.Axes, optional) – Axes used for the plotting. Default is None.
- plotResiduals(arr, xaxis: str = 'SPAFREQ', xunit: str = 'cycle/rad', savefig=None, visLog: bool = False, cname: str = 'EFF_WAVE', cunit: str = 'micron', cmap: str = 'plasma', marker: str = '.', levels: List[int] = [1, 2, 3], **kwargs)
- plotWithResiduals(arr, simulated: bool = True, savefig=None, visLog: bool = False, xaxis: str = 'SPAFREQ', xunit: str = 'cycle/rad', cname: str = 'EFF_WAVE', cunit: str = 'micron', cmap: str = 'plasma', kwargsData: Dict = {}, kwargsSimulatedData: Dict = {}, kwargsResiduals: Dict = {}, levels: List[int] = [1, 2, 3])