Back Home Up Next

Subchapters:

Summary


1) Interactif (under IDL prompt, for small programs)

        IDL> .run
  - for i=1,10 do begin
  -         plot,x(*,i),y(*,i)
  - endfor
  - end ;
compilation and execution will start now

2) From files

Kind of prg      looks like: (Re-)Compilation Execution
Procedures 
Function 
toto.pro 
pro toto,a 
(or function toto,a) 
... 
... 
... 
end 
.compile toto 
.run toto ; will not run toto 
.rnew toto ; will not run toto
toto,a 
will not be re-compiled! 
Main tata.pro ... 
... 
... 
end
  .compile tata  .run tata 
.rnew tata 
Will be (re)compiled
.go  (for the local main)
Bach 
titi.pro ... 
... No blocks 
... no end 
... 
  @titi 
from unix: idl < titi.pro
 

 

IDL courses C. Morisset 2004 IA/UNAM V 2.2

Back Home Up Next