spacetelescope/jwst_backgrounds

Name: jwst_backgrounds

Owner: Space Telescope Science Institute

Description: null

Created: 2017-07-05 15:33:27.0

Updated: 2017-12-01 15:51:46.0

Pushed: 2018-03-01 17:25:32.0

Homepage: null

Size: 127

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

jwst_backgrounds is a a simple program to predict the levels of background emission in JWST observations, for use in proposal planning.

It accesses a precompiled background cache prepared by Space Telescope Science Institute. The background cache is hosted by the Mikulski Archive for Space Telescopes (MAST), so you need internet access to run the tool with the remote cache. It is possible to download the full background cache to your local machine. Instructions for downloading the background cache can be found at http://archive.stsci.edu/archive_news/2017/08-Aug/index.html#article1

For a given target (RA, DEC), and wavelength, jwst_backgrounds does the following:

This code was written by Jane Rigby (GSFC, Jane.Rigby@nasa.gov) and Klaus Pontoppidan (STScI, pontoppi@stsci.edu) The background cache was prepared by Wayne Kinzel at STScI, and is the same as used by the JWST Exposure Time Calculator.

This software is provided as-is, with no warranty.

INSTALLATION:

Using pip:
install jwst_backgrounds

Note: healpy (version >= 1.10) is a required dependency, so if you don't have it pip will install it automatically.

Manually

1) Install healpy with pip install –user healpy 2) Download jwst_backgrounds from https://github.com/spacetelescope/jwst_backgrounds 3) Install jwst_backgrounds with “python setup.py install”

RUNNING THE CODE:

on          # Start python.
 jwst_backgrounds import jbt    # Import the background module

Below is an example that plots a background curve for a given RA, DEC, wavelength, threshold

get_background(261.6833333, -73.33222222, 2.15, thresh=1.1, \
                    plot_background=True, plot_bathtub=True, write_bathtub=True) 

TROUBLESHOOTING: If matplotlib does not display the images, then try editing your ~/.matplotlib/matplotlibrc file, and choosing a different backend:

end: MacOSX
end: TkAgg
end: GTKCairo

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.