m1Parms = dict( server = 'lead.unidata.ucar.edu', dataset = 'RTGOESR', descriptor = 'M1', unit = 'TEMP', size = (500,500), band=13, position = -1, ) home_directory = os.path.expanduser('~') bundle_path = os.path.join(home_directory,'bundles', 'WorldCities.mcvz') openBundle(bundle_path,mode='NEWWINDOW') dataList = listADDEImageTimes(**m1Parms) ir = loadADDEImage(**m1Parms) layer_ir = activeDisplay().createLayer('Image Display', ir) image_path = os.path.join(home_directory,'bundles') activeDisplay().captureImage('%s/test.gif'' % image_path)