Re: Question about units package...

Roland,

>Date: Thu, 14 Dec 2000 14:02:40 -0600
>From: Roland Schweitzer <rhs@xxxxxxxxxxxx>
>Organization: Climate Diagnostics Center
>To: visad-list@xxxxxxxxxxxxx
>Subject: Question about units package...
>Keywords: 200012142008.eBEK8ko15136

The above message contained the following:

> Below is a snippet of of Perl code that uses UDUNITS to translate a
> date as it is stored in our netCDF files to something a human can
> read.
>
> Digging around in the various examples and docs, I have not been able
> to figure out how to do the equivalent using the Java units package.
> Can somebody please provide me with a pointer a specific example or
> tutorial that covers this?

Regretably, the VisAD units subsystem does not yet contain an equivalent
of the "valtocal" function.  At the moment, the best advice I can give
is to use the standard Java date and time-handling classes to do what
you want (e.g. the "Data" and "Calendar" classes in the "java.util"
package).

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>


  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: