- Timestamp:
- Oct 9, 2013, 4:06:09 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130904/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
jython/stackbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/ippToPsps
- Property svn:mergeinfo changed
/trunk/ippToPsps (added) merged: 36098-36099,36147
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/ippToPsps/jython/stackbatch.py
r35780 r36192 645 645 ,petRadiusErr=b.PETRO_RADIUS_ERR \ 646 646 ,petFlux=POW(10.0, -0.4 * b.PETRO_MAG) /" + str(self.expTime) + " \ 647 ,petFluxErr= ABS(b.PETRO_MAG_ERR) * POW(10.0, (-0.4*b.PETRO_MAG)) / " + str(self.expTime) + " / 1.085736\647 ,petFluxErr=-999 \ 648 648 ,petR50=b.PETRO_RADIUS_50 \ 649 649 ,petR50Err=b.PETRO_RADIUS_50_ERR \ … … 653 653 WHERE a.ippDetectID=b.IPP_IDET" 654 654 self.scratchDb.execute(sql) 655 656 self.logger.infoPair("Adding", "petFluxErr for non nulls") 657 sql = "UPDATE StackApFlx as a, SkyChip_xsrc AS b SET \ 658 petFluxErr=ABS(b.PETRO_MAG_ERR) * POW(10.0, (-0.4*b.PETRO_MAG)) / " + str(self.expTime) + " / 1.085736 \ 659 WHERE a.ippDetectID=b.IPP_IDET \ 660 AND (b.PETRO_MAG_ERR is not NULL AND b.PETRO_MAG is not NULL AND PETRO_MAG_ERR < 1000.0)" 661 # added this because when the petromagerr is crazy large (10^29 it out of ranges the flux err calc) 662 self.logger.infoPair("sql", sql) 663 self.scratchDb.execute(sql) 664 665 655 666 656 667 self.logger.infoPair("adding"," PrimaryF to stackApFlx")
Note:
See TracChangeset
for help on using the changeset viewer.
