[Thread Prev][Thread Next][Index]

Re: [ferret_users] working with data of a month over the years



Hi Peter,

in the second conditional you have two 'ge's

replace

or (`l` ge 360 and `l` ge 390)

with

or (`l` ge 361 and `l` le 390)

Cheers
Simon


On 03/01/2008, at 11:39 AM, Peter Szabo wrote:

Dear Ferreters,

I am using ferret on XP. I have equally spaced daily data in time (30days* 12months* 30years). I would like to eliminate everything but data of january over the years i order that i could do other things with the january data.

I tried looking it up in the archives and I tried with the following but
have not succeeded yet:
-----------------
repeat/l=1:10800:1 (let precip2=if ((`l` ge 1 and `l` le 30) or (`l` ge 361 and `l` ge 390) or (`l` ge 721 and `l` le 750) or (`l` ge 1081 and `l` le
1110) or....(and so on)....) then precip else precip*0.0)
-----------------
Does anyone can help me?

Peter Szabo
elte




[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement