JWST Pipeline/Analysis Tools Perry Greenfield Science Software Branch.

Slides:



Advertisements
Similar presentations
September 13, 2004NVO Summer School1 VO Protocols Overview Tom McGlynn NASA/GSFC T HE US N ATIONAL V IRTUAL O BSERVATORY.
Advertisements

Enhancing Spotfire with the Power of R
Developing JWST Pipelines at STScI Robert Jedrzejewski.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Department of Computer Science 1 CSS 496 Business Process Re-engineering for BS(CS)
DIRAC API DIRAC Project. Overview  DIRAC API  Why APIs are important?  Why advanced users prefer APIs?  How it is done?  What is local mode what.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Hubble Legacy Archive Lee Quick - TIPS meeting July 19, 2012 Goals Data History Current Work Demo.
SENG521 (Fall SENG 521 Software Reliability & Testing Software Reliability Tools (Part 8a) Department of Electrical & Computer.
Time Table exchange QSAS / CL / CAA / AMDA CESR, 25/26 feb
Data Management Subsystem: Data Processing, Calibration and Archive Systems for JWST with implications for HST Gretchen Greene & Perry Greenfield.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Dec 2, 2014 MAST Data Discovery Portal Tom Donaldson Tony Rogers.
Functions and Demo of Astrogrid 1.1 China-VO Haijun Tian.
1 CSC 221: Introduction to Programming Fall 2012 Functions & Modules  standard modules: math, random  Python documentation, help  user-defined functions,
Parallel Interactive Computing with PyTrilinos and IPython Bill Spotz, SNL (Brian Granger, Tech-X Corporation) November 8, 2007 Trilinos Users Group Meeting.
Standalone Firefly Tools with an embedded Tomcat 7 No additional dependencies besides Java 1.8.
The Network Performance Advisor J. W. Ferguson NLANR/DAST & NCSA.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
28-29 th March 2006CCP4 Automation STAB MeetingCCP4i and Automation 1 CCP4i and Automation : Opportunities and Limitations Peter Briggs, CCP4.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
The SINGS SED Tool Daniela Calzetti (STScI) June 10 th, 2002 SSC Deliverable  SSC Deliverable – IDL Image Analysis Software to provide: o PSF-matched,
SDD/DFS R. Hook. VLT 2 nd Generation Instrumentation Pipelines, 18 Apr Richard Hook Sampo & ESO Reflex background, status and plans.
_______________________________________________________________CMAQ Libraries and Utilities ___________________________________________________Community.
Where will PyRAF lead us?: The future of data analysis software at STScI Perry Greenfield Science Analysis Tools Project Space Telescope Science Institute.
AstroGrid Solar/STP planning meeting Agenda: Helioscope Preparing for Solar-B Time-series viewing application IVOA and time series A PPARC funded project.
Effort.vs. Software Product “Quality” Effort Product “Quality” Which curve? - linear? - logarithmic? - exponential?
PACS Hitchhiker’s Guide to Herschel Archive Workshop – Pasadena 6 th - 10 th Oct 2014 The PACS Spectrometer: Overview and Products Roberta Paladini NHSC/IPAC.
ADMIT: ALMA Data Mining Toolkit  Developed by University of Maryland, University of Illinois, and NRAO (PI: L. Mundy)  Goal: First-view science data.
Comparison of different output options from Stata
Virtual Observatories, Press Release Images, and Web Services Dr. Frank Summers Space Telescope Science Institute November 3, 2005.
UCL DEPARTMENT OF SPACE AND CLIMATE PHYSICS MULLARD SPACE SCIENCE LABORATORY Taverna Plugin VAMDC and HELIO (part of the ‘taverna-astronomy’ edition) Kevin.
JWST Time-Series Pipeline Nikole K. Lewis STScI. Data Pipeline for Transiting Exoplanets The foundation for the Spitzer and Hubble data pipelines were.
Difference Image Analysis at OAC Groningen, 1st Dec 2004 AW-OAC team.
Page 1 PACS GRITS 17 June 2011 Herschel Data Analysis Guerilla Style: Keeping flexibility in a system with long development cycles Bernhard Schulz NASA.
CUPID (Bob Narron)GRITS - May 14, CUPID “Customizable User Pipeline for IRS Data” Abstract: The CUPID package will allow users to run the Spitzer.
Publishing Combined Image & Spectral Data Packages Introduction to MEx M. Sierra, J.-C. Malapert, B. Rino VO ESO - Garching Virtual Observatory Info-Workshop.
Chapter – 8 Software Tools.
EOVSA Data and Database System J. McTiernan EOVSA Technical DesignMeeting 7-Nov-2011.
OSSIM Technology Overview Mark Lucas. “Awesome” Open Source Software Image Map (OSSIM)
Review: A Computational View Programming language common concepts: 1. sequence of instructions -> order of operations important 2. conditional structures.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
1 NHSC PACS NHSC/PACS Web Tutorials Running PACS photometer pipelines PACS-403 (for Hipe 13.0) Level 1 to Level 2.5 processing: The Unimap pipeline Prepared.
1 SPIE Astronomical Telescopes + Instrumentation | 26 June - 1 July 2016 | Edinburgh, United Kingdom Investigating interoperability of the LSST Data Management.
SINFONI data reduction using the ESO pipeline. Instrument design and its impact on the data (I) integral field spectrometer using mirrors brickwall pattern.
The GLORIA demonstrator experiment Ariel Majcher National Centre for Nuclear Research Warsaw, Poland XXXII IEEE-SPIE Joint Symposium Wilga 2013, May 29.
Pi of the Sky off-line experiment with GLORIA Ariel Majcher National Centre for Nuclear Research Warsaw, Poland 10th INTEGRAL/BART Workshop, April.
Petr Škoda, Jakub Koza Astronomical Institute Academy of Sciences
The JWST Data Calibration Pipeline
Exoplanet Characterization ToolKit (ExoCTK)
The JWST Exposure Time Calculator
The Use of AMET and Automated Scripts for Model Evaluation
Towards a CTA high-level science analysis framework
JWST Pipeline Overview
Single Object & Time Series Spectroscopy with JWST NIRCam
JWST Exposure Time Calculator Overview
The JWST Exposure Time Calculator
Course Name: QTP Trainer: Laxmi Duration: 25 Hrs Session: Daily 1 Hr.
Smithsonian Astrophysical Observatory
What's New in eCognition 9
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
Environmental Monitoring: Coupling Function Calculator
Dtk-tools Benoit Raybaud, Research Software Manager.
National Radio Astronomy Observatory
What's New in eCognition 9
What's New in eCognition 9
Web Application Development Using PHP
Chapter 2: Building a System
X-ray high resolution spectra in the VO: the case of XMM-Newton RGS
Presentation transcript:

JWST Pipeline/Analysis Tools Perry Greenfield Science Software Branch

Running the JWST pipeline Uses a python framework (stpipe) to connect processing steps into a pipeline. Framework handles: – Command line interface – Configuration files – Logging and error handling – Input and output One can run a pipeline – From the shell command line Directly or by invoking a configuration file – Interactive Python prompt Multiple ways to customize: – Command line options to stop after a specified step – And restart at a step – Insert one’s own shell level command inside a pipeline (i.e., non-Python) – Define one’s own Python step and insert it, or modify existing ones

A (very) Simple Step from jwst_lib.stpipe import Step, Cmdline from jwst_lib import models class FlatFieldStep(Step): reference_file_types = [‘flat’] def process(self, input): with models.ImageModel(input) as im: self.flat = self.get_reference_file(im, ‘flat’).name flat_model = models.FlatModel(self.flat) result = flat_field.correct(im, flat_model) return result

Executing a Step > strun jwst_pipeline.FlatFieldStep myimage.fits From the command line: > strun flat_field.cfg myimage.fits or From Python: >>> from jwst_pipeline import FlatFieldStep >>> result = FlatFieldStep.call(‘myimage.fits’, config_file=‘flat_field.cfg’) Configuration (.cfg) files use ini-file format and stpipe uses the ConfigObj library to parse them

A (very) Simple Pipeline from jwst_lib.stpipe import Pipeline from jwst_pipeline.bias import bias_step from jwst_pipeline.dark import dark_step from jwst_pipeline.reset import reset_step class SimplePipeline(Pipeline): step_defs = {“bias”: bias_step.SuperBiasStep, “dark”: dark_step.DarkCurrentStep, “reset”: reset_step.ResetStep} def process(self, input): input = self.bias(input) input = self.dark(input) if input.meta.instrument.name == “MIRI”: input = self.reset(input) return input

Pipeline Config file name = "SloperPipeline" class = "jwst_pipeline.pipeline.SloperPipeline" save_calibrated_ramp = True [steps] [[dq_init]] config_file = dq_init.cfg [[saturation]] config_file = saturation.cfg [[ipc]] config_file = ipc.cfg [[superbias]] config_file = superbias.cfg [[bias_drift]] config_file = bias_drift.cfg [[reset]] config_file = reset.cfg [[lastframe]] config_file = lastframe.cfg [[linearity]] config_file = linearity.cfg [[dark_current]] config_file = dark_current.cfg [[jump]] config_file = jump.cfg [[ramp_fit]] config_file = ramp_fit.cfg

Step Config File name = "jump" class = "jwst_pipeline.jump.JumpStep" rejection_threshold = 5.0 do_yintercept = False yint_threshold = 1.0

Calibration Reference Data System Figures out what reference files to use for data set JWST pipelines automatically will download rules and any needed reference files to local computer when run remotely CRDS allows specifying different rules configuration than current operation system is using Rules can be locally customized to use user- provided reference files

Tools being developed for JWST Priorities driven by JWST Data Analysis Development Forum – Organized by Harry Ferguson and Susan Kassin Currently time series tools not high on the list of priorities – If you want to change that, you should get involved (even if outside STScI) Pipeline needs may impact data analysis resources.

Sprint-oriented Framework 1-d interactive spectral analysis Image utilities (imarith, imstat, etc.) Non-interactive fitting of 1-d spectra Signal processing: filtering and interpolation Tools for cubes I Tools for cubes II MOS visualization, data-quality inspection 2-d visualization Release preparations for imutils & imexam Parameter files PSF and PSF-kernel tools I JWST data file registry, I/O, and associations 1D spectral tools II (and initial release preparations) Photometry on non-resampled data Background estimation toolbox & tutorials (Spectroscopic and imaging) Image & spectral geometry, registration & resampling I Synthetic photometry MOS tools II (and initial release preparations) JWST Ramp inspection and analysis tools PSF/LSF and PSF/LSF-kernel tools II Visualization of resampled and non-resampled data Spectral fitting on non-resampled data Cube tools III (and initial release preparations) Astrometry on non-resampled data Improved source extraction tools (remaining SExtractor-like functionality, particularly overlapping source segmentation) Image & spectral geometry, registration & resampling II 2D/3D spectral data combination Tools to go from quick-look to publication-quality plots Grism analysis and visualization tools Optimal spectral extraction tools (optimal S/N extraction) Coronagraphy tools to augment pipeline tools NRM analysis tools Time-series tools (e.g., transit analysis)

Astropy Community based astronomical core library for Python Started in 2011 >140 code contributors to date

Astropy Core Works with both Python 2 and 3 Regression tests Documentation (sphinx) Hosted on github Goal is to foster better interoperability of software tools written in Python

Astropy contents Units, quantities, physical constants Tables I/O (FITS, text tables, VOTables) Time and Dates Astronomical Coordinate Systems Generalized World Coordinate Systems Much more flexible than FITS WCS Models and Fitting Analytic functions Convolution and filtering Cosmological calculations Astrostatistics VO cone search

Affiliated packages Use astropy core libraries Same python coverage, tests, documentation Selected examples: – APLpy (image + plotting) – Ginga (image viewer) – Astroquery – Photutils – Sncosmo – Spectral-cube – WCSAxes