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.
On Wed, 17 Apr 2002, Mark Thompson wrote: > for example, what do these lines of code (from Test47.java) do? > > ScalarMap shape_map = (ScalarMap )display.getMapVector().lastElement(); > RealType count = (RealType )shape_map.getScalar(); > float[][] counts = new float[][] {{0.0f, 1.0f, 2.0f, 3.0f}}; > Gridded1DSet count_set = new Gridded1DSet(count, counts, counts[0].length); This gets the last ScalarMap in the display (which the app knows is to Shape), gets its RealType, creates a float[][] array, and creates a Gridded1DSet. I am travelling until the end of April, and will be very busy after my return, so please try to figure this out on your own. You can find more examples of Shape in visad/bom and visad/rabin. Bill
visad
archives: