Base de données photométriques de Besançon pour les objets de Kuiper et les Centaures
Documentation of SOAP webservice on TNO orbital database
Source
// This sample show photometric data of 2000 QC243 with Red filter between 12 june 2002 to 13 june 2002. The absolute magnitude and phase angle is returned.
$client = new SoapClient('http://bdp.obs-besancon.fr/soap/ws_bdp.wsdl', array('trace' => 1, 'exceptions' => 1));
if ($client->getAvailability()) {
var_dump($client->getPhotometricData('2000 QC243', 'R', 52437.0, 52438.0, false, 0, 'absolute', true));
} else {
echo 'Database is temporarily unavailable';
}
Result
array(4) {
[0]=>
array(6) {
["MJD"]=>
string(10) "52437.5491"
["Sigma"]=>
string(5) "0.015"
["Filter"]=>
string(1) "R"
["RelativeMagnitude"]=>
string(2) "No"
["AbsoluteMagnitude"]=>
string(5) "7.938"
["AnglePhase"]=>
string(4) "3.00"
}
[1]=>
array(6) {
["MJD"]=>
string(10) "52437.5524"
["Sigma"]=>
string(5) "0.014"
["Filter"]=>
string(1) "R"
["RelativeMagnitude"]=>
string(2) "No"
["AbsoluteMagnitude"]=>
string(5) "7.863"
["AnglePhase"]=>
string(4) "3.00"
}
[2]=>
array(6) {
["MJD"]=>
string(10) "52437.5570"
["Sigma"]=>
string(5) "0.013"
["Filter"]=>
string(1) "R"
["RelativeMagnitude"]=>
string(2) "No"
["AbsoluteMagnitude"]=>
string(5) "7.781"
["AnglePhase"]=>
string(4) "3.00"
}
[3]=>
array(6) {
["MJD"]=>
string(10) "52437.5687"
["Sigma"]=>
string(5) "0.013"
["Filter"]=>
string(1) "R"
["RelativeMagnitude"]=>
string(2) "No"
["AbsoluteMagnitude"]=>
string(5) "7.761"
["AnglePhase"]=>
string(4) "3.00"
}
}
Retour