Does anyone have had success with restoring an IDL save file with a data
structure in it?
I installed CMSVLIB routines, and then tried to open the save file, but it did not work:
GDL> restore , 'work/current.save'
% Compiled module: CMRESTORE.
% Compiled module: CMSVLIB.
% Compiled module: CMSV_OPEN.
% Compiled module: CMSV_RREC.
% Compiled module: CMSV_RRAW.
% Compiled module: CMSV_RVTYPE.
% Compiled module: CMSV_RDATA.
% BaseGDL::DataAddr(...) called.
% Execution halted at: RESTORE 1 myidl/gdlpro/restore.pro
% RESTORE 1 myidl/gdlpro/restore.pro
From memory, the save file has a structure
r_str with several arrays (string, float, integer), with 2 or 3 indices.
The note that the CMSV procedures would only restore 'data' maybe means not structures ? How should I interpret this result? Hopeless? I wondered if
someone had thoughfully written his/her own routine to save a structure from
IDL in a way that it can be restored easily. Any suggestions?
Any help will be appreciated.
Are you using the latest version from CVS? This code should be able to read structures using CMSVLIB.
I downloaded it from the webpage given in the gdl 0.9pre2 (readme?)
The last change was
$Id: cmsv_wraw.pro,v 1.7 2006/03/28 14:11:26 craigm Exp $
You need the latest version of the GDL code from the CVS repository.
cvs -z3 -d:pserver:email@example.com:/cvsroot/gnudatalanguage co
will place the code in the gdl subdirectory. Then configure and build as usual.
Thanks, I'm now doing the checkout (some work interfered). BTW, I had to add 'gdl' to the checkout command. Must be required for the first co. I'm also going to use solarsoft which is a pretty large suite of IDL sw. I'll keep all informed about my experiences. Promise!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.