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> !path='/home/kuin/work/giulio:/home/kuin/myidl:/home/kuin/myidl/gdlpro:/home/kuin/myidl/gdlpro/cmsvlib'
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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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> !path='/home/kuin/work/giulio:/home/kuin/myidl:/home/kuin/myidl/gdlpro:/home/kuin/myidl/gdlpro/cmsvlib'
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
% $MAIN$
Segmentation fault
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.
Joel
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:anonymous@gnudatalanguage.cvs.sourceforge.net:/cvsroot/gnudatalanguage co
will place the code in the gdl subdirectory. Then configure and build as usual.
Joel
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!