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

netCDF time representation

David Wilensky (cia@maestro.srcc.lsu.edu)
Wed, 12 Feb 92 10:50:29 CST

It seems that we will always run out of resolution space as certain
disciplines progress. Why not do what IEEE did with numbers?

Have two representations. (1) is some existing type of time which is
easy to represent in 8 bytes of data - pick your best, seconds since
worm crawls or minutes since last snow but something geared toward the
HUMAN time reference. (2) For those who need extended time representation
take a lesson from good-ole BCD arithmetic. Come up with an arbitrary
precision time in some units (you applied scientists figure out what
units - I don't care). You could even do this with BCD since most
C++ compilers include BCD extensions.

Since BCD is the only data type >8 bytes that most languages easily
work with it has some commonality and perhaps "portability" (don't
start yelling about portable - i know i know).

regards,
david wilensky
cia@maestro.srcc.lsu.edu
(504) 388-6438

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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