Hi Bruce,
The quick answer is no, there is not anything akin to subattributes in
NCL..
Adam
Lunde, Bruce N CIV NAVOCEANO, NP1 wrote:
> 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
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Aug 17 2007 - 09:36:17 MDT
This archive was generated by hypermail 2.2.0 : Mon Aug 20 2007 - 09:30:37 MDT