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

Home » Public Forums » archive » Re: compile a routine wich inlude a commun
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: compile a routine wich inlude a commun [message #47065 is a reply to message #47064] Sun, 22 January 2006 12:13 Go to previous messageGo to previous message
L. Testut is currently offline  L. Testut
Messages: 16
Registered: January 2006
Junior Member
Dear David,
I must explain you a bit more what I want to do.
I want to build an application which is able to treat the data of 4
satellites (I want my routine to be satellite independant). For the
moment I'm just concerned with the reading of the data (the first step
of my application). Data of each satellite is stored in a different
directory that contain a certain number of binary files + an ASCII file
(info_file.txt) containing information on how to read the binary files.

Then I've wrote a program (create_common.pro) that decode the
info_file.txt and create an ASCII file : "common_base.pro" (a kind of
batch file) with all the information I need to read the binary files +
the coordinates of the point, + the names of all the parameters, and so
on... (I define 3 common on my batch file common_base.pro)

*****************************
common_base.pro
common info_base, para1, para2, ect....
common info_head, head1, head2, ...
common info_point, point1, point2,...
*****************************

I have written differents routine to decode the data, defined a
sructures, plot the data... But many of them need one of the common to
work.
for example:
PRO convert_binary_files, my_file, ...
COMMON info_head
....
END

So when I work with the IDL command line there no problem, because I
first compile and execute the create_commo.pro, this operation create
the file common_base.pro (that defined the different common I need for
the other program). Then I load this common_base.pro (@common_base) and
then from this point I can compile and execute all my other programs.

BUT..the problem arise when I try to put all this routines in a project
because I can't compile all the files because in these case the
common_base.pro has been created yet !

I think the best solution is probably to avoid the use of common, but I
don't see exacly how to do that as simply as with the use of common ?

Cheers,
L. Testut
PS: I've bought your book this month, and I really enjoy to read it,
but my wife thinks it's a bit strange to read a programming book in my
bed before to sleep !
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDLWAVE: no sympathy for the devil (vi vi vi)
Next Topic: Re: iTools Data Manager

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

Current Time: Sat Oct 11 21:39:06 PDT 2025

Total time taken to generate the page: 2.63803 seconds