- Timestamp:
- Aug 4, 2014, 4:48:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippToPsps/jython/stackbatch.py
r37179 r37186 157 157 158 158 self.dropTableVerbose("StackObjectThin") 159 self.dropTableVerbose("StackObject Extra")159 self.dropTableVerbose("StackObjectRaw") 160 160 161 self.dropTableVerbose("StackApFlx") 162 163 self.dropTableVerbose("StackModelFitThin") 161 self.dropTableVerbose("StackModelFitExtra") 164 162 self.dropTableVerbose("StackModelFitDeV") 165 163 self.dropTableVerbose("StackModelFitExp") 166 164 self.dropTableVerbose("StackModelFitSer") 167 self.dropTableVerbose("StackModelFitPet") 168 self.dropTableVerbose("StackModelFitFlx") 169 self.dropTableVerbose("StackModelFitFlxC1") 170 self.dropTableVerbose("StackModelFitFlxC2") 165 166 self.dropTableVerbose("StackApFlx") 167 self.dropTableVerbose("StackApFlxFull") 168 self.dropTableVerbose("StackApFlxFullC1") 169 self.dropTableVerbose("StackApFlxFullC2") 170 171 self.dropTableVerbose("StackPetrosian") 171 172 172 173 self.dropTableVerbose("StackToImage") … … 370 371 371 372 ''' 372 Populates the StackObject Extratable373 ''' 374 def populateStackObject Extra(self):375 376 tablename = "StackObject Extra"373 Populates the StackObjectRaw table 374 ''' 375 def populateStackObjectRaw(self): 376 377 tablename = "StackObjectRaw" 377 378 378 379 self.logger.infoPair("Procesing table", tablename) … … 380 381 381 382 # if we are going to add a key, do it here so it is useful 382 # self.scratchDb.createIndex( "StackObjectExtra", "objID")383 # self.scratchDb.createIndex(tablename, "objID") 383 384 384 385 self.logger.infoPair("inserting filter dependent cmf items into", tablename) … … 462 463 463 464 ''' 464 Populates the StackModelFit Thintable465 ''' 466 def populateStackModelFit Thin(self):467 468 self.logger.infoPair("Procesing table", "StackModelFit Thin")469 self.insertDvoIDs("StackModelFit Thin", "StackObjectThin")465 Populates the StackModelFitExtra table 466 ''' 467 def populateStackModelFitExtra(self): 468 469 self.logger.infoPair("Procesing table", "StackModelFitExtra") 470 self.insertDvoIDs("StackModelFitExtra", "StackObjectThin") 470 471 471 472 # if we are going to add a key, do it here so it is useful 472 # self.scratchDb.createIndex( "StackObjectExtra", "objID")473 # self.scratchDb.createIndex(tablename, "objID") 473 474 474 475 # currently, none of the fields defined by the table are generated … … 560 561 561 562 ''' 562 Populates the Stack ModelFitPettable, mainly from dictionary values found in IPP FITS header563 Populates the StackPetrosian table, mainly from dictionary values found in IPP FITS header 563 564 ''' 564 565 def populateStackPetrosian(self): 565 566 566 tablename = "Stack ModelFitPet"567 tablename = "StackPetrosian" 567 568 568 569 self.logger.infoPair("Procesing table", tablename) … … 579 580 580 581 ''' 581 Populates the Stack ModelFitPettable, mainly from dictionary values found in IPP FITS header582 Populates the StackPetrosian table, mainly from dictionary values found in IPP FITS header 582 583 ''' 583 584 def populateStackPetrosianFilter(self, filter): … … 588 589 589 590 self.logger.infoPair("Adding", "petrosians for extended sources") 590 sqlLine = sqlUtility("UPDATE Stack ModelFitPetAS a, " + filter + "SkyChip_xsrc AS b SET")591 sqlLine = sqlUtility("UPDATE StackPetrosian AS a, " + filter + "SkyChip_xsrc AS b SET") 591 592 592 593 sqlLine.group("a."+filter+"haveData", "'1'") … … 610 611 Populates the StackApFlx table 611 612 ''' 612 def populateStackApFlx Thin(self):613 def populateStackApFlx(self): 613 614 614 615 tablename = "StackApFlx" … … 629 630 630 631 ''' 631 Populates the StackApFlx table632 ''' 633 def populateStackApFlx (self, version):634 635 tablename = "Stack ModelFitFlx" + version632 Populates the StackApFlxFull table 633 ''' 634 def populateStackApFlxFull(self, version): 635 636 tablename = "StackApFlxFull" + version 636 637 637 638 self.logger.infoPair("Procesing table", tablename) … … 965 966 self.populateStackObjectThin() 966 967 967 self.populateStackObject Extra()968 self.populateStackObjectRaw() 968 969 969 970 if self.stackType != "NIGHTLY_STACK": 970 971 971 self.logger.infoPair("populating ","StackModelFit Thin")972 self.populateStackModelFit Thin()972 self.logger.infoPair("populating ","StackModelFitExtra") 973 self.populateStackModelFitExtra() 973 974 974 975 self.logger.infoPair("populating ","StackModelFit") … … 980 981 981 982 self.logger.infoPair("populating ","StackApFlx Tables") 982 self.populateStackApFlx Thin()983 984 self.populateStackApFlx ("")985 self.populateStackApFlx ("C1")986 self.populateStackApFlx ("C2")983 self.populateStackApFlx() 984 985 self.populateStackApFlxFull("") 986 self.populateStackApFlxFull("C1") 987 self.populateStackApFlxFull("C2") 987 988 988 989 # delete rows with no content. for the other tables, this is done in
Note:
See TracChangeset
for help on using the changeset viewer.
