I wrote several IDL programmes for reducing, visualising and modelling interferometric data obtained with MIDI. Many programmes require the AstroLib package (http://idlastro.gsfc.nasa.gov/) or the MIA+EWS package (http://www.strw.leidenuniv.nl/~nevec/MIDI/) to be installed. The first is actually contained in the latter. A more detailed description of every routine is contained along with the code in the individual files which can also be downloaded following the links or directly at http://www.blackholes.de/downloads.html. A brief description of the routines follows below. If you have any suggestions for improving the code, please contact me.
midi_2bbfit.pro | MIDI two component black body fit |
MIDI_2BBPRE | Example routine: Create the variables needed for a fit (2009-07-22). |
MIDI_2BBMDL | Create a 2 component elliptical Gaussian black body brightness distribution (2009-07-22). |
MIDI_2BBDAT | Calculate and return the "visibility data" for the model (2009-07-22). |
MIDI_2BBFIT | Run the fit for the 2 component Gaussian black body model (2009-07-22). |
MIDI_2BBCMP | Compare a 2 component Gaussian black body model to the data (2009-08-18). |
midi_comp.pro | MIDI model comparison |
MIDI_PREPHT | Prefix the photometry to a MIDI result structure (2009-07-20). |
MIDI_EXTVIS | Extract visibilities from a model at specified UV coordinates (2010-09-23). |
MIDI_DATCOM | Interpolate MIDI data at certain wavelengths (2010-12-02). |
MIDI_DPHASE | Determine the differential phase from input phase data (2009-08-18). |
MIDI_PLTCMP | Plot a comparison of measured data and modelled data (2009-08-18). |
midi_redu.pro | MIDI data reduction |
MIDI_DATSET__DEFINE | Automatically define a structure of type MIDI_DATSET (2010-02-05). |
MIDI_GETKEY | Get FITS header keywords for a list of MIDI files (2008-08-26). |
MIDI_FILLIN | Automatically fill in information in a MIDI data set (2010-04-14). |
MIDI_GETDAT | Read raw and calibrated MIDI data from EWS into a struct (2010-09-22). |
MIDI_CALINF | Get calibrator information for a list of calibrated MIDI results (2008-08-26). |
MIDI_RVBCAL | Recalibrate fluxes with templates by Roy van Boekel - OBSOLETE (2010-07-13). |
MIDI_REDPLT | Plot the fluxes and visibilities of a MIDI result structure (2010-08-07). |
MIDI_MODPHT | Modify the sky bands and recompile EWS photometry programmes. (2010-07-12). |
MIDI_REDSET | Fully reduce the data in a MIDI data set (2010-11-18). |
MIDI_PLTPRP | Plot a FITS header keyword for several MIDI data files (2009-10-09). |
MIDI_PLTPDS | Plot common FITS header keywords for fringe tracks in a MIDI data set (2008-10-14). |
MIDI_ADU2JY | Plot the ADU to JY conversion factor for a set of calibrators (2010-07-20). |
MIDI_STRC2T | Print out an IDL structure as an ASCII table (2009-06-26). |
MIDI_DATA2T | Print out MIDI data as an ASCII file (2009-06-23). |
MIDI_PLOT3D | Make a 3D plot of the UV plane using iPlot (2009-07-01). |
midi_utils.pro | MIDI data tools |
MIDI_CHPDAT | Reduce chopped data from MIDI (2010-11-03). |
MIDI_WAVAXI | Helper function: Plot a wavelength axis on top of the previous plot (2008-03-15). |
MIDI_OUTDIS | Helper function: Plot one detector window for dispersed MIDI data (2009-06-30). |
MIDI_OUTFIE | Helper function: Plot one detector window for undispersed MIDI data (2010-12-06). |
MIDI_PLTWIN | Make a plot of the two detector windows of MIDI data (2010-12-06). |
MIDI_PHOTOM | Chop a MIDI photometry and extract the spectrum (2009-06-30). |
MIDI_PHTFIL | Reduce a MIDI photometry data file (2008-03-15). |
MIDI_PLTFRI | Show a video of the delay line position and the fringe (2009-06-30). |
MIDI_GAUDIS | Helper function: Fit a Gaussian to every channel in a dispersed MIDI window (2010-11-02). |
MIDI_MSKFIT | Create a MIDI mask from A and B photometry files (2010-11-05). |
MIDI_PLTOPD | Plot the Optical Path Difference for a MIDI fringe track (2010-10-14). |
MIDI_PLTOVL | Plot the beam overlap for the photometry, fringes and masks (2010-08-13). |
MIDI_PLTRAD | Plot the correlated flux or visibility as a function of baseline length (2010-10-05). |
MIDI_PLTUVP | Plot points in a UV plane with values from a MIDI result struct (2010-12-03). |
modl_geom.pro | MIDI models - geometrical models |
MODL_EGAUSS | Generate a generalised elliptical gaussian or uniform disk (2009-07-13). |
MODL_GAUSSM | Generate an set of generalised elliptical Gaussians (2009-07-13). |
MODL_POLARM | Generate a polar model for a single wavelength (2009-07-13). |
MODL_TDISKM | Generate a temperature disk model with T(r) = r^(-EXPONE) (2009-07-13). |
modl_utils.pro | MIDI models - model utilities |
MODL_MKHEAD | Generate a default FITS header for the models (2009-07-13). |
MODL_FITS2M | Read FITS files into a model struct (2009-07-13). |
MODL_M2FITS | Write a model into a FITS file or into several FITS files (2009-07-13). |
MODL_M2VISI | Calculate the UV-plane, i.e. the complex visibilities for a model (2009-07-13). |
MODL_M2PLOT | Plot a flux distribution and/or UV-plane to screen or PS file (2009-07-13). |
MODL_M2GAUS | Determine the gaussian width of a brightness distribution (2009-07-13). |
strctxt.pro | General |
GETTAGS | Helper function: Recursively get the tag names of an IDL struct (2009-06-26). |
REFPTRA | Helper function: Dereference an array of pointers (2009-06-26). |
STRCTXT | Print out an IDL structure as an ASCII table (2009-06-26). |
vlti_utils.pro | VLTI utilities |
VLTI_HRANGE | Calculate the hour angle range where an object is visible (2009-07-06). |
VLTI_BLPROJ | Calculate projected baselines positions or tracks for the VLTI (2009-07-06). |
VLTI_UVTRCK | Calculate a set of UV tracks for a certain declination (2009-07-06). |
VLTI_UVCHCK | Check the UV coordinates saved in the fits header (2009-07-06). |
VLTI_PLTUVP | Plot a UV plane and plot UV tracks for a certain declination (2010-12-03). |