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

Home » Public Forums » archive » help with cgDrawVectors in write_gif procedure
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: help with cgDrawVectors in write_gif procedure [message #91080 is a reply to message #91079] Tue, 02 June 2015 08:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
g.nacarts@gmail.com writes:

>
> Hi
>
> I created the following procedure to overplot vectors on the images.
>
> PRO vectors_overlaid, Image, VX, VY, name
>
> dims_i_need = Size(Dindgen(20,20), /Dimensions)
> pos_x = Rebin(Findgen(dims_i_need[0]), dims_i_need[0], dims_i_need[1])
> pos_y = Rebin(Reform(Findgen(dims_i_need[1]), 1, dims_i_need[1]), dims_i_need[0], dims_i_need[1])
>
>
> cgDisplay, 500, 550
> cgimage, image
> cgDrawVectors, Vx, Vy, pos_x, pos_y,VECCOLORS='yellow', /ORDERED, overplot = 1
>
> Then looping over the time point:
>
> for i=0L,N-1 do begin
> vecotrs_overlaid, Reform(Image[i,*,*]), reform(VX[i,*,*]),reform(VY[i,*,*]),('+strtrim(i)+').jpeg')
> endfor
>
>
> Instead of exporting jpegs I want to export gif format instead. I used the write_gif before but I used only images. Now I want to overplot the vectors on the images. Does anyone knows how to use the cgDrawVectors in write_gif procedure?
>
> Many Thanks

void = cgSnapshot(/GIF, Filename='whateverYouLike', /NoDialog)

On-line help here:

http://www.idlcoyote.com/idldoc/cg/index.html

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.")
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vertical text orientation?
Next Topic: Pure IDL interface for video cameras -- linux only

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

Current Time: Wed Oct 08 18:10:34 PDT 2025

Total time taken to generate the page: 0.00504 seconds