oimodeler

The oimodeler project aims at developing a modular and easily expandable python-based modelling software for optical interferometry. The project started end of 2021, and the software is currently at an early stage of development.

It allows to manipulate data in the OIFITS format, build complex models from various components, simulate data from the model at the spatial frequencies of your observations, compute chi2, perform model fitting (using mcmc or other fitters), and plot results easily. Components can be defined in the image or Fourier plan using analytical formulas or precomputed images. Components or model parameters can be chromatic and/or time dependent. The software is modular and object oriented, in order to make it easy to expand it by creating new model components or other features from abstract classes.

Warning

The software is in early development:
  • Models: In Fourier and Image plans with chromaticity and time dependence

  • Data: Interferometric data only. No photometric or spectroscopic data.

  • Data Filters: Filtering wavelength range, and data type (VIS2DATA, VISAMP…)

  • Fitters: Implementation of a basic emcee-based fitter with plots for results

  • Plots: Basics plots of OIFITS data and uv-plane plot

  • Utils: Miscellaneous utilities for OIFITS data (creating and modifying array, getting info..)

No module is complete and have been fully verified up to now!

A Few examples

Here are some plots for the createModelChromatic.py example showing various chromatic-geometric models and the corresponding simulated visibilities.

Alternative text

Here is an example from the createSimulator.py script showing high-end plots of some MATISSE LM-band data and a model create with oimodeler. In that case the data were simulated using the APSRO software from JMMC.

Alternative text

Here is an example from the simpleFitEmcee.py script showing:

  • The parameters values (and corresponding chi2 as a colorscale) for walkers from a emcee run on a binary model

  • The famous corners plots for the 4 free parameters: x and y positions of the binary, diameter and flux

Again, the data is simulated with APSRO.

Alternative text Alternative text

Here is a plot showing a model consisting of a fast rotating star plus a uniform disk. Chromatic images of fast rotator are computed with an external function encapsulated into a oimodeler component. The uniform disk is a simple Fourier-based component. The code is in the createCustomComponentImageFastRotator.py

Alternative text

License

Copyright 2021-2022 Anthony Meilland and contributors.

oimodeler is a free software distributed under GNU General Public License.

For details see the LICENSE.

Acknowledgment

The oimodeler package is developed with support from the VLTI/MATISSE consortium and the ANR project MASSIF.

Contact

If you have any question, comments or want to extend oimodeler contact Anthony Meilland. Additionally, you can use the Github issues for bug reports or feature requests or make a pull-request on the repository.

Table of Contents

Index