|
Supported Software: IRSCLEAN |
|||||||||||||||
|
Purpose and DescriptionIRSCLEAN is an interactive IDL tool for creating bad pixel masks from Spitzer IRS BCD (and pre-BCD) image data, and "cleaning" the masked pixels in a set of data. The interactive version of the program, IRSCLEAN_MASK, is an outgrowth of the non-interactive IRSCLEAN package developed by members of the SSC IRS instrument support team and the Cornell IRS Instrument team. IRSCLEAN_MASK takes care of file input/output and queries you when it needs information.SYSTEM REQUIREMENTSIn order to run IRSCLEAN you need the following:
INSTALLING IRSCLEAN
DownloadingThe IRSCLEAN distribution can be downloaded as a .tgz (tar-gzip) file here. Optional: Campaign Rogue Pixel Masks If you wish to examine or edit the campaign-based Rogue pixel masks, you must also download the .tgz file http://ssc.spitzer.caltech.edu/irs/roguepixels/all_campaigns_roguemasks.tgz.
UnpackingUnpack using tar -xz or another appropriate software into a directory that is either in your IDL path, or in a directory that will be added to your IDL path (see below). The distribution will create its own directory (eg., IRSCLEAN1.9). For example, to unpack in /home/me/idl/IRSCLEAN1.9 (assuming the directory /home/me/idl exists): $ tar -xvzf irsclean1.9.tgz -C /home/me/idl/ Optional: Campaign Rogue Pixel Masks If you
downloaded the campaign rogue pixel mask .tgz file (see above), you should
unpack it after unpacking irsclean. For IRSCLEAN_MASK to be
able to automatically load the correct campaign based rogue masks,
you should create a directory $ mkdir /home/me/idl/IRSCLEAN1.9/all_campaigns_roguemasks $ tar -xvzf all_campaigns_roguemasks.tgz -C /home/me/idl/IRSCLEAN1.9/all_campaigns_roguemasks
Setting the IDL PathFor IDL to be able to automatically compile and run the IRSCLEAN distribution when the routines are called, either your current IDL working directory has to be the directory where IRSCLEAN resides, or the distribution must be in the IDL path. If IRSCLEAN is placed in a directory which is already in the IDL path, then make sure the path entry is set such that subdirectories are searched, via the "+" symbol. To add the exact directory where IRSCLEAN resides to the IDL path, you have three options:
Mac OS X: Enabling Mouse Cursor InputBy default, "click_through" events are not enabled in Mac OS X. As a result, interaction between the mouse cursor and the IDL graphics window (the heart of the mask editing process) will not occur. To fix this, type the following in an X11 command line terminal: $ defaults write com.apple.x11 wm_click_through -bool true Then close X11 and restart. If for any reason you need to undo this, simply type $ defaults delete com.apple.x11 wm_click_through Then close X11 and restart. Your original default will be restored. Another problem that Mac users may encounter is the single-button mouse. Fortunately, X11 for the Mac allows you to emulate a three-button mouse. Under X11 choose X11->Preferences->Input->Emulate three button mouse. Running IRSCLEANThe simplest mode of running IRSCLEAN is to typeirsclean_mask at the IDL command line without any inputs:
IDL> irsclean_mask If no arguments are given, the program will walk you through the required steps. The bare-bones mask editing and data cleaning procedure consists of
If any of the arguments in parentheses above is missing, you will be queried by the program. Other options include finding
rogue pixels automatically ( For all filename arguments ( IDL> irsclean_mask,'',inRmask_File='',Bmask_File='' User's GuideDetailed documentation can be found at the IRSCLEAN User's Guide |
help@spitzer.caltech.edu