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

Home » Public Forums » archive » Summing arrays without loops
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Summing arrays without loops [message #27317] Tue, 16 October 2001 14:07
Matt Jolly is currently offline  Matt Jolly
Messages: 1
Registered: October 2001
Junior Member
Hello IDL users,

I have a 3d array of daily precipitation data for the globe that I would
like to sum for the entire year but I would like to do it without looping.
The array is initialized as follows:

IDL> data = fltarr(365,192,94)

where 365 is the number of days, 192 is the number of longitudes and 94 is
the number of latitudes.

Is there a way to sum the daily values without writing a nested loop?

Thanks in advance for your input.

Matt Jolly
NTSG, University of Montana
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Summing arrays without loops
Next Topic: Intersection of 2 sets--Beginner IDL question

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

Current Time: Wed Oct 08 18:13:36 PDT 2025

Total time taken to generate the page: 0.00578 seconds