Codes to reduce TIRSPEC (TIFR Near Infrared Spectrometer and Imager) data.
This project is maintained by indiajoe
This repository contains the scripts which can to be used for the basic reduction of TIRSPEC data. And also some add-on scripts to assist during observation. Codes are mostly in Python.
Feel free to modify as needed and use it while observing with TIRSPEC. Make sure, you keep the modified scripts under a separate directory of your name, to prevent any conflict with default scripts for other users.
You may also find some helpful scripts in the following link: http://indiajoe.github.io/HandyTools4Astronomers/
Webpage of this repository: http://indiajoe.github.io/TIRSPEC/
Documentation for Pipeline : http://indiajoe.github.io/TIRSPEC/Pipeline/
The image below shows the major steps in TIRSPEC data reduction script. The boxes marked with faces needs human supervision. For automated wavelength calibration, one needs to keep a calibrated template of the argon spectra in a directory.
Module requirements: astropy, numpy and pyraf
NonPython requirements: iraf, sextractor
Module requirements: astropy, numpy, scipy and matplotlib
Module requirements: astropy, scipy, numpy
Module requirements: numpy, matplotlib
AlignCombineImagesinDir.py : This is a stand alone script to help astronomer align and combine fits images.
BadPixelMaskCreate.py : This script is to generate a new bad pixel mask using two flat images.
RenameImgs.sh : Use this script to rename image filenames if you need to. It will update log files also.
Intended for use on tirspec machine while observing.
You can load this also as a module in IPython, and use the collection of functions in it for an interactive analysis of tirspec's raw data. The available functions inside this module are
With additional module numexpr, Generate4mRampFaster.py can be used for a slightly faster and parallel version of this module.
TelescopeShiftAssistantGUI.py : A GUI based software for calculating shifts to be given in Autoguider as well as Observatory Server for dithering the telescope. It also has slit position calculator.
StarPlot.py (needs StarPlot.gnuplot) : This script is to quickly view the surface plot and contour of a star profile in fits file.
First few lines of the script will tell you the required python modules for each script. For running all the scripts you will need: numpy, astropy, pyraf, scipy and matplotlib
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.