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

Home » Public Forums » archive » Re: Name of arrays
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: Name of arrays [message #79334 is a reply to message #79260] Tue, 21 February 2012 03:53 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Well, one more suggestion - forget the months: keep the data indexed by day. Then you can have one month, three or 13 without a problem, and - probably most usefully - you can even plot them all at once! No need for scope_varfetch, lists, pointers, structures, 28-day month fillers or any of that clever stuff...

IDL has plenty of functions to convert day indices back to dates if you want to have them in your output:

IDL> print,julday(1,1,2011)
2455563
IDL> caldat,2455563,m,d,y
IDL> print,m,d,y
1 1 2011
IDL> caldat,2455563+1,m,d,y
IDL> print,m,d,y
1 2 2011
IDL> print,2455563,format='(C(CMoA, X, CDI2.2, X, CYI5))'
Jan 01 2011


Greg
[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: tracking clusters through multiple timesteps
Next Topic: Issue with console of workbench 8.0

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

Current Time: Fri Oct 10 07:44:48 PDT 2025

Total time taken to generate the page: 0.71893 seconds