spacepy.pycdf.gAttrList

class spacepy.pycdf.gAttrList(cdf_file, special_entry=None)[source]

Object representing all the gAttributes in a CDF.

Normally accessed as an attribute of an open CDF:

>>> global_attribs = cdffile.attrs

Appears as a dictionary: keys are attribute names; each value is an attribute represented by a gAttr object. To access the global attribute TEXT:

>>> text_attr = cdffile.attrs['TEXT']

See also

AttrList
__init__(cdf_file, special_entry=None)

Initialize the attribute collection

Parameters:
cdf_fileCDF

CDF these attributes are in

special_entrycallable

callable which returns a “special” entry number, used to limit results for zAttrs to those which match the zVar

Methods

Attributes

attr_name = 'gAttribute'
global_scope = True