How to create a .sav file the right way ? [message #73677] |
Mon, 22 November 2010 10:31 |
Jean[2]
Messages: 41 Registered: October 2010
|
Member |
|
|
Hi all,
My work it to build 'executable' GUIs (.sav file). Since I started
doing so, I have been strugling in the way to create those .sav file
and now that I'm facing an issue to incorportate the new plot graphic
feature of the new IDL 8.0, I realize that I may have done it the
wrong way all that time.
so far, here what I've done do create those .sav file
on the command line
> make
will call my Makefile
<Makefile>
all:
idl ./makefile.pro
</Makefile>
<makefile.pro>
.run function1.pro
.run function2.pro ;I have to do that to be sure the
functions are build before the procedure using them
.run procedure1.pro
.run procedure2.pro ;but if for example one of the routine
uses mean, congrid...etc, those are not compile yet when needed,
so I have to do the following trick
resolve_routine, "mean", /either
resolve_routine, "cw_field", /either
....etc....
save, /routines, filename = './main_routine.pro'
exit
</makefile.pro>
my problem is that I basically have to run the .sav file and see all
the missing routines not yet buld to add them to this makefile.pro
file. Then make the .sav file again and get the next missing
routines....etc
I have been doing that for 5+ years without too much problem (painful
but at least it works).
Unfortunately, that seems to be much more painful with the new plot
graphics...as this one calls some dependencies (that of course are not
build) that call other dependencies....etc. I don't know where this is
going to stop. So here I am asking for help. Have I been doing it all
wrong since day 1 and is there a way to compile all the plot graphics
(like for iPlot) into just 1 resolve_routine command ?
Jean
|
|
|