Bulrush writes:
> I changed the path. Now I can compile it, however, It said can not
> open the tif file.
> READ_TIFF: C:\Do***ents and Settings\Zulher\AF03sep15b.n16-VIg: Cannot
> open
OK, the program needs to know where the file is located.
You can either modify the program to include the complete
file path to the image file (wherever you put it), or
you can put the file in the directory where you are running
the program. (Sounds to me like you are running the program
from some other directory than the one it resides in.)
The easiest thing, if you have put all these files into
the same place, is to just make sure that is the place
you are running IDL from. Suppose you put all these files
in C:\Coyote (a good place). And you have added this
directory to your IDL path:
IDL> !PATH = 'C:\coyote;' + !PATH
Then, you need to make this your current directory:
IDL> CD, 'C:\coyote'
Now, if all your files are here, and your data file is
here, you can run this program. :-)
You can find your current directory in IDL, by doing
this:
IDL> CD, CURRENT=thisDir & Print, thisDir
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")


|