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

Home » Public Forums » archive » open and save a set of image
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: open and save a set of image [message #51419 is a reply to message #51365] Mon, 20 November 2006 06:23 Go to previous messageGo to previous message
cecilia.devecchi is currently offline  cecilia.devecchi
Messages: 6
Registered: November 2006
Junior Member
No, sorry....We open, read, extract our data. We have written the
following 'loop for' to open these data:

file_array=file_search('filepath', '*.200*', count=num_file)
for i=0, num_file-1 do begin
filename=file_array(i)
print, filename
openr, lun, /get_lun, filename

;read
free_lun, lun
;Analyze....
....
....
endfor

But analyze only the first file.....where do we wrong?
We hope to explain our problem....



Ben Tupper ha scritto:

> cecilia.devecchi@gmail.com wrote:
>> Well, probably we're more newbie than others :).
>>
>> We agree with Paul, we have given few details. We know that we need of
>> a FOR loop, but we have this problem: the name of image are
>> 01--1-960305-0941-D-24258, 02--1-960409-0941-D-24759, etc...How do we
>> open (simply open) all the image with this kind of name? For the remain
>> of homework (analisys etc), the script is already written.
>> We need some advice about this "name problem" from programmers expert
>> (like David that is a "IDL guru" ;)) or programmer that has already
>> dealt this problem.
>
>
> Hi,
>
> Is the concern is that your files don't have extensions? If so, then
> rest easy if the images are standard format like TIFF, PNG, etc.
>
> I created a TIFF and saved it without an extension. IDL (6.3) read it
> back in without a hitch.
>
> IDL> image = read_image('/Users/ben/12--345-67')
> IDL> help, image
> IMAGE BYTE = Array[406, 408]
>
> Does that help?
>
> cheers,
> Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: POLYFILLV weirdness
Next Topic: vectorized RK4

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

Current Time: Sat Oct 11 05:29:46 PDT 2025

Total time taken to generate the page: 0.63979 seconds