IDL v8 not recognizing bash environment variable [message #75842] |
Wed, 27 April 2011 10:57  |
BLesht
Messages: 89 Registered: March 2007
|
Member |
|
|
Not sure I'm expressing this correctly in the subject line - this is
my problem: I have a code that ran fine under IDL7 that included the
line "sta_list = READ_ASCII("$SEADAS/local/stationfile.txt,"
TEMPLATE=stationtemplate). I just tried running the same code under
IDL8 and now get the error message
% READ_ASCII: File "$SEADAS/local/stationfile.txt" not found.
The file is most definitely where it should be. After doing some
experimenting, it seems IDL8 isn't getting any value for the $SEADAS
variable.
I hope someone can explain to me why not and how to fix it?
Thanks.
|
|
|
Re: IDL v8 not recognizing bash environment variable [message #91103 is a reply to message #75842] |
Wed, 03 June 2015 10:12  |
jmason86
Messages: 1 Registered: June 2015
|
Junior Member |
|
|
On Wednesday, April 27, 2011 at 11:57:14 AM UTC-6, Barry Lesht wrote:
> Not sure I'm expressing this correctly in the subject line - this is
> my problem: I have a code that ran fine under IDL7 that included the
> line "sta_list = READ_ASCII("$SEADAS/local/stationfile.txt,"
> TEMPLATE=stationtemplate). I just tried running the same code under
> IDL8 and now get the error message
>
> % READ_ASCII: File "$SEADAS/local/stationfile.txt" not found.
>
> The file is most definitely where it should be. After doing some
> experimenting, it seems IDL8 isn't getting any value for the $SEADAS
> variable.
>
> I hope someone can explain to me why not and how to fix it?
>
> Thanks.
I have the same problem with the workbench, IDL 8.4, OSX 10.10.3. The setenv in IDL worked for me. I followed the suggestion to make an idl startup file. Thanks!
|
|
|