Giter VIP home page Giter VIP logo

jwst_magnitude_conversion's Introduction

The JWST Magnitude Conversion Program

  The code and files in this directory allow one to make an approximate
transformation of other filter magnitudes to the expected JWST magnitudes.
The transformation depends on theoretical relations between the different
magnitudes as simulated from stellar atmosphere model spectra.

  There are five files that are essential, the program itself and four sets
of simulated magnitudes for different spectral grid sets:

jwst_magnitude_converter.py         the program
magslist_bosz_normal.new            simulated colours from the Bohlin et al. (2017) Altas9 models
                                    using the models with scaled solar abundances
magslist_blackbody.new              simulated blackbody colours
magslist_old_kurucz.new             simulated colours from Kurucz models
magslist_phoenix_grid.new           simulated colours from Phoenix models

A utility code magnitude_transform.py is provided.  It allows one to read in
the simulated magnitudes values and look at different colour-colour plots and
fits to see which combinations may produce good results.  Unlike the main
code, the magnitude_transform.py code can use any filters for any of the
colours and one does not need to read in data values for the code to work.

Also included are some documentation files

readme.txt
jwst_magnitude_conversion.docx

and the files for an example

m31_f814_f160_subset.data   input ACS F814W and WFC3 F160W data from HST
niriss_transformed.txt      output converted NIRISS F115W and F200W magnitudes
hst_to_niriss.cfg           a parameter file to run the example

and finally an alternate blackbody colours file that covers a wider range of
temperature than the usual file

magslist_blackbody_fullrange.new

that can be used with the program if very low temperature sources are of
interest.  The regular blackbody colours file includes simulations for
temperatures from 100000 K to 1000K.  The full range file extends the low
temperature values down to 100 K.

  The examples in the directory are for the NIRISS version of the code not the
current version that is presented here.  Similarly the document is specific to
the NIRISS version although the full JWST version of the code runs exactly the
same way as the NIRISS version.

  The following packages are needed for the code to run:

math
sys
matplotlib
numpy
Tkinter and ttk
astropy
configobj

All of these are widely available packages.  The code is written in Python 2.7.
However it also works in Python 3.

  The NIRCam througputs (total photon covnersion functions) used in the
magnitude calculations are for module A.  The MIRI throughputs were taken from
the STScI MIRI web pages.  These throughput functions may not be entirely up
to date.  The NIRSpec throughputs are calculated from the throughput files that
were delivered to the ETC, dated 

jwst_magnitude_conversion's People

Contributors

johannes-sahlmann avatar kevinvolkstsci avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jwst_magnitude_conversion's Issues

Make repository public

This issue is to probe whether making this repo public is OK. For instance, members of the NIRCam IDT are interested in using the code and making it public would be the easiest way.
Please indicate whether

  1. this is OK for you
  2. the repo is clear of any sensitive information (e.g. hardcoded paths to STScI internal machines, user names, passwords, etc.)
    Thanks!

Update the help

Tyler Desjardins mentions that we should consider moving emails from help[at]stsci.edu to point to the web portal where possible and appropriate. For HST (or any non-JWST), it is https://hsthelp.stsci.edu . For JWST, it is https://jwsthelp.stsci.edu . Please update info in setup.py, setup.cfg, documentation, etc as appropriate.

Please close this issue if it is irrelevant to your repository. This is an automated issue. If this is opened in error, please let pllim know!

xref spacetelescope/hstcal#317

add option to produce colour temperatures

@KevinVolkSTScI I just saw your note in the weekly report.

I suggest to include this option in the master branch. If you want to avoid users to be able to produce unreliable results, the code could throw an error when used with certain filters. If you push your branch to your fork I can try out the code first.

Many thanks for this!

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.