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

Home » Public Forums » archive » black window on fsc_surface & fsc_surface_log?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
black window on fsc_surface & fsc_surface_log? [message #40472] Tue, 10 August 2004 12:48 Go to previous message
u2s5thmember is currently offline  u2s5thmember
Messages: 11
Registered: January 2004
Junior Member
I have three arrays: x, y, z

x ranges from 180 to 250
y ranges from 1e-08 to 3e-04
z ranges from 0.002 to 1


Following the examples of some of Dave Fanning's programs I got this
far:


;-------------------------------------------------
WINDOWSIZE = 250

Triangulate, x, y, triangles, boundaryPts

s = Size(triangles, /Dimensions)
num_triangles = s[1]

gridSpace = [0.01, 0.05]

griddedData = TriGrid(x, y, z, triangles, gridSpace, $
XGrid=xvector, YGrid=yvector)

griddedData = TriGrid(x, y, z, triangles, gridSpace, XGrid=xvector, $
YGrid=yvector, /Quintic, Extrapolate=boundaryPts)

Window, /Free, Title='Uptake(Temp, PHNO3)', $
XSize=WINDOWSIZE*2, YSize=WINDOWSIZE*2, $
XPos=2*WINDOWSIZE*1.5 + 20, YPos=WINDOWSIZE + 30
Surface, griddedData, xvector, yvector, /NoData, /ylog, /zlog, $
xcharsize=3, ycharsize=3, zcharsize=2, Color=0, $
xrange=[180,250], yrange=[1e-8, 1.E-2], zrange=[1e-3, 1]
Surface, griddedData, xvector, yvector, XStyle=4, $
YStyle=4, ZStyle=4, /NoErase
;-------------------------------------------------

so from what I understand, the above code seems to work properly, but
I can't really see the output and I can't manipulate plot etc...
therefore,

I would like to view the above surface plot using fsc_surface or
fsc_surface_log instead of just using "surface", but all I get is a
black screen when I try either of the following commands:

fsc_surface, griddedData, xvector, yvector
fsc_surface_log, griddedData, xvector, yvector

So... in the above commands, is it correct to use the "griddedData"
array as the 2d data array called by fsc_surface and fsc_surface_log??

btw, The 2D array, "griddedData" has lots of negative numbers? why is
that, since none of my data are negative??? Is there a connection
between black screen as output of fsc_surface and negative numbers?


I don't have any idea how to proceed on this one & unfortunately, I
understand only the general idea of widgets & object programming, so
any info will probably need to be pretty specific.

Thank you in advance for your suggestions!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: It seems that there is *a bit* polymorphism in IDL.
Next Topic: Distance transform / 3d nearest neighbor

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

Current Time: Sun Oct 12 08:45:06 PDT 2025

Total time taken to generate the page: 0.08407 seconds