- Timestamp:
- Jun 27, 2018, 3:31:55 PM (8 years ago)
- Location:
- branches/czw_branch/20170908
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippToPsps/jython/detectionbatch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/ippToPsps/jython/detectionbatch.py
r39544 r40483 60 60 meta = self.gpc1Db.getCameraStageMeta(self.id) 61 61 if not meta: 62 self.logger.errorPair("Could not get", "camera metadata") 63 raise 62 self.logger.infoPair("Could not get camera metadata", "trying with no warp id") 63 meta = self.gpc1Db.getCameraStageMetaNoWarpID(self.id) 64 if not meta: 65 self.logger.errorPair("Could not get camera metadata", "now what?") 66 raise 67 64 68 65 69 # set a flag indicating that we have the new columns added in version 5 of the … … 80 84 self.chipID = meta[6]; 81 85 self.warpID = meta[7]; 82 86 87 83 88 if not self.analysisVer: self.analysisVer = -999 84 89 … … 815 820 sqlLine.group("a.ra", "b.ra") 816 821 sqlLine.group("a.dec", "b.dec_") 817 sqlLine.group("a.zp", "b.zp ")822 sqlLine.group("a.zp", "b.zpPSF") 818 823 sqlLine.group("a.telluricExt", "b.telluricExt") 819 824 sqlLine.group("a.airmass", "b.airmass") 820 825 sqlLine.group("a.infoFlag3", "b.flags") 821 826 sqlLine.group("a.expTime", "b.expTime") 822 sqlLine.group("a.psfFlux", "a.psfFlux * b.zpFactor ")823 sqlLine.group("a.psfFluxErr", "a.psfFluxErr * b.zpFactor ")824 sqlLine.group("a.apFlux", "a.apFlux * b.zpFactor ")825 sqlLine.group("a.apFluxErr", "a.apFluxErr * b.zpFactor ")826 sqlLine.group("a.kronFlux", "a.kronFlux * b.zpFactor ")827 sqlLine.group("a.kronFluxErr", "a.kronFluxErr * b.zpFactor ")828 sqlLine.group("a.sky", "a.sky * b.zpFactor ")829 sqlLine.group("a.skyErr", "a.skyErr * b.zpFactor ")827 sqlLine.group("a.psfFlux", "a.psfFlux * b.zpFactorPSF") 828 sqlLine.group("a.psfFluxErr", "a.psfFluxErr * b.zpFactorPSF") 829 sqlLine.group("a.apFlux", "a.apFlux * b.zpFactorAPER") 830 sqlLine.group("a.apFluxErr", "a.apFluxErr * b.zpFactorAPER") 831 sqlLine.group("a.kronFlux", "a.kronFlux * b.zpFactorAPER") 832 sqlLine.group("a.kronFluxErr", "a.kronFluxErr * b.zpFactorAPER") 833 sqlLine.group("a.sky", "a.sky * b.zpFactorAPER") 834 sqlLine.group("a.skyErr", "a.skyErr * b.zpFactorAPER") 830 835 831 836 sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID AND b.imageID = " + str(imageID)) 832 837 833 ## a.psfFlux = a.psfFlux * 3630.78 * POW(10.0, -0.4*b.zp ), \838 ## a.psfFlux = a.psfFlux * 3630.78 * POW(10.0, -0.4*b.zpPSF), \ 834 839 835 840 # instrumental flux vs Janskies: 836 # b. ZPis defined to include the airmass term and zero point offset from relative calibration or ubercal841 # b.zpPSF is defined to include the airmass term and zero point offset from relative calibration or ubercal 837 842 # (see dvopsps/src/insert_detections_dvopsps_catalog.c:311 838 843 # mag_AB = -2.5*log(flux_DN/sec) + ZP
Note:
See TracChangeset
for help on using the changeset viewer.
