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

[UDUNITS #DQC-988701]: udunits2 and fortran

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [UDUNITS #DQC-988701]: udunits2 and fortran
  • Date: Tue, 17 Dec 2013 15:42:55 -0700

Mahakur,

> Can I use udunits2 lib call inside a fortran code? If, possible please
> provide example code or a link. I would like to calculate 'time' from
> e.g. 'hours since 1970-1-1 0:0:0' given particular year, month, date,
> hour or vice-versa.
> 
> Thanking you.

The UDUNITS-2 package doesn't yet have a Fortran API. Creating one is on my 
list.

You could use the UDUNITS-1 package, which does have a Fortran API.

> With Regards,
> Mahakur
> 
> --
> M. Mahakur
> INDIAN INSTITUTE OF TROPICAL  METEOROLOGY
> PUNE - 411 008 (INDIA)

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: DQC-988701
Department: Support UDUNITS
Priority: Normal
Status: Closed