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

Home » Public Forums » archive » Efficient Programing
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
Efficient Programing [message #4778] Thu, 27 July 1995 00:00
dean is currently offline  dean
Messages: 55
Registered: March 1993
Member
I use the following code to read in an interleave (by pixel) raster image.
This works, but how would I make it more effecient by removing the FOR DO
BEGIN?

Kelly Dean
CSU/CIRA

=======================================sample=============== =============
nx = 392
ny = 350
prefix = 80
nchan = 7

IImage = BYTarr(nchan,nx,ny)
TEMP = BYTarr(prefix+nx*nchan)

FOR j = 1,ny DO BEGIN
READU, unit, TEMP
nxl = nx*nchan+prefix-1
TTemp = TEMP(prefix:nxl)
IImage(*,*,ny-j) = TTEMP
ENDFOR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: polyfill help
Next Topic: Re: Efficient Programing (reading multiband image)

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

Current Time: Wed Oct 08 14:32:49 PDT 2025

Total time taken to generate the page: 0.00567 seconds