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

Home » Public Forums » archive » Re: match 2 files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: match 2 files [message #54121] Mon, 21 May 2007 05:46
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sujian@gmail.com writes:

> I cant find the solution in Coyote's Guide to IDL Programming. Should
> I try C for this part?

Before you go to the trouble of learning four or five
new programming languages to solve this problem, I would
try something simpler. Get a sheet of paper, and with a
pencil write down the six or seven steps that you would have
to take to solve this problem. Label the list "Algorithm".

Then, study the list and see if you can implement each
step in whatever programming language you have at hand.
Who knows. It could led to a solution. At the very least,
it might engender some useful questions. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: match 2 files [message #54123 is a reply to message #54121] Mon, 21 May 2007 00:20 Go to previous message
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hi,
>
> I cant find the solution in Coyote's Guide to IDL Programming. Should
> I try C for this part?
In general you don't find generic solutions for individualized problems
:). It always requires to do at least something yourself - or at least
to spend some money :o

Just a random suggestion:

write yourself a function that:
- reads the files into arrays
- compares the proper entries
- passes on the corresponding entry.

Details of implementation depend upon your files, especially how
well-structured they are, and data types.

Regards,
Ingo

--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc

If you need an urgent reply, replace newsgroups by vgap.
Re: match 2 files [message #54125 is a reply to message #54123] Sun, 20 May 2007 21:21 Go to previous message
sujian is currently offline  sujian
Messages: 10
Registered: May 2007
Junior Member
On May 20, 11:06 pm, David Fanning <n...@dfanning.com> wrote:
> suj...@gmail.com writes:
>> to do:
>
>> compare the assigned numbers in 2 columns in 2 data files.
>> if they are satisfied with some criteria,
>> get the number of the first column in that line.
>
>> do you have any idea?
>
> No, do you? What have you tried?
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I cant find the solution in Coyote's Guide to IDL Programming. Should
I try C for this part?
Re: match 2 files [message #54127 is a reply to message #54125] Sun, 20 May 2007 20:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sujian@gmail.com writes:

> to do:
>
> compare the assigned numbers in 2 columns in 2 data files.
> if they are satisfied with some criteria,
> get the number of the first column in that line.
>
> do you have any idea?

No, do you? What have you tried?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: redout of "name", "type" and "value" tags into a string
Next Topic: write a root group to HDF5 file

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

Current Time: Wed Oct 08 15:15:43 PDT 2025

Total time taken to generate the page: 0.00621 seconds