CUPID (Bob Narron)GRITS - May 14, 20091 CUPID “Customizable User Pipeline for IRS Data” Abstract: The CUPID package will allow users to run the Spitzer.

Slides:



Advertisements
Similar presentations
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Advertisements

1 OBJECTIVES To generate a web-based system enables to assemble model configurations. to submit these configurations on different.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.
A NoC Generation and Evaluation Framework
Computer Science 1620 Loops.
HAWCPol / SuperHAWC Software & Operations J. Dotson July 28, 2007.
Russ Laher (1) S15.0 Test Readiness Review, August 28, 2006 Downlink Segment Test Status (S15.0) Russ Laher August 28, 2006.
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Introduction to Spitzer and some applications Data products Pipelines Preliminary work K. Nilsson, J.M. Castro Cerón, J.P.U. Fynbo, D.J. Watson, J. Hjorth.
1 UNIX essentials (hands-on) the directory tree running programs the shell (using the T-shell) → command line processing → special characters → command.
Using Linux Commands 2 Lab#5
Julie McEnery1 Installing the ScienceTools The release manager automatically compiles each release of the Science Tools, it creates a set of wrapper scripts.
Using Linux Commands 2 Lab#5. Sort command Sort the lines of text files. $ sort fileName by default it will sort in normal order(alphabetical 0-9 A-Z.
Linux Operations and Administration
Hubble Legacy Archive Lee Quick - TIPS meeting July 19, 2012 Goals Data History Current Work Demo.
Data Processing and User Software Ken Ebisawa (Astro-E2 GOF) presentation and demonstration.
ATM 315 Environmental Statistics Course Goto Follow the link and then choose the desktop application.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
6e-1 Science Data Products Daryl Swade DMS Systems Engineer S&OC System Design Review #1.
Teradyne License Service and Monitoring Bob Van der Kloot Teradyne, Inc
Chapter 6: Shell Programming
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
Linux Operations and Administration
Data Management Subsystem Jeff Valenti (STScI). DMS Context PRDS - Project Reference Database PPS - Proposal and Planning OSS - Operations Scripts FOS.
Guideline: How to build AMSS source code? History: 01/02/ Make Draft 05/02/2010 – Release /02/2010 – Updated.
Jozef Goetz, expanded by Jozef Goetz, 2009 Credits: Parts of the slides are based on slides created by UNIX textbook authors, Syed M. Sarwar, Robert.
1 German Aerospace Center VICAR Tutorial Thomas Roatsch, DLR 22-May-2008 Video Image Communication and Retrieval.
Galaxy for Bioinformatics Analysis An Introduction TCD Bioinformatics Support Team Fiona Roche, PhD Date: 31/08/15.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
PACS NHSC SPIRE Point Source Spectroscopy Webinar 21 March 2012 David Shupe, Bernhard Schulz, Kevin Xu on behalf of the SPIRE ICC Extracting Photometry.
1 UNIX essentials (hands-on) the directory tree running programs the shell → command line processing → special characters → command types → shell variables.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
XMM data reduction: part II SAS command-line analysis and scripting Andy Read.
Chapter Five Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
UNIX/LINUX SHELLS.  “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Page 1 TOOLKIT / HDF-EOS Status and Development Abe Taaheri, Raytheon IIS Aura DSWG meeting October 2007.
This document gives one example of how one might be able to “fix” a meteorological file, if one finds that there may be problems with the file. There are.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
HARPS Data Flow System Christophe Lovis Geneva Observatory HARPS-N PDR, 6-7 December 2007, Cambridge MA.
Parsing BLAST output. Output of a local BLAST search “less” program Full path to the BLAST output file.
ADMIT: ALMA Data Mining Toolkit  Developed by University of Maryland, University of Illinois, and NRAO (PI: L. Mundy)  Goal: First-view science data.
Pipeline Basics Jared Crossley NRAO NRAO. What is a data pipeline?  One or more programs that perform a task with reduced user interaction.  May be.
Debugging Ensemble Productions CAMTA Meeting 11 th November 2010 John Murray.
COS PIPELINE CDR Jim Rose July 23, 2001OPUS Science Data Processing Space Telescope Science Institute 1 of 12 Science Data Processing
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
Bioinformatics for biologists Dr. Habil Zare, PhD PI of Oncinfo Lab Assistant Professor, Department of Computer Science Texas State University Presented.
JWST Pipeline/Analysis Tools Perry Greenfield Science Software Branch.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Page 1 NHSC PACS Web Tutorial PACS 301 nhsc.ipac.caltech.edu/helpdesk NHSC/PACS Web Tutorials Running the PACS Spectrometer pipeline for CHOP/NOD Mode.
EOVSA Data and Database System J. McTiernan EOVSA Technical DesignMeeting 7-Nov-2011.
Perl Subroutines User Input Perl on linux Forks and Pipes.
1 Berger Jean-Baptiste
​ TdBench 7.2 – tdb.sh Utility Script. 2 Created for TdBench 7.x release to consolidate tools Open architecture – looks for scripts in the./tools directory.
C Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Additional Installation Topics.
MESA A Simple Microarray Data Management Server. General MESA is a prototype web-based database solution for the massive amounts of initial data generated.
1 CAA 20 th Cross Calibration Meeting, MPS, Gottingen 16th Oct 2014 CAA Cross Cal Meeting Oct 2014 Pipeline Automation Chris Perry.
David Lawrence JLab May 11, /11/101Reconstruction Framework -- GlueX Collab. meeting -- D. Lawrence.
NHSC/PACS Web Tutorials
Getting Started with R.
Data Processing Status
The Linux Operating System
Inside Module 3 Working with Eloquence Page
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Linux Shell Script Programming
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Presentation transcript:

