[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #SJT-401280]: Problem converting "days since ..." YYYY/MM



Chad,

> Thank you for your response Steve. Yes, when it's done, I'd like to
> contribute it to Unidata.
> 
> I've written a program to read a binary file containing gridded data
> and write it to a netCDF file for easier handling. I want to encode
> the time variable to conform to CF conventions. The time series begins
> in January 1880 and I want the units to be "days since 1880-01-01".

Then just set the "units" attribute for the time variable to "days since 
1880-01-01". Programs that read the data can easily convert the time values 
using UDUNITS-2 converter objects, if necessary.

> As a side note, I wrote and somewhat tested an F2003 interface to the
> old udunits package. It's able to get done what I need to get done,
> but I'd like to accomplish the same thing in the new udunits package.

The UDUNIT-2 package is much better than the original UDUNITS package.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: SJT-401280
Department: Support UDUNITS
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.