# dictionary for load and list functions abiParms = dict( server = 'geoarc.ssec.wisc.edu', dataset = 'AGOES16', descriptor = 'FD', coordinateSystem = LATLON, location = (23.2, -70.5), size = (1210, 2036), band = 13, unit = 'TEMP', showUrls = False, ) # list of days to request from the server days = ['2017-09-04', '2017-09-05', '2017-09-06', '2017-09-07', '2017-09-08', '2017-09-09', '2017-09-10', '2017-09-11'] shortDays = ['2017-09-06', '2017-09-07', '2017-09-08', '2017-09-09', '2017-09-10'] # empty list to add data to abiLoop = [] # loop through days list above for d in days: # get a list of times included in the dataset for the given day times = listADDEImageTimes(day=d, position='ALL', **abiParms) # take every 4th time from the list (15 minute intervals) every4th = times[::4] # loop through times in every4th list for given day for t in every4th: # load data from server data = loadADDEImage(day=d, time=t['time'], **abiParms) # append data to abiLoop list abiLoop.append(data) # print statement to track progress print '%s added to loop' % t['datetime'] # display the loop and apply an enhancement layer = activeDisplay().createLayer('Image Sequence Display', abiLoop) layer.setEnhancement('Longwave Infrared Deep Convection', range=(305,170))