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

Home » Public Forums » archive » Problem restoring IDL SAVE files in version 5.3 when created in version 5.4
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problem restoring IDL SAVE files in version 5.3 when created in version 5.4 [message #25010] Tue, 08 May 2001 09:18
Christopher K. Pankra is currently offline  Christopher K. Pankra
Messages: 1
Registered: May 2001
Junior Member
I are attempting to save a variable created in an IDL 5.4 session for
someone to restore in IDL 5.3, and I are running into some problems. Here
is a sample session for creating the save file in IDL 5.4 and restoring it
in IDL 5.3 which illustrates the problem.

In IDL 5.4:
IDL> rec = {a:0.0, b:0L, c:bytarr(200)}
IDL> save, rec, file='test.sav'

In IDL 5.3:
IDL> restore, 'test.sav'
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% RESTORE: Unexpected item code found in save file.
% Execution halted at: $MAIN$

The IDL 5.4 reference manual indicates that saving/restoring data should be
backward compatible. It says "Note also that save files containing routines
may not be compatible between different versions of IDL, but that files
containing data are always backwards-compatible." It is my intent not to
store any information other than the variable of interest, which does happen
to be a structure.

I have tried using the "/VARIABLES" keyword to the SAVE command as well, but
this does not seem to help. Any assistance would be appreciated.

Thanks,
Chris
[Message index]
 
Read Message
Previous Topic: Re: Where to put (unix) DLMs?
Next Topic: looking for William Connelly's IDL website

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

Current Time: Sat Oct 11 10:14:29 PDT 2025

Total time taken to generate the page: 0.24142 seconds