IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2014, 4:48:50 PM (12 years ago)
Author:
eugene
Message:

rename stack tables for consistency and clariy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/stackbatch.py

    r37179 r37186  
    157157
    158158       self.dropTableVerbose("StackObjectThin")
    159        self.dropTableVerbose("StackObjectExtra")
     159       self.dropTableVerbose("StackObjectRaw")
    160160       
    161        self.dropTableVerbose("StackApFlx")
    162        
    163        self.dropTableVerbose("StackModelFitThin")
     161       self.dropTableVerbose("StackModelFitExtra")
    164162       self.dropTableVerbose("StackModelFitDeV")
    165163       self.dropTableVerbose("StackModelFitExp")
    166164       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")
    171172
    172173       self.dropTableVerbose("StackToImage")
     
    370371
    371372    '''
    372     Populates the StackObjectExtra table
    373     '''
    374     def populateStackObjectExtra(self):
    375 
    376         tablename = "StackObjectExtra"
     373    Populates the StackObjectRaw table
     374    '''
     375    def populateStackObjectRaw(self):
     376
     377        tablename = "StackObjectRaw"
    377378
    378379        self.logger.infoPair("Procesing table", tablename)
     
    380381
    381382        # 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")
    383384
    384385        self.logger.infoPair("inserting filter dependent cmf items into", tablename)
     
    462463
    463464    '''
    464     Populates the StackModelFitThin table
    465     '''
    466     def populateStackModelFitThin(self):
    467 
    468         self.logger.infoPair("Procesing table", "StackModelFitThin")
    469         self.insertDvoIDs("StackModelFitThin", "StackObjectThin")
     465    Populates the StackModelFitExtra table
     466    '''
     467    def populateStackModelFitExtra(self):
     468
     469        self.logger.infoPair("Procesing table", "StackModelFitExtra")
     470        self.insertDvoIDs("StackModelFitExtra", "StackObjectThin")
    470471
    471472        # 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")
    473474
    474475        # currently, none of the fields defined by the table are generated
     
    560561
    561562    '''
    562     Populates the StackModelFitPet table, mainly from dictionary values found in IPP FITS header
     563    Populates the StackPetrosian table, mainly from dictionary values found in IPP FITS header
    563564    '''
    564565    def populateStackPetrosian(self):
    565566
    566         tablename = "StackModelFitPet"
     567        tablename = "StackPetrosian"
    567568
    568569        self.logger.infoPair("Procesing table", tablename)
     
    579580
    580581    '''
    581     Populates the StackModelFitPet table, mainly from dictionary values found in IPP FITS header
     582    Populates the StackPetrosian table, mainly from dictionary values found in IPP FITS header
    582583    '''
    583584    def populateStackPetrosianFilter(self, filter):
     
    588589
    589590        self.logger.infoPair("Adding", "petrosians for extended sources")
    590         sqlLine = sqlUtility("UPDATE StackModelFitPet AS a, " + filter + "SkyChip_xsrc AS b SET")
     591        sqlLine = sqlUtility("UPDATE StackPetrosian AS a, " + filter + "SkyChip_xsrc AS b SET")
    591592
    592593        sqlLine.group("a."+filter+"haveData",         "'1'")
     
    610611    Populates the StackApFlx table
    611612    '''
    612     def populateStackApFlxThin(self):
     613    def populateStackApFlx(self):
    613614
    614615        tablename = "StackApFlx"
     
    629630
    630631    '''
    631     Populates the StackApFlx table
    632     '''
    633     def populateStackApFlx(self, version):
    634 
    635         tablename = "StackModelFitFlx" + version
     632    Populates the StackApFlxFull table
     633    '''
     634    def populateStackApFlxFull(self, version):
     635
     636        tablename = "StackApFlxFull" + version
    636637
    637638        self.logger.infoPair("Procesing table", tablename)
     
    965966        self.populateStackObjectThin()
    966967
    967         self.populateStackObjectExtra()
     968        self.populateStackObjectRaw()
    968969
    969970        if self.stackType != "NIGHTLY_STACK":
    970971
    971             self.logger.infoPair("populating ","StackModelFitThin")
    972             self.populateStackModelFitThin()
     972            self.logger.infoPair("populating ","StackModelFitExtra")
     973            self.populateStackModelFitExtra()
    973974
    974975            self.logger.infoPair("populating ","StackModelFit")
     
    980981
    981982            self.logger.infoPair("populating ","StackApFlx Tables")
    982             self.populateStackApFlxThin()
    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")
    987988
    988989        # delete rows with no content. for the other tables, this is done in
Note: See TracChangeset for help on using the changeset viewer.