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

Home » Public Forums » archive » Differences in Save 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
Differences in Save files [message #7887] Fri, 17 January 1997 00:00 Go to next message
cabr69 is currently offline  cabr69
Messages: 8
Registered: April 1995
Junior Member
Hi All,

I was wondering whether there was a way in IDL to tell if two
save/restore files contain identical data, something like the
'diff' command in UNIX except useable within IDL. Two identical
s/r files are said to differ if I use the UNIX command, presumably
because they contain information about the time they were
created etc. Basically, I've written some code that performs
various IDL commands and I just wanted to check that the output
was the same as if I had typed it in interactively.

Any ideas?

Thanks in advance,

David
Re: Differences in Save files [message #7939 is a reply to message #7887] Thu, 23 January 1997 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
D.H.Brooks wrote:
>
> Hi All,
>
> I was wondering whether there was a way in IDL to tell if two
> save/restore files contain identical data, something like the
> 'diff' command in UNIX except useable within IDL. Two identical
> s/r files are said to differ if I use the UNIX command, presumably
> because they contain information about the time they were
> created etc. Basically, I've written some code that performs
> various IDL commands and I just wanted to check that the output
> was the same as if I had typed it in interactively.
>

If the number of variables you're saving is manageable, you might
try just writing the variables to a file using OPENW and WRITEU.
Just be sure the data-types are the same, and you should be able
to compare the files to see if they're different.

Dave

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL "expert" needs help BAD!
Next Topic: Re: IDL "expert" needs help BAD!--Correction to earlier post.

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

Current Time: Wed Oct 08 13:31:45 PDT 2025

Total time taken to generate the page: 0.00628 seconds