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

Home » Public Forums » archive » how to undo 80-column line width maximum in read_ascii?
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
how to undo 80-column line width maximum in read_ascii? [message #86227] Sat, 19 October 2013 13:01 Go to next message
Rob Rutten is currently offline  Rob Rutten
Messages: 3
Registered: October 2013
Junior Member
I started using read_ascii with a corresponding GUI-produced template_ascii_template('filename'). It works fine but the reading is limited to 80-column line width. I didn't see a width settting as for readf and writef etc. Advise welcome!
Re: how to undo 80-column line width maximum in read_ascii? [message #86231 is a reply to message #86227] Sat, 19 October 2013 15:03 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob Rutten writes:

> I started using read_ascii with a corresponding GUI-produced template_ascii_template('filename'). It works fine but the reading is limited to 80-column line width. I didn't see a width settting as for readf and writef etc. Advise welcome!

I would say don't use READ_ASCII. I haven't had to use it in 20+ years
of IDL programming. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: how to undo 80-column line width maximum in read_ascii? [message #86233 is a reply to message #86231] Sat, 19 October 2013 15:24 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
> I would say don't use READ_ASCII.

You may want to check out ReadCol from the Astro library.
Re: how to undo 80-column line width maximum in read_ascii? [message #86236 is a reply to message #86233] Sun, 20 October 2013 06:59 Go to previous messageGo to next message
Rob Rutten is currently offline  Rob Rutten
Messages: 3
Registered: October 2013
Junior Member
Thanks Philip!

Readcol,pro (I found it in my ssw.lib) is indeed the answer. I had to extend it to 60 columns but that is trivial: just add v-values into the pro declaration (I guess it is not possible to use a double array to fill with columns).

Sofar I used read_struct.pro from the Sloan sdssidl but it has difficulty with erratic string variables.

So indeed I can stop mucking with read_ascii!

This was my first excursion into this forum. Good experience!

Best, Rob
Re: how to undo 80-column line width maximum in read_ascii? [message #86242 is a reply to message #86227] Sun, 20 October 2013 17:34 Go to previous messageGo to next message
SonicKenking is currently offline  SonicKenking
Messages: 51
Registered: October 2010
Member
On Sunday, October 20, 2013 7:01:15 AM UTC+11, Rob Rutten wrote:
> I started using read_ascii with a corresponding GUI-produced template_ascii_template('filename'). It works fine but the reading is limited to 80-column line width. I didn't see a width settting as for readf and writef etc. Advise welcome!

Interesting but I didn't notice any width limit on my IDL 8.2 and 6.4 (Windows 7) ...
Re: how to undo 80-column line width maximum in read_ascii? [message #86245 is a reply to message #86227] Mon, 21 October 2013 06:31 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

On 10/19/2013 04:01 PM, Rob Rutten wrote:
> I started using read_ascii with a corresponding GUI-produced
> template_ascii_template('filename'). It works fine but the reading is
> limited to 80-column line width. I didn't see a width settting as
> for readf and writef etc. Advise welcome!

Quite apart from the READ_ASCII issue, widths for ASCII files are set in
the OPEN statement via the WIDTH keyword:

http://www.exelisvis.com/docs/OPEN.html#O_828691053_889787

If not specified the default is, you guessed it, 80 columns.

cheers,

paulv
Re: how to undo 80-column line width maximum in read_ascii? [message #86246 is a reply to message #86227] Mon, 21 October 2013 06:58 Go to previous message
Rob Rutten is currently offline  Rob Rutten
Messages: 3
Registered: October 2013
Junior Member
@ Sonickenking: the 80-character limit sits in the ascii_template.pro GUI to make a reading template.

@ Paul van Delst: yes, I found the width keyword for openr etc but read_ascii.pro and ascii_template.pro want file names, not units.

Anyhow, readcol.pro is indeed a better solution, no GUI clicking needed.

Thanks for all the response! Rob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Error Estimate Plot
Next Topic: How to write a function that can be apply to arbitrary dimension of multiple array!

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

Current Time: Wed Oct 08 11:42:09 PDT 2025

Total time taken to generate the page: 0.00461 seconds