hw9_sol - #! /usr/bin/env python # # # # # Joseph...

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

View Full Document Right Arrow Icon
#! /usr/bin/env python # Joseph Harrington # AST 5765/4762 # Homework 9 # 21 October 2007 # Updated 28 Oct 2008 by Kevin Stevenson # Problem 1 from hw8_sol import * # Problem 2 # hard-coded values lamponfile = np.array([ 'k_lampon_1', 'k_lampon_2', 'k_lampon_3', 'k_lampon_4', 'k_lampon_5' ]) lampofffile = np.array([ 'k_lampoff_1', 'k_lampoff_2', 'k_lampoff_3', 'k_lampoff_4', 'k_lampoff_5' ]) # query data for sizes nlampon = lamponfile.size nlampoff = lampofffile.size # Allocate data arrays npair = np.min([nlampoff,nlampon]) lampondata = np.zeros((nlampon, ny, nx)) lampoffdata = np.zeros((nlampoff, ny, nx)) lampdiffdata = np.zeros((npair, ny, nx)) # lampon data for k in np.arange(nlampon): infile = datadir + lamponfile[k] + fext head, lampondata[k] = rp.rdpharo(infile) lamponhead = head # lampoff data for k in np.arange(nlampoff): infile = datadir + lampofffile[k] + fext head, lampoffdata[k] = rp.rdpharo(infile) lampoffhead = head # calculate the difference for k in np.arange(npair): lampdiffdata[k] = (lampondata[k] - lampoffdata[k])
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
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

hw9_sol - #! /usr/bin/env python # # # # # Joseph...

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

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