[Thread Prev][Thread Next][Index]

Re: [ferret_users] Repeat loop index nesting



Hi Patricia,
No, you can't fill in individual elements of an array using a REPEAT loop.

If your variables with the start and end indices are defining constant-sized windows for the summing, then you should be able to achieve the same thing with the @SBX boxcar smoother - applied as one expression, not in any kind of loop.

Otherwise, there is always the inelegant but effective method of writing the results to a file at each iteration of your loop, then afterwards reading the result back into Ferret.

Ansley

On 12/17/2014 8:59 AM, Patricia Handmann wrote:
Dear ferreters,

Ist there a possibility to do this:

repeat/i=1:671 (let st=p_12111_st[i=`i`];\
let end=p_12111_end[i=`i`];\
let int_transp_s= var1211[i=`st`:`end`@SUM])

It should calculate the Sum and save it to the new grid of int_transp_s.

Cheers,
Patricia



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement