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

Home » Public Forums » archive » Plotting results from z-buffer are diffrenet than xwindow.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Plotting results from z-buffer are diffrenet than xwindow. [message #89022 is a reply to message #89020] Wed, 16 July 2014 04:34 Go to previous messageGo to previous message
jlpippitt is currently offline  jlpippitt
Messages: 5
Registered: July 2014
Junior Member
On Tuesday, July 15, 2014 3:02:36 PM UTC-4, David Fanning wrote:
>
>
>
>
>> Thank you for your response. I think z-buffer is applying some kind of smoothing to the data. Holes appear in a precipitation field in the x-window (which is the true representation of the data) while the images created with z-buffer the holes are filled in (maybe nearest pixel smoothing). I think it would be beneficial to see the images I am referring to. Is there a way to post images on here?
>
>
>
> I seriously doubt there is smoothing going on in the Z-buffer. Are you
>
> using the Z-buffer for actual buffering, or have you turned this off and
>
> are just using the Z-buffer as another graphics window? Have you set the
>
> size of the Z-buffer to match the size of your graphics window?
>
>
>
> There is no way I know of to post images, here, but I doubt looking at
>
> an image would be helpful anyway. It would probably be more helpful to
>
> look at your code.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

David,

Here is the code for the two plotting procedures. The resulting plots are different.

xwindow plotting procedure:
radar=rsl_anyformat_to_radar('/gvs2/gpmgv_data/gpmgv/KARX/1C UF/2014/0708/KARX_2014_0708_193306.uf.gz')
rsl_plotsweep_from_radar,radar,/bgw,window=600,f='CZ',/new,m axrange=200,SWEEP_INDEX=0

zbuff plotting procedure:
radar=rsl_anyformat_to_radar('/gvs2/gpmgv_data/gpmgv/KARX/1C UF/2014/0708/KARX_2014_0708_193306.uf.gz')
thisDevice = !D.Name
Set_Plot, 'Z', /COPY
Device,Set_Resolution=[600,600],Set_Pixel_Depth=24,Decompose d=1,Z_Buffer=0
Erase
rsl_plotsweep_from_radar,radar,bgw,window=600,f='DZ',new,max range=200,SWEEP_INDEX=0
snapshot = TVRD()
TVLCT, r, g, b, /Get
Device, Z_Buffer=1
Set_Plot, thisDevice
image24 = BytArr(3, 600, 600)
image24[0,*,*] = r[snapshot]
image24[1,*,*] = g[snapshot]
image24[2,*,*] = b[snapshot]
write_png,'test.png',image24,r,g,b

Thank you,
Jason
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: the problem of symbol Function
Next Topic: How to disable tick labels on right and top when using cgMap?

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

Current Time: Thu Oct 09 06:03:21 PDT 2025

Total time taken to generate the page: 0.00513 seconds