Changeset 35179 for trunk/ippToPsps/jython/loader.py
- Timestamp:
- Feb 19, 2013, 9:09:36 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/loader.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/loader.py
r35177 r35179 8 8 import sys 9 9 import os 10 import math 10 11 import traceback 11 12 import logging.config … … 158 159 self.logger.infoPair("Box dimensions", "%.1f / %.1f / %.1f" % (boxDim['RA'], boxDim['DEC'], boxDim['SIDE'])) 159 160 self.logger.infoPair(batchType + " items found in this box", "%d" % len(ids)) 160 boxSizeWithBorder = boxDim['SIDE'] + (self.skychunk.BORDER * 2 )161 boxSizeWithBorder = boxDim['SIDE'] + (self.skychunk.BORDER * 2 / math.cos(math.radians(boxDim['DEC']))) 161 162 boxSizeSansBorder = boxDim['SIDE'] 162 self.logger.infoPair("got here", "ok") 163 boxSize = boxSizeWithBorder 164 self.logger.infoPair("using box of size", str(boxSize)) 163 165 useFullTables = 0 164 166 if batchType != "OB": … … 167 169 # look in DVO for this box (with extra border) 168 170 self.logger.infoPair("Querying DVO for this sky area", "") 169 self.dvoDetections.setSkyAreaAsBox(boxDim['RA'], boxDim['DEC'], boxSize WithBorder)171 self.dvoDetections.setSkyAreaAsBox(boxDim['RA'], boxDim['DEC'], boxSize) 170 172 #self.dvoDetections.setSkyArea() 171 173 sizeToBeIngested = self.dvoDetections.getDiskSizeOfRegionsToBeIngested() … … 194 196 # impact of mysql insertion 195 197 if not self.ippToPspsDb.isBoxIngested(boxId): 196 self.dvoDetections.nativeIngestDetections(boxId, boxDim['RA'], boxDim['DEC'], boxSize WithBorder)198 self.dvoDetections.nativeIngestDetections(boxId, boxDim['RA'], boxDim['DEC'], boxSize) 197 199 198 200 useFullTables = 1
Note:
See TracChangeset
for help on using the changeset viewer.
