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

Home » Public Forums » archive » Finding if a structure tag name is defined?
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
Finding if a structure tag name is defined? [message #36709] Tue, 14 October 2003 05:28 Go to next message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
I want to know if a given keyword has been passed down via _extra, so
I said "if (n_elements(e.c_linestyle) ne 0)" which of course doesn't
work because if it isn't there you can't say e.linestyle (bring on
perl...). I can use tag names to get all the tags, then search through
for a match, but that seems silly and ugly. What is the correct way
to find if a given structure has a certain tag in it? (And why
couldn't I find the answer buried within DF's site ;-)?

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
Re: Finding if a structure tag name is defined? [message #36737 is a reply to message #36709] Mon, 20 October 2003 12:17 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
Reimar Bauer <R.Bauer@fz-juelich.de> wrote:

> here is another routine which is able to extract parts of an _extra
> structure.

> http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/extract_extra_dbase.pro.html

Hi. Thanks for this, but your earlier routine did all I needed and it was fine!

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
Re: Finding if a structure tag name is defined? [message #36740 is a reply to message #36709] Fri, 17 October 2003 13:36 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
wmc@bas.ac.uk wrote:

> I want to know if a given keyword has been passed down via _extra, so
> I said "if (n_elements(e.c_linestyle) ne 0)" which of course doesn't
> work because if it isn't there you can't say e.linestyle (bring on
> perl...). I can use tag names to get all the tags, then search through
> for a match, but that seems silly and ugly. What is the correct way
> to find if a given structure has a certain tag in it? (And why
> couldn't I find the answer buried within DF's site ;-)?
>
> -W.
>

Dear w

here is another routine which is able to extract parts of an _extra
structure.


http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/extract_extra_dbase.pro.html

If you have some rules for the keywords then you could separate them and
execute them on obe application

keywords:
text_color, text_size ...

They could be extracted into a new _extra structure by
e=extract_extra(extra,'text_*')

and so on.


regards

Reimar








--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: improved mk_htmlhelp ? (like latex2html)
Next Topic: Re: 3D-Plot with geographical coordinates in xy-direction

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

Current Time: Wed Oct 08 18:40:46 PDT 2025

Total time taken to generate the page: 0.00452 seconds