I have some difficulty to access data from SSEC servers of COMS and FY-2E through get ADDEImage(). Access with the chooser works fine. Also, getADDE() with satellites GOES-E/W, MTSAT-2, MSG or INDOEX poses no problem. Here is a snippet from the code:
Code: Select all
addeParmsCOMS= dict(
server='coms.ssec.wisc.edu',
dataset='COMS',
descriptor='FD',
band=4,
unit='TEMP',
coordinateSystem=LATLON,
size='ALL',
mag=(-2,-2),
accounting=(<project>)
)
COMSLoop=[]
for pos in range(-1,0,1):
metadata,myImages=getADDEImage(position=(pos),**addeParmsCOMS)
COMSLoop.append(myImages)
print metadata.get('nominal-time')
The error message is:
Traceback (most recent call last):
File "", line 1, in
File "", line "metada, my Images=..."
File "", line 811, in getADDEImage
File "", line 811, in getADDEImage
File "", line 108, in getDictionary
File "", line 143, in iteritems
File "", line 288, in _getDirValue
at edu.wisc.ssec.mcidas.AreaDirectory.getSensorType(AreaDirectory.java:480)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source) java.lang.ArrayIndexOutOfBoundsException:
java.lang.ArrayIndexOutOfBoundsException: 250
Most probably I am overlooking something, but what?
HP