X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 Apr 2014 08:39 PM by  anon
Surface function changing zoom oddly
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
23 Apr 2014 08:39 PM
    Platform: Win 8.1 IDL 8.3.0 Build id: 20131115 I'm loading in a loop several 2D data files using the SURFACE function to create a video. After 2-3 data files, the zoom amount changes randomly leading to the visible xrange and yrange changing. This is a real hassle as when i go to use copywindow, the images are not coincident, so you get a very jumpy video output as a final result. Here is the initial surface setup s1 = surface(data,lon,lat,grid_units=2,axis_style=0,aspect_Z=0.3,perspective=1,margin=0,buffer=0, $ texture_image = world_image, dimensions = [x,y]] ) world_image is a tiff image that could be anything, I've already extracted the correct subsection and it displays correctly. I then set the spatial coords initially thru these reset commands, then a couple of specific scale/translation commands to get the right image. s1.rotate,/reset s1.scale,/reset s1.translate,/reset s1.scale,1.2,1.5,1 s1.translate,-.05,0,0,/normal I'm cycling thru the loop using s1.Setdata, data and capturing the window with a = oVid.Put(vidStream, s1.CopyWindow()) The change of image location is obvious in the Surface window. Is this the same problem that occurred last year with 8.2.3 with respect to clipping? reference: https://groups.google.com/forum/#!searchin/comp.lang.idl-pvwave/surface|sort:date/comp.lang.idl-pvwave/QyIsmeBZHQI/3ibXwCtKGdYJ

    Deleted User



    New Member


    Posts:
    New Member


    --
    24 Apr 2014 07:00 PM
    Problem solved by setting zrange thus: zrange = s1.zrange s1.Setdata = data s1.zrange = zrange
    You are not authorized to post a reply.