hw8_sol - write results using 32-bit floats...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#! /usr/bin/env python # Joseph Harrington # AST 5765/4762 # Homework 8 # 21 October 2007 # Updated 27 Oct 2008 by Kevin Stevenson # Updated 1 Oct 2009 by Joseph Harrington # Problem 1 from hw7_sol import * # Problem 2 # see routine normmedcomb() in medcombine.py import medcombine as mc # Problem 3 # get away from the edges, particularly the junk in the upper right normregion = ((225, 225), (-225, -225)) # ((y1, x1), (y2, x2)) # do the normalized median combination normsky, normfact = mc.normmedcomb(objdata, normregion)
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: # write results, using 32-bit floats pf.writeto('sky_13s_mednorm'+fext, np.float32(normsky), objhead, clobber=True) # Problem 4 # see routine skycormednorm() in medcombine.py # Problem 5 for k in np.arange(nobj): objdata[k] = mc.skycormednorm(objdata[k], normsky, normregion) # save # make the data float32, not float64, to save space pf.writeto(objfile[-1]+'_nosky'+fext, np.float32(objdata[-1]), objhead, clobber=True)...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern