IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36716


Ignore:
Timestamp:
May 1, 2014, 1:46:56 PM (12 years ago)
Author:
heather
Message:

stacks stackmeta not happy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/stackbatch.py

    r36715 r36716  
    8484           self.logger.infoPair ("finding fits file for: ","g.00000")
    8585           gfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, gstackID)
     86           self.gfits = gfits
    8687       if rstackID > 0:   
    8788           self.logger.infoPair ("finding fits file for: ","r.00000")
    8889           rfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, rstackID)
     90           self.rfits = rfits
    8991       if istackID > 0:   
    9092           self.logger.infoPair ("finding fits file for: ","i.00000")
    9193           ifits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, istackID)
     94           self.ifits = ifits
    9295       if zstackID > 0:   
    9396           self.logger.infoPair ("finding fits file for: ","z.00000")
    9497           zfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, zstackID)
     98           self.zfits = zfits
    9599       if ystackID > 0:   
    96100           self.logger.infoPair ("finding fits file for: ","y.00000")
    97101           yfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, ystackID)
     102           self.yfits = yfits
    98103
    99104       #from each of those get self.gheader, self.rheader, etc.
     
    104109                   self.logger.errorPair("could not read FITS PHU for ",gstackID)
    105110                   raise
     111               self.gheader = gheader
    106112       if rstackID > 0:       
    107113           if rfits:
     
    110116                   self.logger.errorPair("could not read FITS PHU for ",rstackID)
    111117                   raise
     118               self.rheader = rheader
    112119       if istackID > 0:       
    113120           if ifits:
     
    116123                   self.logger.errorPair("could not read FITS PHU for ",istackID)
    117124                   raise
     125               self.iheader = iheader
    118126       if zstackID > 0:
    119127           if zfits:
     
    122130                   self.logger.errorPair("could not read FITS PHU for ",zstackID)
    123131                   raise
     132               self.zheader = zheader
    124133       if ystackID > 0:
    125134           if yfits:
     
    128137                   self.logger.errorPair("could not read FITS PHU for ",ystackID)
    129138                   raise
    130 
     139               self.yheader = yheader
    131140       # get stack meta data
     141       self.gstackID = gstackID
     142       self.rstackID = rstackID
     143       self.istackID = istackID     
     144       self.zstackID = zstackID
     145       self.ystackID = ystackID
     146
    132147       metastackid = -999
    133148       if gstackID > 0:
     
    180195       # self.skycell = str( (tessID * (10000 * 1000)) + (int(self.projectioncell) * 1000) + cellID )
    181196
    182        ##self.analysisVer = meta[2];
     197       self.analysisVer = meta[2];
    183198
    184199       #self.expTime = gpc1Db.getStackExpTime(self.id)
    185        ##self.expTime = self.header['EXPTIME']
    186 
     200       
    187201       # delete PSPS tables
    188202       self.scratchDb.dropTable("gStackMeta")
     
    224238
    225239       # create an output filename, which is {stackID}.FITS
     240       self.logger.infoPair( "self.id", self.id)
     241       self.logger.infoPair ("self.localOutPath",self.localOutPath)
    226242       self.outputFitsFile = "%08d.FITS" % self.id
    227243       self.outputFitsPath = "%s/%s" % (self.localOutPath, self.outputFitsFile)
    228 
     244       self.logger.infoPair("self.outputFitsFile",self.outputFitsFile)
     245       
    229246       # set some constants
    230247       self.historyModNum = "0"
     
    491508    Populates the StackMeta table, mainly from dictionary values found in IPP FITS header
    492509    '''
    493     def populateStackMeta(self):
     510    def populateStackMeta(self,filter):
    494511
    495512        self.logger.infoPair("Procesing table", "StackMeta")
     
    971988        # dec is reserved in MySQL, so STILTS replaces if with dec_, which is not the name of
    972989        # the column in PSPS
    973         self.scratchDb.execute("ALTER TABLE StackObject CHANGE dec_ `dec` double")
     990        ## we don't have that in stacks anymore (it is now gdec/rdec/etc)
     991        ##self.scratchDb.execute("ALTER TABLE StackObject CHANGE dec_ `dec` double")
    974992
    975993        return True
Note: See TracChangeset for help on using the changeset viewer.