Referencing Attributes of an Attribute

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Fri, 17 Aug 2007 10:08:30 -0500

Hello,

Is there any way to reference the (for lack of a better word)
"subattributes" of a variable ? For example, I define variables
"a" and "b" below, where both have attributes and "b" is added
to "a" as an attribute.

I was hoping to be able to reference these "subattributes" via
a_at_extra@name, or (a_at_extra)@name, etc.

Thanks, Bruce

ncl 0> a=2
ncl 1> a_at_name="one"

ncl 2> b=4
ncl 3> b_at_name="two"

ncl 4> a_at_extra=b

ncl 5> print(a_at_extra@name)
fatal:syntax error: line 5 before or near @name
print(a_at_extra@name
-----------------^

fatal:error in statement
ncl 6> print((a_at_extra)@name)
fatal:syntax error: line 6 before or near @name
print((a_at_extra)@name
-------------------^

fatal:error in statement

=====
Bruce Lunde
Bruce.Lunde_at_navy.mil
228-688-5843
Code NP1
Naval Oceanographic Office
Stennis Space Center, MS
=====
 
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 17 2007 - 09:08:30 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 20 2007 - 09:30:37 MDT