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

Home » Public Forums » archive » Re: Efficient Programming (This post finally worked)
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
Re: Efficient Programming (This post finally worked) [message #4614] Sun, 02 July 1995 00:00
lkramer is currently offline  lkramer
Messages: 5
Registered: July 1995
Junior Member
Sorry for the multiple posts (my news reader's screwed up)
Replace the lines with:


ia=indgen(nx,ny) ; two dimensions.
ja = ia/nx ; rows are numbered
ia = ia mod nx ; column numbers
linarr = north_bound + (ja * line_res)
pixarr= west_bound+(ia * elem_res)

I've done this kind of thing many times. I pretty sure this preserves
the semantics of your code. But am sure its the way to do what
you want to do.
------------------------------------------------------------ ---------
Leonard Kramer, Ph.D. Physicist.
AGAR Corporation, (Process Measurement & Control)
POB 802127 Houston, TX 77280-2127
email: lkramer@neosoft.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Windows IDL 4.0
Next Topic: Re: Efficient Programming

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

Current Time: Wed Oct 08 20:02:50 PDT 2025

Total time taken to generate the page: 0.01096 seconds