Gerrit Holl said the following on 11/16/2010 9:44 AM:
> 
> [David E. Sallis]
>> You can store arbitrary key/value pairs on a node by using the node's
>> _f_setAttr() method.  I use this frequently and in much the same way as in 
>> your
>> example.   The key is the column name, and the value is a Python dictionary
>> containing the long name, units, etc.
>>
>> Example:   n._f_setAttr('AVHRR_LONG':{'long_name':'AVHRR_Longitude',
>> 'units':'degrees_east', 'valid_range':(-180.0,180.0)})
> 
> What is 'n' in this case? The table containing those columns? So then
> I actually set the properties to the table, with property names equal
> to the column, rather than setting properties to the variable, or am I
> misunderstanding things?

No, you got it right.  Sorry I wasn't clear.

-- 
David E. Sallis, Senior Principal Engineer, Software
General Dynamics Information Technology
NOAA Coastal Data Development Center
Stennis Space Center, Mississippi USA
228.688.3805
david.sal...@gdit.com
david.sal...@noaa.gov
--------------------------------------------
"Better Living Through Software Engineering"
--------------------------------------------

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to