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

Home » Public Forums » archive » Re: IDL v8 not recognizing bash environment variable
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: IDL v8 not recognizing bash environment variable [message #75799 is a reply to message #75798] Tue, 03 May 2011 06:11 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On May 3, 6:20 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
> Am 27.04.2011 19:57, schrieb Barry Lesht:
>
>> 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
>
> I tried with idl7.1
>
> IDL> print,"$HOME"
>
> and it just tells:
> $HOME
>
> I don't remember that it ever worked without using getenv function.

Careful. You tested the PRINT command, and I agree that "it" never
automatically retrieved environment variables.

On the other hand, OPEN has always expanded shell variables, for as
long as I have known. And my experience is that shell variable
expansion by OPEN still works within IDL 8.1.

Craig



>
>> % 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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Support Vector Machine Classification by IDL
Next Topic: IDL 8 uses 3x the memory of IDL 7.1

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

Current Time: Wed Oct 08 19:59:35 PDT 2025

Total time taken to generate the page: 0.00470 seconds