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

Home » Public Forums » archive » gridding large amounts of data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
gridding large amounts of data [message #2805] Wed, 05 October 1994 13:40 Go to previous message
dan is currently offline  dan
Messages: 27
Registered: March 1993
Junior Member
I have a large table of data in the form

LATITUDE LONGITUDE VALUE

There can be a million rows of entries in this 3 colum table.
I would like to put the data into a 1x1 degree array (fltarr(360,180))
If there are multiple entries for a particular longitude and latitude
I would like to sum the values. I could do this in an ugly do loop that
looked like

data=fltarr(360,180)
for i=1,num do $
data(longitude(i),latitude(i)) = data(longitude(i),latitude(i)) + value(i)

This works fine for small values of num, but for num>32,767 I get an error
saying my do loop index is too large. Can I write do loops with limits
greater than 32,767 ?? Could I rewrite this in vector syntax using the
where statement ??
--
************************************************************ ***
** Dan Bergmann dbergmann@llnl.gov **
** Global Climate Research fax (510) 422-5844 **
** Lawrence Livermore National Lab human (510) 423-6765 **
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RE: concatenating files
Next Topic: Re: LINUX version of IDL

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

Current Time: Wed Oct 08 17:01:30 PDT 2025

Total time taken to generate the page: 0.00430 seconds