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

Home » Public Forums » archive » Re: Restore problem.
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: Restore problem. [message #67808 is a reply to message #67807] Thu, 27 August 2009 14:41 Go to previous messageGo to previous message
liamgumley is currently offline  liamgumley
Messages: 74
Registered: June 2005
Member
On Aug 27, 2:24 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
> "David Fanning" <n...@dfanning.com> wrote in message
>
> news:MPG.250089ba351c1ddf989864@news.giganews.com...
>
>> R.G. Stockwell writes:
> ...
>> I'm not saying you are wrong about this, and
>> there could very well be a problem with RESTORE.
>> But, that would be *far* down on the list of things
>> I would be checking. Have you considered that the
>> variables you put into the save file may not have
>> had the values you thought they had? That would
>> be at the top of my list.
>
>> Any luck duplicating the problem?
>
> Aparrently it can be reproduced by writing the save in
> IDL 7.0.6, and reading it in IDL 7.1.
>
> However, I see the problem reading the file (from 7.0.6) in IDL 6.3 as well.
>
> I'll snoop around and see if I can make a good example.
>
> I agree that the RESTORE problem seems unlikely (and user
> error seems quite likely),  but this is such a simple operation.
> It is basically 3 steps.
>
> Save, array1, array2, array3
> email it to me
> restore, filename
>
> cheers,
> bob

Have you considered computing a checksum for the file to make sure it
is not corrupted during the email step? md5sum works well for this
task.

Do you see the same problem if you skip the email step?

I just ran the following test and everything worked as expected:

Create save file on Mac running IDL 7.1:
IDL Version 7.1, Mac OS X (darwin x86_64 m64). (c) 2009, ITT Visual
Information Solutions
IDL> data = dist(256)
IDL> save, data, filename='dist256.sav'

Send file to Linux box (via scp) running IDL 6.2 and read it:
IDL Version 6.2 (linux x86_64 m64). (c) 2005, Research Systems, Inc.
IDL> restore, 'dist256.sav'
IDL> help, data
DATA FLOAT = Array[256, 256]
IDL> print, max(abs(data - dist(256)))
0.00000

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Restore problem.
Next Topic: Measuring sphericity of a set of voxels.

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

Current Time: Wed Oct 08 18:10:10 PDT 2025

Total time taken to generate the page: 0.00372 seconds