casa
$Rev:20696$
|
00001 import os 00002 from taskinit import * 00003 00004 import asap as sd 00005 import sdutil 00006 00007 def sdlist(infile, antenna, scanaverage, outfile, overwrite): 00008 00009 casalog.origin('sdlist') 00010 00011 try: 00012 worker = sdlist_worker(**locals()) 00013 worker.initialize() 00014 worker.execute() 00015 worker.finalize() 00016 00017 except Exception, instance: 00018 sdutil.process_exception(instance) 00019 raise Exception, instance 00020 00021 class sdlist_worker(sdutil.sdtask_template): 00022 def __init__(self, **kwargs): 00023 super(sdlist_worker,self).__init__(**kwargs) 00024 00025 def initialize_scan(self): 00026 self.scan = sd.scantable(self.infile, average=self.scanaverage, antenna=self.antenna) 00027 00028 def execute(self): 00029 self.scan._summary(self.outfile) 00030 00031