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

Home » Public Forums » archive » How to read (large) ASCII arrays into PV-Wave
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to read (large) ASCII arrays into PV-Wave [message #31101] Fri, 14 June 2002 13:05
jeyadev is currently offline  jeyadev
Messages: 78
Registered: February 1995
Member
I have some floating point, ASCII arrays that I am trying to
read into PV-Wave. They are not particularly large:
232 columns x 50 rows. All numbers are of the form bbbxxx.xxx
where the 'b' are blank(white) space and the 'x' are digits.
I have not read such arrays of such size in the past and I was
surprised to see PV-Wave choke on them. Here is the session log:

kaveri 67% wave
PV-WAVE CL Version 6.01 (sun4 solaris sparc).
Copyright (C) 1995, Visual Numerics, Inc.
All rights reserved. Unauthorized reproduction prohibited.

PV-WAVE v6.01 UNIX/OpenVMS (November 8, 1995)
Your current interactive graphics device is: X
If you are not running on an sun4 integrated display use the
SET_PLOT command to set the appropriate graphics device
(if you have not already done so).

The following function keys are defined with PV-WAVE commands:

R1 - Start the PV-WAVE Demonstration/Tutorial System
R2 - Invoke the PV-WAVE Online Help Facility
R3 - Output the PV-WAVE Session Status

NOTE: You must be running from a Shell Tool (not a Command Tool)
in order to use the function keys.

PV-WAVE:Visual Exploration technology available.
PV-WAVE:IMSL Mathematics technology available.
PV-WAVE:IMSL Statistics technology available.

WAVE> d = fltarr(233,50)
WAVE> openr, 1, 'tt'
WAVE> readf, 1, d
% Input line is too long for input buffer of 2048 characters.
% READF: Error encountered reading from file. Unit: 1
File: tt
% Execution halted at $MAIN$ (READF).
WAVE>exit

'wc' tells me that each line is 2085 characters long.

I tried other things like using FOR loops to
read in the array element by element, but it does not get read.
The entries are all zero, though the loops execute. Which makes
me wonder if it is the underlying Solaris that is doing it. I
know that the Sun Fortran used to have such limitations some
years back.

I could transpose the array to make the lines shorter, but we will
soon have to deal with 300 x 300 arrays. The ONLY reason for using
Wave is the Excel cannot handle more than 256 columns and I said I
could use Wave for the analysis. Is it time to commit harakiri?
This is a major disappointment, not to mention, embarassment! Any
tricks that would help? What tricks do the gurus use in this case?!
I am afraid that the rationale for using Wave vs Excel would take
another major hit if the solution is too complicated.

The current workaround I am using is to convert the array to
binary form first and then read it in.

Any help would be greatly appreciated.

thanks in advance,


--

Surendar Jeyadev jeyadev@wrc.xerox.bounceback.com

Remove 'bounceback' for email address
[Message index]
 
Read Message
Previous Topic: IDLWAVE 4.14 Release - idlwave.org
Next Topic: Appending data to a preexisting SD dataset in an HDF file

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

Current Time: Wed Oct 08 16:56:44 PDT 2025

Total time taken to generate the page: 0.00436 seconds