casa
$Rev:20696$
|
00001 # 00002 # This file was generated using xslt from its XML file 00003 # 00004 # Copyright 2009, Associated Universities Inc., Washington DC 00005 # 00006 import sys 00007 import os 00008 from casac import * 00009 import string 00010 from taskinit import casalog 00011 #from taskmanager import tm 00012 import task_asdmsummary 00013 def asdmsummary(asdm=''): 00014 00015 """Summarized description of an ASDM dataset. 00016 00017 The asdmsummary task prints to the CASA log a description of the content of an SDM dataset. 00018 00019 Example: 00020 00021 asdmsummary(sdm='10C-119_sb3070258_1.55628.42186299768') 00022 00023 Prints information about the requested ASDM dataset to the CASA logger. 00024 00025 Keyword argument: 00026 00027 asdm -- Name of input ASDM directory. 00028 example: sdm='10C-119_sb3070258_1.55628.42186299768' 00029 00030 00031 """ 00032 00033 # 00034 # The following is work around to avoid a bug with current python translation 00035 # 00036 mytmp = {} 00037 00038 mytmp['asdm'] = asdm 00039 pathname='file:///'+os.environ.get('CASAPATH').split()[0]+'/share/xml/' 00040 trec = casac.utils().torecord(pathname+'asdmsummary.xml') 00041 00042 casalog.origin('asdmsummary') 00043 if trec.has_key('asdmsummary') and casac.utils().verify(mytmp, trec['asdmsummary']) : 00044 result = task_asdmsummary.asdmsummary(asdm) 00045 00046 else : 00047 result = False 00048 return result