IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39094 for trunk


Ignore:
Timestamp:
Nov 9, 2015, 5:55:53 PM (11 years ago)
Author:
eugene
Message:

2.5log(exptime) should be added, not subtracted, from deteff; fix the assignment of skycell/projection/tess ID in diff and forcedwarp; get zpImage from header for Diffs (dvo does NOT calculate); apply platescale to GalShape sizes; remove StackDetectRowID

Location:
trunk/ippToPsps/jython
Files:
6 edited

Legend:

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

    r39027 r39094  
    600600               
    601601           # replace nulls and empty fields with weird PSPS -999 pseudo-null
     602           # this should be sufficient to handle all NANs (which go in as NULL)
    602603           _table = stilts.tpipe(_table, cmd='replaceval "" -999 *')
    603604           self.logger.infoPair('regex', regex)
  • trunk/ippToPsps/jython/detectionbatch.py

    r39017 r39094  
    241241
    242242        # XXX zp correction should come from DVO
    243         detectionThreshold = detectionThreshold + zpImage - 2.5 * math.log10(expTime)
     243        detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime)
    244244       
    245245        # insert image metadata into table
     
    489489        else:
    490490            sqlLine.group("pltScale",     "0.257")                                     
    491             sqlLine.group("posAngle",     "-999")                                     
     491            # sqlLine.group("posAngle",     "-999")                                     
    492492            sqlLine.group("raErr",        "X_PSF_SIG * 0.257")
    493493            sqlLine.group("decErr",       "Y_PSF_SIG * 0.257")
  • trunk/ippToPsps/jython/diffbatch.py

    r39084 r39094  
    55import glob
    66import time
     7import math
    78import stilts
    89import re
     
    154155           self.logger.infoPair("TessName ",tessName)
    155156
    156            # XXX EAM 20140812 : I am hardwiring the parsing logic for RINGS vs LOCAL
    157157           if self.tessName[num] == 'RINGS.V3':
    158            # skycell is, eg "skycell.1133.081"
    159            #                 0123456789012345
     158               # skycell is, eg "skycell.1133.081"
     159               #                 0123456789012345
    160160               self.projectionID[num] = self.skycellName[num][8:12]
    161                self.skycellID[num] = self.skycellName[num][13:]
    162                self.skycellID[num] = self.skycellName[num][8:]
     161               self.skycellID[num] = self.skycellName[num][13:]
    163162           else:
    164            # skycell is, eg "skycell.081"
    165            #                 01234567890
     163               # skycell is, eg "skycell.081"
     164               #                 01234567890
    166165               self.projectionID[num] = 0
    167                self.skycellID[num] = self.skycellName[num][8:11]
    168                self.skycellID[num]=self.skycellName[num][8:]
    169            if self.skycellID[num] == "":
     166               self.skycellID[num] = self.skycellName[num][8:]
     167               
     168           if self.projectionID[num] == "":
     169               self.projectionID[num] = -1
     170           if self.skycellID[num] == "":
    170171               self.skycellID[num] = -1
    171172
     
    183184           self.psfModelID[num]  = self.scratchDb.getFitModelID(self.psfModelName[num])
    184185
    185 
    186186           # drop the existing tables   
    187187
     
    191191           self.dropTableVerbose("DiffDetEffMeta_"+str(num))
    192192
    193            if not self.analysisVer[num]: self.analysisVer[num] = -999
     193           # if not self.analysisVer[num]: self.analysisVer[num] = -999
    194194
    195195           self.logger.infoPair("getPhotoCalID",diffSkyFileID)
     
    222222        self.logger.infoPair("Proccesing table", "DiffMeta_"+str(num))
    223223
     224        header = self.header[num]
     225
     226        # Convert detectionThreshold to appropriate magnitudes
     227        detectionThreshold = self.getKeyFloat(header, "%.8f", 'DETEFF.MAGREF')
     228        zpImage            = self.getKeyFloat(header, "%.8f", 'FPA.ZP')
     229           
     230        detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(float(self.expTime[num]))
     231
    224232        sql = "CREATE TABLE DiffMeta_"+str(num)+" like DiffMeta"
    225233        try: self.scratchDb.execute(sql)
     
    234242        sqlLine.group("negImageID",            self.negImageID[num]);
    235243        sqlLine.group("ippDiffID",             self.ippDiffID[num]);
     244        sqlLine.group("tessID",                str(self.tessID[num]))
    236245        sqlLine.group("projectionID",          str(self.projectionID[num]))
    237246        sqlLine.group("skycellID",             str(self.skycellID[num]))
     
    239248        sqlLine.group("analysisVer",           str(self.analysisVer[num]));
    240249        sqlLine.group("md5sum",                str(self.md5sum[num]))
     250        sqlLine.group("detectionThreshold",    detectionThreshold)
    241251        sqlLine.group("expTime",               self.expTime[num]);
    242252        sqlLine.group("psfModelID",            self.psfModelID[num])
     
    244254        sqlLine.group("psfWidMajor",           self.psfFwhmMajor[num])
    245255        sqlLine.group("psfWidMinor",           self.psfFwhmMinor[num])
    246         sqlLine.group("kernel",                self.getKeyValue(self.header[num], 'SUBTRACTION.KERNEL'))
    247         sqlLine.group("mode",                  self.getKeyValue(self.header[num], 'SUBTRACTION.MODE'))
    248         sqlLine.group("psfTheta",              self.getKeyFloat(self.header[num], "%.8f", 'ANGLE'))
    249         sqlLine.group("numStamps",             self.getKeyValue(self.header[num], 'SUBTRACTION.STAMPS'))
    250         sqlLine.group("stampDevMean",          self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DEV.MEAN'))
    251         sqlLine.group("stampDevRMS",           self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DEV.RMS'))
    252         sqlLine.group("normalization",         self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.NORM'))
    253         sqlLine.group("convolveMax",           self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.CONV.MAX'))
    254         sqlLine.group("deconvolveMax",         self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DECONV.MAX'))
    255         sqlLine.group("ctype1",                self.getKeyValue(self.header[num], 'CTYPE1'));
    256         sqlLine.group("ctype2",                self.getKeyValue(self.header[num], 'CTYPE2'));
    257         sqlLine.group("crval1",                self.getKeyFloat(self.header[num], "%.8f", 'CRVAL1'));
    258         sqlLine.group("crval2",                self.getKeyFloat(self.header[num], "%.8f", 'CRVAL2'));
    259         sqlLine.group("crpix1",                self.getKeyFloat(self.header[num], "%.8f", 'CRPIX1'));
    260         sqlLine.group("crpix2",                self.getKeyFloat(self.header[num], "%.8f", 'CRPIX2'));
    261         sqlLine.group("cdelt1",                self.getKeyFloat(self.header[num], "%.8e", 'CDELT1'));
    262         sqlLine.group("cdelt2",                self.getKeyFloat(self.header[num], "%.8e", 'CDELT2'));
    263         sqlLine.group("pc001001",              self.getKeyFloat(self.header[num], "%.8e", 'PC001001'));
    264         sqlLine.group("pc001002",              self.getKeyFloat(self.header[num], "%.8e", 'PC001002'));
    265         sqlLine.group("pc002001",              self.getKeyFloat(self.header[num], "%.8e", 'PC002001'));
    266         sqlLine.group("pc002002",              self.getKeyFloat(self.header[num], "%.8e", 'PC002002'));
     256
     257        sqlLine.group("kernel",                self.getKeyValue(header, 'SUBTRACTION.KERNEL'))
     258        sqlLine.group("mode",                  self.getKeyValue(header, 'SUBTRACTION.MODE'))
     259        sqlLine.group("psfTheta",              self.getKeyFloat(header, "%.8f", 'ANGLE'))
     260        sqlLine.group("numStamps",             self.getKeyValue(header, 'SUBTRACTION.STAMPS'))
     261        sqlLine.group("stampDevMean",          self.getKeyFloat(header, "%.8e", 'SUBTRACTION.DEV.MEAN'))
     262        sqlLine.group("stampDevRMS",           self.getKeyFloat(header, "%.8e", 'SUBTRACTION.DEV.RMS'))
     263        sqlLine.group("normalization",         self.getKeyFloat(header, "%.8e", 'SUBTRACTION.NORM'))
     264        sqlLine.group("convolveMax",           self.getKeyFloat(header, "%.8e", 'SUBTRACTION.CONV.MAX'))
     265        sqlLine.group("deconvolveMax",         self.getKeyFloat(header, "%.8e", 'SUBTRACTION.DECONV.MAX'))
     266        sqlLine.group("ctype1",                self.getKeyValue(header, 'CTYPE1'));
     267        sqlLine.group("ctype2",                self.getKeyValue(header, 'CTYPE2'));
     268        sqlLine.group("crval1",                self.getKeyFloat(header, "%.8f", 'CRVAL1'));
     269        sqlLine.group("crval2",                self.getKeyFloat(header, "%.8f", 'CRVAL2'));
     270        sqlLine.group("crpix1",                self.getKeyFloat(header, "%.8f", 'CRPIX1'));
     271        sqlLine.group("crpix2",                self.getKeyFloat(header, "%.8f", 'CRPIX2'));
     272        sqlLine.group("cdelt1",                self.getKeyFloat(header, "%.8e", 'CDELT1'));
     273        sqlLine.group("cdelt2",                self.getKeyFloat(header, "%.8e", 'CDELT2'));
     274        sqlLine.group("pc001001",              self.getKeyFloat(header, "%.8e", 'PC001001'));
     275        sqlLine.group("pc001002",              self.getKeyFloat(header, "%.8e", 'PC001002'));
     276        sqlLine.group("pc002001",              self.getKeyFloat(header, "%.8e", 'PC002001'));
     277        sqlLine.group("pc002002",              self.getKeyFloat(header, "%.8e", 'PC002002'));
    267278
    268279        sql = sqlLine.make(") VALUES ( ", ")")
     
    323334            sqlLine.group("filterID",        str(self.filterID[num]))
    324335            sqlLine.group("surveyID",        str(self.surveyID))
     336            sqlLine.group("tessID",          str(self.tessID[num]))
     337            sqlLine.group("projectionID",    str(self.projectionID[num]))
    325338            sqlLine.group("skycellID",       str(self.skycellID[num]))
    326339            sqlLine.group("expTime",         str(self.expTime[num]))
     
    336349                sqlLine.group("decErr",          "Y_PSF_SIG * abs(PLTSCALE)")
    337350            else:
    338                 sqlLine.group("pltScale",        "0.257")
    339                 sqlLine.group("posAngle",        "-999")
     351                sqlLine.group("pltScale",        "0.25")
     352                # sqlLine.group("posAngle",        "-999")
    340353                sqlLine.group("raErr",           "X_PSF_SIG * 0.25")
    341354                sqlLine.group("decErr",          "Y_PSF_SIG * 0.25")
     
    433446        self.logger.infoPair("Dropping row column from", "DiffDetection table")
    434447        self.scratchDb.dropColumn("DiffDetection_"+str(num), "row")
    435  
    436448
    437449    '''
     
    494506
    495507        header = self.header[num]
    496         # CZW: this is broken, and can't get the zeropoint
    497         #        zpImage = self.scratchDb.getImageZeroPoint(diffSkyFileID)
    498         zpImage = 0.0
    499 
    500         if zpImage < 0.0:
    501             zpImage = 0.0
     508        zpImage = self.getKeyFloat(header,"%.8f","FPA.ZP")
     509
    502510        if zpImage == 0.0:
    503511            self.logger.infoPair("CZW If this value for the zeropoint is zero, the getImageZeroPoint call is likely still broken", str(zpImage))
    504512
    505 
    506513        magref = self.getKeyFloat(header,"%.8f","DETEFF.MAGREF") + zpImage
    507514        self.logger.infoPair("Found zeropoint and set magref", str(magref))
    508         self.logger.infoPair("CZW If that magref is -5.804804, then it's reading from the PHU, not the Deteff extension.","In a test, I mean.")
     515
    509516        sqlLine = sqlUtility("INSERT INTO " + ippTableName + "(")
    510517        sqlLine.group("diffImageID", str(diffSkyFileID))
    511518        sqlLine.group("magref",       magref)
    512519        sql = sqlLine.make(") VALUES ( ", ")")
    513            
    514520
    515521        try: self.scratchDb.execute(sql)
  • trunk/ippToPsps/jython/forcedgalaxybatch.py

    r39079 r39094  
    147147            photcode = self.scratchDb.getPhotcodeByName(photcodeName)
    148148           
     149            # XXX hard-wired platescale : 0.25
     150            pltscale = 0.25
     151
    149152            # This is going to need to join elsewhere to get all the fields?
    150153            # XforcedSummaryID, Ra, Dec, RaErr, DecErr
     
    154157            sqlLine.group("a." + filter[1] + "ippDetectID",     "b.DET_ID")
    155158            sqlLine.group("a." + filter[1] + "stackImageID",    "b.IMAGE_ID")
    156             sqlLine.group("a." + filter[1] + "GalMajor",        "b.MAJOR_AXIS")
    157             sqlLine.group("a." + filter[1] + "GalMajorErr",     "b.MAJOR_AXIS_ERR")
    158             sqlLine.group("a." + filter[1] + "GalMinor",        "b.MINOR_AXIS")
    159             sqlLine.group("a." + filter[1] + "GalMinorErr",     "b.MINOR_AXIS_ERR")
     159            sqlLine.group("a." + filter[1] + "GalMajor",        "b.MAJOR_AXIS     * " + str(pltscale))
     160            sqlLine.group("a." + filter[1] + "GalMajorErr",     "b.MAJOR_AXIS_ERR * " + str(pltscale))
     161            sqlLine.group("a." + filter[1] + "GalMinor",        "b.MINOR_AXIS     * " + str(pltscale))
     162            sqlLine.group("a." + filter[1] + "GalMinorErr",     "b.MINOR_AXIS_ERR * " + str(pltscale))
    160163            sqlLine.group("a." + filter[1] + "GalMag",          "b.MAG")
    161164            sqlLine.group("a." + filter[1] + "GalMagErr",       "b.MAG_ERR")
  • trunk/ippToPsps/jython/forcedwarpbatch.py

    r39065 r39094  
    269269        sqlLine.group("photoZero",      zpImage)
    270270
    271         # photoColor -- how do I set this? it's also not set in stack meta
    272271        sqlLine.group("ctype1",         self.getKeyValue(header, 'CTYPE1'));
    273272        sqlLine.group("ctype2",         self.getKeyValue(header, 'CTYPE2'));
     
    482481        sqlLine = sqlUtility("INSERT INTO " + pspsTableName + " (")
    483482        sqlLine.group("ippDetectID",     "IPP_IDET")
    484         sqlLine.group("flxR5", "APER_FLUX_3")
    485         sqlLine.group("flxR5Err", "APER_FLUX_ERR_3" )
    486         sqlLine.group("flxR5Std", "APER_FLUX_STDEV_3")
    487         sqlLine.group("flxR5Fill", "APER_FILL_3")
    488         sqlLine.group("flxR6", "APER_FLUX_4")
    489         sqlLine.group("flxR6Err", "APER_FLUX_ERR_4" )
    490         sqlLine.group("flxR6Std", "APER_FLUX_STDEV_4")
    491         sqlLine.group("flxR6Fill", "APER_FILL_4")
    492         sqlLine.group("flxR7", "APER_FLUX_5")
    493         sqlLine.group("flxR7Err", "APER_FLUX_ERR_5" )
    494         sqlLine.group("flxR7Std", "APER_FLUX_STDEV_5")
    495         sqlLine.group("flxR7Fill", "APER_FILL_5")
     483        sqlLine.group("flxR5",           "APER_FLUX_3")
     484        sqlLine.group("flxR5Err",        "APER_FLUX_ERR_3" )
     485        sqlLine.group("flxR5Std",        "APER_FLUX_STDEV_3")
     486        sqlLine.group("flxR5Fill",       "APER_FILL_3")
     487        sqlLine.group("flxR6",           "APER_FLUX_4")
     488        sqlLine.group("flxR6Err",        "APER_FLUX_ERR_4" )
     489        sqlLine.group("flxR6Std",        "APER_FLUX_STDEV_4")
     490        sqlLine.group("flxR6Fill",       "APER_FILL_4")
     491        sqlLine.group("flxR7",           "APER_FLUX_5")
     492        sqlLine.group("flxR7Err",        "APER_FLUX_ERR_5" )
     493        sqlLine.group("flxR7Std",        "APER_FLUX_STDEV_5")
     494        sqlLine.group("flxR7Fill",       "APER_FILL_5")
    496495
    497496        sql = sqlLine.makeRaw(") SELECT ", " FROM " + ippTableName)
     
    501500        self.logger.infoPair("adding objID, etc from", fMeasTableName)
    502501        sqlLine = sqlUtility("UPDATE " + pspsTableName + " as a, " + fMeasTableName + " as b SET ")
    503         sqlLine.group("a.objID","b.objID")
     502        sqlLine.group("a.objID",         "b.objID")
    504503        sqlLine.group("a.uniquePspsFWid","b.uniquePspsFWid")
    505         sqlLine.group("a.detectID","b.detectID")
    506         sqlLine.group("a.ippObjID","b.ippObjID")
    507         sqlLine.group("a.filterID","b.filterID")
    508         sqlLine.group("a.surveyID","b.surveyID")
    509         sqlLine.group("a.forcedWarpID","b.forcedWarpID")
    510         sqlLine.group("a.randomWarpID","b.randomWarpID")
    511         sqlLine.group("a.skycellID","b.skycellID")
    512         sqlLine.group("a.dvoRegionID","b.dvoRegionID")
    513         sqlLine.group("a.obsTime","b.obsTime")
    514         sql = sqlLine.makeEquals("Where a.ippDetectID = b.ippDetectID")
     504        sqlLine.group("a.detectID",      "b.detectID")
     505        sqlLine.group("a.ippObjID",      "b.ippObjID")
     506        sqlLine.group("a.filterID",      "b.filterID")
     507        sqlLine.group("a.surveyID",      "b.surveyID")
     508        sqlLine.group("a.forcedWarpID",  "b.forcedWarpID")
     509        sqlLine.group("a.randomWarpID",  "b.randomWarpID")
     510        sqlLine.group("a.tessID",        "b.tessID")
     511        sqlLine.group("a.projectionID",  "b.projectionID")
     512        sqlLine.group("a.skycellID",     "b.skycellID")
     513        sqlLine.group("a.dvoRegionID",   "b.dvoRegionID")
     514        sqlLine.group("a.obsTime",       "b.obsTime")
     515        sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID")
    515516        self.scratchDb.execute(sql)
    516517       
     
    539540        sqlLine.group("lensObjSmearX12", "LENS_X12_SM_OBJ")
    540541        sqlLine.group("lensObjSmearX22", "LENS_X22_SM_OBJ")
    541         sqlLine.group("lensObjSmearE1", "LENS_E1_SM_OBJ")
    542         sqlLine.group("lensObjSmearE2", "LENS_E2_SM_OBJ")
     542        sqlLine.group("lensObjSmearE1",  "LENS_E1_SM_OBJ")
     543        sqlLine.group("lensObjSmearE2",  "LENS_E2_SM_OBJ")
    543544        sqlLine.group("lensObjShearX11", "LENS_X11_SH_OBJ")
    544545        sqlLine.group("lensObjShearX12", "LENS_X12_SH_OBJ")
    545546        sqlLine.group("lensObjShearX22", "LENS_X22_SH_OBJ")
    546         sqlLine.group("lensObjShearE1", "LENS_E1_SH_OBJ")
    547         sqlLine.group("lensObjShearE2", "LENS_E2_SH_OBJ")
     547        sqlLine.group("lensObjShearE1",  "LENS_E1_SH_OBJ")
     548        sqlLine.group("lensObjShearE2",  "LENS_E2_SH_OBJ")
    548549        sqlLine.group("lensPSFSmearX11", "LENS_X11_SM_PSF")
    549550        sqlLine.group("lensPSFSmearX12", "LENS_X12_SM_PSF")
    550551        sqlLine.group("lensPSFSmearX22", "LENS_X22_SM_PSF")
    551         sqlLine.group("lensPSFSmearE1", "LENS_E1_SM_PSF")
    552         sqlLine.group("lensPSFSmearE2", "LENS_E2_SM_PSF")
     552        sqlLine.group("lensPSFSmearE1",  "LENS_E1_SM_PSF")
     553        sqlLine.group("lensPSFSmearE2",  "LENS_E2_SM_PSF")
    553554        sqlLine.group("lensPSFShearX11", "LENS_X11_SH_PSF")
    554555        sqlLine.group("lensPSFShearX12", "LENS_X12_SH_PSF")
    555556        sqlLine.group("lensPSFShearX22", "LENS_X22_SH_PSF")
    556         sqlLine.group("lensPSFShearE1", "LENS_E1_SH_PSF")
    557         sqlLine.group("lensPSFShearE2", "LENS_E2_SH_PSF")
    558         sqlLine.group("psfE1", "LENS_E1_PSF")
    559         sqlLine.group("psfE2", "LENS_E2_PSF")
     557        sqlLine.group("lensPSFShearE1",  "LENS_E1_SH_PSF")
     558        sqlLine.group("lensPSFShearE2",  "LENS_E2_SH_PSF")
     559        sqlLine.group("psfE1",           "LENS_E1_PSF")
     560        sqlLine.group("psfE2",           "LENS_E2_PSF")
    560561
    561562        sql = sqlLine.makeRaw(") SELECT ", " FROM " + ippTableName)
     
    565566        self.logger.infoPair("inserting objID,etc from", fMeasTableName)
    566567        sqlLine = sqlUtility("UPDATE " + pspsTableName + " as a, " + fMeasTableName + " as b SET ")
    567         sqlLine.group("a.objID","b.objID")
    568         sqlLine.group("a.uniquePspsFWid","b.uniquePspsFWid")
    569         sqlLine.group("a.detectID","b.detectID")
    570         sqlLine.group("a.ippObjID","b.ippObjID")
    571         sqlLine.group("a.filterID","b.filterID")
    572         sqlLine.group("a.surveyID","b.surveyID")
    573         sqlLine.group("a.forcedWarpID","b.forcedWarpID")
    574         sqlLine.group("a.randomWarpID","b.randomWarpID")
    575         sqlLine.group("a.skycellID","b.skycellID")
    576         sqlLine.group("a.dvoRegionID","b.dvoRegionID")
    577         sqlLine.group("a.obsTime","b.obsTime")
    578 
    579         sql = sqlLine.makeEquals("Where a.ippDetectID = b.ippDetectID")
     568        sqlLine.group("a.objID",          "b.objID")
     569        sqlLine.group("a.uniquePspsFWid", "b.uniquePspsFWid")
     570        sqlLine.group("a.detectID",       "b.detectID")
     571        sqlLine.group("a.ippObjID",       "b.ippObjID")
     572        sqlLine.group("a.filterID",       "b.filterID")
     573        sqlLine.group("a.surveyID",       "b.surveyID")
     574        sqlLine.group("a.forcedWarpID",   "b.forcedWarpID")
     575        sqlLine.group("a.randomWarpID",   "b.randomWarpID")
     576        sqlLine.group("a.tessID",         "b.tessID")
     577        sqlLine.group("a.projectionID",   "b.projectionID")
     578        sqlLine.group("a.skycellID",      "b.skycellID")
     579        sqlLine.group("a.dvoRegionID",    "b.dvoRegionID")
     580        sqlLine.group("a.obsTime",        "b.obsTime")
     581
     582        sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID")
    580583        self.scratchDb.execute(sql)
    581584
  • trunk/ippToPsps/jython/stackbatch.py

    r39072 r39094  
    275275            zpImage = zp
    276276
    277         detectionThreshold = detectionThreshold + zpImage - 2.5 * math.log10(expTime)
     277        detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime)
    278278       
    279279        # insert stack metadata into table
     
    345345        self.scratchDb.addRowCountColumn("StackObjectThin", "row")
    346346        self.logger.infoPair("Adding unique psps ids to", "StackObjectThin")
    347         self.generateStackDetectRowIDsAndPspsUniqueIDs()
     347        self.generatePspsUniqueIDs()
    348348        self.logger.infoPair("Dropping row column from", "StackObjectThin table")
    349349        self.scratchDb.dropColumn("StackObjectThin", "row")
     
    553553        # self.scratchDb.createIndex(tablename, "objID")
    554554
    555         #objid
    556         #uniquepsps id
     555        # objid
     556        # uniquepsps id
    557557        # ippobjid
    558558        # randomstackobjid
    559         # stackdetectrowid
    560559        # primarydetection
    561         #bestdetection
     560        # bestdetection
    562561
    563562        #g / r / i /z / y
     
    951950            maxRadius = 5
    952951
     952        # XXX : by setting these to -999 here, the values are then
     953        # modified downstream to apply exposure time and zero point
     954        # factors (or platescale terms).  this means they will not
     955        # have the correct -999 values in the end.
     956
    953957        # properly -999 these to start with.  the default should take
    954958        # care of this, but does not?
     
    12861290        self.scratchDb.execute(sql)
    12871291
    1288     def generateStackDetectRowIDsAndPspsUniqueIDs(self):
     1292    def generatePspsUniqueIDs(self):
    12891293        sql = "UPDATE StackObjectThin set uniquePspsSTid = (("+str(self.batchID)+"*1000000000 ) + row)"
    12901294        self.scratchDb.execute(sql)
     
    13491353            self.scratchDb.addColumn(table, filter + "haveData", "tinyint")
    13501354
    1351         fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, StackDetectRowID, "
     1355        fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, "
    13521356
    13531357        for i in range(len(self.filters)):
Note: See TracChangeset for help on using the changeset viewer.