[AstroPy] example on phot class on astropysics

Martin Beroiz martinberoiz at gmail.com
Wed Feb 19 17:33:39 EST 2014


Hello all,

I'm trying to do simple photometry on some images using the phot clases on astropysics. 
I read this page: 
http://pythonhosted.org/Astropysics/coremods/phot.html#astropysics.phot.PhotObservation

and I tried some simple calls like:

>>> import astropysics.phot as ap
>>> gs = ap.GaussianPointSpreadFunction()
>>> cent, sig = gs.fit(sc)

(Here sc is a 20x20 numpy array of float32's)

Does anyone have a simple example on how to do some aperture photometry or the profile of the star? I don't seem to find any tool to do that.

Also, 

>>> ie = ap.IsophotalEllipse(sc)
>>> ie.b

Gives the error: 
TypeError: Improper input: N=5 must not exceed M=4

ERROR: TypeError: Improper input: N=5 must not exceed M=4 [scipy.optimize.minpack]

for the same image, what could that be?



Thanks!
M.




More information about the AstroPy mailing list