by achael

achael /eht-imaging

Imaging, analysis, and simulation software for radio interferometry

5.2K Stars 461 Forks Last release: 4 months ago (v1.2.1) GNU General Public License v3.0 1.9K Commits 8 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

ehtim (eht-imaging)

Python modules for simulating and manipulating VLBI data and producing images with regularized maximum likelihood methods. This version is an early release so please submit a pull request or email [email protected] if you have trouble or need help for your application.

The package contains several primary classes for loading, simulating, and manipulating VLBI data. The main classes are the

, and
classes, which provide tools for loading images and data, producing simulated data from realistic u-v tracks, calibrating, inspecting, and plotting data, and producing images from data sets in various polarizations using various data terms and regularizers.


The latest stable version (

) is available on
. Simply install pip and run

.. code-block:: bash

pip install ehtim

Incremental updates are developed on the

dev branch 
_. To use the very latest (unstable) code, checkout dev, change to the main eht-imaging directory, and run:

.. code-block:: bash

pip install .

Installing with pip will update most of the required libraries automatically (

, and

If you want to use fast fourier transforms, you will also need to separately install

_ and its
pynfft wrapper 
. The simplest way is to use
_ to install both:

.. code-block:: bash

conda install -c conda-forge pynfft

Alternatively, first install NFFT manually following the instructions on the

, making sure to use the
flag in compilation. Then install
, with pip, following the readme instructions to link the installation to where you installed NFFT. Finally, reinstall ehtim.

Certain eht-imaging functions require other external packages that are not automatically installed. In addition to pynfft, these include

_ (for image comparison functions),
_ (for dynamical imaging), and
_ (for Hough transforms). However, the vast majority of the code will work without these dependencies.


Documentation is

_ .

A full tutorial is in progress, but here are some ways to learn to use the code:

  • Start with the script examples/, which contains a series of sample commands to load an image and array, generate data, and produce an image with various imaging algorithms.

  • Slides 
    _ from the EHT2016 data generation and imaging workshop contain a tutorial on generating data with the VLBI imaging
    _, loading into the library, and producing an image.

Some publications that use ehtim

If you use ehtim in your publication, please cite both

Chael+ 2016 
_ and
Chael+ 2018 

Let us know if you use ehtim in your publication and we'll list it here!

  • High-Resolution Linear Polarimetric Imaging for the Event Horizon Telescope,

    Chael et al. 2016 
  • Computational Imaging for VLBI Image Reconstruction,

    Bouman et al. 2016 
  • Stochastic Optics: A Scattering Mitigation Framework for Radio Interferometric Imaging,

    Johnson 2016 
  • Quantifying Intrinsic Variability of Sgr A* using Closure Phase Measurements of the Event Horizon Telescope,

    Roelofs et al. 2017 
  • Reconstructing Video from Interferometric Measurements of Time-Varying Sources,

    Bouman et al. 2017 
  • Dynamical Imaging with Interferometry,

    Johnson et al. 2017 
  • Interferometric Imaging Directly with Closure Phases and Closure Amplitudes,

    Chael et al. 2018 
  • A Model for Anisotropic Interstellar Scattering and its Application to Sgr A*,

    Psaltis et al. 2018 
  • The Currrent Ability to Test Theories of Gravity with Black Hole Shadows,

    Mizuno et al. 2018 
  • The Scattering and Intrinsic Structure of Sagittarius A* at Radio Wavelengths,

    Johnson et al. 2018 
  • How to tell an accreting boson star from a black hole,

    Olivares et al. 2018 
  • Testing General Relativity with the Black Hole Shadow Size and Asymmetry of Sagittarius A*: Limitations from Interstellar Scattering,

    Zhu et al. 2018 
  • The Size, Shape, and Scattering of Sagittarius A* at 86 GHz: First VLBI with ALMA,

    Issaoun et al. 2019 
  • First M87 Event Horizon Telescope Results IV: Imaging the Central Supermassive Black Hole,

    The Event Horizon Telescope Collaboration 2019 


The oifitsnew code used for reading/writing .oifits files is a slightly modified version of Paul Boley's package at

. The oifits read/write functionality is still being developed and may not work with all versions of python or astropy.

The documentation is styled after

dfm's projects 


ehtim is licensed under GPLv3. See LICENSE.txt for more details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.