Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: 20000928: RealType.Time, and an exception

Thanks Don (and Stuart).  I have followup questions:

Don Murray wrote:

> >1. What Unit is RealType.Time?
> 
>  CommonUnit.secondsSinceTheEpoch (seconds since Jan 1, 1970, 00:00:00).

  If I use RealType.Time for my domain, the axis labels are in
human-readable form.  If I make my own RealType using the above unit, I
get axis labels displayed in seconds (I presume).  Why is that?  I
looked at the source (should have done that before I asked my question)
and see RealType.Time uses a constructor that I can't use.  Would that
be why?


> 
> >2. Related to #1...I'm getting the exception below.  I get the gist of
> >it but can someone explain the "why" behind it?
> >
> >visad.BadMappingException: Display.addMap: two ScalarMaps with the same
> >RealType & DisplayRealType
> 
> I'd say you are adding the same ScalarMap twice.  VisAD needs to be able
> to distinguish between the two.

  What makes 2 ScalarMaps the same?  The ScalarMap I make is local to
the method, though the method is called twice (once for initial plot,
once to replot with additional data).

  When is "VisAD for Dummies" due to be published?  I'll be first in
line :)

Thanks!

p


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690