Changeset 37475 for trunk/ippToPsps/jython/stackbatch.py
- Timestamp:
- Oct 8, 2014, 11:05:28 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r37450 r37475 161 161 162 162 self.dropTableVerbose("StackObjectThin") 163 self.dropTableVerbose("StackObject Raw")163 self.dropTableVerbose("StackObjectAttributes") 164 164 165 165 self.dropTableVerbose("StackModelFitExtra") … … 169 169 170 170 self.dropTableVerbose("StackApFlx") 171 self.dropTableVerbose("StackApFlx Full")172 self.dropTableVerbose("StackApFlx FullC1")173 self.dropTableVerbose("StackApFlx FullC2")171 self.dropTableVerbose("StackApFlxEGUnc") 172 self.dropTableVerbose("StackApFlxEGCon6") 173 self.dropTableVerbose("StackApFlxEGCon8") 174 174 175 175 self.dropTableVerbose("StackPetrosian") … … 374 374 375 375 ''' 376 Populates the StackObject Rawtable377 ''' 378 def populateStackObject Raw(self):379 380 tablename = "StackObject Raw"376 Populates the StackObjectAttributes table 377 ''' 378 def populateStackObjectAttributes(self): 379 380 tablename = "StackObjectAttributes" 381 381 382 382 self.logger.infoPair("Procesing table", tablename) … … 558 558 # insert detection information for each filter based on the 559 559 # DVO contents. Since I already have extracted 560 # StackObject Raw, this is probably faster using that table:560 # StackObjectAttributes, this is probably faster using that table: 561 561 sqlLine = sqlUtility("UPDATE " + tablename + " AS a, " + self.scratchDb.dvoDetectionTable + " as b SET") 562 562 sqlLine.group("a." + filter + model + "Mag", "a." + filter + model + "Mag + b.zp") … … 592 592 593 593 # insert detection information for each filter based on the DVO contents 594 sqlLine = sqlUtility("UPDATE " + tablename + " AS a, StackObjectThin as b, StackObject Rawas c SET ")594 sqlLine = sqlUtility("UPDATE " + tablename + " AS a, StackObjectThin as b, StackObjectAttributes as c SET ") 595 595 sqlLine.group(extR, rawR + " - (" + extR + " - " + rawX + ")*" + rawS + " / 3600.0 / cos(radians(" + rawD + "))") 596 596 sqlLine.group(extD, rawD + " + (" + extD + " - " + rawY + ")*" + rawS + " / 3600.0") … … 699 699 700 700 for filter in self.filters: 701 self.populateStackApFlxFilter(tablename, " ", filter)702 self.populateStackApFlxFilter(tablename, "C 1", filter)703 self.populateStackApFlxFilter(tablename, "C 2", filter)701 self.populateStackApFlxFilter(tablename, "Unc", filter) 702 self.populateStackApFlxFilter(tablename, "Con6", filter) 703 self.populateStackApFlxFilter(tablename, "Con8", filter) 704 704 705 705 self.deleteRowsWithNoStackData(tablename) … … 707 707 708 708 ''' 709 Populates the StackApFlx Fulltable710 ''' 711 def populateStackApFlx Full(self, version):712 713 tablename = "StackApFlx Full" + version709 Populates the StackApFlxEG table 710 ''' 711 def populateStackApFlxEG(self, version): 712 713 tablename = "StackApFlxEG" + version 714 714 715 715 if self.config.camera == "simtest": … … 730 730 731 731 ''' 732 Updates aperture fluxes for StackApF kx table732 Updates aperture fluxes for StackApFlx table 733 733 ''' 734 734 def populateStackApFlxFilter(self, tablename, version, filter): … … 737 737 738 738 # order of the 3 convolutions is fixed (raw, C1, C2) = (1, 2, 3) 739 if version == " ":739 if version == "Unc": 740 740 psfCondition = "(b.table_index % 3 = 1)" 741 741 prefix = "" 742 if version == "C 1":742 if version == "Con6": 743 743 psfCondition = "(b.table_index % 3 = 2)" 744 prefix = "c 1"745 if version == "C 2":744 prefix = "c6" 745 if version == "Con8": 746 746 psfCondition = "(b.table_index % 3 = 0)" 747 prefix = "c 2"747 prefix = "c8" 748 748 749 749 if prefix == "none": … … 1053 1053 self.populateStackObjectThin() 1054 1054 1055 self.populateStackObject Raw()1055 self.populateStackObjectAttributes() 1056 1056 1057 1057 if self.stackType != "NIGHTLY_STACK": … … 1070 1070 self.populateStackApFlx() 1071 1071 1072 self.populateStackApFlx Full("")1073 self.populateStackApFlx Full("C1")1074 self.populateStackApFlx Full("C2")1072 self.populateStackApFlxEG("Unc") 1073 self.populateStackApFlxEG("Con6") 1074 self.populateStackApFlxEG("Con8") 1075 1075 1076 1076 # delete rows with no content. for the other tables, this is done in
Note:
See TracChangeset
for help on using the changeset viewer.
