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

Home » Public Forums » archive » cgsnapshot-->dialog_pickfile:Bad initial filename
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cgsnapshot-->dialog_pickfile:Bad initial filename [message #90592] Thu, 12 March 2015 10:06 Go to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
I used the following code to extract my images as tif files

directory = 'C:\Users\Images'

file_mkdir, directory

write_tif, directory + '\' + name, tvrd ()

I overlaid a grid on the top of the images. When the images exported as tif files the grid was not red any more, it appears in white colour. To keep the colour of the grid I used the cgsnapshot instead

directory = 'C:\Users\Images'
void = cgsnapshot(/tif, filename= directory + '\' +name)

But I got the following system error

cgsnapshot-->dialog_pickfile:Bad initial filename: C:\Users\

Can anyone help with this?
Re: cgsnapshot-->dialog_pickfile:Bad initial filename [message #90593 is a reply to message #90592] Thu, 12 March 2015 10:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
g.nacarts@gmail.com writes:

> I used the following code to extract my images as tif files
>
> directory = 'C:\Users\Images'
>
> file_mkdir, directory
>
> write_tif, directory + '\' + name, tvrd ()
>
> I overlaid a grid on the top of the images. When the images exported as tif files the grid was not red any more, it appears in white colour. To keep the colour of the grid I used the cgsnapshot instead
>
> directory = 'C:\Users\Images'
> void = cgsnapshot(/tif, filename= directory + '\' +name)
>
> But I got the following system error
>
> cgsnapshot-->dialog_pickfile:Bad initial filename: C:\Users\
>
> Can anyone help with this?

Define the "name" variable.

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.")
Re: cgsnapshot-->dialog_pickfile:Bad initial filename [message #90594 is a reply to message #90593] Thu, 12 March 2015 10:32 Go to previous messageGo to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
I already defined the "name"
Re: cgsnapshot-->dialog_pickfile:Bad initial filename [message #90595 is a reply to message #90594] Thu, 12 March 2015 10:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
g.nacarts@gmail.com writes:

>
> I already defined the "name"

I'm sure you *thought* you had, but the error message testifies
otherwise. :-)

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: log scale colorbar in IDL 8.0
Next Topic: how can i get parent process pid on windows using IDL

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

Current Time: Wed Oct 08 07:23:43 PDT 2025

Total time taken to generate the page: 0.00478 seconds