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

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>


 
 
  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