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

Home » Public Forums » archive » Re: Five days mean values
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: Five days mean values [message #45752] Fri, 07 October 2005 05:10 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Julio wrote:
> Thanks Mike, now I undestand how rebin works...
>
> I'll try this, but I'm not sure rebin will help me... The fact is my
> temperature array size is not always multiple of five, due to the
> number of days in a month (28, 30 or 31).
>
> Kind Regards,
> J�lio
>
Hello,

I'm not sure what you want to do with the 'extra' days each month. But
if what you want is to bin the dates into 5-day consecutive groups then
I suggest you...

(1) Convert your dates from strings to Julian day values. You need to
used some string processing before you get to using JULDAY().

(2) Sort your dates into 5 day bins using HISTOGRAM().

H = HISTOGRAM(myJulianDayValues, START = JULDAY(8,1,2001), BIN = 5, $
REVERSE = r, LOCATION = binStartDates)

(3) Use the REVERSE_INDICES to extract the records for each 5 day group.

Hope that helps.

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: easy question
Next Topic: Easy question?

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

Current Time: Wed Oct 08 13:59:48 PDT 2025

Total time taken to generate the page: 0.00184 seconds