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

Home » Public Forums » archive » NetCDF: Converting time variable using start time from "units"
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
NetCDF: Converting time variable using start time from "units" [message #91903] Mon, 14 September 2015 13:33 Go to previous message
laura.hike is currently offline  laura.hike
Messages: 87
Registered: September 2013
Member
I've been reading and writing NetCDF files using IDL for some time. Now I'm wondering whether there's a better way to convert the values in the "time" variable to real times than by using ncdump to get the units from the attributes and then hard coding the offset into my routines. I can read the units, e.g.,

time:units = "minutes since 2007-01-26 01:30:00"

using ncdf_attget, but don't know of any way IDL can understand this information and automatically apply the offset to the values in "time". I've heard a rumor that this can be done. Any suggestions? Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interpolate
Next Topic: how to write a for loop that skips over things

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

Current Time: Wed Oct 08 09:19:49 PDT 2025

Total time taken to generate the page: 0.00435 seconds