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

Home » Public Forums » archive » IDL 8.0 questions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL 8.0 questions [message #71829] Sat, 24 July 2010 09:18 Go to previous message
Mike Potter is currently offline  Mike Potter
Messages: 19
Registered: August 2008
Junior Member
I downoaded and installed IDL8.0 yesterday. There are a few things I
don't understand (amongst the things I'm yet to understand that I
don't understand!):

1) I'm trying out the new "foreach" capability. The top loop, below,
works, the bottom one does not.

for i=0,nf-1 do begin
qfile = file_names[i]
image = readfits( qfile )
sky,image,sky,sky_sig,/silent
q = dialog_message( "Sky = "+string(sky)+" Sigma =
"+string(sky_sig) ,/information )
endfor

foreach qfile, file_names do begin
image = readfits( qfile )
sky,image,sky_mod,sky_sig,/silent
q = dialog_message( "Sky = "+string(sky_mod)+" Sigma =
"+string(sky_sig) ,/information )
endforeach

After running the bottom loop, the first time readfits is called it
crashes and the input "qfile" has been changed and either contains two
characters equal to the final two characters of what qfile was on
input, or it returns a short string of garbage characters.
(file_names is a string array of filenames returned by
dialog_pickfile).


Also, if I try to save a file using the file menu drop-down and select
"Save As" and save so as to overwrite the existing file I get

1) the expected information modal dialog asking if I really want to
overwrite the existing file. If I select yes then
2) the code in the Workbench disappears and is replaced by some text
saying something about the file being out-of-sync with the file
system, and to use "file > refresh" (it''s only there for a second or
two) - then the code returns and another modal dialog ("File Changed")
asks me if I want to replace the editor contents with the "changed"
file.


I've also had the Workbench just completely crash and exit - several
times. The Workbench also seems to occasionally loose it's way - when
that happens I can say "help" to have it print a list of current
variables and compiled modules and such but nothing gets printed. I
can also do "help,qfile", for instance, and nothing is returned, even
though the value of qfile is showing in the "variables" pannel.

Is it me or is it bugs?

THanks!
Mike Potter
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: arbitrary precision in IDL?
Next Topic: Displaying a 32 bit image with IDL

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

Current Time: Fri Oct 10 12:50:31 PDT 2025

Total time taken to generate the page: 1.36202 seconds