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

Home » Public Forums » archive » Re: compare ascii files, EOF
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: compare ascii files, EOF [message #31648 is a reply to message #31644] Mon, 29 July 2002 07:50 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Reimar Bauer wrote:
>
> Wolfgang Koppe wrote:
>>
>> Hi,
>> I�trying to compare 2 ascii-files with the "where"-fuction to get to
>> know which rows are equal. Both files have different lengths. The
>> query starts at row 1 and stops at the end of the shorter file. But I
>> would like to query till the end of the longer file.
>> I�ve tried it with the EOF-fuction, but it doesn�t work.
>>
>> file1 file2
>> 2451823.5034722 2451823.5041666
>> 2451823.5041666 2451823.5173111
>> 2451823.5048611 2451823.5243056
>> 2451823.5055555 2451823.5069444
>> 2451823.5062500 .
>> 2451823.5069444
>> 2451823.5076389
>> 2451823.5083333
>> .
>> .
>> Can you help to query the whole file.
>>
>> thanks.
>> Wolfgang
>
> Dear Wolfgang
>
> you can use our which_indices routine
>
> ;
> ; EXAMPLE:
> ; result=which_indices([10,2,3,20,4,12],[10,20,30])
> ; print,result
> ; 0 3
> ;

Make sure you check for a (difference < precision) rather than an equality though.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC Beer is good.
Ph: (301)763-8000 x7274 My wife.
Fax:(301)763-8545
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: bizarre number transformation
Next Topic: Trip to Ol' Stomping Grounds

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

Current Time: Fri Dec 05 20:07:00 PST 2025

Total time taken to generate the page: 0.01622 seconds