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

Home » Public Forums » archive » Re: external string EXP for MATH_DOIT (ENVI)
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
Re: external string EXP for MATH_DOIT (ENVI) [message #79681] Fri, 23 March 2012 03:53
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
On 23 Mar, 11:25, titan <thunder...@inwind.it> wrote:
> Hi all,
> even if this is a problem related to ENVI I was wondering if perhaps
> someone had already similar experience on this topic:
> I'm trying to give as string expression for MATH_DOIT a string that
> has to be read from a metadata file (.txt).
> I'm able to extract the string to be passed and when I give it as
> input for the EXP keyword it seems to create the image.
> But when I try opening it I got the following error
>
> Error: "POLY_2D: String expression not allowed in this context: ARR."
> The result may be invalid
>
> Does somebody know any workaround for this error??
>
> thanks a lot

Ok I already solved this problem on my own.
The trick was that even if I extracted the string (let's indicate it
as str) from a string array and it was recognized as string when
looking at the output of HELP in the EXP keyword it has to be defined
as EXP=STRING(str).

It seems that you have to force it to become a string but in any case
it works now.

I hope this could be useful for someone else in the future.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: passing keywords from cgControl --> psconfig
Next Topic: Re: Replicate array over columns - using transpose?

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

Current Time: Wed Oct 08 18:52:42 PDT 2025

Total time taken to generate the page: 0.00465 seconds