10.01.2015 Views

Programming interface to the Swiss Ephemeris - programmiastral.com

Programming interface to the Swiss Ephemeris - programmiastral.com

Programming interface to the Swiss Ephemeris - programmiastral.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Swiss</strong> <strong>Ephemeris</strong> 34<br />

Compute <strong>the</strong> attributes of a lunar eclipse at a given time<br />

int32 swe_lun_eclipse_how(<br />

double tjd_ut, /* time, Jul. day UT */<br />

int32 ifl, /* ephemeris flag */<br />

double *geopos, /* input array, geopos, geolon, geoheight */<br />

eastern longitude is positive,<br />

western longitude is negative,<br />

nor<strong>the</strong>rn latitude is positive,<br />

sou<strong>the</strong>rn latitude is negative */<br />

double *attr, /* return array, 20 doubles, see below */<br />

char *serr); /* return error string */<br />

int32 swe_rise_trans(<br />

double tjd_ut, /* search after this time (UT) */<br />

int32 ipl, /* planet number, if planet or moon */<br />

char *starname, /* star name, if star */<br />

int32 epheflag, /* ephemeris flag */<br />

int32 rsmi,<br />

/* integer specifying that rise, set, or one of <strong>the</strong> two meridian transits is<br />

wanted. see definition below */<br />

double *geopos, /* array of three doubles containing geograph. long., lat., height of observer<br />

*/<br />

double atpress, /* atmospheric pressure in mbar/hPa */<br />

double attemp, /* atmospheric temperature in deg. C */<br />

double *tret, /* return address (double) for rise time etc. */<br />

char *serr); /* return address for error message */<br />

Compute planetary phenomena<br />

int32 swe_pheno_ut(<br />

double tjd_ut, /* time Jul. Day UT */<br />

int32 ipl, /* planet number */<br />

int32 iflag, /* ephemeris flag */<br />

double *attr, /* return array, 20 doubles, see below */<br />

char *serr); /* return error string */<br />

int32 swe_pheno(<br />

double tjd_et, /* time Jul. Day ET */<br />

int32 ipl, /* planet number */<br />

int32 iflag, /* ephemeris flag */<br />

double *attr, /* return array, 20 doubles, see below */<br />

char *serr); /* return error string */<br />

void swe_azalt(<br />

double tjd_ut, /* UT */<br />

int32 calc_flag, /* SE_ECL2HOR or SE_EQU2HOR */<br />

double *geopos, /* array of 3 doubles: geogr. long., lat., height */<br />

double atpress, /* atmospheric pressure in mbar (hPa) */<br />

double attemp, /* atmospheric temperature in degrees Celsius */<br />

double *xin, /* array of 3 doubles: position of body in ei<strong>the</strong>r ecliptical or equa<strong>to</strong>rial<br />

coordinates, depending on calc_flag */<br />

double *xaz); /* return array of 3 doubles, containing azimuth, true altitude, apparent<br />

altitude */<br />

void swe_azalt_rev(<br />

double tjd_ut,<br />

int32 calc_flag, /* ei<strong>the</strong>r SE_HOR2ECL or SE_HOR2EQU */<br />

double *geopos, /* array of 3 doubles for geograph. pos. of observer */<br />

double *xin, /* array of 2 doubles for azimuth and true altitude of planet */<br />

double *xout);<br />

/* return array of 2 doubles for ei<strong>the</strong>r ecliptic or equa<strong>to</strong>rial coordinates,<br />

depending on calc_flag */<br />

double swe_refrac(<br />

double inalt,<br />

double atpress, /* atmospheric pressure in mbar (hPa) */<br />

double attemp, /* atmospheric temperature in degrees Celsius */<br />

int32 calc_flag); /* ei<strong>the</strong>r SE_TRUE_TO_APP or SE_APP_TO_TRUE */

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!