CUPID (Bob Narron)GRITS - May 14, CUPID “Customizable User Pipeline for IRS Data” Abstract: The CUPID package will allow users to run the Spitzer IRS pipelines on their local machines. When run in the default mode, these pipelines will produce data files with pixel and table values identical to those produced by the operational pipelines. There will be, however, a number of options available for changing pipeline behavior. Users will have options for changing the value of any module processing parameter ("SET"). And users will also have options for controlling the flow of module processing ("START", "STOP", "SKIP", "DO.AFTER"). The package will include a new executive script (csh) and a few new pipeline "wrapper" scripts (Perl). It will also include existing operational executable modules and calibration files. Target platforms are Solaris, Mac, and Linux.

CUPID (Bob Narron)GRITS - May 14, What it is CUPID ?

CUPID (Bob Narron)GRITS - May 14, (not this one)

CUPID (Bob Narron)GRITS - May 14, CUPID Is … A software package that allows users to run all of the Spitzer IRS science pipelines on their own machine. ( “IRS” is “InfraRed Spectrograph”, an instrument that produces echelle spectra.)

CUPID (Bob Narron)GRITS - May 14, The Data

CUPID (Bob Narron)GRITS - May 14, Requirements Products have exactly the same data values as the Spitzer operational pipeline (on Solaris) Products will work with SPICE and CUBISM tools Products have same directory structure and file names as in the Spitzer Archive Software is easy to learn and use The package will run on MacOs, Linux, and Solaris Users can use their own calibration files Users can change values of processing constants Users can control flow of pipeline steps

CUPID (Bob Narron)GRITS - May 14, How is CUPID Used?

CUPID (Bob Narron)GRITS - May 14, Definition of “BCD” A BCD is a “Basic Calibrated Dataset” –Calibration files have been applied –Instrument characteristics have been removed –Pixels converted from 3D integer image to 2D floating point image –Header keywords have been updated and added

CUPID (Bob Narron)GRITS - May 14, The Pipelines 1.BCD - Create BCD images 2.COADD - Create coadd images 3.BKSUB - Create background subtracted images 4.BCDX - Spectral extraction on BCD images 5.COADDX - Spectral extraction on coadd images 6.BKSUBX --- Spectral extraction on BKSUB images 7.CUTOUT --- Create blue and red cutout images 8.DARK --- Create composite dark cube image

CUPID (Bob Narron)GRITS - May 14, To Run CUPID To run CUPID, enter “cupid” followed by the following: –Processing Directories [at least one] –Pipeline selection [defaults to first five] –Override(s) of parameters or files [optional] –Flow control option(s) [optional]

