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

20050418: udunits documentation



Jeremy,

>Date: Mon, 18 Apr 2005 16:24:58 -0400
>From: Jeremy Rolph <address@hidden>
>Organization: Florida State University
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20050418: udunits documentation 

The above message contained the following:

> I am using fortran and i am assuming that is possibly why the
> julday_to_gregdate function does not work???

Probably.  The function julday_to_gregdate() in the UDNITS library
doesn't have a Fortran interface.

You could use any another routine that converts Julian day-number to
Gregorian date.  Alternatively, you could modify the file "lib/utlib.c"
in the UDUNITS package by adding

    FCALLSCSUB4(julday_to_gregdate,jultogreg,JULTOGREG,
        LONG,PINT,PINT,PINT)

just after the definition of the julday_to_gregdate() function.  At
least I think the above is correct -- you should verify that it does the
right think by executing the command "make utlib.i" in that subdirectory
and then examining the JULTOGREG subroutine.

The two functions -- julday_to_gregdate() and gregdate_to_julday() -- were
never intended to be used outside the UDUNITS package.

> thanks again,
> jeremy

Regards,
Steve Emmerson


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.