View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

How does fitparams obtain the sigma column?

Gabriel wrote on May 04, 2017


I'm trying to reproduce the 'sigma' column returned by the photcal.fitparams task (http://stsdas.stsci.edu/cgi-bin/gethelp.cgi?fitparams); see page 32 of the guide:

https://www.mn.uio.no/astro/english/services/it/help/visualization/iraf/daophot2.pdf

Following the trace, I see that the 'iraf/pkg/xtools/inlfit/ingresults.gx' file writes to that column the following values:

(sqrt (PIXEL (1.0) / Mem$t[wts1+i-1]))

I assume 'Mem$t[wts1+i-1]' is some kind of standard deviation? How can I reproduce the values in that column manually?

Also, since I'm at it, how is the 'average scatter' value obtained (also shown in the above mentioned page)? I tried:

mean(abs(function - fit))

but I can't reproduce the values shown there.

Last post on May 04, 2017