Re: NCEP Reanalysis Temperature Data Problem [message #56504 is a reply to message #56492] |
Thu, 25 October 2007 11:33   |
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/
|
|
|