Differences in Save files [message #7887] |
Fri, 17 January 1997 00:00  |
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  |
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 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|