comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Time conversion for .nc file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Time conversion for .nc file [message #86557 is a reply to message #86554] Tue, 19 November 2013 06:11 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Madhavan Bomidi writes:

> How can we obtain the exact month, day, year, hour, min, sec from the ncdfTime created above? I tried to use the CALDAT but it is giving some crazy numbers for each of them. I am asking this because in order to plot the variables as a function of time, the jultime is more difficult to say about which day it corresponds to. Do you have any better suggestion?

No other suggestions. CalDat works great. You just have to do the
reverse of what you have done previously. Convert seconds to Julian
days, add Julday(1,1,1970,0,0,0) to that result, and put that through
the CalDat function. I've never known it to go wrong. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL refuse to acknowledge anything but integers...
Next Topic: Derivatives

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:26:26 PDT 2025

Total time taken to generate the page: 1.43841 seconds