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

Home » Public Forums » archive » Re: read_tiff only looks in current working directory?
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: read_tiff only looks in current working directory? [message #56436] Wed, 31 October 2007 15:38 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Jeff N. writes:
>
>> 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?
>
> Uh, maybe you want this command:
>
> indata = read_tiff(inpath)
>
> That might work better. :-)

I think I can hear Jeff's "d'oh!" way over here.... :o)


cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: julday() and fractional days
Next Topic: julday() and fractional days

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

Current Time: Fri Oct 10 14:42:41 PDT 2025

Total time taken to generate the page: 0.72037 seconds