VizieR Photometry viewer (API)

Photometry viewer API
HTTP: https://vizier.cds.unistra.fr/viz-bin/sed?-c=target&-c.rs=radius
where target is the target name and radius the radius in arcsec.

e.g.: https://vizier.cds.unistra.fr/viz-bin/sed?-c=HD100&-c.rs=5
astropy api:
astropy code sample:

from astropy.table import Table

radius=5
target="HD12"
sed=Table.read(f"https://vizier.cds.unistra.fr/viz-bin/sed?-c={target}&-c.rs={radius}")
print(sed)


import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.add_subplot()
ax.set_xlabel('freq (GHz)')
ax.set_zlabel('Flux (Jsky)')
  
ax.scatter(sed["sed_freq"], sed["sed_flux"])
plt.show()

        

© Université de Strasbourg/CNRS

    • Contact