lect04 - UCF Physics AST 5765/4762(Advanced Astronomical...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
UCF Physics: AST 5765/4762: (Advanced) Astronomical Data Analysis Fall 2009 Lecture Notes: 4. Learning Python 1 Check In: 12:30 — 12:35, 5 min Questions before we start? How to find homework solutions and evaluations Do you have VNC up, python running, and the lecture demo ready to go? 2 First Linux Play: 12:35 — 12:40, 5 min Demo: 01-shell Stdin, stdout, stderr, redirection, pipes 3 Python Intro: 12:40 — 12:55, 15 min Why Python? Python is an interactive (i.e., command prompt) language that accesses fast routines written in compiled languages like C Fast, totally flexible Hides many details: much easier to learn and use than C In astronomy, data are often arranged in arrays or lists Python is a high-level array language: C: #include <fitsio.h> / * FITS file I/O package * / #include <memalloc.h> / * memory allocation package * / double ** a; double ** b; double ** c; char ** ahead; char ** bhead; int i; int j; int ni; int nj; 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
a = readfits("a.fits", ahead);
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/09/2009 for the course AST 4762 taught by Professor Harrington during the Fall '09 term at University of Central Florida.

Page1 / 3

lect04 - UCF Physics AST 5765/4762(Advanced Astronomical...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online