vocSkybot.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include "VOClient.h"

Functions

Skybot voc_skybot (double ra, double dec, double rsz, double dsz, double epoch)
int voc_skybotNObjs (Skybot sb)
char * voc_skybotStrAttr (Skybot sb, char *attr, int index)
double voc_skybotDblAttr (Skybot sb, char *attr, int index)

Variables

VOClient * vo

Detailed Description

SkyBoT Minor Planet Service Interface: --------------------------------------

A utility class for accessing the IMCCE Skybot ephemerides service. The service is called as part of the constructor for the object allowing easy access to the result data. Class methods also exist so a VO Client interface the same access to the data.

Reference: http://www.imcce.fr/webservices/skybot/

Class Methods: --------------

sb = voc_skybot (ra, dec, rsz, dsz, epoch)

count = voc_skybotNObjs (sb) str = voc_skybotStrAttr (sb, attrname, index) dval = voc_skybotDblAttr (sb, attrname, index)

Available Attributes: ---------------------

number string Asteroid number name string Asteroid name ra double J2000 Equatorial RA dec double J2000 Equatorial Dec class string Object classification vmag double Visual magnitude poserr double Error on position (arcsec) cdist double Body-to-center angular distance dra double RA motion (arcsec/hr) ddec double Dec motion (arcsec/hr) dgeo double Geocentric distance (AU) dhelio double Heliocentric distance (AU) px double Mean J2000 heliocentric position vector (AU) py double " " " " " pz double " " " " " vx double Mean J2000 heliocentric position vector (AU/day) vy double " " " " " vz double " " " " " JD0 double T0, epoch of position vector (JD)

Example Usage: ---------------

1) Find bodies in a 900" radius around (0.0,0.0) on JD 2453939.123

VOCSkybot skybot = new VOCSkybot (0.0,0.0,900,2453939.123); for (int i=0; i < skybot.getNObjs(); i++) System.out.print ("Name: '" + sb.getStrAttr("name",i)+"' " + "RA: " + sb.getDblAttr("ra",i) + " " + "Dec: " + sb.getDblAttr("dec",i) + " " + "Mv: " + sb.getDblAttr("vmag",i) + " ");

Author:
Michael Fitzpatrick
Version:
June 2006

Generated on Wed Feb 27 21:08:58 2013 for VOClient API by  doxygen 1.5.9