I have Jython code that retrieves recent image slots from geosat ADDE servers. I have not used it for a while - 3 months, say. Running it now again (with a very recent nightly), it does not find any time slots. I have extracted the essential part of the code:
Code: Select all
def dummy():
perms=('?','?')
addeParmsMETEOSAT=dict(
server='msg.ssec.wisc.edu',
dataset='MSG',
descriptor='FD',
band=9,
unit='TEMP',
coordinateSystem=LATLON,
size='ALL',
mag=-4,
accounting=perms
)
METEOSATloop=[]
for pos in range(-1,0):
try:
metadata,myImages=getADDEImage(position=(pos),**addeParmsMETEOSAT)
except:
print pos,'not available'
else:
METEOSATloop.append(myImages)
print pos,metadata.get('nominal-time')
Running this from the Jython shell as dummy() will print the message given in the except clause in the fourth-to-last line, i.e. it does not find the most recent METEOSAT slot. When running it, do not forget to give the proper project parameters to variable perms.
cheers, HP