GaiaAPIClient/test.ipynb

65 lines
1.5 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"from gaiaapiclient.cone_search import query"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"ra=61.1\n",
"dec=16.3\n",
"radius=0.01\n",
"order='nested'"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[{'uuid': '55ccae6c-45a6-4dfb-a72e-c3e70d9e0409', 'ra': 61.10364581388611, 'dec': 16.290868470158326}, {'uuid': '83f997c2-ede6-481d-b427-6ac460b7680e', 'ra': 61.09811535934138, 'dec': 16.299481053180738}, {'uuid': '303b28e7-bb8a-414b-a61d-55049d37735f', 'ra': 61.108829408925445, 'dec': 16.30328633573264}, {'uuid': '98167fcd-5f08-4504-b81c-b2ecd3dd588f', 'ra': 61.1013443923584, 'dec': 16.300772156253046}]\n"
]
}
],
"source": [
"results=query(ra,dec,radius,order)\n",
"print(results)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}