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

Home » Public Forums » archive » _EXTRA
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: _extra [message #50732 is a reply to message #1785] Wed, 11 October 2006 15:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dometz writes:

> Is there a way to extract certain parameters by name from _extra?

You can find the tag or field names in a structure with
TAG_NAMES. So you could check if there was a field
named SPY in the structure, like this:

index = WHERE(TAG_NAMES(_extra) EQ 'SPY', count)

And you could get the value of the SPY keyword like this:

IF count GT 0 THEN spy_value = _Extra.(index)

But, remember, keywords can be shortened to the fewest
number of characters to make them unique keywords, so
if you want to find SPY, you might well have to look
for "S" and "SP", as well as "SPY". Just hope you
don't have to deal with really long keyword names. :-)

Actually, there is a trick that Dave Burridge once
taught me that make this simpler. I probably involves
STREGEX, but I can't for the life of me think what
it was right now. Sorry. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: _extra
Next Topic: Land/Water Database

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

Current Time: Sun Oct 12 02:02:27 PDT 2025

Total time taken to generate the page: 1.12089 seconds