The Astro-wise pipeline Python Data processing - the low-level interfaces Data administration - persistent objects.

Slides:



Advertisements
Similar presentations
National Partnership for Advanced Computational Infrastructure San Diego Supercomputer Center Data Grids for Collection Federation Reagan W. Moore University.
Advertisements

Optional Static Typing Guido van Rossum (with Paul Prescod, Greg Stein, and the types-SIG)
Astro-WISE Tutorial, Leiden August 2008 Adapting Code Introduction to OOP Code, what code? What & where Why adapt code anyway? How?
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Python Hyunjong Lee. contents  Introduction  Syntax & data types  Tools  Python as CGI.
Java Basic Training HaiNH - FQA. Agenda Introduction to Java Java Programming Environment Language Fundamental Object Oriented Programming with Java.
Object Oriented Programming in Java George Mason University Fall 2011
AstroGrid: Virtual Observatory Service Nicholas Walton AstroGrid: Virtual Observatory Service Nicholas Walton AstroGrid and Euro-VO Technology Centre Project.
Review of Databases, Server-side Scripting. Databases Database Database Modeling Relational Data Model Object oriented Database Entity Relationship Diagrams.
Python By Steve Wright. What is Python? Simple, powerful, GP scripting language Simple, powerful, GP scripting language Object oriented Object oriented.
Executable XML Present by 吳昆澤. Outline  Introduction  Simkin  Jelly  o:XML  Conclusion.
Introduction to Python John Alexis Guerra Gómez CMSC433 Spring 2010 University of Maryland.
VO-lecture Valentijn 17/1/2007 Astro-Wise Wide Field imaging Facilitate: handling, calibration, quality control, pipelining, user tuned research, archiving,
Python Jordan Miller and Lauren Winkleman CS 311 Fall 2011.
Dr. Mohamed Osman Hegazi
1 Outline 7.1 Introduction 7.2 Implementing a Time Abstract Data Type with a Class 7.3 Special Attributes 7.4Controlling Access to Attributes 7.4.1Get.
Computer Science 210 Computer Organization Modular Decomposition Making a Library Separate Compilation.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
SAD and Python with EPICS at IHEP,Beijing, Noboru Yamamoto KEK, JAPAN.
The Astro-Wise Pipeline Conceptual Design Review Roeland Rengelink Requirements Development Framework Prototype.
Astro-Wise workshop Nov 2005 Astro-Wise workshop Lorentz center Nov 2005 Munchen, Napoli, Paris, Bonn, Bochum, Nijmegen, Leiden, Groningen Lorentz.
Python 0 Some material adapted from Upenn cmpe391 slides and other sources.
Programming language A programming language is an artificial language designed to communicate instructions to a machine,languageinstructionsmachine particularly.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Dr. Mohamed Osman Hegazi 1 Database Systems Concepts Database Systems Concepts Course Outlines: Introduction to Databases and DBMS. Database System Concepts.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
March 27, 2007HPC 07 - Norfolk, VA1 C++ Reflection for High Performance Problem Solving Environments Tharaka Devadithya 1, Kenneth Chiu 2, Wei Lu 1 1.
AstroWise((G)A)VO Meeting 6 May 2004 ASTRO-WISE- federation OmegaCEN AstroWise a Virtual Survey System OmegaCAM – Lofar – AstroGrid –((G)A) VO AstroWise.
Astro-WISE workshop, 31/03 – 03/ Ewout Helmich Image Stacking in Astro-WISE ➢ Why this talk? ➢ Infrared data: lots of short exposures to stack.
Sexy Science User Interfaces June 17, 2011 GRITS III, Pasadena, CA John Good.
Database tools An SQL layer around CDF. Overview Current SPENVIS database Limitations SQL wrapped CDF Advantages Demonstration.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Integration of Astro-WISE with Grid storage.
EURO-VO workshop 1 July 2005 A Virtual Survey SYSTEM Astro-Wise NOVA/Kapteyn – OA Capodimonte ESO – Terapix – US Munich/MPE National WFI datacenters NL-I-D-Fr/ESO.
National Partnership for Advanced Computational Infrastructure San Diego Supercomputer Center Persistent Management of Distributed Data Reagan W. Moore.
1 Radius + MySQL Authentication and Accounting AFNOG 2000 Cape Town, South Africa.
Virtual Survey System sept 04 ASTRO-WISE- federation OmegaCEN AstroWise a Virtual Survey System OmegaCAM – Lofar – AstroGrid –((G)A) VO AstroWise a Virtual.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Intro to Python Programming (Part 1) Pamela Moore Zenia Bahorski Eastern Michigan University March 16, 2011 A language to swear by, not at.
By N.Gopinath AP/CSE Cognos Impromptu. What is Impromptu? Impromptu is an interactive database reporting tool. It allows Power Users to query data without.
Prologue Major VO objective: “Data at your fingertips” (Lawrence) VO-user’s desire: “going backstage” –Data quality assessment by user (talk Gilmore)
Dr. Mohamed Osman Hegazi
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
Introduction to Python Origins Nature of Python Importance of Python Example.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
PHP vs. Python. Similarities are interpreted, high level languages with dynamic typing are Open Source are supported by large developer communities are.
(see online resources, e.g. SY306 Web and Databases for Cyber Operations Slide Set #9: CGI with Python.
Gijs Verdoes Kleijn Edwin Valentijn Marjolein Cuppen for the Astro-WISE consortium.
Oracle and Object-Oriented SQL Oracle specific SQL commands.
Astro-Wise prompt ● awe is a shell with uses such as: – Python – data reduction (parallel, “dpu”) – interactive analysis (eclipse) – calculator – plotting.
Productive Laziness with Python Programmability in SPSS Albert-Jan Roskam, PhD. Statistics Netherlands (CBS) ASSESS – York UK - October.
Quiz 1 A sample quiz 1 is linked to the grading page on the course web site. Everything up to and including this Friday’s lecture except that conditionals.
WebServices Testing – Functional / Non Functional Rajesh Charles.
JAVA PROGRAMMING Buzzwords. Simple: Less complex syntax than C++ Not as easy to design as Visual Basic Small size of interpreter.
1 3 Computing System Fundamentals 3.5 Data Representation.
Sebastian Kügler, FrOSCon 2006 Jarosław Staniek, aKademy 2006 Database (data) components for KDE applications developers codename: KexiDB Facts ● Your.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Pixy Python API Charlotte Weaver.
Computer Science 210 Computer Organization
Python Training in Chennai
Computer Science 210 Computer Organization
slides created by Marty Stepp
Introduction to Python
Learning Outcomes –Lesson 4
Computer Science 210 Computer Organization
Convert (flatten) IATI XML file to CSV file(s) using XQUERY
Microsoft Build /27/2019 2:26 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Implementing FOP Framework
General Computer Science for Engineers CISC 106 Lecture 03
EN Software Carpentry Python – A Crash Course Esoteric Sections Compiled Languages.
Basic SQL and basic Python
Presentation transcript:

The Astro-wise pipeline Python Data processing - the low-level interfaces Data administration - persistent objects

Python ● Object Oriented scripting language ● clean, easy-to-understand syntax ● extensive library ● powerful built-in data types (str, dict, list, file) ● byte-code interpreted, dynamically typed Rapid development and easy maintenance

Python, a 1-slide course wordcount = {} for line in file('my_thesis.txt'): for word in line.split(): if word not in wordcount: wordcount[word] = 1 else: wordcount[word] += 1 print wordcount

Image processing ● eclipse libraray in C (ESO, N. Devillard) ● wrapped with SWIG ● fits images and headers as built-in data types >>> from eclipse import image, header >>> img = image('science.fits') >>> hdr = header('science.fits') >>> flat = image('flat.fits') >>> img = img / flat >>> hdr['FLATFLD'] = 'flat.fits' >>> img.save('flatfielded.fits', hdr) ● Co-addition with SWARP (IAP, E. Bertin)

Catalog Processing ● Sextractor (IAP, E. Bertin) ● LDAC (OmegaCAM, E. Deul) – Astrometry – Photometry ● Common interfaces, but no Python types ● Persistent Sourcelists (see KGB)

Astro-wise Pipelines ● Pipelines are about data-administration, not about data-processing ● Persistent objects – Object's state persists across program boundaries – Python classes representing SQL tables – Should also work without back-end ● Distinguish meta-data and bulk (FITS) data – meta data in persistent objects – bulk (FITS) data through file-server

The make metaphor ● 'Making' objects – think unix Makefile – targets and dependencies (recursive) >>> bias = BiasFrame() >>> bias.raw_frames = [RawBiasFrame('bias1.fits'), RawBiasFrame('bias2.fits'),... RawBiasFrane('biasN.fits')] >>> bias.make()

An example with Queries ● Queries are Python expressions (see Danny) ● Dependencies can be filled through queries >>> bias = BiasFrame() >>> query = ((RawBiasFrames.chip.name == 'ccd50') & (RawBiasFrames.DATE_OBS > a_date-1) & (RawBiasFrames.DATE_OBS >> bias.raw_frames = list(query) >>> bias.make() >>> bias.store() # the bulk FITS data >>> bias.commit() # the meta data

Image Pipeline