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

Home » Public Forums » archive » Re: adding lines of an image together
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: adding lines of an image together [message #67398 is a reply to message #67397] Mon, 27 July 2009 13:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barbara writes:

> For my research, I need to be able to add/condense lines of a fits
> image to be able to plot it. It can be up to 100 lines, and so I was
> thinking I need a program. I was wondering if there was one already
> created. If not, I was wondering how to set up a program to do this. I
> have attempted to try and came up with this:
>
> pro sum_rows, image, start, death, new
> COMPILE_OPT idl2
> current=start
> while (current le death) do begin
>
> new= image[*,start]++
> current=new
> endwhile
>
> iplot, new
> end
>
> (where start is the row i want to start at and death is the place i
> want to stop) Any advice/help would be appreciated!

How about this:

sumLine = Total(image[*,start:death], 2)

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: adding lines of an image together
Next Topic: Memory Leak

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

Current Time: Thu Jul 16 17:44:38 PDT 2026

Total time taken to generate the page: 0.80106 seconds