This repository contains a tutorial on how to use the Eureka! package to reduce NIRCam data.
Eureka! will eventually be capable of reducing data from any JWST instrument and fitting lightcurves . At the moment the package is under development, and currently works on NIRCam data only. If you are interested in contributing to Eureka!, check out the hackathon activities this week or contact Kevin Stevenson, Sebastian Zieba, Giannina Guzman, or Laura Kreidberg. The code is not officially associated with JWST or the ERS team.
This tutorial is based on a stable release version of Eureka! This release version is automatically included in the ers-transit conda environment provided. Future versions of the code may not be backwards compatible with this tutorial.
To run the tutorial, you will need simulated NIRCam data and some ancillary files.
- Use the terminal to make a directory on your computer to store the simulated data and ancillary files. At the command prompt, enter the following lines (replacing
User
with your home directory name, e.g.Users/kreidberg
):>> mkdir /User/Data/JWST-Sim/NIRCam/ >> cd /User/Data/JWST-Sim/NIRCam/ >> mkdir Stage2 >> mkdir ancil
- Download the simulated NIRCam data from the STScI Box site and save the files in the
Stage2
directory. The files are large (5 GB total) so the download may take a while. If your internet connection is slow, download the smallest file only and the tutorial will still work. - Save the NIRCam calibration data in the
ancil
directory.
If you have not already installed Anaconda and set up the ers-transit
environment, please follow the instructions in the Day 0 tutorial: https://github.com/ers-transit/hackathon-2021-day0/blob/main/hackathon-day0-tutorial.ipynb
- Clone this repository, in one of two ways:
- if you have git installed, open a terminal window, navigate to the location you want to run the tutorial, and type
>> git clone https://github.com/ers-transit/hackathon-2021-day2.git
- if you do not have git, click on the green
Code
button in the upper right of this page and then clickDownload ZIP
- if you have git installed, open a terminal window, navigate to the location you want to run the tutorial, and type
- From your terminal window, navigate to the hackathon-2021-day2 directory.
- Activate the ers-transit conda environment using
conda activate ers-transit
- Open the file S3_wasp43b.ecf and update the three directories at the end of the file (topdir, datadir, and ancildir) to the directories you created in Step 1 of
Getting Started
. - Open a jupyter notebook by typing
jupyter notebook
in your terminal window. - On the screen that opens, click
hackathon-day2-tutorial.ipynb
to start.