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

Home » Public Forums » archive » create a loop on IDL
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: create a loop on IDL [message #93330 is a reply to message #93322] Thu, 16 June 2016 07:17 Go to previous messageGo to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
I am not exactly sure of what you are doing but check my code:

pro soil_timeseries, dir, soil, outarr

files = file_search(dir, '*.bsq', count = nfiles)
file= 'F:\soil\MCD43A4.2000.049_soil.bsq\'

outarr = [ ]
data=intarr(2400,2400,/nozero)

for i = 0, nfiles - 1 do begin

print, files(i)

openr, lun, files(i), /get_lun
get_lun, read_lun

soil = assoc(read_lun, data)

roi = soil[28,1759]*0.0001
outarr = [outarr, roi]

free_lun

endfor

return
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading DICOM problem
Next Topic: Upgrading to Windows 10

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

Current Time: Wed Oct 08 13:55:24 PDT 2025

Total time taken to generate the page: 0.00422 seconds