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 #91117 is a reply to message #91116] Fri, 05 June 2015 07:45 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:

>
> I will use an app to create an animated gif is much easier at the end.
>
> I have a problem with the cgSnapshot. I wanted to create different folders each time for different level and iteration. At first I saved everything in one folder but it was too messy (Vectors(i,level,iter)).
>
> for i=0L, n-1 do begin
> cgDisplay, 500, 550
> Image = BYTSCL(Image, min=0.,max=160.)
> cgimage,Reform(Image[i,*,*])
> cgDrawVectors, REFORM(VX[i,*,*]), REFORM(VY[i,*,*]), pos_x, pos_y,VECCOLORS='yellow', /ORDERED, overplot = 1
> void = cgSnapshot(/tif, Filename = 'C:\Users\Desktop\FOLDER\Vectors('+string(i)+','+string(leve l)+','+strtrim(iter)+')', /NoDialog)
> endfor
>
> I wanted to save all the time points (i) for each level and iter respectively in a separate folder.
>
> void = cgSnapshot(/JPEG, Filename='C:\Users\Desktop\FOLDER\Vector_Folder('+string(lev el)+','+strtrim(iter)+')\Vectors('+string(i)+')', /NoDialog)
>
> I got this error:"Error opening file".
> Is that necessary to create the folders in advanced? They cannot be create during the process?
>
> Because before I did something like that but not with the cgsnapshot

Given the history of this discussion, I think I might suspect programmer
error before I blamed cgSnapshot. I've never tried to tell it to open a
file in a location that didn't exist, so I'm not sure what it would do.
I'm pretty sure if someone asked me to do the same, I would complain.
:-)

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 20:13:19 PDT 2025

Total time taken to generate the page: 0.00477 seconds