IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2014, 3:00:51 PM (12 years ago)
Author:
heather
Message:

many fixes, mostly fixing bugs pointed out by pspswg, including missing
objects, random numbers, ext_nsigma

missing objects - (things which have detections and stacks) - these are caused
when we cull objects outside the dvo range. Gene says there is a buffer of
about .09 arcmins and suggests we cull things outside of .2 arcmins. This has
been implemented

random ids are not so random due to not setting a seed for the loaders. Random
numbers for a batch are seeded with the batch_ID

requests for sgSep / ExtNSigma as we had back in the good ol' days. This has
been added back for stack

File:
1 edited

Legend:

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

    r37246 r37577  
    336336        sqlLine.group("ippObjID",        "OBJ_ID + (CAT_ID << 32)") # NOTE: shift by 32 bits exactly
    337337        sqlLine.group("surveyID",        "'" + str(self.surveyID) + "'")
    338         sqlLine.group("randomID",        "FLOOR(RAND()*9223372036854775807)") # XXX where does this number come from??
     338        sqlLine.group("randomID",        "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)") # XXX where does this number come from??
    339339        sqlLine.group("batchID",         "'" + str(self.batchID) + "'")
    340340        sqlLine.group("dvoRegionID",     "CAT_ID")
     
    410410 
    411411        sql = "DELETE FROM ObjectThin where \
    412               ObjectThin.decMean > " + str(decMax) + " or \
    413               ObjectThin.decMean < " + str(decMin) + " or \
    414               ObjectThin.raMean > " + str(raMax) + " or \
    415               ObjectThin.raMean < " + str(raMin)
     412              ObjectThin.decMean > (" + str(decMax) + " + .0033) or \
     413              ObjectThin.decMean < (" + str(decMin) + " - .0033) or \
     414              ObjectThin.raMean > (" + str(raMax) + " + .0033) or \
     415              ObjectThin.raMean < (" + str(raMin) + " - .0033)"
    416416        self.logger.infoPair("Deleting", str(nToDelete) + " objects outside of ra/dec range")
    417417
Note: See TracChangeset for help on using the changeset viewer.