Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi Tiago, I can't see any error, so perhaps it is somewhere else in your code, or in VisAD. Can you send me a small stand-alone program that uses this code but actually generates a Display so I can see the lack of color. Bill > Hi bill, > > RealTupleType fieldtuple = new RealTupleType(RealType.Latitude, > RealType.Longitude); > > float[][] vals = new float[2][4]; > vals[0][0] = 100.0f; > vals[1][0] = 50.0f; > vals[0][1] = 50.0f; > vals[1][1] = 50.0f; > vals[0][2] = 50.0f; > vals[1][2] = 10.0f; > vals[0][3] = 10.0f; > vals[1][3] = 10.0f; > > Irregular2DSet land = new Irregular2DSet(fieldtuple,vals); > > RealType isoTemperature = new RealType("isoTemperature"); > > FunctionType func_domain_isoTemp = new FunctionType(fieldtuple, > isoTemperature); > > FlatField iso_vals_ff = new FlatField( func_domain_isoTemp, land); > > float[][] flat_isoVals = new float[1][4]; > flat_isoVals[0][0] = 0.25f; > flat_isoVals[0][1] = 1.0f; > flat_isoVals[0][2] = 1.0f; > flat_isoVals[0][3] = 0.25f; > > iso_vals_ff.setSamples( flat_isoVals); > > ScalarMap isoTempRGBMap = new ScalarMap( isoTemperature, Display.RGB ); > > Ican't manage to see any colors in this flatfield (no errors also), what i'm > i doing wrong? I've 4 points, each point with a sample value. > > Thanks > Tiago > > Bill Hibbard wrote: > > > Hi Tiago, > > > >> Can i use a UnionSet of Irregular2DSets as the domain Set > >> of a Flatfield? > >> > > Yes. The number of Field samples is the sum of the numbers of > > samples in all the Irregular2DSets, ordered as all the samples > > of the first Irregular2DSet, followed by the samples of the > > second Irregular2DSet, etc. > > Cheers, > > Bill > > ---------------------------------------------------------- > > Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 > > hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 > > http://www.ssec.wisc.edu/~billh/vis.html > > -- ---------------------------------------------------------- Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 http://www.ssec.wisc.edu/~billh/vis.html
visad
archives: