Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array A Crash Course in CASA.

Slides:



Advertisements
Similar presentations
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
Advertisements

CABB Observations Preparations and Observing Mark Wieringa.
Introduction to CASA Shigehisa Takakuwa (ASIAA). Table of Contents 1.ALMA Observation & Calibration 2.CASA 3.How to use CASA.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Whoever North American.
An Introduction to CASA and Simulations with Simdata May 25, 2011.
Atmospheric phase correction for ALMA Alison Stirling John Richer Richard Hills University of Cambridge Mark Holdaway NRAO Tucson.
System Design and Analysis
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array.
1 Introduction to OBIEE: Learning to Access, Navigate, and Find Data in the SWIFT Data Warehouse Lesson 5: Navigation in OBIEE – Touring the Catalog Page.
Ninth Synthesis Imaging Summer School Socorro, June 15-22, 2004 Cross Correlators Walter Brisken.
Calibration with CASA Masaaki Hiramatsu 平松正顕 (ASIAA/NTHU) ALMA User Workshop, Feb 8-10, 2010.
Introduction to Systems Analysis and Design Trisha Cummings.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array.
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
Hunt for Molecules, Paris, 2005-Sep-20 Software Development for ALMA Robert LUCAS IRAM Grenoble France.
Functions General Example (+1return values, +1 parameters) 1. The client's wish 2. Creating the function 1. Function's name, Parameter list, Return-info,
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
Basic concepts of radio interferometric (VLBI) observations Hiroshi Imai Department of Physics and Astronomy Graduate School of Science and Engineering.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Emmanuel Momjian (NRAO)
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
Cycle-3 Capabilities and the OT Andy Biggs ALMA Regional Centre, ESO.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array New VLBA capabilities.
TelCal Phasing Engine description Draft Robert Lucas
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Using CASA to Simulate.
The ALMA TelCal subsystem Dominique Broguière, Institut de RadioAstronomie Millimétrique (IRAM) TelCal Phasing meeting – Grenoble -10/12/2012.
ALMA Pipeline Heuristics Frederic Boone - LERMA Lindsey Davis - NRAO John Lightfoot - UKATC Dirk Muders - MPIfR Christine Wilson - McMaster Friedrich Wyrowski.
F. Levrier (LERMA - ENS) J. Pety (LERMA - IRAM Grenoble) P. Salomé (LERMA - Observatoire de Paris) STAR FORMAT meeting, Heidelberg, 4-5 may 2010 Making.
ALMA Integrated Computing Team Coordination & Planning Meeting #4 Santiago, November 2014 Telescope Calibration Planning Dominique Broguière.
Introduction to CASA and Basic Data Reduction Overview Crystal Brogan ALMA CASA Subsystem Scientist (NRAO/NAASC) With lots of help from Steve Myers (Project.
The North American ALMA Science Center North America’s ALMA Regional Center The North American ALMA Science Center acts as the gateway to ALMA for North.
Observing Modes from a Software viewpoint Robert Lucas and Philippe Salomé (SSR)
Herschel Open Time Cycle 1 DP workshop ESAC, March page 1 Tour of HIFI data.
ALMA Integrated Computing Team Coordination & Planning Meeting #1 Santiago, April 2013 Telescope Calibration Planning Dominique Broguiere.
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.
1 KFPA Critical Design Review – Fri., Jan. 30, 2009 KFPA Data Pipeline Bob Garwood- NRAO-CV.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Data Processing Progress.
Observing Strategies at cm wavelengths Making good decisions Jessica Chapman Synthesis Workshop May 2003.
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.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Observing Scripts Basic.
PACS NHSC Data Processing Workshop – Pasadena 10 th - 14 th Sep 2012 HIPE Introduction and Setup for SPIRE David Shupe, NHSC/IPAC on behalf of the SPIRE.
Trinity College Dublin, The University of Dublin GE3M25: Computer Programming for Biologists Python Karsten Hokamp, PhD Genetics TCD, 03/11/2015.
1 Synthesis Imaging Workshop Sept 24-28, 2001, ATCA Narrabri Calibration & Flagging Mark Wieringa  Theory of calibration  Practice - RFI & malfunctions.
Jan URSI1 Fast Switching Phase Compensation for ALMA Mark Holdaway NRAO/Tucson Other Fast Switching Contributors: Frazer Owen Michael Rupen Chris.
Introduction to CASA and Basic Data Reduction Overview Steven T. Myers CASA Project Scientist (NRAO)
Atmospheric phase correction at the Plateau de Bure interferometer IRAM interferometry school 2006 Aris Karastergiou.
Flagging: When Good Data Go Bad Scott Schnee & Amy Kimball Nov 9, 2011 Interferometry Discussion Group.
Atacama Large Millimeter/submillimeter Array Karl G. Jansky Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array ALMA Pipeline.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Introduction to CASA Crystal Brogan ALMA CASA Subsystem Scientist (NRAO/NAASC) With lots of help from Steve Myers (Project Scientist)
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
ADMIT: ALMA Data Mining Toolkit  Developed by University of Maryland, University of Illinois, and NRAO (PI: L. Mundy)  Goal: First-view science data.
Frazer OwenNSF EVLA Mid-Project Review May 11-12, Transition to EVLA
HIFI Tutorial 1: Running the HIFI Pipelines and Adaptations A.P.Marston ESAC 27 June 2013.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Emmanuel Momjian (NRAO)
WS 9-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. February 27, 2009 Inventory # Workshop 9 Taylor Impact Test – “What if” Study.
Atacama Large Millimeter/submillimeter Array Karl G. Jansky Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Short Spacing.
Introduction to Multichannel Image Reconstruction, Image Analysis and Display (MIRIAD)
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array Using CASA to Simulate.
Open the standard.idw template. Save copy as a different file name. If you want to create as a template, save to the c:\Program Files\Autodesk \Inventor10.
Jeff Kern NRAO/ALMA.  Scaling and Complexity ◦ SKA is not just a bigger version of existing systems  Higher Expectations  End to End Systems  Archive.
Fringe-Fitting: Correcting for delays and rates
NRAO VLA Archive Survey
NHSC/PACS Web Tutorials
Overview – SOE PatchTT December 2013.
Gustaaf van Moorsel September 9, 2003
National Radio Astronomy Observatory
Presentation transcript:

Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array A Crash Course in CASA With a focus on calibration Whoever North American ALMA Science Center

CASA Common Astronomy Software Applications The offline data reduction package for ALMA and EVLA H ANDLES BOTH INTERFEROMETRIC AND SINGLE - DISH ALMA DATA Current version: (released XX May 2012) N EW RELEASES ABOUT EVERY 6 MONTHS CASA home: D OWNLOAD, C OOKBOOK, R EFERENCE, E XAMPLE SCRIPTS, M AILING LISTS Training material on “CASAguides” wiki: NRAO helpdesk:

Outline CASA interface: Python, tools, and tasks Structure of CASA data Key CASA tasks for data reduction/calibration CASA tasks for examining your data

Start CASA by typing casapy V ERSION NUMBER AND LOGGER WILL APPEAR, YOU GET AN IPYTHON PROMPT Python tips (tutorials at o Indentation matters! So careful with cut/paste (a few lines at a time) o or use cpaste (type cpaste, paste code, end with a line of “ -- ”) o Run shell commands with leading “ ! ”, e.g., “ !du –hc ” o To run a script: execfile(‘scriptname.py’) casapy Shell

Tasks – high-level functionality o Python wrapper around the toolkit and pythoncode o Accessed via python function call or parameter setting interface o List CASA tasks with command tasklist or taskhelp o Most data reduction and tutorials and CASA guides focus on tasks “Tasks”

Tools – low level, complete functionality o Interface to underlying C++ code o Intended for power users, less user-friendly, less well-documented o Objects: call with. o List available tools with command toolhelp “Tools”

get detailed help with help( ) Two ways to call tasks: o As a function with arguments: U NSPECIFIED PARAMETERS USE DEFAULT VALUES gaincal(vis=‘mydata.ms’, caltable=‘caltable.cal’, field=‘2’) o Standard, interactive task mode: O MITTING “ TASKNAME ” OPERATES ON CURRENT TASK default( ) sets task’s parameters to default values inp( )see task’s parameter settings (input values) saveinputs( )saves parameters to.saved tget( ) retrieves parameters (.last) Task Syntax

Examine task parameters (inputs) with inp : Standard Task Interface

Default values in BLACK Standard Task Interface

Expandable parameters are highlighted Standard Task Interface Sub-parameters indented

User set values in BLUE Standard Task Interface Erroneous values in RED

Outline CASA interface: Python, tools, and tasks Structure of CASA data Key CASA tasks for data reduction/calibration CASA tasks for examining your data

Measurement Set CASA stores u-v data in directories called “Measurement Sets” TO DELETE THEM USE os.system(“rm –rf my_data.ms”) These data sets store two copies of the data (called “columns”): Additionally a “model” may be stored separately. T HIS IS USED TO CALCULATE WHAT THE TELESCOPE SHOULD HAVE OBSERVED. Each data point may also be “flagged,” i.e., marked bad. I N THIS CASE IT IS IGNORED ( TREATED AS MISSING ) BY CASA OPERATIONS. “Data” Column Contains the raw, unprocessed measurements. “Data” Column Contains the raw, unprocessed measurements. “Corrected” Column Usually created by applying one or more calibration terms to the data. “Corrected” Column Usually created by applying one or more calibration terms to the data.

listobs Measurement sets contain a mix of data: o One or more spectral windows o One or more fields (e.g., source, phase calibrator, flux calibrator) o Data from several antennas o Data organized into discrete scans Inspect the contents of your measurement set using listobs. o Can print output to a file or the logger (use the file option!) o Verbose (detailed time log) output possible o Summarizes fields, antennas, sources, spectral windows Always run listobs first to get oriented!

Calibration Tables Calibration yields estimates of phase and amplitude corrections. E. G., AS A FUNCTION OF TELESCOPE, TIME, FREQUENCY, POLARIZATION. CASA stores these corrections in directories called “calibration tables.” TO DELETE THEM USE os.system(“rm –rf my_data.ms”) These are created by calibration tasks: E. G., gaincal, bandpass, gencal Applied via “ applycal ” to the data column and saved as corrected. “Data” Column Still holds original data “Data” Column Still holds original data “Corrected” Column Now holds corrected data. “Corrected” Column Now holds corrected data. (“Data” Column) Calibration Table(s) Measurement Set applycal CASA Task

Basic Calibration Flow Define a model for the data (setjy) Measurement Set Model (defaults to point source) Define what the telescope SHOULD have seen. Measurement Set (with associated model) Measurement Set (with associated model)

Basic Calibration Flow Calibration Task (e.g., gaincal, bandpass) Calibration Task (e.g., gaincal, bandpass) Derive the corrections needed to make the data match the model. Calibration Table Measurement Set (with associated model) Measurement Set (with associated model)

Basic Calibration Flow Apply Calibration applycal Apply Calibration applycal Apply these corrections to derive the corrected (calibrated) data. Measurement Set Corrected column now holds calibrated data. Calibration Table Measurement Set Data Column

Basic Calibration Flow Calibration Task (e.g., gaincal, bandpass) Calibration Task (e.g., gaincal, bandpass) Apply Calibration applycal Apply Calibration applycal Define a model for the data (setjy) Measurement Set Model (defaults to point source) Define what the telescope SHOULD have seen. Derive the corrections needed to make the data match the model. Apply these corrections to derive the corrected (calibrated) data. Measurement Set Corrected column now holds calibrated data. Calibration Table Measurement Set Data Column Measurement Set (with associated model) Measurement Set (with associated model) Measurement Set (with associated model) Measurement Set (with associated model)

Outline CASA interface: Python, tools, and tasks Structure of CASA data Key CASA tasks for data reduction/calibration CASA tasks for examining your data

Schematic Calibration Calibrate the Amplitude and Phase vs. Frequency of Each Antenna A SSUME TIME & FREQUENCY RESPONSE SEPARABLE, REMOVE TIME VARIABILITY Calibrate the Amplitude and Phase vs. Time of Each Antenna A SSUME TIME & FREQUENCY RESPONSE SEPARABLE, REMOVE FREQ. VARIABILITY Set the Absolute Amplitude Scale With Reference to a Known Source P LANET ( MODELLED ), M ONITORED Q UASAR, ETC. Apply all corrections to produce calibrated data

Schematic Calibration Calibrate the Amplitude and Phase vs. Frequency of Each Antenna bandpass Calibrate the Amplitude and Phase vs. Time of Each Antenna gaincal Set the Absolute Amplitude Scale With Reference to a Known Source fluxscale Apply all corrections to produce calibrated data applycal Apply all corrections to produce calibrated data applycal Bandpass Calibration Table Phase Calibration Table Amplitude Calibration Table Phase Calibration Table Amplitude Calibration Table Flux Calibration Table Measurement Set Corrected column now holds calibrated data.

Derive Calibration Tables setjy : set “model” (correct) visibilities using known model for a calibrator bandpass : calculate bandpass calibration table (amp/phase vs frequency) gaincal : calculate temporal gain calibration table (amp/phase vs time) fluxscale : apply absolute flux scaling to calibration table from known source Manipulate Your Measurement Set flagdata / flagcmd / flagmanager : flag (remove) bad data applycal : apply calibration table(s) from previous steps split : split off calibrated data from your ms (for imaging!) Inspect Your Data and Results plotms : inspect your data interactively plotcal : examine a calibration table Key Tasks for Calibration

Calibration Table Later applied with applycal Calibration Table Later applied with applycal gaincal Solve for phase and amplitude response of each telescope as a function of time. (Solutions derived to give best match of data to model once they are applied.) gaincal Solve for phase and amplitude response of each telescope as a function of time. (Solutions derived to give best match of data to model once they are applied.) Measurement Set Data column holds observations. (Optional) One or More Calibration Tables (applied on the fly before solution) (Optional) One or More Calibration Tables (applied on the fly before solution) (Optional) Associate a model (expected sky distribution) with the MS. (Else assume point source) (Optional) Associate a model (expected sky distribution) with the MS. (Else assume point source) o What time interval to solve over? o Requirements for a good solution. o Reference Antenna

gaincal

Input Measurement Set (with model set, if needed)

gaincal Output Calibration Table (apply later with applycal )

gaincal Options to select which data to consider: e.g., select calibrator fields

gaincal Time interval over which to solve. (Only cross scan or spw boundaries with “combine”)

gaincal Reference Antenna (pick a central one with little or no flagging)

gaincal Requirements for a solution in terms of S/N and # of baselines contributing

gaincal Normalize solutions?

gaincal What to solve for? ‘a’mplitude ‘p’hase ‘ap’ - both

gaincal Calibration tables to apply before solution: e.g., apply bandpass calibration before gaincal

Calibration Table Later applied with applycal Calibration Table Later applied with applycal gaincal Solve for phase and amplitude response of each telescope as a function of time. (Solutions derived to give best match of data to model once they are applied.) gaincal Solve for phase and amplitude response of each telescope as a function of time. (Solutions derived to give best match of data to model once they are applied.) Measurement Set Data column holds observations. (Optional) One or More Calibration Tables (applied on the fly before solution) (Optional) One or More Calibration Tables (applied on the fly before solution) (Optional) Associate a model (expected sky distribution) with the MS. (Else assume point source) (Optional) Associate a model (expected sky distribution) with the MS. (Else assume point source) o What time interval to solve over? o Requirements for a good solution. o Reference Antenna

ALMA Online Calibration System Temperature (Tsys) – atmospheric emission/opacity o Key to gain transfer across elevation o Amplitude calibration, variable with frequency (observed in “TDM”) Water Vapor Radiometer (WVR) – phase delay due to atmosphere o Key to correct short-timescale phase variations o Phase calibration, variable with time These are provided by the observatory (eventually applied online). o Apply them as first step (or start with provided pre-applied versions) o In either case, inspect these tables to learn about data quality

ALMA Online Calibration Phase vs. Time One 600m Baseline ~600 GHz Before WVR, After WVR

Your Turn Point your web browser at the Synthesis Imaging School CASA guide. Decide whether to start with WVR and Tsys applied. Work end-to-end through the calibration of a single measurement set. T HE FULL ONLINE GUIDES STEP THROUGH CALIBRATION FOR SEVERAL MS S. (Optional) Try writing a python script as you go. T HIS IS VERY GOOD PRACTICE FOR ACTUAL REDUCTION. After lunch, we will image the results. D ON ’ T WORRY, WE HAVE PROVIDED CALIBRATED DATA FOR THE AFTERNOON ! A SK IF YOU NEED HELP !