I am trying to create H8 RGB images in McIDAS-V 1.6 with a script. The script works in McIDAS-V 1.5, but no McIDAS-V 1.6 beta 1 build date 2015-06-17.
Joleen
Code: Select all
# Variables
myAccounting=('YOU','9999')
day='2015-04-15'
times=('00:10','00:10')
center={'lat':35,'lon':124}
server='arcserv1.ssec.wisc.edu'
group='AH08T'
desc='FD'
panel = buildWindow(height=900,width=1000)
#setup
panel[0].setProjection('World')
panel[0].setCenter(center['lat'],center['lon'], scale=8)
### For G-14 SRSOR
addeParms = dict(
server = server,
dataset = group,
descriptor = desc,
accounting = myAccounting,
coordinateSystem=LATLON,
place=CENTER,
location=(center['lat'],center['lon']),
size=(2794,3696),
mag=(1,1)
)
results=listADDEImageTimes(server=server,dataset=group,descriptor=desc,accounting=myAccounting,day=day,time=times, band=8,position='ALL')
# display the sandwich layer
for x,dt in enumerate(results):
imgDay=dt['day']
imgTime=dt['time']
b1=loadADDEImage(band=1, unit='ALB', day=imgDay, time=(imgTime,imgTime), **addeParms)
b2=loadADDEImage(band=2, unit='ALB', day=imgDay, time=(imgTime,imgTime), **addeParms)
b3=loadADDEImage(band=3, unit='ALB', day=imgDay, time=(imgTime,imgTime), **addeParms)
rgbImg=mycombineRGB(b3,b2,b1)
layRGB = panel[0].createLayer('RGB Composite', rgbImg)
print 'Finished'