IDL programs for SAM+SAMI A.Tokovinin July 30, 2014 Attention: The astron IDL library is used to read/write FITS files and manupulate their headers. It must be accessible. Test by compiling: IDL>.r readfits >>> biascor.pro Reads multi-extansion FITS file, subtracts overscan (polynomial fit in Y), joins the quandants and writes as single image Example: dir = 'data/' biascor, dir, 'soar20140304.256' biascor, dir, 'soar20130929.015' >>> dcombine.pro Combines dithered images, correcting for distortion. The median-combined image is saved in FITS file, the cube of re-centered images is also saved, unless /nocube keyword is given. Example: dir = 'data/' num = 62 + indgen(5) imlist = 'mzfsoar20130621.'+string(num,format='(I03)') outname = 'M5-cent-i' dcombine, dir, imlist, outname >>> quad.pro Same as bias.pro, but only median overscan is subtracted (no polynomial in Y). Example: dir = 'data/' quad, dir+'soar20130929.015' >>> samiwarp.pro Correct distortion and write the image with 'd' prefix. Missing values are replaced by zero. Example: dir = 'data/' samiwarp, dir, 'mzfsoar20130621.062' ---- end -----------------------------------