The left 'Download Fitting Curve' button downloads a text document containing the fitted distance and extinction curve for the queried line of sight.
The right 'Download Search Results' button downloads a FITS table with the distance and extinction data for individual stars in the queried area.
The right 'Download Search Results' button downloads a FITS table with the distance and extinction data for individual stars in the queried area.
Each line: ra dec [radius_arcmin] (whitespace or comma separated)
Lines starting with # are ignored. Optional header rows (non-numeric) are skipped. Default radius/d above apply when radius is omitted. Radius must be <= 30 arcmin (default and per-line). Max 500 targets.
Uploading a file appends into the text box above; the text box content is what gets submitted (file alone is only a helper to fill it).
Example file: batch_targets_example.txt | Load example into text box
Output: one .fits + one .txt per target in a tar archive, named like
Lines starting with # are ignored. Optional header rows (non-numeric) are skipped. Default radius/d above apply when radius is omitted. Radius must be <= 30 arcmin (default and per-line). Max 500 targets.
Uploading a file appends into the text box above; the text box content is what gets submitted (file alone is only a helper to fill it).
Example file: batch_targets_example.txt | Load example into text box
Output: one .fits + one .txt per target in a tar archive, named like
001_ra47.119_dec4.645.fits (coordinates keep the original text).
Python
Call the same batch API from Python (
pip install requests).
Endpoint: POST https://nadc.china-vo.org/data/gsed/batch_search
·
Download full example script
import requests
BASE_URL = "https://nadc.china-vo.org/data/gsed"
targets = """# ra dec [radius_arcmin]
47.119 4.645
47.119, 4.645, 6
"""
resp = requests.post(
BASE_URL + "/batch_search",
data={
"coord_sys": "equatorial", # or "galactic"
"radius": "6", # default arcmin, <= 30
"d": "2.0", # kpc
"targets": targets,
},
stream=True,
)
resp.raise_for_status()
with open("gsed_batch.tar", "wb") as f:
for chunk in resp.iter_content(256 * 1024):
if chunk:
f.write(chunk)
print("saved gsed_batch.tar")