Introduction to CASA Crystal Brogan ALMA CASA Subsystem Scientist (NRAO/NAASC) With lots of help from Steve Myers (Project Scientist)

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

1 CS 446 – Tutorial 6 Frid. Nov. 6 th, 2009 Implementation Tutorial.
Utilizing the GDB debugger to analyze programs Background and application.
Introduction to CASA Shigehisa Takakuwa (ASIAA). Table of Contents 1.ALMA Observation & Calibration 2.CASA 3.How to use CASA.
OpenVMS System Management A different perspective by Andy Park TrueBit b.v.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Case Study 1: UNIX and LINUX Chapter History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output.
Linux+ Guide to Linux Certification, Second Edition
CS 110 Intro to Computer Science I Sami Rollins Fall 2006.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
Atacama Large Millimeter/submillimeter Array Expanded Very Large Array Robert C. Byrd Green Bank Telescope Very Long Baseline Array A Crash Course in CASA.
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.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Linux Operations and Administration
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 9 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
Extending the Discovery Environment: Tool Integration and Customization.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Introduction to Shell Script Programming
IT Essentials 1 v4.0 Chapters 4 & 5 JEOPARDY RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Guide To UNIX Using Linux Fourth Edition
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
2INC0 Operating Systems Introduction to Linux
© 2011 Autodesk CP5239 Demand-Loading AutoCAD®.NET Plug-ins James E. Johnson Synergis Software Sr. CAD Developer.
Linux+ Guide to Linux Certification, Second Edition
Guideline: How to build AMSS source code? History: 01/02/ Make Draft 05/02/2010 – Release /02/2010 – Updated.
Parallel Interactive Computing with PyTrilinos and IPython Bill Spotz, SNL (Brian Granger, Tech-X Corporation) November 8, 2007 Trilinos Users Group Meeting.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
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.
Oracle Data Integrator Procedures, Advanced Workflows.
ASAP RDF SGP RDF 1.2 and 1.3 Transfer of Information
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
Ganga A quick tutorial Asterios Katsifodimos Trainer, University of Cyprus Nicosia, Feb 16, 2009.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Introduction to CASA and Basic Data Reduction Overview Crystal Brogan ALMA CASA Subsystem Scientist (NRAO/NAASC) With lots of help from Steve Myers (Project.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Lab 3 + Using the Terminal 1. "Under Linux there are GUIs (graphical user interfaces). where you can point and click and drag, and hopefully get work.
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.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Introduction to CASA and Basic Data Reduction Overview Steven T. Myers CASA Project Scientist (NRAO)
More Unix Naomi Altman. Directories Directory = folder mkdir - makes a new directory rmdir - removes an empty directory cd mydirectory - moves you into.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
Chapter Linux Basics. Acknowledgements This presentation was prepared by – Banyat Settapanich – Bahran Madaen This presentation will be updated later.
Perl Subroutines User Input Perl on linux Forks and Pipes.
Documentation Analysis and Proposal Jeff kern NRAO.
Learning Unix/Linux Based on slides from: Eric Bishop.
C Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Additional Installation Topics.
Development Environment
Chapter 11 Command-Line Master Class
Case Study 1: UNIX and LINUX
PYTHON: AN INTRODUCTION
The Command Prompt Commands are the way to “do things” in Unix
Periodic Processes Chapter 9.
National Radio Astronomy Observatory
What is Unix? A multi-user networked operating system
Presentation transcript:

Introduction to CASA Crystal Brogan ALMA CASA Subsystem Scientist (NRAO/NAASC) With lots of help from Steve Myers (Project Scientist)

CASA Tutorial – Hamilton June 2, CASA (Common Astronomy Software Applications) CASA is the offline data reduction package for ALMA and EVLA Beta Release Status: in Beta Release since October 2007 Roughly biannual “patches” register at Current Release: Beta Release Patch 2.4 Next ’09 (3.0)

CASA Tutorial – Hamilton June 2, Outline IPython & Python CASA help CASA task interface MS and data selection The Memory Sticks Documentation

CASA Tutorial – Hamilton June 2, CASA Interface IPython shell access autoparenthesis (autocall) command history session logging ipython.log – ipython command history casapy.log – casa messages numbered input/output history/searching Python Cookbook Appendix D

CASA Tutorial – Hamilton June 2, Python Pointers to run a.py script: execfile(‘ ’) example: execfile(‘ngc5921_demo.py’) indentation matters! be careful when doing cut-and-paste to Python cut a few (4-6) lines at a time variables are global when using task interface! tasknames are objects (not variables)

CASA Tutorial – Hamilton June 2, Tasks and tools in CASA Tasks - high-level functionality function call or parameter handling interface these are what you should use in tutorial Tools - complete functionality tool.method calls, used by tasks sometimes shown in tutorial scripts

CASA Tutorial -- 7 October 2008 Key Tasks To see list of tasks after startup organized by type: >tasklist

CASA Tutorial – Hamilton June 2, Task Execution two ways to invoke: call from Python as functions with arguments taskname( arg1=val1, arg2=val2,... ) unspecified parameters will be defaulted (globals not used) use standard tasking interface use global variables for task parameters see Chapter 1.3 in Cookbook

CASA Tutorial – Hamilton June 2, Task Interface standard tasking interface use parameters set as global Python variables set = (e.g. vis = ‘ngc5921.demo.ms’ ) parameter manipulation commands using inp, default, saveinputs, tget execute or go ( e.g. clean() ) return values some tasks return Python dictionaries, e.g. myval=imval()

CASA Tutorial – Hamilton June 2, Task Interface examine task parameters with inp :

CASA Tutorial – Hamilton June 2, Expandable Parameters boldface parameter are expandable

CASA Tutorial – Hamilton June 2, Parameter Checking sanity checks of parameters in inp : erroneous values in red

CASA Tutorial – Hamilton June 2, Help on Tasks In-line help: >help ‘clean’ OR >pdoc clean

CASA Tutorial – Hamilton June 2, Tools in CASA CASA Toolkit underneath tasks core AIPS++ code (mostly in C++) tools are functions call from casapy as. () default tool objects are pre-constructed e.g. imager (im), calibrater (cb), ms (ms), etc. (see toolhelp)

CASA Tutorial – Hamilton June 2, CASA Tool List list of default tools from toolhelp : tools described in the CASA User Reference Manual:

CASA Tutorial – Hamilton June 2, The Measurement Set the MS is a directory on disk the MAIN table in table.* files also contains sub-tables e.g. FIELD, SOURCE, ANTENNA, etc. sub-tables are sub-directories to copy must cp -rf to get contents Best to remove ms with rmtables(‘filename’) WARNING: moving a MS can break cal-table dependencies

CASA Tutorial – Hamilton June 2, Example MS Example: ls ngc5921.usecase.ms ls ngc5921.usecase.ms/FIELD

CASA Tutorial – Hamilton June 2, MAIN Table Contents Example using task browsetable:

CASA Tutorial – Hamilton June 2, Data Selection Example standard selection parameters e.g. for task gaincal: field and spw common standard selections expandable selectdata with other selections as sub-parameters

CASA Tutorial – Hamilton June 2, Data Selection Syntax see Chapter 2.5 of Cookbook field - string with source name or field ID can use ‘*’ as wildcard, first checks for name, then ID example: field = ‘ ’ ; field = ‘3C*’ ; field = ‘0,1,4~5’ spw - string with specwindow ID plus channels use ‘:’ as separator of spw from optional channelization use ‘^’ as separator of channels from step/width example: spw = ‘0~2’ ; spw = ‘1:10~30’ ; spw = ‘2~5:5~54^5’

CASA Tutorial – Hamilton June 2, Selection Syntax see Chapter 2.5 of Cookbook antenna - string with antenna name or ID first check for name, then ID (beware VLA name 1-27, ID 0-26) example: antenna = ‘1~5,11’ ; antenna = ‘VA*’ timerange - string with date/time range specify ‘T0~T1’, missing parts of T1 default to T0, can give ‘T0+dT’ example: timerange = ‘2007/10/16/01:00:00~06:30:00’

CASA Tutorial – Hamilton June 2, The Memory Sticks etc. Contents: “Install_README” - installation instructions “installation” - directory contains 32-bit linux and intel mac files. Please see me if you need 64-bit linux. Please install before Wed. “casa_scripts_and_data.tar” copy this to your hard drive before Wed. Note a copy of the casa cookbook is included in this directory. A slightly newer version is available at ok.pdf ok.pdf Additional CASA Scripts & Data Page

CASA Tutorial – Hamilton June 2, Getting User Support First stop: CASA Home: Cookbook, and “help” within CASA CASA Helpdesk & Support “Helpdesk” at (will migrate to more user friendly helpdesk in future) You will need to register first Submit questions, suggestions, bugs

CASA Tutorial – Hamilton June 2, CASA Documentation CASA Analysis cookbook: CASA User Reference Manual: Python: (e.g., see Tutorial for novices) IPython: matplotlib: