NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Ugo, I am not clear about your question about combining VisADLineArrays since I don't know where your code will construct them. However, you could construct ScalarMap smap = new ScalarMap(Precipitation, Display.Shape); display.addMap(smap); ShapeControl scontrol = smap.getControl(); scontrol.setShapeSet(new Integer1DSet(1)); // only one value VisADLineArray line = new VisADLineArray(); line.vertexCount = 2; line.coordinates = new float[] {0.0f, 0.0f, 0.0f, 0.0f, 0.1f, 0.0f}; // short line scontrol.setShapes(new VisADGeometryArray[] {line}); ScalarMap smap2 = new ScalarMap(Precipitation, Display.ShapeScale); smap2.setRaneg(0.0, max_precip); This should make the lines scale by precipitation value - every precip value maps to the same shape, but the precip value also maps to the shape scale which will control their lengths. You'll also need to map day to XAxis. Please just experiment with this a bit. 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
visad
archives: