IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2011, 2:06:50 PM (15 years ago)
Author:
rhenders
Message:

fixed error with skycell and added projectioncellID.

File:
1 edited

Legend:

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

    r32500 r32501  
    5757       self.filter = meta[0];
    5858       self.filter = self.filter[0:1]
     59
     60       # skycell is, eg "skycell.1133.081"
     61       # we need 1133.081 for skycell, but store as an int, so instead store 1133081
     62       # projection cell is just the 1133 bit
    5963       self.skycell = meta[1];
    60        print self.skycell
    61        # TODO HACK fix this
    62        self.skycell = self.skycell[8:12]
    63        # mangling e.g. 0683.043 into 0683043 for now until we have a schema change
    64        #self.skycell = self.skycell.replace(".", "")
     64       self.projectioncell = self.skycell[8:12]
     65       self.skycell = self.skycell[8:]
     66       self.skycell = self.skycell.replace(".", "")
     67
    6568       self.analysisVer = meta[2];
    6669
     
    102105       self.logger.infoPair("Stack type", "%s" % self.stackType)
    103106       self.logger.infoPair("Skycell", "%s" % self.skycell)
     107       self.logger.infoPair("Projectioncell", "%s" % self.projectioncell)
    104108       self.logger.infoPair("Filter", "%s" % self.filter)
    105109
     
    305309               ippDetectID \
    306310               ,skyCellID \
     311               ,projectionCellID \
    307312               ,obsTime \
    308313               ,xPos \
     
    343348               IPP_IDET \
    344349               ," + self.skycell + " \
     350               ," + self.projectioncell + " \
    345351               ," + self.header['MJD-OBS'] + " \
    346352               ,X_PSF \
Note: See TracChangeset for help on using the changeset viewer.