[LSST|dm-users 682] Re: How to Use meas_modelfit to Measure Sersic Properties

Will Dawson will at dawsonresearch.com
Wed May 27 16:32:51 PDT 2015


Jim et al.,

> On May 26, 2015, at 9:06 AM, Jim Bosch <jbosch at astro.princeton.edu> wrote:
> 
> In this case, "Calib" object refers to "afw.image.Calib", which is the object we attach to an Exposure to store its magnitude zeropoint (and other photometric calibration information).  CModel needs it (as well as a Wcs) because it works in absolute units so it can use Bayesian priors (though it just uses flat priors by default).  So if you can construct a afw.image.Calib object, give it a reasonable zeropoint, and add it to the Exposure (with exposure.setCalib(...)), that should solve your problem.

Follow up question regarding setting the zero point with lsst.afw.image.Calib. I see a function called lsst.afw.image.Calib.setFluxMag0() but it isn’t clear from the title of this function what input I should give it, and the doc string returns:

Help on method setFluxMag0 in module lsst.afw.image.imageLib:

setFluxMag0(self, *args) unbound lsst.afw.image.imageLib.Calib method
    setFluxMag0(Calib self, double fluxMag0, double fluxMag0Sigma=0.0)
    setFluxMag0(Calib self, double fluxMag0)
    setFluxMag0(Calib self, pairDoubleDouble fluxMag0AndSigma)

So I am left wondering if I should input:
— zero point magnitude (e.g. 31) or,
— flux for a zeroth mag object (e.g. 4760 Jy; Schneider, Gunn, & Hoessel (1983)). If so what units and I guess I should specify other telescope specific properties. Or,
— something else?

For coding simplicity I am guessing it is just the zero point magnitude, but the function name is making me nervous about simply assuming that.

Thanks,
Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lsst.org/pipermail/dm-users/attachments/20150527/9e12970b/attachment.html>


More information about the dm-users mailing list