IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2015, 1:07:29 PM (11 years ago)
Author:
eugene
Message:

adjust dvopsps select border based on batchType

File:
1 edited

Legend:

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

    r39148 r39152  
    704704        # to grab all detections / objects which are contributed by an
    705705        # item with the center in the given box
    706         dR_border = self.skychunk.BORDER / math.cos(math.radians(boxDim['DEC']))
    707         dD_border = self.skychunk.BORDER
    708        
    709         # This is a terrible hack but I'm tired of it taking a decade to ingest the FW skycells.
    710 
    711         #if self.batchType == "ST":
    712         #    dR_border = .4 / math.cos(math.radians(boxDim['DEC']))
    713         #    dD_border = .4
    714         #if self.batchType == "FW":
    715         #    dR_border = .4 / math.cos(math.radians(boxDim['DEC']))
    716         #    dD_border = .4
     706
     707        # P2 and DF need to use a full GPC1 exposure radius:
     708        myBorder = self.skychunk.BORDER_GPC1
     709
     710        # ST and FW need to use just a skycell
     711        if self.batchType == "ST" :
     712            myBorder = self.skychunk.BORDER_SKYCELL
     713        if self.batchType == "FW" :
     714            myBorder = self.skychunk.BORDER_SKYCELL
     715
     716        dR_border = myBorder / math.cos(math.radians(boxDim['DEC']))
     717        dD_border = myBorder
    717718
    718719        minRA  = boxDim['minRA']  - dR_border
Note: See TracChangeset for help on using the changeset viewer.