IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39152 for trunk


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

adjust dvopsps select border based on batchType

Location:
trunk/ippToPsps/jython
Files:
3 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
  • trunk/ippToPsps/jython/ipptopspsdb.py

    r39008 r39152  
    11581158
    11591159        self.skychunk.boxSize = rs.getDouble(10)
    1160         # self.skychunk.halfBox = self.skychunk.boxSize/2.0
    1161         # self.skychunk.boxSizeWithBorder = self.skychunk.boxSize + (self.skychunk.BORDER * 2)
    11621160
    11631161        self.skychunk.basePath = rs.getString(11)
  • trunk/ippToPsps/jython/skychunk.py

    r38763 r39152  
    3939        # XXX this is a poor place to put this information -- it is completely gpc-specific. 
    4040        # probably should go elsewhere.  This number is scaled in loader.py by cos(dec)
    41         self.BORDER = 1.65
     41        self.BORDER_GPC1    = 1.65
     42        self.BORDER_SKYCELL = 0.40
    4243        self.isLoaded = False
    4344
Note: See TracChangeset for help on using the changeset viewer.