Changeset 31113
- Timestamp:
- Apr 1, 2011, 10:35:15 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r31109 r31113 160 160 ''' 161 161 def populateStackMeta(self): 162 print "Procesing StackMeta table";162 self.log("Procesing StackMeta table") 163 163 164 164 sql = "INSERT INTO StackMeta (\ … … 197 197 ," + self.header['PC002002'] + " \ 198 198 )" 199 print sql200 199 self.stmt.execute(sql) 201 200 … … 208 207 ''' 209 208 def populateStackDetection(self): 210 print "Procesing StackDetection table";209 self.log("Procesing StackDetection table") 211 210 212 211 # insert all the detections … … 266 265 ''' 267 266 def populateStackApFlx(self): 268 print "Procesing StackApFlx table";267 self.log("Procesing StackApFlx table") 269 268 270 269 sql = "INSERT INTO StackApFlx \ … … 275 274 self.stmt.execute(sql) 276 275 277 print " Adding 1st convolved fluxes"276 self.log(" Adding 1st convolved fluxes") 278 277 self.updateApFlxs("c1", "< 7.0") 279 print " Adding 2nd convolved fluxes"278 self.log(" Adding 2nd convolved fluxes") 280 279 self.updateApFlxs("c2", "> 7.0") 281 280 282 print " Adding petrosian stuff for extended sources"281 self.log(" Adding petrosian stuff for extended sources") 283 282 sql = "UPDATE StackApFlx AS a, SkyChip_xsrc AS b SET \ 284 283 petRadius=b.PETRO_RADIUS \ … … 311 310 ''' 312 311 def populateStackModelFit(self): 313 print "Procesing StackModelFit table";312 self.log("Procesing StackModelFit table") 314 313 315 314 # insert all the detections … … 318 317 319 318 # populate model parameters 320 print " Adding deVaucouleurs fit"319 self.log(" Adding deVaucouleurs fit") 321 320 self.updateModelFit("deV", "PS_MODEL_DEV") 322 print " Adding exponential fit"321 self.log(" Adding exponential fit") 323 322 self.updateModelFit("exp", "PS_MODEL_EXP") 324 print " Adding sersic fit"323 self.log(" Adding sersic fit") 325 324 self.updateModelFit("ser", "PS_MODEL_SERSIC") 326 325 … … 336 335 def indexPspsTables(self): 337 336 338 print "Creating indexes on PSPS tables"337 self.log("Creating indexes on PSPS tables") 339 338 self.createIndex("StackDetection", "ippDetectID") 340 339 self.createIndex("StackApFlx", "ippDetectID") … … 346 345 def indexIppTables(self): 347 346 348 print "Creating indexes on IPP tables"347 self.log("Creating indexes on IPP tables") 349 348 self.createIndex("SkyChip_psf", "IPP_IDET") 350 349 self.createIndex("SkyChip_xfit", "IPP_IDET") … … 355 354 Does the processing, i.e. pulling stuff from IPP tables into PSPS tables 356 355 ''' 357 def p rocess(self):356 def populatePspsTables(self): 358 357 359 358 # determine skycell from header value … … 374 373 stackBatch.createEmptyPspsTables() 375 374 #stackBatch.importIppTables() 376 stackBatch.p rocess()375 stackBatch.populatePspsTables() 377 376 stackBatch.exportPspsTablesToFits()
Note:
See TracChangeset
for help on using the changeset viewer.
