Re: help with cgDrawVectors in write_gif procedure [message #91080 is a reply to message #91079] |
Tue, 02 June 2015 08:26   |
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.")
|
|
|