GithubHelp home page GithubHelp logo

nils-erik / iris_snr_sim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gwalth/iris_snr_sim

0.0 1.0 0.0 197 KB

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

Python 100.00%

iris_snr_sim's Introduction

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

iris_snr_sim's People

Contributors

arunsurya77 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.