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

Home » Public Forums » archive » read_tiff only looks in current working directory?
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
read_tiff only looks in current working directory? [message #56439] Wed, 31 October 2007 15:01 Go to next message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
Hi folks,

A couple of times now i've run into a strange problem that i haven't
had time to pay much attention to until now. I'm simply trying to
read a tiff file with READ_TIFF, but this code fails:

indir = 'g:\'
infile = 'test.tif'
inpath = indir + infile

;cd,indir

indata=read_tiff(infile)
help, indata

It fails with a file not found error even though I know that the file
is in the location i'm specifying. Also, the error message prints out
the full path to the file it's looking for, and it is looking for the
correct file name, but the directory path it's looking in is always
the current working directory. So, if i uncomment the call to the CD
command above, the file gets read with no problem. Has anyone else
come across this? This isn't the way it's supposed to work is it?

Jeff
Re: read_tiff only looks in current working directory? [message #56621 is a reply to message #56439] Thu, 01 November 2007 11:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeff N. writes:

> So I guess I'm taking one for the team, huh? :)

Something like that. You'll also get a mention in
the IEPA gala printed program, although not everyone
is delighted to be listed under the Boneheaded Blunders
banner. On the other hand, very few people will
actually be sober enough to read it, so I think
you are safe. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: read_tiff only looks in current working directory? [message #56622 is a reply to message #56439] Thu, 01 November 2007 11:18 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
On Nov 1, 12:23 pm, David Fanning <da...@dfanning.com> wrote:
> Jeff N. writes:
>> UGHHH!!!! I wish you could erase posts sometimes!! :(
>
> I find posts like this engender future compassion and
> tolerance in the postee toward the other poor fools
> brave enough to post here. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/

So I guess I'm taking one for the team, huh? :)

Jeff
Re: read_tiff only looks in current working directory? [message #56623 is a reply to message #56439] Thu, 01 November 2007 09:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeff N. writes:

> UGHHH!!!! I wish you could erase posts sometimes!! :(

I find posts like this engender future compassion and
tolerance in the postee toward the other poor fools
brave enough to post here. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: URL correction: IDL 6.4.1 patch for Leopard
Next Topic: Re: IDL sorting

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

Current Time: Wed Oct 08 19:12:53 PDT 2025

Total time taken to generate the page: 0.00526 seconds