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

Home » Public Forums » archive » Re: manipulate ouput keywords
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: manipulate ouput keywords [message #79561 is a reply to message #79560] Tue, 13 March 2012 11:01 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/13/12 9:18 AM, nata wrote:
> I already knew all of that.. Maybe I didn't explain my problem properly.
>
> My keywords are output keywords, so _EXTRA is not a structure with one field for each keyword, is undefined in the procedure TEST.
> I can't use SCOPE_VARFECTH with an undefined keyword name.

No, but _REF_EXTRA gives you the names.

> I don't know, maybe there is no way to solve this problem.. Any other ideas ?
> nata

Is this what you want to do?

IDL> test, out1=out1, out2=out2
Keyword name: OUT1
Input value:
<No name> UNDEFINED = <Undefined>
Keyword name: OUT2
Input value:
<No name> UNDEFINED = <Undefined>
IDL> help, out1, out2
OUT1 LONG = 0
OUT2 LONG = 1

Here's my routine:

pro test, _ref_extra=e
compile_opt strictarr

for i = 0L, n_elements(e) - 1L do begin
print, e[i], format='(%"Keyword name: %s")'
print, 'Input value:'
help, scope_varfetch(e[i], /ref_extra)
(scope_varfetch(e[i], /ref_extra)) = i
endfor
end

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 4D data plot
Next Topic: Onscreen digitizing routine

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

Current Time: Sat Oct 11 23:11:43 PDT 2025

Total time taken to generate the page: 0.56077 seconds