Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.57 KB

README.md

File metadata and controls

60 lines (47 loc) · 2.57 KB

wfss_overlap

A tool to allow evaluation of which telescope orientation angles may cause spectral overlap in the NIRISS WFSS mode.

The code requires a set of FITS files containing PSF and occulting spot mask images. These can be found on Box at

https://stsci.app.box.com/folder/140705149002

or

https://stsci.box.com/s/ih166mw8ded6w0qeiw7znc7xuth7n531

The full list of files needed is:

f090w_gr150c_psfimage.fits
f090w_gr150r_psfimage.fits
f115w_gr150c_psfimage.fits
f115w_gr150r_psfimage.fits
f140m_gr150c_psfimage.fits
f140m_gr150r_psfimage.fits
f150w_gr150c_psfimage.fits
f150w_gr150r_psfimage.fits
f158m_gr150c_psfimage.fits
f158m_gr150r_psfimage.fits
f200w_gr150c_psfimage.fits
f200w_gr150r_psfimage.fits
fits_image_display.py
general_utilities.py
mpfit.py
mpfitexpr.py
niriss_NIS_x1024_y1024_f090w_predicted_0_0p00_0p00.fits
niriss_NIS_x1024_y1024_f115w_predicted_0_0p00_0p00.fits
niriss_NIS_x1024_y1024_f140m_predicted_0_0p00_0p00.fits
niriss_NIS_x1024_y1024_f150w_predicted_0_0p00_0p00.fits
niriss_NIS_x1024_y1024_f158m_predicted_0_0p00_0p00.fits
niriss_NIS_x1024_y1024_f200w_predicted_0_0p00_0p00.fits
occulting_spots_mask.fits
scene_image.py
wfss_overlap_tool.py
wfss_scene.py

The Code

The file 'wfss_overlap_tool.py" is the main program. It imports the other codes: 'fits_image_display.py', 'general_utilities.py', 'scene_image.py' and 'wfss_scene.py'. If the code is being run in a directory besides the one where the files are, one needs to have that directory in the $PYTHONPATH environment variable.

The codes depend on the following python packages: sys, os, math, tkinter, numpy, scipy, matplotlib, pysiaf, and astropy.

Astropy can be found at https://www.astropy.org/. The pysiaf code is found at https://github.com/spacetelescope/pysiaf. Note that installation of pysiaf should be done via cloning the github repository as described at the github page, rather than using "pip install pysiaf" because the latter currently gives one an out-of-date version of pysiaf.

Running The Code

One simply invokes the main code 'wfss_overlap_tool.py' from the command line, with no parameters. To test the code one needs at minimum a Mirage NIRISS point source input file, so an example is provided in 'stars_wdfield_combined_allfilters.list'. This file is for the field of the photometric standard WD1657+343, the star being source 158 in the list at sky position RA=254.713015, Dec=34.314677.

The powerpoint presentation file 'wfss_overlap.pptx' in the Box folder shows how to run the tool. Analogous documentation is available in the files wfss_overlap.docx and wfss_overlap.pdf.