Re: problem with save [message #43948] |
Tue, 10 May 2005 08:21  |
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   |
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   |
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 #43955 is a reply to message #43954] |
Tue, 10 May 2005 03:29   |
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/
|
|
|
|
|