MOSFIRE XTcalc is a gui based exposure time calculator
written in IDL. The software was written by MOSFIRE team
member Gwen Rudie, and it folds in sensitivity and
throughput measurements from MOSFIRE commissioning data
obtained during the 2012A semester.
The code is written in IDL, but you do not need IDL to run the
calculator. It may be run with the IDL Virtual Machine . See below for details on how to install and run on your machine.
Installing and running XTcalc using the IDL Virtual Machine (default method)
- Download XTcalc.tar
- Untar XTcalc.tar (e.g. tar -xvf XTcalc.tar). Contents will untar into a single directory.
- Set a path variable called MOSFIRE_XTCALC to the
full path of the XTCalc directory.
setenv MOSFIRE_XTCALC fullpath/XTcalc_dir
or in bash shell: export MOSFIRE_XTCALC=fullpath/XTcalc_dir
- Optionally set a path variable called MOSFIRE_WD for input and output files. If it is not set, the default is to use the directory specified by MOSFIRE_XTCALC.
- Download and install the
IDL virtual machine. This may require you to register
with the web site.
- Run XTCalc: on the command line using idl -vm=run_XTcalc.sav
Installation and Running XTcalc using IDL 8.0 or higher
- Download XTcalc.tar
- Untar XTcalc.tar (e.g. tar -xvf XTcalc.tar). Contents will untar into a single directory.
- Set a path variable called MOSFIRE_XTCALC to the
full path of the XTCalc directory.
setenv MOSFIRE_XTCALC fullpath/XTcalc_dir
or in bash shell: export MOSFIRE_XTCALC=fullpath/XTcalc_dir
- Start the IDL session
- In the IDL session run:
- .r run_XTcalc
- .r XTcalc
- .r events_XTcalc
- run_XTcalc
The procedures are located in ~XTCalc_dir/bin in the unpacked tar file.
Possible installation issues
- Symptom:
- libGL Error
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
% Attempt to call undefined procedure: 'XMANAGER'.
% Execution halted at: RUN_XTCALC 511
- Problem:
- Library mismatch
- Solution:
- set the LIBGL_ALWAYS_INDIRECT envar to 1
- bash: export LIBGL_ALWAYS_INDIRECT=1
- csh: setenv LIBGL_ALWAYS_INDIRECT 1
XTCalc
Below is a screen grab of the XTCalc Gui following a calculation for an emission feature.
A
PDF describes installation and use of XTcalc.