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

Home » Public Forums » archive » Read a file
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
Read a file [message #74688] Fri, 28 January 2011 06:50 Go to next message
Giovanna is currently offline  Giovanna
Messages: 12
Registered: January 2011
Junior Member
Hello,

Me again....

I'm trying read two files and to save in other file. See my code:
http://pastebin.com/GRmNtags

I run a command restore, to restore the file .sav and .cnj.... and
then saved in 'data.dat' using 'printF'

Is this correct what I did in rows 16 to 23??

Thanks,
Re: Read a file [message #74738 is a reply to message #74688] Mon, 31 January 2011 13:15 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jan 31, 9:02 am, Giovanna <giovanna01.san...@gmail.com> wrote:
> So, file.sav and file1.cnj are savefiles ...and modelo.imag:

Then I see not point in trying to read file.sav and file1.cnj as text
files. Use only restore with them.

> Expression must be a structure in this context: MODELO.

That means that when you used help modelo was not in scope (or that it
is not a structure). Either use help at the point where you are trying
to use modelo, or get from wherever it comes from, before using help.
Your code makes it look like it comes from one of the savefiles. If
so, use help after restoring the file.
Re: Read a file [message #74774 is a reply to message #74688] Wed, 02 February 2011 08:30 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Feb 2, 5:42 am, Giovanna <giovanna01.san...@gmail.com> wrote:
> On 31 jan, 19:15, Paulo Penteado <pp.pente...@gmail.com> wrote:
>
>> On Jan 31, 9:02 am, Giovanna <giovanna01.san...@gmail.com> wrote:
>
>>> So, file.sav and file1.cnj are savefiles ...and modelo.imag:
>
>> Then I see not point in trying to read file.sav and file1.cnj as text
>> files. Use only restore with them.
>
>>> Expression must be a structure in this context: MODELO.
>
>> That means that when you used help modelo was not in scope (or that it
>> is not a structure). Either use help at the point where you are trying
>> to use modelo, or get from wherever it comes from, before using help.
>> Your code makes it look like it comes from one of the savefiles. If
>> so, use help after restoring the file.
>
> I don't understand. :(
>
> Thanks,


Giovanna, I think it is time for you to read
the following document, please take 10 minutes
and read all of it.

http://www.catb.org/~esr/faqs/smart-questions.html


After that, I suggest you make a new post describing
what is it that you are having problems with. Make the
post self contained and apply what you learned from
the link above.

I am sure that will enable people to give you
more useful information.

Ciao,
Paolo
Re: Read a file [message #74777 is a reply to message #74688] Wed, 02 February 2011 07:53 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Feb 2, 8:42 am, Giovanna <giovanna01.san...@gmail.com> wrote:
>> That means that when you used help modelo was not in scope (or that it
>> is not a structure). Either use help at the point where you are trying
>> to use modelo, or get from wherever it comes from, before using help.
>> Your code makes it look like it comes from one of the savefiles. If
>> so, use help after restoring the file.
>
> I don't understand. :(

What do you get if you do

restore,'file.sav',/verbose
restore,'file1.cnj',/verbose
help,modelo.imag,conjugado.imag

?
Re: Read a file [message #74788 is a reply to message #74738] Wed, 02 February 2011 02:42 Go to previous message
Giovanna is currently offline  Giovanna
Messages: 12
Registered: January 2011
Junior Member
On 31 jan, 19:15, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Jan 31, 9:02 am, Giovanna <giovanna01.san...@gmail.com> wrote:
>
>> So, file.sav and file1.cnj are savefiles ...and modelo.imag:
>
> Then I see not point in trying to read file.sav and file1.cnj as text
> files. Use only restore with them.
>
>> Expression must be a structure in this context: MODELO.
>
> That means that when you used help modelo was not in scope (or that it
> is not a structure). Either use help at the point where you are trying
> to use modelo, or get from wherever it comes from, before using help.
> Your code makes it look like it comes from one of the savefiles. If
> so, use help after restoring the file.

I don't understand. :(

Thanks,
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idl -vm and args / full idl and args
Next Topic: Linking raster and vector

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

Current Time: Wed Oct 08 13:52:01 PDT 2025

Total time taken to generate the page: 0.00677 seconds