IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2013, 6:47:49 AM (13 years ago)
Author:
eugene
Message:

trying to fix the definition of a box (roughly constant linear width)

File:
1 edited

Legend:

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

    r35185 r35203  
    157157                    self.logger.infoSeparator()
    158158                    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']))
    160160                    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
    165162                    useFullTables = 0
    166163                    if batchType != "OB":
     
    169166                            # look in DVO for this box (with extra border)
    170167                            self.logger.infoPair("Querying DVO for this sky area", "")
     168
     169                            # XXXX EAM : This code should not be used anymore
     170                            boxSize = 0.0
    171171                            self.dvoDetections.setSkyAreaAsBox(boxDim['RA'], boxDim['DEC'], boxSize)
    172172                            #self.dvoDetections.setSkyArea()
     
    189189                                useFullTables = 1
    190190                        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
    197199                            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)
    199201
    200202                            useFullTables = 1
Note: See TracChangeset for help on using the changeset viewer.