Giter Club home page Giter Club logo

taipan-fluxcal's Introduction

alt text

Python code for flux calibration in the TAIPAN Spectroscopic Survey

Original by Michael Cowley

Copyright 2016, TAIPAN Survey Team


Directories and files

SEDs/ - seven synthetic SEDs for F stars
filters/ - instrument filter curves
photometry/ - photometry of F stars to determine g-r colours (.csv)
extinction/aao_extinction.tab - file with atomospheric extinction at the AAT

Quick start

To generate spectral response curves from flux calibration, run:

python fstars.py

Command-line options

The following command-line options are available:

-c is the configuration file for directories and files seen above (default: fstars.config)
-s is the file that associates a star of a given colour to a spectral type (default: g-r.txt)
-p is to produce diagnostic plots (default: False)
-l is a magnitude limit (default: 18.0)
-f is the smoothing filter used on the sensitivity curves (default: Spline)
-d is the directory containing the two spectra directories (default: spectra/)
-o is the name of the output file written in -d directory (default: test.fits)
-a is to arm to process (default: ccd_1)
-z is the zero point limit of the observations (default: -30.5)

To generate spectral response curves from flux calibration, run:

python fstars.py -c fstars.config -s g-r.txt -p -l 18.0 -f Spline -d spectra/ -o src_ccd_1.fits -a ccd_1 -z -30.5

If selected, the following diagnostics plots will be generated:

figure_1 - The individual sensitivity functions and the variance
alt text

figure_2 - The scatter in the sensitivity function at three wavelengths
alt text

figure_3 - The mean sensitivity function
alt text

Help Message

The help message can be seen using python fstars.py --help:

         ___  ____  ____  ____  ____                
_________\__\/  __\/  __\/  __\/  __\_______________
__TAIPAN_______/  /__/  /__/  /__/  /__FluxCal______
           \__/  \__/  \__/  \__/  \   <> \         
                                    \_____/--<      

Usage: fstars.py [options]

Options:
  -c CONFIG, --config=CONFIG, Configuration file
  -d DIRECTORY, --directory=DIRECTORY, Spectra Directory
  -s SENS, --sens=SENS, Sensitivity function
  -o OUTPUT, --output=OUTPUT, Sensitivity function
  -l LIMIT, --limit=LIMIT, Magnitude limit
  -f FILTER, --filter=FILTER, Filter
  -a ARM, --arm=ARM, Arm to process
  -z ZPLIMIT, --zplimit=ZPLIMIT, Zero point limit
  -n, --noextinction, Extinction Correction
  -p, --plot, Plot diagnostics

For each star, the code performs the following:

  • Select star if bright enough and the conditions were good enough
  • From the F star catalogue, determine the g-r colour
  • Using the g-r colour, find the best spectral template
  • Warp the spectral template to match the colours of the star exactly
  • Apply an extinction correction
  • Compute the sensitivity curve for that star and smooth it
  • Compute the mean sensitivity curve and its variance

Help Message

Diagrammatic representation of TAIPAN-FluxCal alt text

This code is a modified version of the OsDES flux calibration code, written by Chris Lidman of the AAO .

taipan-fluxcal's People

Contributors

mjcowley avatar

Watchers

 avatar Dilyar Barat 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.