lect05 - UCF Physics: AST 5765/4762: (Advanced)...

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 2008 Lecture Notes: 5. Python Arrays and Functions 1 Summary Pre-Class: Copy handouts Copy handouts, demos, visuals to class Handouts: 2 Check in: 2:00 — 2:05, 5 min Are people getting comfortable with Linux and Python? How long did HW2 take? 3 Python Arrays: 2:05 — 2:20, 15 min Array allocation Array slicing Boolean and mask arrays Index initialization .shape Multidimensional arrays Linear array access 4 Python Image Display: 2:20 —2:35, 15 min A pixel is colored by three one-byte values, for Red, Green, and Blue Astronomical images and spectra are usually 2D non-byte arrays Viewing astronomical images requires scaling and color mapping Linear scaling formula: A ij = [ A ij - min ( A )] × 255 max ( A ) - min ( A ) (1) 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
Colormaps (including gray scale) ds9 program 5 HW: 2:35 — 3:05, 30 min Go over HW2 6 Functions in General: 3:05 — 3:15, 10 min Computer programs can be very long and complicated Manage complexity by “boxing away” detail in functions
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 / 5

lect05 - UCF Physics: AST 5765/4762: (Advanced)...

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