displaying a time series of RGB images

Post any questions, ideas, or topics related to Jython and Python scripting.
User avatar
mhiley
Posts: 90
Joined: Mon Jan 23, 2012 10:22 pm

Re: displaying a time series of RGB images

Post by mhiley »

Joleen,

It looks like a single FlatField is getting passed into makeTimeFieldFromFlatFields... see the line:

Code: Select all

Number of Flat Fields: 3120000 Number of Times: 3 counter 0 2014-05-20 23:05:00 Z


i.e., in makeTimeFromFlatFields, len(fltFlds) is returning 3120000, so fltFlds is probably a single FlatField instead of a list of FlatFields.

Mike
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: displaying a time series of RGB images

Post by joleenf »

Hi Mike,

Sorry about that.

Number of Flat Fields: 3 Number of Times: 3 counter 0 2014-05-20 23:05:00 Z
FunctionType:
Domain has 2 components:
0. RealType: ImageElement
0. Name = ImageElement
1. RealType: ImageLine
1. Name = ImageLine
Range:
RealTupleType has 3 components:
0. RealType: redimage18
0. Name = redimage18
1. RealType: greenimage18
1. Name = greenimage18
2. RealType: blueimage18
2. Name = blueimage18
DataType
analysis... FlatField of length = 3120000
((ImageElement, ImageLine) -> (redimage18, greenimage18, blueimage18))
Domain has 2 components:
Linear2DSet: Length = 3120000
0. Linear1DSet (ImageElement) Range = 0.0 to 2399.0 step 1.0
1. Linear1DSet (ImageLine) Range = 1299.0 to 0.0 step -1.0
CoordinateSystem: (ImageElement, ImageLine) ==> (Latitude, Longitude)
Range has 3 components:
0. FloatSet (redimage18) Dimension = 1
0. number missing = 0
1. FloatSet (greenimage18) Dimension = 1
1. number missing = 0
2. FloatSet (blueimage18) Dimension = 1
2. number missing = 0
Number of Flat Fields: 3 Number of Times: 3 counter 1 2014-05-20 23:06:00 Z
FunctionType:
Domain has 2 components:
0. RealType: ImageElement
0. Name = ImageElement
1. RealType: ImageLine
1. Name = ImageLine
Range:
RealTupleType has 3 components:
0. RealType: redimage19
0. Name = redimage19
1. RealType: greenimage19
1. Name = greenimage19
2. RealType: blueimage19
2. Name = blueimage19
DataType
analysis... FlatField of length = 3120000
((ImageElement, ImageLine) -> (redimage19, greenimage19, blueimage19))
Domain has 2 components:
Linear2DSet: Length = 3120000
0. Linear1DSet (ImageElement) Range = 0.0 to 2399.0 step 1.0
1. Linear1DSet (ImageLine) Range = 1299.0 to 0.0 step -1.0
CoordinateSystem: (ImageElement, ImageLine) ==> (Latitude, Longitude)
Range has 3 components:
0. FloatSet (redimage19) Dimension = 1
0. number missing = 0
1. FloatSet (greenimage19) Dimension = 1
1. number missing = 0
2. FloatSet (blueimage19) Dimension = 1
2. number missing = 0
Number of Flat Fields: 3 Number of Times: 3 counter 2 2014-05-20 23:07:00 Z
FunctionType:
Domain has 2 components:
0. RealType: ImageElement
0. Name = ImageElement
1. RealType: ImageLine
1. Name = ImageLine
Range:
RealTupleType has 3 components:
0. RealType: redimage20
0. Name = redimage20
1. RealType: greenimage20
1. Name = greenimage20
2. RealType: blueimage20
2. Name = blueimage20
DataType
analysis... FlatField of length = 3120000
((ImageElement, ImageLine) -> (redimage20, greenimage20, blueimage20))
Domain has 2 components:
Linear2DSet: Length = 3120000
0. Linear1DSet (ImageElement) Range = 0.0 to 2399.0 step 1.0
1. Linear1DSet (ImageLine) Range = 1299.0 to 0.0 step -1.0
CoordinateSystem: (ImageElement, ImageLine) ==> (Latitude, Longitude)
Range has 3 components:
0. FloatSet (redimage20) Dimension = 1
0. number missing = 0
1. FloatSet (greenimage20) Dimension = 1
1. number missing = 0
2. FloatSet (blueimage20) Dimension = 1
2. number missing = 0
visad.TypeException: FieldImpl.setSample: bad range type
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: displaying a time series of RGB images

Post by hproe »

Hi Joleen -
I tried using the outlined method of creating an ImageSequenceImpl from a list, but this failed for me as well. The sandwich code returns a FlatField, and the ImageSequenceImpl requires a SingleBandedImage. I think SingleBandedImages are usually the result of an ADDE connection to the data.

Your are correct. I wrote the script for data from ADDE servers.

HP
Post Reply