CUPID (Bob Narron)GRITS - May 14, Selecting Processing Directories Include directory(s) to be processed on the command line. E.g. /data/r1234/ch0 /data/r1234/ch2 /data/r1234/ch* /data/r*/ch*

CUPID (Bob Narron)GRITS - May 14, Selecting Pipelines to Run User may give explicit list e.g. PIPE/BCD.COADD.COADDX User may select first N pipelines e.g. PIPE/6 to run the first 6 pipelines The default is to run the first 5 pipelines

CUPID (Bob Narron)GRITS - May 14, Selecting Parameter Overrides Format: SET.module-flag=value e.g. SET.flatap-f=/joe/myflat.fits SET.snest-gain=5.6

CUPID (Bob Narron)GRITS - May 14, Selecting Flow Control Options START.STEPNAME STOP.STEPNAME SKIP.STEPNAME DO.STEPA.AFTER.STEPB Examples: STOP.DARKBASE SKIP.STRAYCROSS

CUPID (Bob Narron)GRITS - May 14, Sample Command cupid /data/r12345/* PIPE/BCD.BCDX SET.flatap-f=/joe/myflat.fits SET.snest-gain=5.6 SKIP.STRAYCROSS This command will run the BCD and BCDX pipelines on all the directories in /data/r It will use the specified “flat” file and it will use a gain value of 5.6 for the SNEST step. Also, the STRAYCROSS step will be skipped.

CUPID (Bob Narron)GRITS - May 14, What’s inside CUPID?

CUPID (Bob Narron)GRITS - May 14, The CUPID Directory (All of CUPID is in this directory.) cupid - main executable script (C-shell) wrappers/ - “wrapper” scripts (Perl) bin/ lib/ include/ - executable modules cal/ cdf/ - calibration and control files HELP - help file (plain text) VERSION - version number and history

CUPID (Bob Narron)GRITS - May 14, One Step in a “Wrapper” Script #STEP SLOPE_FINDER compute slope estimates my $integrationtime = $kwd_RAMPTIME + $kwd_GRPTIME; run_module("SLOPE_FINDER slope_finder IN -i # Input FLUX IN -iu # Input UNC IN -id dmask.fits # Input DMASK CDF -n slope_finder.nl # namelist file CAL -ip pmask.fits # PMASK CAL ile V -t $integrationtime # int time OUT -o_flux slope_finder.fits # Output FLUX OUT -o_unc slope_finder_unc.fits # Output UNC OUT -ob bmask.fits # Output BMASK ");

CUPID (Bob Narron)GRITS - May 14, Files from the Operational Pipeline N filesMB Executable Modules3210 Calibration Files Control Files1251

CUPID (Bob Narron)GRITS - May 14, Files Created for CUPID N filesN linesKB “cupid” Script Wrappers HELP *TOTAL*

CUPID (Bob Narron)GRITS - May 14, EXAMPLE

CUPID (Bob Narron)GRITS - May 14, Get Data From Spitzer Archive

CUPID (Bob Narron)GRITS - May 14, “Processing Directory” Before Run /data/r /ch0/ raw/ SPITZER_S0_ _0002_0000_2_raw.fits SPITZER_S0_ _0002_0001_2_raw.fits SPITZER_S0_ _0003_0000_2_raw.fits SPITZER_S0_ _0003_0001_2_raw.fits

CUPID (Bob Narron)GRITS - May 14, The ‘cupid’ Command cupid /data/r /ch0 SKIP.STRAYCROSS

CUPID (Bob Narron)GRITS - May 14, Initial Display ******* S18.7-CUPID-beta-7b ******* - Pipelines: BCD COADD BKSUB BKSUBX COADDX - processing directories: /data/r /ch0 - BCD options: SKIP.STRAYCROSS - X options:

CUPID (Bob Narron)GRITS - May 14, Display for BCD Pipeline 2/4 /data/r /ch0/bcd/SPITZER_S0_ _0002_0001_BCD.log END_STEP 1. CVTI2R4 status= 0 END_STEP 2. ADDKWDS status= 0 END_STEP 3. SNEST_IRS status= 0 END_STEP 4. DNTOFLUX status= 0 END_STEP 5. IMAGEST status= 0 END_STEP 6. DROOPOP status= 0 END_STEP 7. ROWDROOP status= 0 END_STEP 8. DARKBASE status= 0 END_STEP 9. CUBESUB status= 0 END_STEP 10. LINEARIZ status= 0 END_STEP 11. RADHIT status= 0 END_STEP 12. DARKDRIFT status= 0 END_STEP 13. SLOPE_FINDER status= 0 END_STEP 14. DROOPRES status= 0 END_STEP 15. FLATAP status= 0 END_STEP 16. FPGEN status= 0 0 OK BCD SPITZER_S0_ _0002_0001_ 2009/05/07 12:55:12

CUPID (Bob Narron)GRITS - May 14, Display of Status Summary BCD /data/r /ch0/bcd 0 OK BCD SPITZER_S0_ _0002_0000_ 2009/05/07 12:55:00 (15 sec.) 0 OK BCD SPITZER_S0_ _0002_0001_ 2009/05/07 12:55:12 (11 sec.) 0 OK BCD SPITZER_S0_ _0003_0000_ 2009/05/07 12:55:24 (11 sec.) 0 OK BCD SPITZER_S0_ _0003_0001_ 2009/05/07 12:55:36 (11 sec.) COADD /data/r /ch0/pbcd 0 OK COADD SPITZER_S0_ _0002_ 2009/05/07 12:55:38 (1 sec.) 0 OK COADD SPITZER_S0_ _0003_ 2009/05/07 12:55:39 (1 sec.) BKSUB /data/r /ch0/pbcd 0 OK BKSUB SPITZER_S0_ _0002_ 2009/05/07 12:55:39 (0 sec.) 0 OK BKSUB SPITZER_S0_ _0003_ 2009/05/07 12:55:40 (0 sec.) BKSUBX /data/r /ch0/pbcd 0 OK BKSUBX SPITZER_S0_ _0002_ 2009/05/07 12:55:44 (4 sec.) 0 OK BKSUBX SPITZER_S0_ _0003_ 2009/05/07 12:55:46 (2 sec.) COADDX /data/r /ch0/pbcd 0 OK COADDX SPITZER_S0_ _0002_ 2009/05/07 12:55:49 (2 sec.) 0 OK COADDX SPITZER_S0_ _0003_ 2009/05/07 12:55:52 (2 sec.)

CUPID (Bob Narron)GRITS - May 14, “Processing Directory” After Run /data/r /ch0/ raw/ (still contains original 4 raw files) bcd/ SPITZER_S0_ _0002_0000_bcd.fits.... (168 files altogether) pbcd/ SPITZER_S0_ _0002_bksub.fits.... (54 files altogether) cal/ b0_flatfield.fits.... (17 files altogether) cdf/ b0_basecal.nl.... (20 files altogether)

CUPID (Bob Narron)GRITS - May 14, BACKUP SLIDES

CUPID (Bob Narron)GRITS - May 14, How Images Are Combined BCD-1 BCD-2 BCD-3 BCD-4 COADD-1 BKSUB-1 BCD-5 BCD-6 BCD-7 BCD-8 COADD-2 BKSUB-2

CUPID (Bob Narron)GRITS - May 14, Finding the CUPID Directory # setenv CUPID (to directory containing CUPID package) set COM = $0 # actual command used to call CUPID if (-d./wrappers) setenv CUPID $cwd # just name of script if (-d $COM:h/wrappers) setenv CUPID $COM:h # relative path of script if (-d $cwd/$COM:h/wrappers) setenv CUPID $cwd/$COM:h # full path of script

CUPID (Bob Narron)GRITS - May 14, Finding the Perl Directory # set $perl to command to call Perl if ($?PERL_PATH) then set perl = "$PERL_PATH/perl -w" else foreach try_dir (/usr/bin /usr/local/bin /usr/sbin /usr/lib $path) if (-x $try_dir/perl) then set perl = "$try_dir/perl -w" break endif end endif