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

Home » Public Forums » archive » Re: issue with CMSAVE
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: issue with CMSAVE [message #83916 is a reply to message #83915] Thu, 18 April 2013 10:14 Go to previous messageGo to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
You mean something like this?

c_var = make_array(544,8, /byte)
my_struct = {a:1, b:2, c:c_var}

Same issue:

cmsave, data=my_struct, file='C:/Documents/test.sav', /verbose
% CMSAVE: CMSAVE version 1.16
% CMSAVE: CMSV Library version 1.7
% CMSAVE: Portable (XDR) SAVE/RESTORE file.
% CMSAVE: Saved variable: A.
% CMSAVE: Saved variable: B.
% CMSAVE: Expression must be named variable: <BYTE (Array[544, 8])>


On Thursday, April 18, 2013 12:30:40 PM UTC-4, Coyote wrote:
> On Thursday, April 18, 2013 10:17:31 AM UTC-6, fgg wrote:
>
>
>
>> I'm using Markwardt's CMSAVE and I'm having problems saving structures that include a 2-D array:
>
>>
>
>
>
>> my_struct = {a:1, b:2, c:make_array(544,8, /byte)}
>
>> cmsave, data=my_struct, file='C:/Documents/test.sav', /verbose
>
>> % CMSAVE: CMSAVE version 1.16
>
>> % CMSAVE: CMSV Library version 1.7
>
>> % CMSAVE: Portable (XDR) SAVE/RESTORE file.
>
>> % CMSAVE: Saved variable: A.
>
>> % CMSAVE: Saved variable: B.
>
>> % CMSAVE: Expression must be named variable: <BYTE (Array[544, 8])>
>
>>
>
>> How can I fix this?
>
>
>
> Well, you could make your C field point to a named variable instead of an expression. :-)
>
>
>
> Cheers,
>
>
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: cgArrow Solid keyword with a cgWindow
Next Topic: Re: plot and contour inconsistency

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

Current Time: Fri Oct 10 20:58:55 PDT 2025

Total time taken to generate the page: 1.12956 seconds