Help needed with reading ASCII data [message #18145] |
Fri, 03 December 1999 00:00 |
mensar
Messages: 3 Registered: December 1999
|
Junior Member |
|
|
Hi All
I'm completely new to IDL, and I have a set of data in ASCII format. It
is extracted from MRI data. It is a file which contains 3 columns of
data. The first column is the x, the second is the y coordinate and the
third is just a scaled magnitude value between 0 and 1. There are 38808
rows of data, and the matrix size is (49, 36) and there are 22 time
phases. I want to know if anyone has had experience in reading in data
of this type, and how to put it into an array that can be read by IDL.
I know how to open the data and display it, with the following
openr, 1, filepath(..)
:
: HELP WITH THE READING OF THE ACII DATA PLEASE!!!!!!
:
:
h=fltarr(49,36,22)
close, 1
loadct, 3
h = rebin(h, 32, 32, 22)
frames = fltarr(256, 256, 22)
window, 1, TITLE='Bloodflow animation', xsize=256, ysize=256
for i=0, 22 do begin surface, h[*, *, i], zrange=[0, 1] & frames[0,0,i]
= tvrd() & end
If anyone could help me with reading the ASCII data and putting it into
an array which IDL can read, I would be most grateful
thanks
scott reid
--
************************************************************ ********
Scott Reid
Department of Mechanical Engineering
University of Leeds
LS2 9JT
Tel: 0113 233 2179
E-MAIL: mensar@leeds.ac.uk
URL: http://www.mech-eng.leeds.ac.uk/mensar/index.html
************************************************************ ********
|
|
|