Re: more SAVE problems [message #48465] |
Mon, 24 April 2006 05:33 |
Liberum
Messages: 48 Registered: September 2005
|
Member |
|
|
Thanks Reimar,
I found out that /all is not good but I don't know why.
I simply did as you said and saved only one variable and it worked.
/Sheldon
|
|
|
Re: more SAVE problems [message #48467 is a reply to message #48465] |
Mon, 24 April 2006 00:37  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Sheldon wrote:
> I have searched my entire directory with the function:
> find . -name "*.sav"
> and I the file is nowhere to be found.
> It was never created because I used the Restore function and tried to
> find it and it failed.
> I pressume that there is no problem with the code as far as you can
> see?
>
> Sheldon
hi Sheldon
if you set the keyword /all you do not need to set the /variables keyword
too. And btw. it is not good to save always /all.
Try at first something like this
a=10
save, file='example.sav',a
.reset_session
help,a
restore,file='example.sav'
help,a
cheers
Reimar
|
|
|
Re: more SAVE problems [message #48475 is a reply to message #48467] |
Fri, 21 April 2006 12:05  |
Liberum
Messages: 48 Registered: September 2005
|
Member |
|
|
I have searched my entire directory with the function:
find . -name "*.sav"
and I the file is nowhere to be found.
It was never created because I used the Restore function and tried to
find it and it failed.
I pressume that there is no problem with the code as far as you can
see?
Sheldon
|
|
|
Re: more SAVE problems [message #48476 is a reply to message #48475] |
Fri, 21 April 2006 11:38  |
Jean[1]
Messages: 8 Registered: November 2005
|
Junior Member |
|
|
Sheldon wrote:
> Hi All,
>
> I am using IDL6.2 on a Linux machine.
> I am having problems with the following save command:
>
> str = "path" + "filename.sav"
print, str
--> pathfilename.sav
look for this file on your computer!
In my case (windows, idl 6.2), it saves it on the userName/My Documents/
folder (which is not set in the !path)
Jean
>
> SAVE, /ALL, /VARIABLES, FILENAME=str
>
> But when I look in the directory given in path, there is no saved file.
>
> THis is an example taken straight from the book.
>
> What is wrong?
>
> Any help will be greatly appreciated.
>
> Sincerely,
> Sheldon
>
|
|
|