Changeset 35203 for trunk/ippToPsps/jython/loader.py
- Timestamp:
- Feb 26, 2013, 6:47:49 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/loader.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/loader.py
r35185 r35203 157 157 self.logger.infoSeparator() 158 158 self.logger.infoTitle("New box") 159 self.logger.infoPair("Box dimensions ", "%.1f / %.1f / %.1f" % (boxDim['RA'], boxDim['DEC'], boxDim['SIDE']))159 self.logger.infoPair("Box dimensions: ", "ra / dec / size : %.1f / %.1f / %.1f -- sky bounds : (%.2f - %2.f, %2.f - %2.f)" % (boxDim['RA'], boxDim['DEC'], boxDim['SIDE'], boxDim['minRA'], boxDim['maxRA'], boxDim['minDEC'], boxDim['maxDEC'])) 160 160 self.logger.infoPair(batchType + " items found in this box", "%d" % len(ids)) 161 boxSizeWithBorder = boxDim['SIDE'] + (self.skychunk.BORDER * 2 / math.cos(math.radians(boxDim['DEC']))) 162 boxSizeSansBorder = boxDim['SIDE'] 163 boxSize = boxSizeWithBorder 164 self.logger.infoPair("using box of size", str(boxSize)) 161 165 162 useFullTables = 0 166 163 if batchType != "OB": … … 169 166 # look in DVO for this box (with extra border) 170 167 self.logger.infoPair("Querying DVO for this sky area", "") 168 169 # XXXX EAM : This code should not be used anymore 170 boxSize = 0.0 171 171 self.dvoDetections.setSkyAreaAsBox(boxDim['RA'], boxDim['DEC'], boxSize) 172 172 #self.dvoDetections.setSkyArea() … … 189 189 useFullTables = 1 190 190 else: 191 # XXX EAM : this is not currently an 192 # option. either remove the non-native 193 # ingest code or make it an option 194 # if we are using the native loader, always use it 195 # need to work out a good boundary / region strategy in coordination with 196 # impact of mysql insertion 191 # XXX EAM : this is not currently optional 192 # (it is the only path). either remove the 193 # non-native ingest code or make it an 194 # option if we are using the native 195 # loader, always use it need to work out a 196 # good boundary / region strategy in 197 # coordination with impact of mysql 198 # insertion 197 199 if not self.ippToPspsDb.isBoxIngested(boxId, self.scratchDb.dbHost): 198 self.dvoDetections.nativeIngestDetections(boxId, boxDim ['RA'], boxDim['DEC'], boxSize)200 self.dvoDetections.nativeIngestDetections(boxId, boxDim) 199 201 200 202 useFullTables = 1
Note:
See TracChangeset
for help on using the changeset viewer.
