Thanks to Peter Teuben for tips of extracting miriad object files and Ben Sargent for his diligent effort of testing the procedures on Mac. As you know, we only support the use of idl2miriad on linux box. If you are using other operating systems than linux (as long as you have miriad installed), follow these four simple steps to compile your own library file, so you can use it to output miriad files via MIR routine idl2miriad: 1. Download idlcall.c from http://www.cfa.harvard.edu/~cqi/mir and compile it to generate idlcall.o with % gcc -c -o idlcall.o -fPIC idlcall.c or just % cc -c idlcall.c Ignore the warning message. 2. Look for libmir.a in your miriad directory, usually under lib subdirectory. copy libmir.a to a temporary directory, do % ar xvf libmir.a This will generate miriad object files. Move the following object files in the same directory as idlcall.o: hio.o dio.o bug.o pack.o wrap.o interface.o scrio.o uvio.o headio.o xyio.o maskio.o velocity.o 3. Link all the object files to generate your own library source file mylibidlmir.so: % ld -shared -o mylibidlmir.so hio.o dio.o bug.o pack.o wrap.o interface.o scrio.o uvio.o headio.o xyio.o maskio.o velocity.o idlcall.o or % gcc -shared -o mylibidlmir.so hio.o dio.o bug.o pack.o wrap.o interface.o scrio.o uvio.o headio.o xyio.o maskio.o velocity.o idlcall.o 4. Now you have your own library file for idl2miriad. Note down the directory and you can link this library in MIR when you use idl2miriad: IDL> idl2miriad, libfile='/mylibidlmir.so' ... Send email to Sheng-yuan Liu or Charlie Qi for questions.