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

Home » Public Forums » archive » Re: converting a string to an IDL command
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: converting a string to an IDL command [message #62384 is a reply to message #62383] Mon, 08 September 2008 11:57 Go to previous messageGo to previous message
astroboy2k is currently offline  astroboy2k
Messages: 34
Registered: July 2007
Member
On Sep 8, 1:30 pm, Bob Crawford <Snowma...@gmail.com> wrote:
> On Sep 8, 12:46 pm, Mark <astrobo...@gmail.com> wrote:
>
>
>
>> Hello!
>
>> I find myself constantly doing things like:
>
>> print,'   min(x), max(x)     ',min(x),max(x)
>
>> Is is possible to do something along the lines of:
>
>> char=' min(x),max(x) '
>> some_function,char
>
>> where some_function would change char into one line of IDL code? That
>> is, if x=findgen(10)
>> sub_function would print something like:
>
>>  min(x),max(x) ,0.000 ,9.000
>
>> Seems like this wouldn't be so hard. I'm interested in something that
>> would work with Unix.
>> Thanks,
>
>> Mark
>
> result=execute('print,"'+char+'",'+char)

Thanks Bob,

This is just what I need. Unfortunately, I have never worked anywhere
where anyone knows more IDL than I do, and despite all the unselfish
help from this group and David's excellent book and website, alot of
times there are pretty basic things which simply flew under the radar
along the way... :(
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: map plotting
Next Topic: Re: inverse the axis

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

Current Time: Fri Oct 10 17:15:42 PDT 2025

Total time taken to generate the page: 0.96344 seconds