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, >I was actually trying to either find a data structure that held all the >input fields or create one myself. If I used the method you described below >of calling getData() and then getType() and then parsing that, I have to >iterate through all the fields for each field in the data file. From the >looks of setMaps(), it seems as if the structure "dr[]" that holds Data >objects is local to setMaps() and I can't access that from VisadAPI.java >when iterating through the array. Do you know if there is a similar global >structure? Also, is there a method in BasicSSCell called parse() because I'm >not sure how you would parse() a MathType. MappingDialog extracts the ScalarTypes using visad.util.DataUtility's getScalarTypes() method (this method calls several other internal, recursive methods to which I alluded before). Check out the Javadoc on visad.util.DataUtility for more information on its usage. You should be able to getData() your data from the SSCell, then call DataUtility.getScalarTypes, passing in your data objects. -Curtis
visad
archives: