/* * FILE : novas_wrap.c * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) * Version 1.1 (Patch 5) * * Portions Copyright (c) 1995-1998 * The University of Utah and The Regents of the University of California. * Permission is granted to distribute this file in any manner provided * this notice remains intact. * * Do not make changes to this file--changes will be lost! * */ #define SWIGCODE /* Implementation : PYTHON */ #define SWIGPYTHON #include #include /*********************************************************************** * $Header:$ * swig_lib/python/python.cfg * * This file contains coded needed to add variable linking to the * Python interpreter. C variables are added as a new kind of Python * datatype. * * Also contains supporting code for building python under Windows * and things like that. * * $Log:$ ************************************************************************/ #ifdef __cplusplus extern "C" { #endif #include "Python.h" #ifdef __cplusplus } #endif /* Definitions for Windows/Unix exporting */ #if defined(__WIN32__) # if defined(_MSC_VER) # define SWIGEXPORT(a,b) __declspec(dllexport) a b # else # if defined(__BORLANDC__) # define SWIGEXPORT(a,b) a _export b # else # define SWIGEXPORT(a,b) a b # endif # endif #else # define SWIGEXPORT(a,b) a b #endif #ifdef SWIG_GLOBAL #ifdef __cplusplus #define SWIGSTATIC extern "C" #else #define SWIGSTATIC #endif #endif #ifndef SWIGSTATIC #define SWIGSTATIC static #endif typedef struct { char *name; PyObject *(*get_attr)(void); int (*set_attr)(PyObject *); } swig_globalvar; typedef struct swig_varlinkobject { PyObject_HEAD swig_globalvar **vars; int nvars; int maxvars; } swig_varlinkobject; /* ---------------------------------------------------------------------- swig_varlink_repr() Function for python repr method ---------------------------------------------------------------------- */ static PyObject * swig_varlink_repr(swig_varlinkobject *v) { v = v; return PyString_FromString(""); } /* --------------------------------------------------------------------- swig_varlink_print() Print out all of the global variable names --------------------------------------------------------------------- */ static int swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { int i = 0; flags = flags; fprintf(fp,"Global variables { "); while (v->vars[i]) { fprintf(fp,"%s", v->vars[i]->name); i++; if (v->vars[i]) fprintf(fp,", "); } fprintf(fp," }\n"); return 0; } /* -------------------------------------------------------------------- swig_varlink_getattr This function gets the value of a variable and returns it as a PyObject. In our case, we'll be looking at the datatype and converting into a number or string -------------------------------------------------------------------- */ static PyObject * swig_varlink_getattr(swig_varlinkobject *v, char *n) { int i = 0; char temp[128]; while (v->vars[i]) { if (strcmp(v->vars[i]->name,n) == 0) { return (*v->vars[i]->get_attr)(); } i++; } sprintf(temp,"C global variable %s not found.", n); PyErr_SetString(PyExc_NameError,temp); return NULL; } /* ------------------------------------------------------------------- swig_varlink_setattr() This function sets the value of a variable. ------------------------------------------------------------------- */ static int swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { char temp[128]; int i = 0; while (v->vars[i]) { if (strcmp(v->vars[i]->name,n) == 0) { return (*v->vars[i]->set_attr)(p); } i++; } sprintf(temp,"C global variable %s not found.", n); PyErr_SetString(PyExc_NameError,temp); return 1; } statichere PyTypeObject varlinktype = { /* PyObject_HEAD_INIT(&PyType_Type) Note : This doesn't work on some machines */ PyObject_HEAD_INIT(0) 0, "varlink", /* Type name */ sizeof(swig_varlinkobject), /* Basic size */ 0, /* Itemsize */ 0, /* Deallocator */ (printfunc) swig_varlink_print, /* Print */ (getattrfunc) swig_varlink_getattr, /* get attr */ (setattrfunc) swig_varlink_setattr, /* Set attr */ 0, /* tp_compare */ (reprfunc) swig_varlink_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_mapping*/ 0, /* tp_hash */ }; /* Create a variable linking object for use later */ SWIGSTATIC PyObject * SWIG_newvarlink(void) { swig_varlinkobject *result = 0; result = PyMem_NEW(swig_varlinkobject,1); varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ result->ob_type = &varlinktype; /* _Py_NewReference(result); Does not seem to be necessary */ result->nvars = 0; result->maxvars = 64; result->vars = (swig_globalvar **) malloc(64*sizeof(swig_globalvar *)); result->vars[0] = 0; result->ob_refcnt = 0; Py_XINCREF((PyObject *) result); return ((PyObject*) result); } SWIGSTATIC void SWIG_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { swig_varlinkobject *v; v= (swig_varlinkobject *) p; if (v->nvars >= v->maxvars -1) { v->maxvars = 2*v->maxvars; v->vars = (swig_globalvar **) realloc(v->vars,v->maxvars*sizeof(swig_globalvar *)); if (v->vars == NULL) { fprintf(stderr,"SWIG : Fatal error in initializing Python module.\n"); exit(1); } } v->vars[v->nvars] = (swig_globalvar *) malloc(sizeof(swig_globalvar)); v->vars[v->nvars]->name = (char *) malloc(strlen(name)+1); strcpy(v->vars[v->nvars]->name,name); v->vars[v->nvars]->get_attr = get_attr; v->vars[v->nvars]->set_attr = set_attr; v->nvars++; v->vars[v->nvars] = 0; } /***************************************************************************** * $Header:$ * * swigptr.swg * * This file contains supporting code for the SWIG run-time type checking * mechanism. The following functions are available : * * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)); * * Registers a new type-mapping with the type-checker. origtype is the * original datatype and newtype is an equivalent type. cast is optional * pointer to a function to cast pointer values between types (this * is typically used to cast pointers from derived classes to base classes in C++) * * SWIG_MakePtr(char *buffer, void *ptr, char *typestring); * * Makes a pointer string from a pointer and typestring. The result is returned * in buffer which is assumed to hold enough space for the result. * * char * SWIG_GetPtr(char *buffer, void **ptr, char *type) * * Gets a pointer value from a string. If there is a type-mismatch, returns * a character string to the received type. On success, returns NULL. * * * You can remap these functions by making a file called "swigptr.swg" in * your the same directory as the interface file you are wrapping. * * These functions are normally declared static, but this file can be * can be used in a multi-module environment by redefining the symbol * SWIGSTATIC. *****************************************************************************/ #include #ifdef SWIG_GLOBAL #ifdef __cplusplus #define SWIGSTATIC extern "C" #else #define SWIGSTATIC #endif #endif #ifndef SWIGSTATIC #define SWIGSTATIC static #endif /* SWIG pointer structure */ typedef struct SwigPtrType { char *name; /* Datatype name */ int len; /* Length (used for optimization) */ void *(*cast)(void *); /* Pointer casting function */ struct SwigPtrType *next; /* Linked list pointer */ } SwigPtrType; /* Pointer cache structure */ typedef struct { int stat; /* Status (valid) bit */ SwigPtrType *tp; /* Pointer to type structure */ char name[256]; /* Given datatype name */ char mapped[256]; /* Equivalent name */ } SwigCacheType; /* Some variables */ static int SwigPtrMax = 64; /* Max entries that can be currently held */ /* This value may be adjusted dynamically */ static int SwigPtrN = 0; /* Current number of entries */ static int SwigPtrSort = 0; /* Status flag indicating sort */ static int SwigStart[256]; /* Starting positions of types */ /* Pointer table */ static SwigPtrType *SwigPtrTable = 0; /* Table containing pointer equivalences */ /* Cached values */ #define SWIG_CACHESIZE 8 #define SWIG_CACHEMASK 0x7 static SwigCacheType SwigCache[SWIG_CACHESIZE]; static int SwigCacheIndex = 0; static int SwigLastCache = 0; /* Sort comparison function */ static int swigsort(const void *data1, const void *data2) { SwigPtrType *d1 = (SwigPtrType *) data1; SwigPtrType *d2 = (SwigPtrType *) data2; return strcmp(d1->name,d2->name); } /* Binary Search function */ static int swigcmp(const void *key, const void *data) { char *k = (char *) key; SwigPtrType *d = (SwigPtrType *) data; return strncmp(k,d->name,d->len); } /* Register a new datatype with the type-checker */ SWIGSTATIC void SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)) { int i; SwigPtrType *t = 0,*t1; /* Allocate the pointer table if necessary */ if (!SwigPtrTable) { SwigPtrTable = (SwigPtrType *) malloc(SwigPtrMax*sizeof(SwigPtrType)); SwigPtrN = 0; } /* Grow the table */ if (SwigPtrN >= SwigPtrMax) { SwigPtrMax = 2*SwigPtrMax; SwigPtrTable = (SwigPtrType *) realloc((char *) SwigPtrTable,SwigPtrMax*sizeof(SwigPtrType)); } for (i = 0; i < SwigPtrN; i++) if (strcmp(SwigPtrTable[i].name,origtype) == 0) { t = &SwigPtrTable[i]; break; } if (!t) { t = &SwigPtrTable[SwigPtrN]; t->name = origtype; t->len = strlen(t->name); t->cast = 0; t->next = 0; SwigPtrN++; } /* Check for existing entry */ while (t->next) { if ((strcmp(t->name,newtype) == 0)) { if (cast) t->cast = cast; return; } t = t->next; } /* Now place entry (in sorted order) */ t1 = (SwigPtrType *) malloc(sizeof(SwigPtrType)); t1->name = newtype; t1->len = strlen(t1->name); t1->cast = cast; t1->next = 0; t->next = t1; SwigPtrSort = 0; } /* Make a pointer value string */ SWIGSTATIC void SWIG_MakePtr(char *_c, const void *_ptr, char *type) { static char _hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; unsigned long _p, _s; char _result[20], *_r; /* Note : a 64-bit hex number = 16 digits */ _r = _result; _p = (unsigned long) _ptr; if (_p > 0) { while (_p > 0) { _s = _p & 0xf; *(_r++) = _hex[_s]; _p = _p >> 4; } *_r = '_'; while (_r >= _result) *(_c++) = *(_r--); } else { strcpy (_c, "NULL"); } if (_ptr) strcpy (_c, type); } /* Define for backwards compatibility */ #define _swig_make_hex SWIG_MakePtr /* Function for getting a pointer value */ SWIGSTATIC char *SWIG_GetPtr(char *_c, void **ptr, char *_t) { unsigned long _p; char temp_type[256]; char *name; int i, len; SwigPtrType *sp,*tp; SwigCacheType *cache; int start, end; _p = 0; /* Pointer values must start with leading underscore */ if (*_c == '_') { _c++; /* Extract hex value from pointer */ while (*_c) { if ((*_c >= '0') && (*_c <= '9')) _p = (_p << 4) + (*_c - '0'); else if ((*_c >= 'a') && (*_c <= 'f')) _p = (_p << 4) + ((*_c - 'a') + 10); else break; _c++; } if (_t) { if (strcmp(_t,_c)) { if (!SwigPtrSort) { qsort((void *) SwigPtrTable, SwigPtrN, sizeof(SwigPtrType), swigsort); for (i = 0; i < 256; i++) { SwigStart[i] = SwigPtrN; } for (i = SwigPtrN-1; i >= 0; i--) { SwigStart[(int) (SwigPtrTable[i].name[1])] = i; } for (i = 255; i >= 1; i--) { if (SwigStart[i-1] > SwigStart[i]) SwigStart[i-1] = SwigStart[i]; } SwigPtrSort = 1; for (i = 0; i < SWIG_CACHESIZE; i++) SwigCache[i].stat = 0; } /* First check cache for matches. Uses last cache value as starting point */ cache = &SwigCache[SwigLastCache]; for (i = 0; i < SWIG_CACHESIZE; i++) { if (cache->stat) { if (strcmp(_t,cache->name) == 0) { if (strcmp(_c,cache->mapped) == 0) { cache->stat++; *ptr = (void *) _p; if (cache->tp->cast) *ptr = (*(cache->tp->cast))(*ptr); return (char *) 0; } } } SwigLastCache = (SwigLastCache+1) & SWIG_CACHEMASK; if (!SwigLastCache) cache = SwigCache; else cache++; } /* We have a type mismatch. Will have to look through our type mapping table to figure out whether or not we can accept this datatype */ start = SwigStart[(int) _t[1]]; end = SwigStart[(int) _t[1]+1]; sp = &SwigPtrTable[start]; while (start < end) { if (swigcmp(_t,sp) == 0) break; sp++; start++; } if (start >= end) sp = 0; /* Try to find a match for this */ if (sp) { while (swigcmp(_t,sp) == 0) { name = sp->name; len = sp->len; tp = sp->next; /* Try to find entry for our given datatype */ while(tp) { if (tp->len >= 255) { return _c; } strcpy(temp_type,tp->name); strncat(temp_type,_t+len,255-tp->len); if (strcmp(_c,temp_type) == 0) { strcpy(SwigCache[SwigCacheIndex].mapped,_c); strcpy(SwigCache[SwigCacheIndex].name,_t); SwigCache[SwigCacheIndex].stat = 1; SwigCache[SwigCacheIndex].tp = tp; SwigCacheIndex = SwigCacheIndex & SWIG_CACHEMASK; /* Get pointer value */ *ptr = (void *) _p; if (tp->cast) *ptr = (*(tp->cast))(*ptr); return (char *) 0; } tp = tp->next; } sp++; /* Hmmm. Didn't find it this time */ } } /* Didn't find any sort of match for this data. Get the pointer value and return the received type */ *ptr = (void *) _p; return _c; } else { /* Found a match on the first try. Return pointer value */ *ptr = (void *) _p; return (char *) 0; } } else { /* No type specified. Good luck */ *ptr = (void *) _p; return (char *) 0; } } else { if (strcmp (_c, "NULL") == 0) { *ptr = (void *) 0; return (char *) 0; } *ptr = (void *) 0; return _c; } } /* Compatibility mode */ #define _swig_get_hex SWIG_GetPtr #define SWIG_init initnovasc #define SWIG_name "novasc" #include "novas.h" static PyObject* l_output_helper(PyObject* target, PyObject* o) { PyObject* o2; PyObject* o3; if (!target) { target = o; } else if (target == Py_None) { Py_DECREF(Py_None); target = o; } else { if (!PyList_Check(target)) { o2 = target; target = PyList_New(0); PyList_Append(target, o2); Py_XDECREF(o2); } PyList_Append(target,o); Py_XDECREF(o); } return target; } static PyObject* t_output_helper(PyObject* target, PyObject* o) { PyObject* o2; PyObject* o3; if (!target) { target = o; } else if (target == Py_None) { Py_DECREF(Py_None); target = o; } else { if (!PyTuple_Check(target)) { o2 = target; target = PyTuple_New(1); PyTuple_SetItem(target, 0, o2); } o3 = PyTuple_New(1); PyTuple_SetItem(o3, 0, o); o2 = target; target = PySequence_Concat(o2, o3); Py_DECREF(o2); Py_DECREF(o3); } return target; } static PyObject *_wrap_AppStar(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; cat_entry * _arg2; double * _arg3; double temp; double * _arg4; double temp0; char * _argc1 = 0; char * _argc2 = 0; self = self; { _arg3 = &temp; } { _arg4 = &temp0; } if(!PyArg_ParseTuple(args,"dss:AppStar",&_arg0,&_argc1,&_argc2)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of AppStar. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of AppStar. Expected _cat_entry_p."); return NULL; } } _result = (int )app_star(_arg0,_arg1,_arg2,_arg3,_arg4); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_AppPlanet(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; body * _arg2; double * _arg3; double temp; double * _arg4; double temp0; double * _arg5; double temp1; char * _argc1 = 0; char * _argc2 = 0; self = self; { _arg3 = &temp; } { _arg4 = &temp0; } { _arg5 = &temp1; } if(!PyArg_ParseTuple(args,"dss:AppPlanet",&_arg0,&_argc1,&_argc2)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of AppPlanet. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of AppPlanet. Expected _body_p."); return NULL; } } _result = (int )app_planet(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_TopoStar(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; double _arg2; cat_entry * _arg3; site_info * _arg4; double * _arg5; double temp; double * _arg6; double temp0; char * _argc1 = 0; char * _argc3 = 0; char * _argc4 = 0; self = self; { _arg5 = &temp; } { _arg6 = &temp0; } if(!PyArg_ParseTuple(args,"dsdss:TopoStar",&_arg0,&_argc1,&_arg2,&_argc3,&_argc4)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of TopoStar. Expected _body_p."); return NULL; } } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of TopoStar. Expected _cat_entry_p."); return NULL; } } if (_argc4) { if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of TopoStar. Expected _site_info_p."); return NULL; } } _result = (int )topo_star(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg6)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_TopoPlanet(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; body * _arg2; double _arg3; site_info * _arg4; double * _arg5; double temp; double * _arg6; double temp0; double * _arg7; double temp1; char * _argc1 = 0; char * _argc2 = 0; char * _argc4 = 0; self = self; { _arg5 = &temp; } { _arg6 = &temp0; } { _arg7 = &temp1; } if(!PyArg_ParseTuple(args,"dssds:TopoPlanet",&_arg0,&_argc1,&_argc2,&_arg3,&_argc4)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of TopoPlanet. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of TopoPlanet. Expected _body_p."); return NULL; } } if (_argc4) { if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of TopoPlanet. Expected _site_info_p."); return NULL; } } _result = (int )topo_planet(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg6)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg7)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_VirtualStar(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; cat_entry * _arg2; double * _arg3; double temp; double * _arg4; double temp0; char * _argc1 = 0; char * _argc2 = 0; self = self; { _arg3 = &temp; } { _arg4 = &temp0; } if(!PyArg_ParseTuple(args,"dss:VirtualStar",&_arg0,&_argc1,&_argc2)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of VirtualStar. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of VirtualStar. Expected _cat_entry_p."); return NULL; } } _result = (int )virtual_star(_arg0,_arg1,_arg2,_arg3,_arg4); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_VirtualPlanet(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; body * _arg2; double * _arg3; double temp; double * _arg4; double temp0; double * _arg5; double temp1; char * _argc1 = 0; char * _argc2 = 0; self = self; { _arg3 = &temp; } { _arg4 = &temp0; } { _arg5 = &temp1; } if(!PyArg_ParseTuple(args,"dss:VirtualPlanet",&_arg0,&_argc1,&_argc2)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of VirtualPlanet. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of VirtualPlanet. Expected _body_p."); return NULL; } } _result = (int )virtual_planet(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_LocalStar(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; double _arg2; cat_entry * _arg3; site_info * _arg4; double * _arg5; double temp; double * _arg6; double temp0; char * _argc1 = 0; char * _argc3 = 0; char * _argc4 = 0; self = self; { _arg5 = &temp; } { _arg6 = &temp0; } if(!PyArg_ParseTuple(args,"dsdss:LocalStar",&_arg0,&_argc1,&_arg2,&_argc3,&_argc4)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of LocalStar. Expected _body_p."); return NULL; } } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of LocalStar. Expected _cat_entry_p."); return NULL; } } if (_argc4) { if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of LocalStar. Expected _site_info_p."); return NULL; } } _result = (int )local_star(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg6)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_LocalPlanet(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; body * _arg2; double _arg3; site_info * _arg4; double * _arg5; double temp; double * _arg6; double temp0; double * _arg7; double temp1; char * _argc1 = 0; char * _argc2 = 0; char * _argc4 = 0; self = self; { _arg5 = &temp; } { _arg6 = &temp0; } { _arg7 = &temp1; } if(!PyArg_ParseTuple(args,"dssds:LocalPlanet",&_arg0,&_argc1,&_argc2,&_arg3,&_argc4)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of LocalPlanet. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of LocalPlanet. Expected _body_p."); return NULL; } } if (_argc4) { if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of LocalPlanet. Expected _site_info_p."); return NULL; } } _result = (int )local_planet(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg6)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg7)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_AstroStar(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; cat_entry * _arg2; double * _arg3; double temp; double * _arg4; double temp0; char * _argc1 = 0; char * _argc2 = 0; self = self; { _arg3 = &temp; } { _arg4 = &temp0; } if(!PyArg_ParseTuple(args,"dss:AstroStar",&_arg0,&_argc1,&_argc2)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of AstroStar. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of AstroStar. Expected _cat_entry_p."); return NULL; } } _result = (int )astro_star(_arg0,_arg1,_arg2,_arg3,_arg4); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_AstroPlanet(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; body * _arg2; double * _arg3; double temp; double * _arg4; double temp0; double * _arg5; double temp1; char * _argc1 = 0; char * _argc2 = 0; self = self; { _arg3 = &temp; } { _arg4 = &temp0; } { _arg5 = &temp1; } if(!PyArg_ParseTuple(args,"dss:AstroPlanet",&_arg0,&_argc1,&_argc2)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of AstroPlanet. Expected _body_p."); return NULL; } } if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of AstroPlanet. Expected _body_p."); return NULL; } } _result = (int )astro_planet(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_MeanStar(PyObject *self, PyObject *args) { PyObject * _resultobj; int _result; double _arg0; body * _arg1; double _arg2; double _arg3; double * _arg4; double temp; double * _arg5; double temp0; char * _argc1 = 0; self = self; { _arg4 = &temp; } { _arg5 = &temp0; } if(!PyArg_ParseTuple(args,"dsdd:MeanStar",&_arg0,&_argc1,&_arg2,&_arg3)) return NULL; if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of MeanStar. Expected _body_p."); return NULL; } } _result = (int )mean_star(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); _resultobj = Py_BuildValue("i",_result); { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_SiderealTime(PyObject *self, PyObject *args) { PyObject * _resultobj; double _arg0; double _arg1; double _arg2; double * _arg3; double temp; self = self; { _arg3 = &temp; } if(!PyArg_ParseTuple(args,"ddd:SiderealTime",&_arg0,&_arg1,&_arg2)) return NULL; sidereal_time(_arg0,_arg1,_arg2,_arg3); Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_Equ2Hor(PyObject *self, PyObject *args) { PyObject * _resultobj; double _arg0; double _arg1; double _arg2; double _arg3; site_info * _arg4; double _arg5; double _arg6; short _arg7; double * _arg8; double temp; double * _arg9; double temp0; double * _arg10; double temp1; double * _arg11; double temp2; char * _argc4 = 0; self = self; { _arg8 = &temp; } { _arg9 = &temp0; } { _arg10 = &temp1; } { _arg11 = &temp2; } if(!PyArg_ParseTuple(args,"ddddsddh:Equ2Hor",&_arg0,&_arg1,&_arg2,&_arg3,&_argc4,&_arg5,&_arg6,&_arg7)) return NULL; if (_argc4) { if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of Equ2Hor. Expected _site_info_p."); return NULL; } } equ2hor(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9,_arg10,_arg11); Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; o = PyFloat_FromDouble((double) (*_arg8)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg9)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg10)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg11)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_Cal2JD(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; short _arg0; short _arg1; short _arg2; double _arg3; self = self; if(!PyArg_ParseTuple(args,"hhhd:Cal2JD",&_arg0,&_arg1,&_arg2,&_arg3)) return NULL; _result = (double )julian_date(_arg0,_arg1,_arg2,_arg3); _resultobj = Py_BuildValue("d",_result); return _resultobj; } static PyObject *_wrap_JD2Cal(PyObject *self, PyObject *args) { PyObject * _resultobj; double _arg0; short * _arg1; short temp; short * _arg2; short temp0; short * _arg3; short temp1; double * _arg4; double temp2; self = self; { _arg1 = &temp; } { _arg2 = &temp0; } { _arg3 = &temp1; } { _arg4 = &temp2; } if(!PyArg_ParseTuple(args,"d:JD2Cal",&_arg0)) return NULL; cal_date(_arg0,_arg1,_arg2,_arg3,_arg4); Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; o = PyInt_FromLong((long) (*_arg1)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyInt_FromLong((long) (*_arg2)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyInt_FromLong((long) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_EarthTilt(PyObject *self, PyObject *args) { PyObject * _resultobj; double _arg0; double * _arg1; double temp; double * _arg2; double temp0; double * _arg3; double temp1; double * _arg4; double temp2; double * _arg5; double temp3; self = self; { _arg1 = &temp; } { _arg2 = &temp0; } { _arg3 = &temp1; } { _arg4 = &temp2; } { _arg5 = &temp3; } if(!PyArg_ParseTuple(args,"d:EarthTilt",&_arg0)) return NULL; earthtilt(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); Py_INCREF(Py_None); _resultobj = Py_None; { PyObject *o; o = PyFloat_FromDouble((double) (*_arg1)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg2)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg3)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg4)); _resultobj = t_output_helper(_resultobj, o); } { PyObject *o; o = PyFloat_FromDouble((double) (*_arg5)); _resultobj = t_output_helper(_resultobj, o); } return _resultobj; } static PyObject *_wrap_TransformHip(PyObject *self, PyObject *args) { PyObject * _resultobj; cat_entry * _arg0; cat_entry * _arg1; char * _argc0 = 0; char * _argc1 = 0; self = self; if(!PyArg_ParseTuple(args,"ss:TransformHip",&_argc0,&_argc1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of TransformHip. Expected _cat_entry_p."); return NULL; } } if (_argc1) { if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of TransformHip. Expected _cat_entry_p."); return NULL; } } transform_hip(_arg0,_arg1); Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } static PyObject *_wrap_TransformCat(PyObject *self, PyObject *args) { PyObject * _resultobj; short _arg0; double _arg1; cat_entry * _arg2; double _arg3; char * _arg4; cat_entry * _arg5; char * _argc2 = 0; char * _argc5 = 0; self = self; if(!PyArg_ParseTuple(args,"hdsdss:TransformCat",&_arg0,&_arg1,&_argc2,&_arg3,&_arg4,&_argc5)) return NULL; if (_argc2) { if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of TransformCat. Expected _cat_entry_p."); return NULL; } } if (_argc5) { if (SWIG_GetPtr(_argc5,(void **) &_arg5,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of TransformCat. Expected _cat_entry_p."); return NULL; } } transform_cat(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } #define EPHDIR "/home/chummel/USNO/noiPlan/pnovas-2.0.1b" #define EPHFILE "JPLEPH" static PyObject *_wrap_EphemerisSet(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _arg0; self = self; if(!PyArg_ParseTuple(args,"s:EphemerisSet",&_arg0)) return NULL; /* Comment out hard coding of _arg0 below in distribution #@@@ */ _arg0=EPHDIR"/"EPHFILE; /*printf("_arg0 for setEphemeris in novas_wrap.c is %s \n",_arg0);*/ setEphemeris(_arg0); Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } #define new_Body() ((body *) calloc(1,sizeof(body))) static PyObject *_wrap_new_Body(PyObject *self, PyObject *args) { PyObject * _resultobj; body * _result; char _ptemp[128]; self = self; if(!PyArg_ParseTuple(args,":new_Body")) return NULL; _result = (body *)new_Body(); SWIG_MakePtr(_ptemp, (char *) _result,"_body_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } #define delete_body(_swigobj) (free ((char *) _swigobj)) static PyObject *_wrap_delete_Body(PyObject *self, PyObject *args) { PyObject * _resultobj; body * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:delete_Body",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_Body. Expected _body_p."); return NULL; } } delete_body(_arg0); Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } #define body_type_set(_swigobj,_swigval) (_swigobj->type = _swigval,_swigval) static PyObject *_wrap_Body_type_set(PyObject *self, PyObject *args) { PyObject * _resultobj; short _result; body * _arg0; short _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sh:Body_type_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Body_type_set. Expected _body_p."); return NULL; } } _result = (short )body_type_set(_arg0,_arg1); _resultobj = Py_BuildValue("h",_result); return _resultobj; } #define body_type_get(_swigobj) ((short ) _swigobj->type) static PyObject *_wrap_Body_type_get(PyObject *self, PyObject *args) { PyObject * _resultobj; short _result; body * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Body_type_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Body_type_get. Expected _body_p."); return NULL; } } _result = (short )body_type_get(_arg0); _resultobj = Py_BuildValue("h",_result); return _resultobj; } #define body_number_set(_swigobj,_swigval) (_swigobj->number = _swigval,_swigval) static PyObject *_wrap_Body_number_set(PyObject *self, PyObject *args) { PyObject * _resultobj; short _result; body * _arg0; short _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sh:Body_number_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Body_number_set. Expected _body_p."); return NULL; } } _result = (short )body_number_set(_arg0,_arg1); _resultobj = Py_BuildValue("h",_result); return _resultobj; } #define body_number_get(_swigobj) ((short ) _swigobj->number) static PyObject *_wrap_Body_number_get(PyObject *self, PyObject *args) { PyObject * _resultobj; short _result; body * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Body_number_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Body_number_get. Expected _body_p."); return NULL; } } _result = (short )body_number_get(_arg0); _resultobj = Py_BuildValue("h",_result); return _resultobj; } static char * body_name_set(body *obj, char val[100]) { { strncpy(obj->name, val, 100); } return (char *) val; } static PyObject *_wrap_Body_name_set(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _result; body * _arg0; char * _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"ss:Body_name_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Body_name_set. Expected _body_p."); return NULL; } } _result = (char *)body_name_set(_arg0,_arg1); _resultobj = Py_BuildValue("s", _result); return _resultobj; } #define body_name_get(_swigobj) ((char *) _swigobj->name) static PyObject *_wrap_Body_name_get(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _result; body * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Body_name_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_body_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Body_name_get. Expected _body_p."); return NULL; } } _result = (char *)body_name_get(_arg0); _resultobj = Py_BuildValue("s", _result); return _resultobj; } #define new_Location() ((site_info *) calloc(1,sizeof(site_info))) static PyObject *_wrap_new_Location(PyObject *self, PyObject *args) { PyObject * _resultobj; site_info * _result; char _ptemp[128]; self = self; if(!PyArg_ParseTuple(args,":new_Location")) return NULL; _result = (site_info *)new_Location(); SWIG_MakePtr(_ptemp, (char *) _result,"_site_info_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } #define delete_site_info(_swigobj) (free ((char *) _swigobj)) static PyObject *_wrap_delete_Location(PyObject *self, PyObject *args) { PyObject * _resultobj; site_info * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:delete_Location",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_Location. Expected _site_info_p."); return NULL; } } delete_site_info(_arg0); Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } #define site_info_latitude_set(_swigobj,_swigval) (_swigobj->latitude = _swigval,_swigval) static PyObject *_wrap_Location_lat_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Location_lat_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_lat_set. Expected _site_info_p."); return NULL; } } _result = (double )site_info_latitude_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_latitude_get(_swigobj) ((double ) _swigobj->latitude) static PyObject *_wrap_Location_lat_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Location_lat_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_lat_get. Expected _site_info_p."); return NULL; } } _result = (double )site_info_latitude_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_longitude_set(_swigobj,_swigval) (_swigobj->longitude = _swigval,_swigval) static PyObject *_wrap_Location_lon_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Location_lon_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_lon_set. Expected _site_info_p."); return NULL; } } _result = (double )site_info_longitude_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_longitude_get(_swigobj) ((double ) _swigobj->longitude) static PyObject *_wrap_Location_lon_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Location_lon_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_lon_get. Expected _site_info_p."); return NULL; } } _result = (double )site_info_longitude_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval) static PyObject *_wrap_Location_h_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Location_h_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_h_set. Expected _site_info_p."); return NULL; } } _result = (double )site_info_height_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_height_get(_swigobj) ((double ) _swigobj->height) static PyObject *_wrap_Location_h_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Location_h_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_h_get. Expected _site_info_p."); return NULL; } } _result = (double )site_info_height_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_temperature_set(_swigobj,_swigval) (_swigobj->temperature = _swigval,_swigval) static PyObject *_wrap_Location_temp_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Location_temp_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_temp_set. Expected _site_info_p."); return NULL; } } _result = (double )site_info_temperature_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_temperature_get(_swigobj) ((double ) _swigobj->temperature) static PyObject *_wrap_Location_temp_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Location_temp_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_temp_get. Expected _site_info_p."); return NULL; } } _result = (double )site_info_temperature_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_pressure_set(_swigobj,_swigval) (_swigobj->pressure = _swigval,_swigval) static PyObject *_wrap_Location_pres_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Location_pres_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_pres_set. Expected _site_info_p."); return NULL; } } _result = (double )site_info_pressure_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define site_info_pressure_get(_swigobj) ((double ) _swigobj->pressure) static PyObject *_wrap_Location_pres_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; site_info * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Location_pres_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_site_info_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Location_pres_get. Expected _site_info_p."); return NULL; } } _result = (double )site_info_pressure_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define new_Cat() ((cat_entry *) calloc(1,sizeof(cat_entry))) static PyObject *_wrap_new_Cat(PyObject *self, PyObject *args) { PyObject * _resultobj; cat_entry * _result; char _ptemp[128]; self = self; if(!PyArg_ParseTuple(args,":new_Cat")) return NULL; _result = (cat_entry *)new_Cat(); SWIG_MakePtr(_ptemp, (char *) _result,"_cat_entry_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } #define delete_cat_entry(_swigobj) (free ((char *) _swigobj)) static PyObject *_wrap_delete_Cat(PyObject *self, PyObject *args) { PyObject * _resultobj; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:delete_Cat",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_Cat. Expected _cat_entry_p."); return NULL; } } delete_cat_entry(_arg0); Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } static char * cat_entry_catalog_set(cat_entry *obj, char val[4]) { { strncpy(obj->catalog, val, 4); } return (char *) val; } static PyObject *_wrap_Cat_catalog_set(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _result; cat_entry * _arg0; char * _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"ss:Cat_catalog_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_catalog_set. Expected _cat_entry_p."); return NULL; } } _result = (char *)cat_entry_catalog_set(_arg0,_arg1); _resultobj = Py_BuildValue("s", _result); return _resultobj; } #define cat_entry_catalog_get(_swigobj) ((char *) _swigobj->catalog) static PyObject *_wrap_Cat_catalog_get(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_catalog_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_catalog_get. Expected _cat_entry_p."); return NULL; } } _result = (char *)cat_entry_catalog_get(_arg0); _resultobj = Py_BuildValue("s", _result); return _resultobj; } static char * cat_entry_starname_set(cat_entry *obj, char val[51]) { { strncpy(obj->starname, val, 51); } return (char *) val; } static PyObject *_wrap_Cat_starname_set(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _result; cat_entry * _arg0; char * _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"ss:Cat_starname_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_starname_set. Expected _cat_entry_p."); return NULL; } } _result = (char *)cat_entry_starname_set(_arg0,_arg1); _resultobj = Py_BuildValue("s", _result); return _resultobj; } #define cat_entry_starname_get(_swigobj) ((char *) _swigobj->starname) static PyObject *_wrap_Cat_starname_get(PyObject *self, PyObject *args) { PyObject * _resultobj; char * _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_starname_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_starname_get. Expected _cat_entry_p."); return NULL; } } _result = (char *)cat_entry_starname_get(_arg0); _resultobj = Py_BuildValue("s", _result); return _resultobj; } #define cat_entry_starnumber_set(_swigobj,_swigval) (_swigobj->starnumber = _swigval,_swigval) static PyObject *_wrap_Cat_starnumber_set(PyObject *self, PyObject *args) { PyObject * _resultobj; long _result; cat_entry * _arg0; long _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sl:Cat_starnumber_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_starnumber_set. Expected _cat_entry_p."); return NULL; } } _result = (long )cat_entry_starnumber_set(_arg0,_arg1); _resultobj = Py_BuildValue("l",_result); return _resultobj; } #define cat_entry_starnumber_get(_swigobj) ((long ) _swigobj->starnumber) static PyObject *_wrap_Cat_starnumber_get(PyObject *self, PyObject *args) { PyObject * _resultobj; long _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_starnumber_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_starnumber_get. Expected _cat_entry_p."); return NULL; } } _result = (long )cat_entry_starnumber_get(_arg0); _resultobj = Py_BuildValue("l",_result); return _resultobj; } #define cat_entry_ra_set(_swigobj,_swigval) (_swigobj->ra = _swigval,_swigval) static PyObject *_wrap_Cat_ra_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Cat_ra_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_ra_set. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_ra_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_ra_get(_swigobj) ((double ) _swigobj->ra) static PyObject *_wrap_Cat_ra_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_ra_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_ra_get. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_ra_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_dec_set(_swigobj,_swigval) (_swigobj->dec = _swigval,_swigval) static PyObject *_wrap_Cat_dec_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Cat_dec_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_dec_set. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_dec_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_dec_get(_swigobj) ((double ) _swigobj->dec) static PyObject *_wrap_Cat_dec_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_dec_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_dec_get. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_dec_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_promora_set(_swigobj,_swigval) (_swigobj->promora = _swigval,_swigval) static PyObject *_wrap_Cat_promora_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Cat_promora_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_promora_set. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_promora_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_promora_get(_swigobj) ((double ) _swigobj->promora) static PyObject *_wrap_Cat_promora_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_promora_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_promora_get. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_promora_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_promodec_set(_swigobj,_swigval) (_swigobj->promodec = _swigval,_swigval) static PyObject *_wrap_Cat_promodec_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Cat_promodec_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_promodec_set. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_promodec_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_promodec_get(_swigobj) ((double ) _swigobj->promodec) static PyObject *_wrap_Cat_promodec_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_promodec_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_promodec_get. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_promodec_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_parallax_set(_swigobj,_swigval) (_swigobj->parallax = _swigval,_swigval) static PyObject *_wrap_Cat_parallax_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Cat_parallax_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_parallax_set. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_parallax_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_parallax_get(_swigobj) ((double ) _swigobj->parallax) static PyObject *_wrap_Cat_parallax_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_parallax_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_parallax_get. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_parallax_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_radialvelocity_set(_swigobj,_swigval) (_swigobj->radialvelocity = _swigval,_swigval) static PyObject *_wrap_Cat_radialvelocity_set(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; double _arg1; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"sd:Cat_radialvelocity_set",&_argc0,&_arg1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_radialvelocity_set. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_radialvelocity_set(_arg0,_arg1); _resultobj = Py_BuildValue("d",_result); return _resultobj; } #define cat_entry_radialvelocity_get(_swigobj) ((double ) _swigobj->radialvelocity) static PyObject *_wrap_Cat_radialvelocity_get(PyObject *self, PyObject *args) { PyObject * _resultobj; double _result; cat_entry * _arg0; char * _argc0 = 0; self = self; if(!PyArg_ParseTuple(args,"s:Cat_radialvelocity_get",&_argc0)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_cat_entry_p")) { PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of Cat_radialvelocity_get. Expected _cat_entry_p."); return NULL; } } _result = (double )cat_entry_radialvelocity_get(_arg0); _resultobj = Py_BuildValue("d",_result); return _resultobj; } static PyMethodDef novascMethods[] = { { "Cat_radialvelocity_get", _wrap_Cat_radialvelocity_get, 1 }, { "Cat_radialvelocity_set", _wrap_Cat_radialvelocity_set, 1 }, { "Cat_parallax_get", _wrap_Cat_parallax_get, 1 }, { "Cat_parallax_set", _wrap_Cat_parallax_set, 1 }, { "Cat_promodec_get", _wrap_Cat_promodec_get, 1 }, { "Cat_promodec_set", _wrap_Cat_promodec_set, 1 }, { "Cat_promora_get", _wrap_Cat_promora_get, 1 }, { "Cat_promora_set", _wrap_Cat_promora_set, 1 }, { "Cat_dec_get", _wrap_Cat_dec_get, 1 }, { "Cat_dec_set", _wrap_Cat_dec_set, 1 }, { "Cat_ra_get", _wrap_Cat_ra_get, 1 }, { "Cat_ra_set", _wrap_Cat_ra_set, 1 }, { "Cat_starnumber_get", _wrap_Cat_starnumber_get, 1 }, { "Cat_starnumber_set", _wrap_Cat_starnumber_set, 1 }, { "Cat_starname_get", _wrap_Cat_starname_get, 1 }, { "Cat_starname_set", _wrap_Cat_starname_set, 1 }, { "Cat_catalog_get", _wrap_Cat_catalog_get, 1 }, { "Cat_catalog_set", _wrap_Cat_catalog_set, 1 }, { "delete_Cat", _wrap_delete_Cat, 1 }, { "new_Cat", _wrap_new_Cat, 1 }, { "Location_pres_get", _wrap_Location_pres_get, 1 }, { "Location_pres_set", _wrap_Location_pres_set, 1 }, { "Location_temp_get", _wrap_Location_temp_get, 1 }, { "Location_temp_set", _wrap_Location_temp_set, 1 }, { "Location_h_get", _wrap_Location_h_get, 1 }, { "Location_h_set", _wrap_Location_h_set, 1 }, { "Location_lon_get", _wrap_Location_lon_get, 1 }, { "Location_lon_set", _wrap_Location_lon_set, 1 }, { "Location_lat_get", _wrap_Location_lat_get, 1 }, { "Location_lat_set", _wrap_Location_lat_set, 1 }, { "delete_Location", _wrap_delete_Location, 1 }, { "new_Location", _wrap_new_Location, 1 }, { "Body_name_get", _wrap_Body_name_get, 1 }, { "Body_name_set", _wrap_Body_name_set, 1 }, { "Body_number_get", _wrap_Body_number_get, 1 }, { "Body_number_set", _wrap_Body_number_set, 1 }, { "Body_type_get", _wrap_Body_type_get, 1 }, { "Body_type_set", _wrap_Body_type_set, 1 }, { "delete_Body", _wrap_delete_Body, 1 }, { "new_Body", _wrap_new_Body, 1 }, { "EphemerisSet", _wrap_EphemerisSet, 1 }, { "TransformCat", _wrap_TransformCat, 1 }, { "TransformHip", _wrap_TransformHip, 1 }, { "EarthTilt", _wrap_EarthTilt, 1 }, { "JD2Cal", _wrap_JD2Cal, 1 }, { "Cal2JD", _wrap_Cal2JD, 1 }, { "Equ2Hor", _wrap_Equ2Hor, 1 }, { "SiderealTime", _wrap_SiderealTime, 1 }, { "MeanStar", _wrap_MeanStar, 1 }, { "AstroPlanet", _wrap_AstroPlanet, 1 }, { "AstroStar", _wrap_AstroStar, 1 }, { "LocalPlanet", _wrap_LocalPlanet, 1 }, { "LocalStar", _wrap_LocalStar, 1 }, { "VirtualPlanet", _wrap_VirtualPlanet, 1 }, { "VirtualStar", _wrap_VirtualStar, 1 }, { "TopoPlanet", _wrap_TopoPlanet, 1 }, { "TopoStar", _wrap_TopoStar, 1 }, { "AppPlanet", _wrap_AppPlanet, 1 }, { "AppStar", _wrap_AppStar, 1 }, { NULL, NULL } }; static PyObject *SWIG_globals; #ifdef __cplusplus extern "C" #endif SWIGEXPORT(void,initnovasc)() { PyObject *m, *d; SWIG_globals = SWIG_newvarlink(); m = Py_InitModule("novasc", novascMethods); d = PyModule_GetDict(m); PyDict_SetItemString(d,"FN1", PyInt_FromLong((long) FN1)); PyDict_SetItemString(d,"FN0", PyInt_FromLong((long) FN0)); PyDict_SetItemString(d,"T0", PyFloat_FromDouble((double) T0)); PyDict_SetItemString(d,"KMAU", PyFloat_FromDouble((double) KMAU)); PyDict_SetItemString(d,"MAU", PyFloat_FromDouble((double) MAU)); PyDict_SetItemString(d,"C", PyFloat_FromDouble((double) C)); PyDict_SetItemString(d,"GS", PyFloat_FromDouble((double) GS)); PyDict_SetItemString(d,"EARTHRAD", PyFloat_FromDouble((double) EARTHRAD)); PyDict_SetItemString(d,"F", PyFloat_FromDouble((double) F)); PyDict_SetItemString(d,"OMEGA", PyFloat_FromDouble((double) OMEGA)); PyDict_SetItemString(d,"TWOPI", PyFloat_FromDouble((double) TWOPI)); PyDict_SetItemString(d,"RAD2SEC", PyFloat_FromDouble((double) RAD2SEC)); PyDict_SetItemString(d,"DEG2RAD", PyFloat_FromDouble((double) DEG2RAD)); PyDict_SetItemString(d,"RAD2DEG", PyFloat_FromDouble((double) RAD2DEG)); /* * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ SWIG_RegisterMapping("_signed_long","_long",0); SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_unsigned_long","_long",0); SWIG_RegisterMapping("_signed_int","_int",0); SWIG_RegisterMapping("_unsigned_short","_short",0); SWIG_RegisterMapping("_signed_short","_short",0); SWIG_RegisterMapping("_unsigned_int","_int",0); SWIG_RegisterMapping("_short","_unsigned_short",0); SWIG_RegisterMapping("_short","_signed_short",0); SWIG_RegisterMapping("_int","_unsigned_int",0); SWIG_RegisterMapping("_int","_signed_int",0); }