For displaying a time series of single-channel images the 2012 Training Workshop at Madison gives an example in "Creating Movies in a McIDAS Script" found in the "Introduction to Scripting and Formulas" document. Basically it uses the display type 'Image Sequence Display' to display the aggregated image sequence.
I am interested in doing the same for RGB imagery. It would be nice to have a companion type that would display my RGB sequence (should this be promoted to a feature request?). In the absence of such a method I got the tip (courtesy Tom Whittaker) totransform the aggregated RGB sequence by using the method 'makeTime Sequence' and then display with '3 Color (RGB) Image'. I tested this successfully in May. Taking it up again now the code fails during the call to makeTimeSequence like this:
Error: Traceback (most recent call last): File " ", line 1, in File " ", line 294, in localADDE File " ", line 301, in makeTimeSequence at visad.Set. (Set.java:148) at visad.SimpleSet. (SimpleSet.java:58) at visad.SampledSet. (SampledSet.java:89) at visad.GriddedSet. (GriddedSet.java:72) at visad.Gridded1DSet. (Gridded1DSet.java:130) at visad.Gridded1DDoubleSet. (Gridded1DDoubleSet.java:107) at visad.Gridded1DDoubleSet.create(Gridded1DDoubleSet.java:174) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) visad.UnitException: visad.UnitException: Set: units dimension 1 does not match Domain dimension 2
Here is a snippet of the failing code:
Code: Select all
myLoop=[]
for pos in range(-2,1):
mIR87,IR87=getADDEImage(band=7,position=(pos),**ADDE_params)
mIR108,IR108=getADDEImage(band=9,position=pos,**ADDE_params)
mIR120,IR120=getADDEImage(band=10,position=pos,**ADDE_params)
imDUST=DUST_RGB(IR87,IR108,IR120)
myLoop.append(imDUST)
imSeq=makeTimeSequence(myLoop)
panel=buildWindow(600,600)
imSeqLayer=panel[0].createLayer('3 Color (RGB) Image',imSeq)
cheers, HP