H8 rgb Null Pointer Exception McV1.6

Errors and unexpected results
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

H8 rgb Null Pointer Exception McV1.6

Post by joleenf »

Hi,

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'
User avatar
bobc
Posts: 988
Joined: Mon Nov 15, 2010 5:57 pm

Re: H8 rgb Null Pointer Exception McV1.6

Post by bobc »

Hi Joleen -

Thanks for making us aware of this, I'm able to replicate the problem. One of our programmers took a look at this, and it's likely a problem with the VisAD version that has been updated since the release of 1.5. We are looking over a couple of possible solutions, but in the meantime I wrote Inquiry 2075 so this script can be tested once we change the VisAD version. I will let you know once this VisAD change is made in the nightly.

Thanks again -
Bob
User avatar
bobc
Posts: 988
Joined: Mon Nov 15, 2010 5:57 pm

Re: H8 rgb Null Pointer Exception McV1.6

Post by bobc »

Hi Joleen -

I ran through your script on Windows 7 using the 1.6beta1 nightly from 06/24 and it now runs without error.

Please let me know if you have any additional concerns.

Thanks -
Bob
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: H8 rgb Null Pointer Exception McV1.6

Post by joleenf »

Hi Bob,

Thanks, the rgb worked on my mac osx 10.9.5 McIDAS-V version 1.6 beta 1 build date 6/25/15.

Joleen
Post Reply