Skip to main content

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

Project description

fouriever

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

Description

This toolkit combines different pieces of code that I developed mainly during my PhD. The major ideas come from CANDID and pynrm. Collaborators include Antoine Merand, Mike Ireland, Frantz Martinache, Tomas Stolker, and Thomas Vandal. The ultimate purpose is a common framework to analyze and fit kernel phase, aperture masking, and long-baseline interferometry data. At the moment, a major focus lies on JWST/NIRCam & JWST/NIRISS kernel phase and JWST/NIRISS aperture masking interferometry.

Currently, the toolkit contains the following functionalities:

  • Companion detection maps based on a linearized binary model including the possibility to account for correlations. Published in Kammerer et al. 2019.
  • Chi-squared detection maps similar to the fitMaps in CANDID, but including the possibility to account for correlations. Published in Kammerer et al. 2020 and Kammerer et al. 2021a.
  • Numerically computed bandwidth smearing as in CANDID.
  • Possibility to define a search region for the companion.
  • MCMC to nail down the companion parameters and estimate their uncertainties. Published in Kammerer et al. 2021a.
  • Karhunen-Loeve calibration for kernel phase and OIFITS files. Published in Kammerer et al. 2019.
  • Modeling of aperture masking and long-baseline interferometry correlations. Published in Kammerer et al. 2020.
  • Estimation of detection limits as in CANDID.

Future updates will include:

Tutorials

There are several tutorials and test data sets provided that can be used to test and explore the functionalities of the fouriever toolkit. We note that the toolkit does currently understand OIFITS files and kernel phase FITS files. The following test data sets are provided:

  • JWST/NIRISS AMI of AB Dor (simulated).
  • VLTI/PIONIER of AX Cir (on-sky).
  • VLTI/GRAVITY of beta Pic (simulated).
  • VLT/NACO kernel phase of HIP 50156 (on-sky).
  • Keck/NIRC2 kernel phase of V410 Tau (on-sky).

Examples

AX Cir, with correlations and bandwidth smearing.

Opened PIONIER_Pnat(1.6135391/1.7698610) data
   50 observations
   6 baselines
   4 triangles
   3 wavelengths
Selected instrument = PIONIER_Pnat(1.6135391/1.7698610)
   Use self.set_inst(inst) to change the selected instrument
Selected observables = ['v2', 'cp']
   Use self.set_observables(observables) to change the selected observables

Chi-squared map and model vs. data plot:

Data properties
   Smallest spatial scale = 2.0 mas
   Bandwidth smearing FOV = 34.9 mas
   Diffraction FOV = 221.9 mas
   Largest spatial scale = 34.9 mas
   Bandwidth smearing = 3
   Using data covariance = True
   WARNING: covariance matrix does not have full rank
Computing best fit uniform disk diameter (DO NOT TRUST UNCERTAINTIES)
   Best fit uniform disk diameter = 0.93084 +/- 0.00048 mas
   Best fit red. chi2 = 0.811 (ud)
Computing grid
   Min. sep. = 2.0 mas
   Max. sep. = 41.7 mas
   1352 non-empty grid cells
Computing chi-squared map (DO NOT TRUST UNCERTAINTIES)
   Cell 1849 of 1849
   1121 unique minima found after 1352 fits
   Optimal step size = 2.0 mas
   Current step size = 2.0 mas
   Best fit companion flux = 0.937 +/- 0.053 %
   Best fit companion right ascension = 6.3 +/- 0.1 mas
   Best fit companion declination = -28.5 +/- 0.1 mas
   Best fit companion separation = 29.2 +/- 0.1 mas
   Best fit companion position angle = 167.6 +/- 0.1 deg
   Best fit uniform disk diameter = 0.81562 +/- 0.00776 mas
   Best fit red. chi2 = 0.589 (ud+bin)
   Significance of companion = 8.0 sigma

Figure 1 Figure 2

MCMC chains and posterior:

Computing best fit uniform disk and companion parameters (UNCERTAINTIES FROM MCMC)
   Bandwidth smearing = 3
   Using data covariance = True
   WARNING: covariance matrix does not have full rank
   Covariance inflation factor = 0.589
   This may take a few minutes
