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

Home » Public Forums » archive » Re: problem with save
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: problem with save [message #43948] Tue, 10 May 2005 08:21 Go to next message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Benjamin Luethi" <luethi@phim.unibe.ch> wrote in message
news:op.sqj8dso1o9wlc0@elara...
> I see, you're using size(d) to determine the dimensions...
> (read the documentation on how to use it!)
>
> After you restore d, d is actually a string. This is because
> -you saved d as a string variable or
> -you restored the wrong file or
> -???

Looks like the OP saved the filename as a string.

OP, make sure that you are setting the filename keyword, as
well as indicating what variables to save.
Also, read the help on the size function.

Cheers,
bob
Re: problem with save [message #43951 is a reply to message #43948] Tue, 10 May 2005 05:45 Go to previous messageGo to next message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
I see, you're using size(d) to determine the dimensions...
(read the documentation on how to use it!)

After you restore d, d is actually a string. This is because
-you saved d as a string variable or
-you restored the wrong file or
-???


On Tue, 10 May 2005 13:48:51 +0200, <cecilik@yahoo.com> wrote:

> I writed so, but the size of my sav file is again: 0, 7, 1 and my array
> d is (36,44,32).
> Why?
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
------------ And now a word from our sponsor ----------------------
For a quality mail server, try SurgeMail, easy to install,
fast, efficient and reliable. Run a million users on a standard
PC running NT or Unix without running out of power, use the best!
---- See http://netwinsite.com/sponsor/sponsor_surgemail.htm ----
Re: problem with save [message #43952 is a reply to message #43951] Tue, 10 May 2005 05:31 Go to previous messageGo to next message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
What do you mean by "the size of my sav file"? the dimensions?
How do you determine it?

The following example works fine for me:

IDL> d=findgen(36,44,32)
IDL> help,d
D FLOAT = Array[36, 44, 32]
IDL> save, filename='xxx.sav',d
IDL> d=0
IDL> restore,'xxx.sav'
IDL> help,d
D FLOAT = Array[36, 44, 32]

Ben

On Tue, 10 May 2005 13:48:51 +0200, <cecilik@yahoo.com> wrote:

> I writed so, but the size of my sav file is again: 0, 7, 1 and my array
> d is (36,44,32).
> Why?
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: problem with save [message #43954 is a reply to message #43952] Tue, 10 May 2005 04:48 Go to previous messageGo to next message
cecilik is currently offline  cecilik
Messages: 7
Registered: September 2004
Junior Member
I writed so, but the size of my sav file is again: 0, 7, 1 and my array
d is (36,44,32).
Why?
Re: problem with save [message #43955 is a reply to message #43954] Tue, 10 May 2005 03:29 Go to previous messageGo to next message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
You need to specify what variable(s) you want to save:

save, filename='xxx.sav', d

Regards, Ben

On Tue, 10 May 2005 12:13:50 +0200, <cecilik@yahoo.com> wrote:

> Hi all,
> I have an ascii file, from this I calcule an 3d array of size
> (36,44,32)
> I would save this array (d) and recall him after from another project.
> I writed:
>
> save, filename='xxx.sav'
>
> but when I recall with restore:
>
> restore, 'xxx.sav'
>
> the size of my file is 0, not 3!!!!!
> Where am I wrong?
> Thanks
> Regards
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: problem with save [message #43956 is a reply to message #43955] Tue, 10 May 2005 03:19 Go to previous messageGo to next message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
> I writed:
>
> save, filename='xxx.sav'
>
> but when I recall with restore:
>
> restore, 'xxx.sav'
>
> the size of my file is 0, not 3!!!!!

save, your_var, filename='xxx.sav'




--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
Re: problem with save [message #44095 is a reply to message #43948] Fri, 13 May 2005 03:21 Go to previous message
cecilik is currently offline  cecilik
Messages: 7
Registered: September 2004
Junior Member
Ok, thanks all everybody!
I solved the problem and restored my array.
Now it seems ok... for the moment!
Regards
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to apply a function to an array?
Next Topic: Object graphics output police (iImage)

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

Current Time: Wed Oct 08 13:44:15 PDT 2025

Total time taken to generate the page: 0.01061 seconds