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

Home » Public Forums » archive » HELP adding arrays
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: HELP adding arrays [message #91542 is a reply to message #91540] Sun, 26 July 2015 12:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dete van Eeden writes:

> for j=0,5 do begin
>
> ...go to the filename etc....
>
> openr,l,File4,/get_lun
>
> readf,l,val
>
> values(*,j) = val
>
> free_lun
>
> finaal =temporary(finaal) + values[*,j]
>
> or finaal = total(values,2)
>
> endfor
>
> it doesnt work

Uh, take the TOTAL calculation out of your loop. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Current color table
Next Topic: cgsymbols change when saving from cgwindow to pdf

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

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

Total time taken to generate the page: 0.00197 seconds