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 Peter, > I want to create a floatset using the FloatSet(MathType type). > for a n-dimension float data. What will be this MathType. I > know the type must be a RealType, a RealTupleType or a SetType. > But how to create such a type for the FloatSet ? I couldn't find any > example code the the docs. Could you write a few lines of example > code to construct a type for me. FloatSets are inappropriate as Field domains since FloatSet has nearly 2**32 members (all legal 32-bit floating point bit patterns). They are only really used as range sets of FlatFields, where they always have domain dimension = 1. Thus the MathType passed to FloatSet is (always in practice) the RealType of a FlatField range component. In fact, you don't even have to do that, since FloatSet is the default range set for FlatField range components, so FlatField constructs them implicitly. Bottom line, you rarely have to do anything with FloatSets. For example, 'grep FloatSet *.java' in the visad/examples directory doesn't find any matches. > By the way, the Spreadsheet can read HDF5 integer dataset now. > I didn't change anything in the visad package except I registed the > HDF5 adaptor in DefaultFamily.buildList(). If you guys can add a function > call to allow users to register user-defined adaptor, I even don't need > to touch the visad package. Well, we'd really love to add your HDF5 file adapter code to the VisAD source distribution, and make a link to it a permanent part of DefaultFamily. 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: