<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Jim et al.,<br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 26, 2015, at 9:06 AM, Jim Bosch <<a href="mailto:jbosch@astro.princeton.edu" class="">jbosch@astro.princeton.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">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.</span></div></blockquote></div><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class=""><pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: 17.000059127807617px; word-break: break-all; word-wrap: break-word; border: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; white-space: pre-wrap; vertical-align: baseline;" class="">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)</pre><div class=""><br class=""></div></div><div class="">So I am left wondering if I should input:</div><div class="">— zero point magnitude (e.g. 31) or,</div><div class="">— 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,</div><div class="">— something else?</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Will</div></body></html>