I have a lot of VO tables like this one:
http://svo2.cab.inta-csic.es/theory/fps3/fps.php?ID=2MASS/2MASS.H
but I am not actually interested in the tables themselves, only in the metadata a.k.a. PARAMeters. Is there an easy way to get these (as there is for FITS table headers) in python/astropy?
The only thing I found was some nested for-loop:
from astropy.table import Table
H = Table.read('2MASS.2MASS.H.xml')
for resource in H.resources:
for param in resource.params:
print param.name, param.value
EDIT: What I actually want is to get a list/dict of PARAM value and a list of corresponding PARAM names...