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

Home » Public Forums » archive » Saving problems
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
Saving problems [message #13295] Tue, 03 November 1998 00:00 Go to next message
thiel is currently offline  thiel
Messages: 3
Registered: November 1998
Junior Member
Hi!
I'm facing a problem with an array of size 150*441 (and this is only
the smallest array I'm working with). I need to save this array in a
dat files for further analysis. My problem is that IDL only creates
five colums in my saved file.
I'm using printf to save my file, but writeu doesn't work better. Is
there any limitation in saving big arrays?
Anyone some ideas?
Thanx i.a.

Karsten

P.S. Im not working very long with IDL, so maybe I'm just making
stupid mistakes, but I don't have much time to improve my knowledge.
Re: Saving problems [message #13423 is a reply to message #13295] Wed, 04 November 1998 00:00 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Karsten Thiel (thiel@physik4.gwdg.de) writes:

> Excuse me again, but there's another problem ;-)
>
> On Tue, 3 Nov 1998 08:45:54 -0700, davidf@dfanning.com (David Fanning)
> wrote:
>
>> IDL uses 80 column widths by default. If you would like some
>> other width, use the WIDTH keyword when you open the file
>> for writing.
> Ok, that's right, but if I write i.e.
> openw, ostream, 'matrix.dat', /width=500
> I always receive a syntax error ?!?!?
>
> Jesus, IDL makes life really hard.

Life's always hard if you can't invest some time figuring
it out. :-)

openw, ostream, 'matrix.dat', width=500

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Saving problems [message #13425 is a reply to message #13295] Wed, 04 November 1998 00:00 Go to previous messageGo to next message
David Kastrup is currently offline  David Kastrup
Messages: 33
Registered: February 1998
Member
thiel@physik4.gwdg.de (Karsten Thiel) writes:

> Excuse me again, but there's another problem ;-)
>
> On Tue, 3 Nov 1998 08:45:54 -0700, davidf@dfanning.com (David Fanning)
> wrote:
>
>> IDL uses 80 column widths by default. If you would like some
>> other width, use the WIDTH keyword when you open the file
>> for writing.
> Ok, that's right, but if I write i.e.
> openw, ostream, 'matrix.dat', /width=500
> I always receive a syntax error ?!?!?

Well, it looks like a syntax error to me, too. Try
openw, ostream, 'matrix.dat', width=500


--
David Kastrup Phone: +49-234-700-5570
Email: dak@neuroinformatik.ruhr-uni-bochum.de Fax: +49-234-709-4209
Institut f�r Neuroinformatik, Universit�tsstr. 150, 44780 Bochum, Germany
Re: Saving problems [message #13600 is a reply to message #13295] Tue, 24 November 1998 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Darth Vader wrote:

> Hi!
> I'm facing a problem with an array of size 150*441 (and this is only
> the smallest array I'm working with). I need to save this array in a
> dat files for further analysis. My problem is that IDL only creates
> five colums in my saved file.
> I'm using printf to save my file, but writeu doesn't work better. Is
> there any limitation in saving big arrays?
> Anyone some ideas?
> Thanx i.a.
>
> Karsten
>
> P.S. Im not working very long with IDL, so maybe I'm just making
> stupid mistakes, but I don't have much time to improve my knowledge.

Is it necessary to save the data in plain ascii. If not try
save,file='data_file.sav',data_varisble

Limitatations for ASCII.

A string length is only 32767 signs.
If you like to make a formatted output it's only possible to format at
once 1024 values.
Always if you use format the data is handled as string.

R.Bauer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: QROMB crashes IDL
Next Topic: GUI Builder limited to Windows platform (LONG)

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

Current Time: Wed Oct 08 18:52:44 PDT 2025

Total time taken to generate the page: 0.00611 seconds