Hi HP -
I'm assuming that the function that is giving you the error message is mycombineRGB(). I'm replicating this error, and it comes when the RGB images are passed through makeTimeSequence(). After speaking with a programmer, I wrote up
Inquiry 2282 because the makeTimeSequence() function shouldn't be necessary to create a loop of RGB images.
One thing to note though is that combineRGB() and mycombineRGB() look to return the same thing. If your reason for using mycombineRGB() was to make use of the 'RGB Composite' display type, you can actually use this display type with combineRGB() as well.
Here's a script that I'm running to get the "RGB Composite" display type working using the combineRGB() function:
Code: Select all
from visad.meteorology import ImageSequenceImpl as ISI
addeParms = dict(
server = 'msg.ssec.wisc.edu',
dataset = 'MSG',
descriptor = 'FD',
coordinateSystem = LATLON,
location = (21,15),
size = (600,600),
unit = 'BRIT',
time = ('10:00:00','14:00:00')
)
dustLoop = []
for p in range (-5,0):
b7 = loadADDEImage(band=7, position=p, **addeParms)
b9 = loadADDEImage(band=9, position=p, **addeParms)
b10 = loadADDEImage(band=10, position=p, **addeParms)
dust = combineRGB(ISI([b7]), ISI([b9]), ISI([b10]))
dustLoop.append(dust)
imgSeqDust = makeTimeSequence(dustLoop)
dustPanel = buildWindow(height=800,width=1400)
dustLayer = dustPanel[0].createLayer('RGB Composite', imgSeqDust)
Please let me know if you actually were seeing the error message with combineRGB(), and if you have any other questions.
Thanks -
Bob Carp