🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #51

Question about Datascribe.

#51
From: Gary L Snethen
Date: Thu, 23 Jul 1992 23:10
61 lines
2481 bytes
This is my first posting to this group, etc... etc...

I am attempting to read in a 2d curvilinear data file that has the data
listed bidirectionally...  Let me illustrate:

x coordinate   y coordinate    data
-----------------------------------
     0.0            0.0         2.3
     0.0            0.1         4.3
     0.0            0.2         4.2
     0.1            0.2         4.1
     0.1            0.1         3.2
     0.1            0.0         3.1
     0.2            0.0         2.3
     0.2            0.1         1.1
     0.2            0.0         2.5


This type of format occurs often during varios types of experimental scans
(whether they be ultrasonic, optical, xray, etc...) as the probe moves across
the surface in the following fashion:

>>>>>>>v
v<<<<<<<
>>>>>>>v
<<<<<<<<

-------------------------

Problem:  I need to coerce DataScribe into reading this format into a
          2d curvilinear lattice.

The way that made sense to me was to break the array into two components,
with one component representing all the odd lines and the other representing
all the even lines.  All the odd lines should be ordered from 1 to SIZE with
a stride of 1, and all the even lines from SIZE to 1 with a stride of -1.
When you break the output section's array up, both halves should run from
1 to SIZE, this difference between the input array and output array should
effectively reverse the ordering of data and coordinates for every other
line.

It was very strange... when I read the data, it insisted that my source
array was a different size than my destination array.

This doesn't make any sense since 1..SIZE has the same number of elements as
SIZE..1

If I reversed the ordering in the output section as well (so now they are
BOTH SIZE..1), it ran fine...  it was only if ONE was SIZE..1 and the other
was 1..SIZE.

If someone could enlighten me on what I might be doing wrong, or can think
of a better way to do it...  PLEASE email me at:


xeno@iastate.edu

Thank you...

---Xeno
(Gary Snethen)
Technical Details
Message-ID: <xeno.711933047@pv34ad.vincent.iastate.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!news.iastate.edu!pv34ad.vincent.iastate.edu!xeno

Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.explorer
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!news.iastate.edu!pv34ad.vincent.iastate.edu!xeno
From: xeno@iastate.edu (Gary L Snethen)
Subject: Question about Datascribe.
Message-ID: <xeno.711933047@pv34ad.vincent.iastate.edu>
Sender: news@news.iastate.edu (USENET News System)
Organization: Iowa State University, Ames IA
Date: Thu, 23 Jul 1992 23:10:47 GMT
Lines: 61