accesing SSEC ADDE servers

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

accesing SSEC ADDE servers

Post by hproe »

Hi -

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
User avatar
Rick
Posts: 404
Joined: Fri Jan 16, 2009 8:20 pm

Re: accesing SSEC ADDE servers

Post by Rick »

Hi HP,

I checked tried your example for coms data and found this bug has been around from at least McIDAS-V version 1.2. I wrote up the following inquiry:

http://mcidas.ssec.wisc.edu/inquiry-v/?inquiry=1511

Rick
User avatar
Rick
Posts: 404
Joined: Fri Jan 16, 2009 8:20 pm

Re: accesing SSEC ADDE servers

Post by Rick »

Hi HP,

A new version of visad.jar has been added to the latest nightly. Let us know if that helps.

Rick
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: accesing SSEC ADDE servers

Post by hproe »

Hi Rick -

Both sats of my interest, COMS and FY-2E are working now. Note that I also checked FY-2C - does not appear to work.

many thanks, HP
User avatar
Rick
Posts: 404
Joined: Fri Jan 16, 2009 8:20 pm

Re: accesing SSEC ADDE servers

Post by Rick »

Hi HP,

FY2C has been decommissioned.

http://www.nsmc.cma.gov.cn/newsite/NSMC ... 00181.html

FY2D and FY2E are the current operational satellites.

Rick
Post Reply