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 
Return to the default flat view Create a new topic Submit Reply
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 previous 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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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 11:47:35 PDT 2025

Total time taken to generate the page: 0.00259 seconds