- Timestamp:
- Jan 31, 2013, 5:47:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/jython/dvo.py
r35076 r35077 33 33 34 34 ''' 35 def __init__(self, logger, config, skychunk, scratchDbName=None):35 def __init__(self, logger, config, skychunk, ippToPspsDb, scratchDbName=None): 36 36 37 37 # set up logging … … 39 39 self.config = config 40 40 self.skychunk = skychunk 41 self.ippToPspsDb = ippToPspsDb 41 42 42 43 # set up empty lists … … 47 48 self.regionsIngestedButOutOfDate = [] 48 49 49 # XXX use Stilts for ingest in certain cases or not?50 self.useStilts = 051 52 50 # connect to the specified scratch database, if a name is given, otherwise use the first version 53 51 try: … … 55 53 except: raise 56 54 55 # we have (still) 3 modes of ingest from dvo cpt/cps/cpm files 56 # 1) dvograbber (useFullTables == FALSE), 57 # 2) jython/stilts (useStilts == TRUE, useFullTables == TRUE) 58 # 3) dvopsps (useStilts == FALSE, useFullTables == TRUE) 59 # my goal (EAM, 2013/01/31) is to migrate to only dvopsps 60 61 self.useStilts = 0 57 62 self.scratchDb.setUseFullTables(True) 58 63 … … 569 574 includes purging detections outside sky area 570 575 ''' 571 def nativeIngestDetections(self, raCenter, decCenter, boxSize): 572 573 # XXX put the skychunk below in a separate method 576 def nativeIngestDetections(self, boxId, raCenter, decCenter, boxSize): 577 578 # XXX put the chunk below in a separate method 579 # blow away existing dvoDetection table 580 581 # clear the 'ingested' field for all boxes 582 self.ippToPspsDb.clearIngestedBoxes() 574 583 575 584 # drop detections table … … 599 608 self.loadImages() 600 609 601 # XXX blow away existing dvoDetection table?602 603 610 # dvopsps -D catdir CATDIR -region .... -dbhost xx -dbname xx -dbuser xx -dbpass xx 604 611 halfSize = boxSize / 2.0 … … 625 632 p.wait() 626 633 634 self.ippToPspsDb.setIngestedBox(boxId) 635 627 636 # update lists after attempted sync 628 637 # self.printSummary()
Note:
See TracChangeset
for help on using the changeset viewer.
