casa
$Rev:20696$
|
00001 import os 00002 from taskinit import * 00003 00004 def listfits(fitsfile=None): 00005 """ 00006 00007 """ 00008 #Python script 00009 try: 00010 if ((type(fitsfile)==str) & (os.path.exists(fitsfile))): 00011 ms.listfits(fitsfile); 00012 else: 00013 raise Exception, 'fits file not found - please verify the name' 00014 except Exception, instance: 00015 print '*** Error ***',instance