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

Home » Public Forums » archive » Re: NCEP Reanalysis Temperature Data Problem
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: NCEP Reanalysis Temperature Data Problem [message #56504 is a reply to message #56492] Thu, 25 October 2007 11:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

OK, just so we are all on the same page here. The time data
in this NetCDF file is in hours since 1 January 0001. (Strange,
but true.) BUT, here is the thing, you are not *suppose*
to worry about that. What you are suppose to worry about
is the time *difference*.

So, in this data set, if I subtract time[1]-time[0]
I should have the number of hours between the two
measurements. If I divide by 24, I should get the number
of days:

IDL> Print, (time[1]-time[0]) / 24
31

In fact, if I do this:

IDL> Print, (Shift(time,1) - time) / 24

I get a comforting series of 31s and 30s, with the occational
28 thrown in there to give me hope!

So, all appears to be well in the Universe again. :-)

Thanks for everyone's help.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget Tables Sizes Variable in Two Dimensions
Next Topic: Using SYMCAT with LEGEND

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

Current Time: Sat Oct 11 12:15:05 PDT 2025

Total time taken to generate the page: 1.20570 seconds