PHP client
Application: the scripts can be used standalone, or easily transformed into functions or classes to call the SkyBoT Web service methods from a service or a Web form.
Usage:
$> php client_<method>.php
Available methods:
getAster
getComet
getPlanet
getSso
Python client
Usage:
./s3d-getsso.py --help
Example: Get a set of 100 NEA>Apollo in json format:
./s3d-getsso.py -d 2021-01-01T0:0:0 -l 100 -c "NEA>Apollo" -m json -o sso_NEA-Apollo.json
cat sso_NEA-Apollo.json | python -m json.tool
Example: Get all comets in CSV format:
./s3d-getsso.py -d 2021-01-01T0:0:0 -s comet -o comets.txt
# then download the data from the link provided by the field 'fileName' of the output:
wget "https://ssp.imcce.fr/webservices/skybot3d/proxy.php?o=compressed&q=tmp/webservices/skybot3d/comet_xxx.xml.bz2 -O comet_xxx.xml.bz2"
# then transfrom the XML output in CSV:
bzcat comet_xxx.xml.bz2 | ./myxml2csv.py
C client
Application: the C programs are standalone and provide a simple interface to the methods of SkyBoT Web-service. They provides snippets to develop your own application using SkyBoT.
Usage:
$> ./client_<method>.sh <args>
Available methods:
conesearch
resolver
status
GLU file
Application: the GLU file allows to query the Skybot3D Web service from a dedicated tab of the server selector of Aladin software.
Usage:
java -jar Aladin.jar -glufile="skybot3d-sso.glu"
Available methods:
getSso
to gather all SSOsgetAster
to gather only asteroidsgetComet
to gather only cometsgetPlanet
to gather only planets and major natural satellites