Hi Doug,
> Is there a (good) reason why a ScalarType name "cannot contain space . (
> or )"? I'd like to create RealTypes with nice names for display purposes
> (e.g. "Wind Direction") but:
> . . .
There are a number of places where VisAD parses MathType
strings, and there may be applications out there that depend
in some way on the fact that ScalarType names do not contain
spaces. However, I have added a method to ScalarMap:
public void setUnderscoreToBlank(boolean u2b);
If you call it with u2b = true, then "_" will be replaced
by " " in the name of the ScalarMap's ScalarType, in display
axis labels, and in widgets. See Test26.java and Test66.java
in the visad/examples directory for demos of how to use this.
I hope this addresses your needs.
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