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

Home » Public Forums » archive » trying to export pixel data from .dat files, based on coordinate loc
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: trying to export pixel data from .dat files, based on coordinate loc [message #71696 is a reply to message #71623] Mon, 12 July 2010 14:51 Go to previous messageGo to previous message
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
On 12/07/2010 4:37 PM, Snow53 wrote:
> 3. The way the code currently reads, it will output twice when I run
> it but only giving me pixel data from the first file read under
> 'file'. I think that I need to write a loop to specify to read from
> the 'file' list one at a time, go through the code, close that file,
> and then start with the next. I'm not sure, though, how to write
> this, and would appreciate advice.

>for i=0, num_file-1 do begin
> file=file_array
> endfor

ok, first, change the line to
file=file_array[i]
so that you get the i-th element.
Then, simply move the "endfor" statement to the bottom of your code,
just before the "end" of you procedure

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: trying to export pixel data from .dat files, based on coordinate loc
Next Topic: % POLY_FIT: Warning: Invert detected a small pivot element - help needed

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

Current Time: Wed Oct 08 19:35:08 PDT 2025

Total time taken to generate the page: 0.00431 seconds