def asdmsummary(asdm=None):
"""Prints a description of the content of an SDM dataset to the CASA logger.
asdm -- Name of the input SDM directory.
casalog.origin('asdmsummary')
theexecutable = 'asdmSummary'
execute_string = theexecutable + ' ' + '--logfile \"' +casalog.logfile() +'\"'+ ' ' + asdm
casalog.post('Running ' + execute_string)
exitcode = os.system(execute_string) >> 8
casalog.post(theexecutable+' terminated with exit code '+str(exitcode), 'SEVERE')
raise Exception, "Error while trying to produce a summary of '+" + asdm + "'."
except Exception, instance:
print '*** Error ***', instance