100%|███████████████████████████████████████| 5000/5000 [03:05<00:00, 27.01it/s]
   Best fit companion flux = 0.934 +/- 0.040 %
   Best fit companion right ascension = 6.2 +/- 0.1 mas
   Best fit companion declination = -28.5 +/- 0.1 mas
   Best fit companion separation = 29.2 +/- 0.1 mas
   Best fit companion position angle = 167.7 +/- 0.1 deg
   Best fit uniform disk diameter = 0.81599 +/- 0.00734 mas
   Best fit red. chi2 = 0.589 (ud+bin)
   Significance of companion = 8.0 sigma

Figure 3 Figure 4

Chi-squared map and model vs. data plot of residuals:

Subtracting ud_bin model
Data properties
   Smallest spatial scale = 2.0 mas
   Bandwidth smearing FOV = 34.9 mas
   Diffraction FOV = 221.9 mas
   Largest spatial scale = 34.9 mas
   Bandwidth smearing = 3
   Using data covariance = True
   WARNING: covariance matrix does not have full rank
Computing best fit uniform disk diameter (DO NOT TRUST UNCERTAINTIES)
   Best fit uniform disk diameter = 0.81601 +/- 0.00046 mas
   Best fit red. chi2 = 0.589 (ud)
Computing grid
   Min. sep. = 2.0 mas
   Max. sep. = 41.7 mas
   1352 non-empty grid cells
Computing chi-squared map (DO NOT TRUST UNCERTAINTIES)
   Cell 1849 of 1849
   1283 unique minima found after 1352 fits
   Optimal step size = 2.0 mas
   Current step size = 2.0 mas
   Best fit companion flux = 0.414 +/- 0.013 %
   Best fit companion right ascension = -20.1 +/- 0.3 mas
   Best fit companion declination = -20.5 +/- 0.3 mas
   Best fit companion separation = 28.7 +/- 0.3 mas
   Best fit companion position angle = -135.4 +/- 0.6 deg
   Best fit uniform disk diameter = 0.75897 +/- 0.00222 mas
   Best fit red. chi2 = 0.546 (ud+bin)
   Significance of companion = 2.4 sigma

Figure 5 Figure 6

Detection limits of residuals using Absil and Injection method:

Subtracting ud_bin model
Data properties
   Smallest spatial scale = 2.0 mas
   Bandwidth smearing FOV = 34.9 mas
   Diffraction FOV = 221.9 mas
   Largest spatial scale = 34.9 mas
   Bandwidth smearing = 3
   Using data covariance = True
   WARNING: covariance matrix does not have full rank
Computing best fit uniform disk diameter (DO NOT TRUST UNCERTAINTIES)
   Best fit uniform disk diameter = 0.81601 +/- 0.00046 mas
   Best fit red. chi2 = 0.589 (ud)
Computing grid
   Min. sep. = 2.0 mas
   Max. sep. = 41.7 mas
   1352 non-empty grid cells
Computing detection limits (3-sigma)
   Cell 1849 of 1849

Figure 7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fouriever-0.4.3.tar.gz (59.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fouriever-0.4.3-py3-none-any.whl (62.2 kB view details)

Uploaded Python 3

File details

Details for the file fouriever-0.4.3.tar.gz.

File metadata

  • Download URL: fouriever-0.4.3.tar.gz
  • Upload date:
  • Size: 59.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for fouriever-0.4.3.tar.gz
Algorithm Hash digest
SHA256 bac6d0add96e7d07ce168efa87e07f33b1471da7ac7bc1635e29d2643f76ed34
MD5 03a7d634285f7bb7abda92b1f3ee435b
BLAKE2b-256 20f1bad676f93fac1c955c6cc645a8f2013c12f0cb0cb7c633ab0e8ca10927ac

See more details on using hashes here.

File details

Details for the file fouriever-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: fouriever-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for fouriever-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee00eb938b69d9baec26ad33ee28f1ae21104ebeec39a175c32a129410fdb89d
MD5 fcb7527f90a736268ecf9b848010e15b
BLAKE2b-256 01951dfff5b65cdfd7cda2b6a2cd03e4d55b2b92a23facada2411ccb6ff18728

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page