Closed joshoewahp closed 3 years ago
(copying from the vast-tools issue https://github.com/askap-vast/vast-tools/issues/280)
Can be simplified by using the unified table readers, e.g.
from astropy.table import Table
df = Table.read(votable_file, format="votable", use_names_over_ids=True).to_pandas()
Note to self: may as well add CSV read support since CASDA serves those too.
Selavy produces a VOTable XML version of selavy catalogues by default, while the pipeline currently depends on fixed width txt copies.
A simple fix is to add this adapter, which results in an identical DataFrame to
pd.read_fwf
with the txt files.