Skip to content

oirlab/iris_etc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TMT IRIS ETC

Simple TMT IRIS ETC based on IRIS simulator (see ). It calculates the (1) exposure time to reach a specific S/N and (2) S/N for a given exposure time.

Authors: Greg Walth (Carnegie Observatories), Arun Surya (UC San Diego), Nils Rundquist (UC San Diego) Contributors: Andrey Vayner (UC San Diego)

Requirements:

  • Python 2.7
  • Numpy
  • Scipy
  • Astropy
  • Photutils 0.4
  • Matplotlib

Additional requirements:

IRIS_ancillary_files.tar.gz which is contains the following directories; psfs, model_spectra and skyspectra. The directories contain binary files for the IRIS ETC calculation.

Installation and setup:

Set the simdir in the config.ini to directory that contains the PSFs and ancillary data.

The expected directory structure within the simdir is the following:

psfs

model_spectra

skyspectra

info

Usage examples:

Imager mode

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode imager -calc snr -nframes 2

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode imager -calc exptime -snr 10

IFS mode

Case 1 (Vega or Flat spectrum)

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode IFS -calc exptime -snr 50.0

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode IFS -calc snr -nframes 1 -spectrum Vega

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode IFS -calc exptime -snr 10 -spectrum Vega

Case 2 (Emission line spectrum)

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode IFS -calc snr -nframes 1 -spectrum Emission -line-width 100 -wavelength 2.15

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode IFS -calc exptime -snr 10 -spectrum Emission -line-width 100 -wavelength 2.15

PSFs

Imager mode

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode imager -calc snr -nframes 2 -zenith-angle 45 -atm-cond 75 -psf-loc 0.6 12.

IFS mode

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -mode IFS -calc exptime -snr 50.0 -zenith-angle 30 -atm-cond 25 -psf-loc 0. 0.

Extended object mode

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -source extended -mode imager -calc snr -nframes 2 -zenith-angle 45 -atm-cond 75 -psf-loc 0.6 12.

Plots in png format and IFS data in csv format

iris_snr_sim.py -mag 20.0 -filter K -scale 0.004 -source extended -mode imager -calc snr -nframes 2 -zenith-angle 45 -atm-cond 75 -psf-loc 0.6 12. -csv dump.csv -o plot.png

About

IRIS exposure time calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages