Processing SMA Data
1.2 m Telescopes

SMA Data Calibration with MIR

MIR Introduction

MIR (Millimeter Interferometer Reduction) is an IDL based software package. Originally developed at Caltech for use at OVRO, it has been adapted for the reading and calibration (but not imaging) of SMA data. MIR is currently the recommended software for SMA data calibration. Be aware that IDL requires a license.

MIR tips for new users
Official MIR Cookbook

Download MIR at github

Data calibration

See the effects of each calibration step at MIR Calibration Steps Explained.

SMA Interferometry School 2020 - Calibration I - Calibration II.

4 Feb 2020:  A new version of MIR has been released in github. CASA flux models are now used by default. To use the original flux models, the users should add the /orig keyword.

1. SWARM data
2. ASIC data
3. SWARM Polarization

Polarization data
Calibrating Dual Receiver Polarization Data [pdf]

Questions and Troubleshooting

Find more data reduction Q&A at SMA Data FAQ

You can also find fixes for specific issues between 2005 and 2010 at SMA Data Errors and MIR Fixes.

MIR on the RTDC computers

MIR is available on all RTDC machines. Simply type idl in a terminal. Version 8.3 is the default, although IDL 6.2 is available by typing idl6.

IDL is single threaded and has considerable memory requirements - typically 2.5-3 x the size of the data. For large SWARM datasets you may to rechunk, or only read in a single receiver or sideband at a time.

Running MIR in batch mode

We are developing a MIR based pipeline for the calibration of SMA data. This is an ongoing project so you can expect updates to this section.

You can run any MIR script as a batch job from the command line. Be aware however, that the script names must be consistent. For example, if your script is called, then the first line of your script must be pro testscript, and it must be called on the command line by idl -e testscript.

When running batch jobs you can force any MIR task to accept the default options rather than waiting for user input at the prompt by using the /nowait flag.

Calibration pipeline

SMA calibration script (under development)

Getting help

You can email for general help. Or contact the MIR project scientist, Dr. Qi, at with detailed questions.