Changeset 31405 for trunk/ippToPsps/jython/batch.py
- Timestamp:
- Apr 28, 2011, 3:56:55 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r31352 r31405 32 32 "../config/2/tables.vot" 33 33 ''' 34 def __init__(self, logger, batchType, inputFitsPath="", survey="" ):34 def __init__(self, logger, batchType, inputFitsPath="", survey="", useFullTables=False): 35 35 36 36 # set up logging 37 37 self.logger = logger 38 self.logger.info("-------------------------------------------------------------------------------") 38 39 self.logger.debug("Batch class constructor") 39 40 … … 43 44 self.inputFitsPath = inputFitsPath 44 45 self.survey = survey 46 self.useFullTables = useFullTables 45 47 46 48 # TODO … … 53 55 self.gpc1Db = Gpc1Db(self.logger) 54 56 self.ippToPspsDb = IppToPspsDb(logger) 55 self.scratchDb = ScratchDb(logger )57 self.scratchDb = ScratchDb(logger, self.useFullTables) 56 58 57 59 if self.survey != "": … … 92 94 # TODO close file? 93 95 94 # create DVO table 95 self.scratchDb.createDvoTables()96 # create DVO tables if accessing DVO directly 97 if not self.useFullTables: self.scratchDb.createDvoTables() 96 98 97 99 ''' … … 315 317 self.tablesToExport.append(table.name) 316 318 317 self. indexPspsTables()319 self.alterPspsTables(); 318 320 319 321 ''' … … 323 325 self.logger.warn("indexIppTables not implemented") 324 326 325 ''' 326 Subclass should implement this to index PSPS tables 327 328 ''' 329 Alter PSPS tables 327 330 ''' 328 def indexPspsTables(self):329 self.logger.warn(" indexPspsTables not implemented")331 def alterPspsTables(self): 332 self.logger.warn("alterPspsTables not implemented") 330 333 331 334 ''' … … 370 373 def exportPspsTablesToFits(self, regex="(.*)"): 371 374 372 self.logger.info(" Exporting all PSPS tables to FITS")375 self.logger.info("Replacing NULLs with -999 then exporting all PSPS tables to FITS") 373 376 _tables = [] 374 377 … … 381 384 # get everything from table 382 385 _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table) 383 384 self.logger.info(" Replacing NULLs with weird PSPS -999 constant for " + table)385 386 386 387 # replace nulls and empty fields with weird PSPS -999 pseudo-null
Note:
See TracChangeset
for help on using the changeset viewer.
