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

Home » Public Forums » archive » visualizing data in 3-D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
visualizing data in 3-D [message #26154] Tue, 07 August 2001 10:56 Go to previous message
patrick is currently offline  patrick
Messages: 15
Registered: July 2001
Junior Member
Folks-

I'm attempting to construct a 3-D visualization of oceanographic data.
My data is in columnar ascii format. I need to interpolate
corresponding data values at three different locations. For example, I
have a density value of 21.9 kg/m^3 measured at three different
locations and I want to visualize a density stratification surface
interpolated between the three locations where the horizontal axes are
space between the locations and the vertical axes are depth. What I
have currently for the procedure is below. It is currently just a
mangled set of lines which obviously won't work. the *pstate variables
correspond to 3 different data sets in a pointer array stacked on top
of each other. So x1 is a depth column, and y1 is a density column, x2
& y2 are depth and density columns from a second location, ditto with
x3/y3 at a third location. Could xplot3d or slicer3 work for this? Or
should I use a combination of surfr and t3d as opposed to the current
code?

x1 = reform((*pstate).profiledata(0,*,0))
y1 = reform((*pstate).profiledata(1,*,0))

x2 = reform((*pstate).profiledata(0,*,1))
y2 = reform((*pstate).profiledata(1,*,1))

x3 = reform((*pstate).profiledata(0,*,2))
y3 = reform((*pstate).profiledata(1,*,2))
print, 'working'
; interpolate 1st data onto 2nd data alt grid
y01 = interpol(y1, x1, x2)

; interpolate 3rd data onto 2nd data alt grid
y03 = interpol(y3, x3, x2)

; concatenate arrays

y = [transpose(y01), transpose(y2), transpose(y03)]
x = [0,1,2]


contour, y, x, x2

Thanks for any suggestions,

Patrick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Point inside/outside a polygon?
Next Topic: Re: Fortran + IDL

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

Current Time: Fri Oct 10 20:57:22 PDT 2025

Total time taken to generate the page: 1.27890 seconds