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.

Re: visad.TypeException: ScalarType: name already used

Hi Luke,

> Why do I get the  error message:
> 
>  visad.TypeException: ScalarType: name already used
> 
> It occurs with this call:
> 
>     index = new RealType("Index");

Try:

  index = RealType.getRealType("Index");

This will either construct it, or if its already constructed
then just return it.

Cheers,
Bill