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

Home » Public Forums » archive » Re: 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
Re: Saving problems [message #13278] Wed, 04 November 1998 00:00
thiel is currently offline  thiel
Messages: 3
Registered: November 1998
Junior Member
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.

Cheers
Karsten
Re: Saving problems [message #13290 is a reply to message #13278] Tue, 03 November 1998 00:00 Go to previous message
David Kastrup is currently offline  David Kastrup
Messages: 33
Registered: February 1998
Member
thiel@physik4.gwdg.de (Darth Vader) writes:

> 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.

You could not be experienceing the following problem?

IDL> print,150*441
614

> 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.

In that case, you need to work "long", namely do something like

IDL> print,150L*441
66150

or more verbose

IDL> print,long(150)*441
66150


--
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 #13293 is a reply to message #13290] Tue, 03 November 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Darth Vader (thiel@physik4.gwdg.de) writes:

> 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.

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.

> I'm using printf to save my file, but writeu doesn't work better. Is
> there any limitation in saving big arrays?

No.

> 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.

Pity.

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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL FAQ updated
Next Topic: IDL FAQ updated

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

Current Time: Wed Oct 08 18:13:30 PDT 2025

Total time taken to generate the page: 0.01023 seconds