/* sidereal time */
static PyObject* astrology_swe_sidtime0(PyObject *self, PyObject *args)
{
	double tjd_ut, eps, nut;

	if (!PyArg_ParseTuple(args, "ddd", &tjd_ut, &eps, &nut))
		return NULL;

	double ret = swe_sidtime0(tjd_ut, eps, nut);

	return Py_BuildValue("d", ret);
}
示例#2
0
/***********************************************************
function sidtime (t): returns sidereal time at greenwich;
Parameters differ from ASYS version! after AESuppl. 1961, page 75
version 24-oct-87
***********************************************************/
double  sidtime (double jd_ad, double ecl, double nuta)
	/* jd_ad relative julian date */
        /* ecl, nuta  ecliptic and nutation of date, in degrees */
{
  return swe_sidtime0(jd_ad + JUL_OFFSET, ecl, nuta);
}