spacetelescope / jwst_magnitude_conversion Goto Github PK
View Code? Open in Web Editor NEWCode to estimate JWST imaging filter magnitudes on the basis of external colour and magnitude information.
Code to estimate JWST imaging filter magnitudes on the basis of external colour and magnitude information.
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
Tests that exercise the magnitude conversion for every instrument are needed.
Add infrastructure to run build and tests on travis.
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
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!
@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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.