Home »
Public Forums »
archive »
Re: Efficient Programming (This post finally worked)
Re: Efficient Programming (This post finally worked) [message #4614] |
Sun, 02 July 1995 00:00 |
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
|
|
|
Current Time: Wed Oct 08 20:02:50 PDT 2025
Total time taken to generate the page: 0.01096 seconds