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 #91096 is a reply to message #91094] Wed, 03 June 2015 05:45 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, June 3, 2015 at 2:39:27 PM UTC+2, g.na...@gmail.com wrote:
> I tried the following but I always get the same error: OPENW: Filename argument must be a scalar string: FILE.
>
> 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
> write_gif,file, Reform(Image[i,*,*]), /multiple
> endfor
>
> write_gif, file, /close

Hi,
when you get an error that says:
"OPENW: Filename argument must be a scalar string: FILE."
you should check if your variable file is a string or a scalar. In case you're doubting... it has to be a scalar.
Maybe use file[i]?

Cheers,
Helder
[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: Thu Oct 09 07:51:25 PDT 2025

Total time taken to generate the page: 0.47772 seconds