Table 1
Table 2
Options
Search Radius
* Uploaded file must be a CSV file with delimiter ','
* column name "ra" and "dec" must appear in the header
* "ra" and "dec" are decimal data in DEGREEs
SAMPLE FILE
Python Sample
                
import requests
XMATCH_RUN_URL = "https://www.lamost.org/xmatch/run"
#XMATCH_RUN_URL = "http://10.3.10.155/xmatch/run" # for NAOC intranet
with open("xmatch-input-sample.csv", "rb") as f:
    files = {"file_1": f}
    data = {
        "table_2": 1,
        "search_radius": 2,
        "unit": "arcsec",
        "nearest_only": False,
        "file_1_ra_name": "ra",
        "file_1_dec_name": "dec",
    }
    r = requests.post(XMATCH_RUN_URL, files=files, data=data, stream=True, verify=False)
    r.raise_for_status()
#
with open('xmatch_result.csv', "wb") as out:
    for chunk in r.iter_content(chunk_size=8192):
        out.write(chunk)
#
print('done')