Skip to content
H. Joe Lee edited this page Jan 10, 2025 · 1 revision

Welcome to the pyhdf wiki!

AMSR_E

# Vgroup interface can't retrieve attribute.
h = HDF(FILE_NAME, HC.READ)
v  = h.vgstart()
ref = v.find('Grid Attributes')
vg = v.attach(ref)
print(vg.attrinfo().items())

# The following routine fails.
name = DATAFIELD_NAME +'_description'
vattr = vg.findattr(name)
print(vattr.info())
long_name = vattr.get()
Clone this wiki locally