1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.2
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 
12 #ifndef SWIGPYTHON
13 #define SWIGPYTHON
14 #endif
15 
16 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
17 
18 /* -----------------------------------------------------------------------------
19  *  This section contains generic SWIG labels for method/variable
20  *  declarations/attributes, and other compiler dependent labels.
21  * ----------------------------------------------------------------------------- */
22 
23 /* template workaround for compilers that cannot correctly implement the C++ standard */
24 #ifndef SWIGTEMPLATEDISAMBIGUATOR
25 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
26 #  define SWIGTEMPLATEDISAMBIGUATOR template
27 # elif defined(__HP_aCC)
28 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
29 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
30 #  define SWIGTEMPLATEDISAMBIGUATOR template
31 # else
32 #  define SWIGTEMPLATEDISAMBIGUATOR
33 # endif
34 #endif
35 
36 /* inline attribute */
37 #ifndef SWIGINLINE
38 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
39 #   define SWIGINLINE inline
40 # else
41 #   define SWIGINLINE
42 # endif
43 #endif
44 
45 /* attribute recognised by some compilers to avoid 'unused' warnings */
46 #ifndef SWIGUNUSED
47 # if defined(__GNUC__)
48 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
49 #     define SWIGUNUSED __attribute__ ((__unused__))
50 #   else
51 #     define SWIGUNUSED
52 #   endif
53 # elif defined(__ICC)
54 #   define SWIGUNUSED __attribute__ ((__unused__))
55 # else
56 #   define SWIGUNUSED
57 # endif
58 #endif
59 
60 #ifndef SWIG_MSC_UNSUPPRESS_4505
61 # if defined(_MSC_VER)
62 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
63 # endif
64 #endif
65 
66 #ifndef SWIGUNUSEDPARM
67 # ifdef __cplusplus
68 #   define SWIGUNUSEDPARM(p)
69 # else
70 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
71 # endif
72 #endif
73 
74 /* internal SWIG method */
75 #ifndef SWIGINTERN
76 # define SWIGINTERN static SWIGUNUSED
77 #endif
78 
79 /* internal inline SWIG method */
80 #ifndef SWIGINTERNINLINE
81 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
82 #endif
83 
84 /* exporting methods */
85 #if defined(__GNUC__)
86 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
87 #    ifndef GCC_HASCLASSVISIBILITY
88 #      define GCC_HASCLASSVISIBILITY
89 #    endif
90 #  endif
91 #endif
92 
93 #ifndef SWIGEXPORT
94 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
95 #   if defined(STATIC_LINKED)
96 #     define SWIGEXPORT
97 #   else
98 #     define SWIGEXPORT __declspec(dllexport)
99 #   endif
100 # else
101 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
102 #     define SWIGEXPORT __attribute__ ((visibility("default")))
103 #   else
104 #     define SWIGEXPORT
105 #   endif
106 # endif
107 #endif
108 
109 /* calling conventions for Windows */
110 #ifndef SWIGSTDCALL
111 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
112 #   define SWIGSTDCALL __stdcall
113 # else
114 #   define SWIGSTDCALL
115 # endif
116 #endif
117 
118 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
119 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
120 # define _CRT_SECURE_NO_DEPRECATE
121 #endif
122 
123 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
124 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
125 # define _SCL_SECURE_NO_DEPRECATE
126 #endif
127 
128 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
129 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
130 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
131 #endif
132 
133 /* Intel's compiler complains if a variable which was never initialised is
134  * cast to void, which is a common idiom which we use to indicate that we
135  * are aware a variable isn't used.  So we just silence that warning.
136  * See: https://github.com/swig/swig/issues/192 for more discussion.
137  */
138 #ifdef __INTEL_COMPILER
139 # pragma warning disable 592
140 #endif
141 
142 
143 #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
144 /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
145 # include <math.h>
146 #endif
147 
148 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
149 /* Use debug wrappers with the Python release dll */
150 # undef _DEBUG
151 # include <Python.h>
152 # define _DEBUG 1
153 #else
154 # include <Python.h>
155 #endif
156 
157 /* -----------------------------------------------------------------------------
158  * swigrun.swg
159  *
160  * This file contains generic C API SWIG runtime support for pointer
161  * type checking.
162  * ----------------------------------------------------------------------------- */
163 
164 /* This should only be incremented when either the layout of swig_type_info changes,
165    or for whatever reason, the runtime changes incompatibly */
166 #define SWIG_RUNTIME_VERSION "4"
167 
168 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
169 #ifdef SWIG_TYPE_TABLE
170 # define SWIG_QUOTE_STRING(x) #x
171 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
172 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
173 #else
174 # define SWIG_TYPE_TABLE_NAME
175 #endif
176 
177 /*
178   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
179   creating a static or dynamic library from the SWIG runtime code.
180   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
181 
182   But only do this if strictly necessary, ie, if you have problems
183   with your compiler or suchlike.
184 */
185 
186 #ifndef SWIGRUNTIME
187 # define SWIGRUNTIME SWIGINTERN
188 #endif
189 
190 #ifndef SWIGRUNTIMEINLINE
191 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
192 #endif
193 
194 /*  Generic buffer size */
195 #ifndef SWIG_BUFFER_SIZE
196 # define SWIG_BUFFER_SIZE 1024
197 #endif
198 
199 /* Flags for pointer conversions */
200 #define SWIG_POINTER_DISOWN        0x1
201 #define SWIG_CAST_NEW_MEMORY       0x2
202 #define SWIG_POINTER_NO_NULL       0x4
203 
204 /* Flags for new pointer objects */
205 #define SWIG_POINTER_OWN           0x1
206 
207 
208 /*
209    Flags/methods for returning states.
210 
211    The SWIG conversion methods, as ConvertPtr, return an integer
212    that tells if the conversion was successful or not. And if not,
213    an error code can be returned (see swigerrors.swg for the codes).
214 
215    Use the following macros/flags to set or process the returning
216    states.
217 
218    In old versions of SWIG, code such as the following was usually written:
219 
220      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
221        // success code
222      } else {
223        //fail code
224      }
225 
226    Now you can be more explicit:
227 
228     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
229     if (SWIG_IsOK(res)) {
230       // success code
231     } else {
232       // fail code
233     }
234 
235    which is the same really, but now you can also do
236 
237     Type *ptr;
238     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
239     if (SWIG_IsOK(res)) {
240       // success code
241       if (SWIG_IsNewObj(res) {
242         ...
243 	delete *ptr;
244       } else {
245         ...
246       }
247     } else {
248       // fail code
249     }
250 
251    I.e., now SWIG_ConvertPtr can return new objects and you can
252    identify the case and take care of the deallocation. Of course that
253    also requires SWIG_ConvertPtr to return new result values, such as
254 
255       int SWIG_ConvertPtr(obj, ptr,...) {
256         if (<obj is ok>) {
257           if (<need new object>) {
258             *ptr = <ptr to new allocated object>;
259             return SWIG_NEWOBJ;
260           } else {
261             *ptr = <ptr to old object>;
262             return SWIG_OLDOBJ;
263           }
264         } else {
265           return SWIG_BADOBJ;
266         }
267       }
268 
269    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
270    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
271    SWIG errors code.
272 
273    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
274    allows to return the 'cast rank', for example, if you have this
275 
276        int food(double)
277        int fooi(int);
278 
279    and you call
280 
281       food(1)   // cast rank '1'  (1 -> 1.0)
282       fooi(1)   // cast rank '0'
283 
284    just use the SWIG_AddCast()/SWIG_CheckState()
285 */
286 
287 #define SWIG_OK                    (0)
288 #define SWIG_ERROR                 (-1)
289 #define SWIG_IsOK(r)               (r >= 0)
290 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
291 
292 /* The CastRankLimit says how many bits are used for the cast rank */
293 #define SWIG_CASTRANKLIMIT         (1 << 8)
294 /* The NewMask denotes the object was created (using new/malloc) */
295 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
296 /* The TmpMask is for in/out typemaps that use temporal objects */
297 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
298 /* Simple returning values */
299 #define SWIG_BADOBJ                (SWIG_ERROR)
300 #define SWIG_OLDOBJ                (SWIG_OK)
301 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
302 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
303 /* Check, add and del mask methods */
304 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
305 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
306 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
307 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
308 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
309 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
310 
311 /* Cast-Rank Mode */
312 #if defined(SWIG_CASTRANK_MODE)
313 #  ifndef SWIG_TypeRank
314 #    define SWIG_TypeRank             unsigned long
315 #  endif
316 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
317 #    define SWIG_MAXCASTRANK          (2)
318 #  endif
319 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
320 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)321 SWIGINTERNINLINE int SWIG_AddCast(int r) {
322   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
323 }
SWIG_CheckState(int r)324 SWIGINTERNINLINE int SWIG_CheckState(int r) {
325   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
326 }
327 #else /* no cast-rank mode */
328 #  define SWIG_AddCast(r) (r)
329 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
330 #endif
331 
332 
333 #include <string.h>
334 
335 #ifdef __cplusplus
336 extern "C" {
337 #endif
338 
339 typedef void *(*swig_converter_func)(void *, int *);
340 typedef struct swig_type_info *(*swig_dycast_func)(void **);
341 
342 /* Structure to store information on one type */
343 typedef struct swig_type_info {
344   const char             *name;			/* mangled name of this type */
345   const char             *str;			/* human readable name of this type */
346   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
347   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
348   void                   *clientdata;		/* language specific type data */
349   int                    owndata;		/* flag if the structure owns the clientdata */
350 } swig_type_info;
351 
352 /* Structure to store a type and conversion function used for casting */
353 typedef struct swig_cast_info {
354   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
355   swig_converter_func     converter;		/* function to cast the void pointers */
356   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
357   struct swig_cast_info  *prev;			/* pointer to the previous cast */
358 } swig_cast_info;
359 
360 /* Structure used to store module information
361  * Each module generates one structure like this, and the runtime collects
362  * all of these structures and stores them in a circularly linked list.*/
363 typedef struct swig_module_info {
364   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
365   size_t                 size;		        /* Number of types in this module */
366   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
367   swig_type_info         **type_initial;	/* Array of initially generated type structures */
368   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
369   void                    *clientdata;		/* Language specific module data */
370 } swig_module_info;
371 
372 /*
373   Compare two type names skipping the space characters, therefore
374   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
375 
376   Return 0 when the two name types are equivalent, as in
377   strncmp, but skipping ' '.
378 */
379 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)380 SWIG_TypeNameComp(const char *f1, const char *l1,
381 		  const char *f2, const char *l2) {
382   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
383     while ((*f1 == ' ') && (f1 != l1)) ++f1;
384     while ((*f2 == ' ') && (f2 != l2)) ++f2;
385     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
386   }
387   return (int)((l1 - f1) - (l2 - f2));
388 }
389 
390 /*
391   Check type equivalence in a name list like <name1>|<name2>|...
392   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
393 */
394 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)395 SWIG_TypeCmp(const char *nb, const char *tb) {
396   int equiv = 1;
397   const char* te = tb + strlen(tb);
398   const char* ne = nb;
399   while (equiv != 0 && *ne) {
400     for (nb = ne; *ne; ++ne) {
401       if (*ne == '|') break;
402     }
403     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
404     if (*ne) ++ne;
405   }
406   return equiv;
407 }
408 
409 /*
410   Check type equivalence in a name list like <name1>|<name2>|...
411   Return 0 if not equal, 1 if equal
412 */
413 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)414 SWIG_TypeEquiv(const char *nb, const char *tb) {
415   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
416 }
417 
418 /*
419   Check the typename
420 */
421 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)422 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
423   if (ty) {
424     swig_cast_info *iter = ty->cast;
425     while (iter) {
426       if (strcmp(iter->type->name, c) == 0) {
427         if (iter == ty->cast)
428           return iter;
429         /* Move iter to the top of the linked list */
430         iter->prev->next = iter->next;
431         if (iter->next)
432           iter->next->prev = iter->prev;
433         iter->next = ty->cast;
434         iter->prev = 0;
435         if (ty->cast) ty->cast->prev = iter;
436         ty->cast = iter;
437         return iter;
438       }
439       iter = iter->next;
440     }
441   }
442   return 0;
443 }
444 
445 /*
446   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
447 */
448 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)449 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
450   if (ty) {
451     swig_cast_info *iter = ty->cast;
452     while (iter) {
453       if (iter->type == from) {
454         if (iter == ty->cast)
455           return iter;
456         /* Move iter to the top of the linked list */
457         iter->prev->next = iter->next;
458         if (iter->next)
459           iter->next->prev = iter->prev;
460         iter->next = ty->cast;
461         iter->prev = 0;
462         if (ty->cast) ty->cast->prev = iter;
463         ty->cast = iter;
464         return iter;
465       }
466       iter = iter->next;
467     }
468   }
469   return 0;
470 }
471 
472 /*
473   Cast a pointer up an inheritance hierarchy
474 */
475 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)476 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
477   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
478 }
479 
480 /*
481    Dynamic pointer casting. Down an inheritance hierarchy
482 */
483 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)484 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
485   swig_type_info *lastty = ty;
486   if (!ty || !ty->dcast) return ty;
487   while (ty && (ty->dcast)) {
488     ty = (*ty->dcast)(ptr);
489     if (ty) lastty = ty;
490   }
491   return lastty;
492 }
493 
494 /*
495   Return the name associated with this type
496 */
497 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)498 SWIG_TypeName(const swig_type_info *ty) {
499   return ty->name;
500 }
501 
502 /*
503   Return the pretty name associated with this type,
504   that is an unmangled type name in a form presentable to the user.
505 */
506 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)507 SWIG_TypePrettyName(const swig_type_info *type) {
508   /* The "str" field contains the equivalent pretty names of the
509      type, separated by vertical-bar characters.  We choose
510      to print the last name, as it is often (?) the most
511      specific. */
512   if (!type) return NULL;
513   if (type->str != NULL) {
514     const char *last_name = type->str;
515     const char *s;
516     for (s = type->str; *s; s++)
517       if (*s == '|') last_name = s+1;
518     return last_name;
519   }
520   else
521     return type->name;
522 }
523 
524 /*
525    Set the clientdata field for a type
526 */
527 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)528 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
529   swig_cast_info *cast = ti->cast;
530   /* if (ti->clientdata == clientdata) return; */
531   ti->clientdata = clientdata;
532 
533   while (cast) {
534     if (!cast->converter) {
535       swig_type_info *tc = cast->type;
536       if (!tc->clientdata) {
537 	SWIG_TypeClientData(tc, clientdata);
538       }
539     }
540     cast = cast->next;
541   }
542 }
543 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)544 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
545   SWIG_TypeClientData(ti, clientdata);
546   ti->owndata = 1;
547 }
548 
549 /*
550   Search for a swig_type_info structure only by mangled name
551   Search is a O(log #types)
552 
553   We start searching at module start, and finish searching when start == end.
554   Note: if start == end at the beginning of the function, we go all the way around
555   the circular list.
556 */
557 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)558 SWIG_MangledTypeQueryModule(swig_module_info *start,
559                             swig_module_info *end,
560 		            const char *name) {
561   swig_module_info *iter = start;
562   do {
563     if (iter->size) {
564       size_t l = 0;
565       size_t r = iter->size - 1;
566       do {
567 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
568 	size_t i = (l + r) >> 1;
569 	const char *iname = iter->types[i]->name;
570 	if (iname) {
571 	  int compare = strcmp(name, iname);
572 	  if (compare == 0) {
573 	    return iter->types[i];
574 	  } else if (compare < 0) {
575 	    if (i) {
576 	      r = i - 1;
577 	    } else {
578 	      break;
579 	    }
580 	  } else if (compare > 0) {
581 	    l = i + 1;
582 	  }
583 	} else {
584 	  break; /* should never happen */
585 	}
586       } while (l <= r);
587     }
588     iter = iter->next;
589   } while (iter != end);
590   return 0;
591 }
592 
593 /*
594   Search for a swig_type_info structure for either a mangled name or a human readable name.
595   It first searches the mangled names of the types, which is a O(log #types)
596   If a type is not found it then searches the human readable names, which is O(#types).
597 
598   We start searching at module start, and finish searching when start == end.
599   Note: if start == end at the beginning of the function, we go all the way around
600   the circular list.
601 */
602 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)603 SWIG_TypeQueryModule(swig_module_info *start,
604                      swig_module_info *end,
605 		     const char *name) {
606   /* STEP 1: Search the name field using binary search */
607   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
608   if (ret) {
609     return ret;
610   } else {
611     /* STEP 2: If the type hasn't been found, do a complete search
612        of the str field (the human readable name) */
613     swig_module_info *iter = start;
614     do {
615       size_t i = 0;
616       for (; i < iter->size; ++i) {
617 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
618 	  return iter->types[i];
619       }
620       iter = iter->next;
621     } while (iter != end);
622   }
623 
624   /* neither found a match */
625   return 0;
626 }
627 
628 /*
629    Pack binary data into a string
630 */
631 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)632 SWIG_PackData(char *c, void *ptr, size_t sz) {
633   static const char hex[17] = "0123456789abcdef";
634   const unsigned char *u = (unsigned char *) ptr;
635   const unsigned char *eu =  u + sz;
636   for (; u != eu; ++u) {
637     unsigned char uu = *u;
638     *(c++) = hex[(uu & 0xf0) >> 4];
639     *(c++) = hex[uu & 0xf];
640   }
641   return c;
642 }
643 
644 /*
645    Unpack binary data from a string
646 */
647 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)648 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
649   unsigned char *u = (unsigned char *) ptr;
650   const unsigned char *eu = u + sz;
651   for (; u != eu; ++u) {
652     char d = *(c++);
653     unsigned char uu;
654     if ((d >= '0') && (d <= '9'))
655       uu = (unsigned char)((d - '0') << 4);
656     else if ((d >= 'a') && (d <= 'f'))
657       uu = (unsigned char)((d - ('a'-10)) << 4);
658     else
659       return (char *) 0;
660     d = *(c++);
661     if ((d >= '0') && (d <= '9'))
662       uu |= (unsigned char)(d - '0');
663     else if ((d >= 'a') && (d <= 'f'))
664       uu |= (unsigned char)(d - ('a'-10));
665     else
666       return (char *) 0;
667     *u = uu;
668   }
669   return c;
670 }
671 
672 /*
673    Pack 'void *' into a string buffer.
674 */
675 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)676 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
677   char *r = buff;
678   if ((2*sizeof(void *) + 2) > bsz) return 0;
679   *(r++) = '_';
680   r = SWIG_PackData(r,&ptr,sizeof(void *));
681   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
682   strcpy(r,name);
683   return buff;
684 }
685 
686 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)687 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
688   if (*c != '_') {
689     if (strcmp(c,"NULL") == 0) {
690       *ptr = (void *) 0;
691       return name;
692     } else {
693       return 0;
694     }
695   }
696   return SWIG_UnpackData(++c,ptr,sizeof(void *));
697 }
698 
699 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)700 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
701   char *r = buff;
702   size_t lname = (name ? strlen(name) : 0);
703   if ((2*sz + 2 + lname) > bsz) return 0;
704   *(r++) = '_';
705   r = SWIG_PackData(r,ptr,sz);
706   if (lname) {
707     strncpy(r,name,lname+1);
708   } else {
709     *r = 0;
710   }
711   return buff;
712 }
713 
714 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)715 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
716   if (*c != '_') {
717     if (strcmp(c,"NULL") == 0) {
718       memset(ptr,0,sz);
719       return name;
720     } else {
721       return 0;
722     }
723   }
724   return SWIG_UnpackData(++c,ptr,sz);
725 }
726 
727 #ifdef __cplusplus
728 }
729 #endif
730 
731 /*  Errors in SWIG */
732 #define  SWIG_UnknownError    	   -1
733 #define  SWIG_IOError        	   -2
734 #define  SWIG_RuntimeError   	   -3
735 #define  SWIG_IndexError     	   -4
736 #define  SWIG_TypeError      	   -5
737 #define  SWIG_DivisionByZero 	   -6
738 #define  SWIG_OverflowError  	   -7
739 #define  SWIG_SyntaxError    	   -8
740 #define  SWIG_ValueError     	   -9
741 #define  SWIG_SystemError    	   -10
742 #define  SWIG_AttributeError 	   -11
743 #define  SWIG_MemoryError    	   -12
744 #define  SWIG_NullReferenceError   -13
745 
746 
747 
748 /* Compatibility macros for Python 3 */
749 #if PY_VERSION_HEX >= 0x03000000
750 
751 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
752 #define PyInt_Check(x) PyLong_Check(x)
753 #define PyInt_AsLong(x) PyLong_AsLong(x)
754 #define PyInt_FromLong(x) PyLong_FromLong(x)
755 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
756 #define PyString_Check(name) PyBytes_Check(name)
757 #define PyString_FromString(x) PyUnicode_FromString(x)
758 #define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
759 #define PyString_AsString(str) PyBytes_AsString(str)
760 #define PyString_Size(str) PyBytes_Size(str)
761 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
762 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
763 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
764 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
765 
766 #endif
767 
768 #ifndef Py_TYPE
769 #  define Py_TYPE(op) ((op)->ob_type)
770 #endif
771 
772 /* SWIG APIs for compatibility of both Python 2 & 3 */
773 
774 #if PY_VERSION_HEX >= 0x03000000
775 #  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
776 #else
777 #  define SWIG_Python_str_FromFormat PyString_FromFormat
778 #endif
779 
780 
781 /* Warning: This function will allocate a new string in Python 3,
782  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
783  */
784 SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject * str)785 SWIG_Python_str_AsChar(PyObject *str)
786 {
787 #if PY_VERSION_HEX >= 0x03030000
788   return (char *)PyUnicode_AsUTF8(str);
789 #elif PY_VERSION_HEX >= 0x03000000
790   char *newstr = 0;
791   str = PyUnicode_AsUTF8String(str);
792   if (str) {
793     char *cstr;
794     Py_ssize_t len;
795     if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
796       newstr = (char *) malloc(len+1);
797       if (newstr)
798         memcpy(newstr, cstr, len+1);
799     }
800     Py_XDECREF(str);
801   }
802   return newstr;
803 #else
804   return PyString_AsString(str);
805 #endif
806 }
807 
808 #if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
809 #  define SWIG_Python_str_DelForPy3(x)
810 #else
811 #  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
812 #endif
813 
814 
815 SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char * c)816 SWIG_Python_str_FromChar(const char *c)
817 {
818 #if PY_VERSION_HEX >= 0x03000000
819   return PyUnicode_FromString(c);
820 #else
821   return PyString_FromString(c);
822 #endif
823 }
824 
825 #ifndef PyObject_DEL
826 # define PyObject_DEL PyObject_Del
827 #endif
828 
829 // SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
830 // interface files check for it.
831 # define SWIGPY_USE_CAPSULE
832 # define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
833 
834 #if PY_VERSION_HEX < 0x03020000
835 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
836 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
837 #define Py_hash_t long
838 #endif
839 
840 /* -----------------------------------------------------------------------------
841  * error manipulation
842  * ----------------------------------------------------------------------------- */
843 
844 SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code)845 SWIG_Python_ErrorType(int code) {
846   PyObject* type = 0;
847   switch(code) {
848   case SWIG_MemoryError:
849     type = PyExc_MemoryError;
850     break;
851   case SWIG_IOError:
852     type = PyExc_IOError;
853     break;
854   case SWIG_RuntimeError:
855     type = PyExc_RuntimeError;
856     break;
857   case SWIG_IndexError:
858     type = PyExc_IndexError;
859     break;
860   case SWIG_TypeError:
861     type = PyExc_TypeError;
862     break;
863   case SWIG_DivisionByZero:
864     type = PyExc_ZeroDivisionError;
865     break;
866   case SWIG_OverflowError:
867     type = PyExc_OverflowError;
868     break;
869   case SWIG_SyntaxError:
870     type = PyExc_SyntaxError;
871     break;
872   case SWIG_ValueError:
873     type = PyExc_ValueError;
874     break;
875   case SWIG_SystemError:
876     type = PyExc_SystemError;
877     break;
878   case SWIG_AttributeError:
879     type = PyExc_AttributeError;
880     break;
881   default:
882     type = PyExc_RuntimeError;
883   }
884   return type;
885 }
886 
887 
888 SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char * mesg)889 SWIG_Python_AddErrorMsg(const char* mesg)
890 {
891   PyObject *type = 0;
892   PyObject *value = 0;
893   PyObject *traceback = 0;
894 
895   if (PyErr_Occurred())
896     PyErr_Fetch(&type, &value, &traceback);
897   if (value) {
898     PyObject *old_str = PyObject_Str(value);
899     const char *tmp = SWIG_Python_str_AsChar(old_str);
900     PyErr_Clear();
901     Py_XINCREF(type);
902     if (tmp)
903       PyErr_Format(type, "%s %s", tmp, mesg);
904     else
905       PyErr_Format(type, "%s", mesg);
906     SWIG_Python_str_DelForPy3(tmp);
907     Py_DECREF(old_str);
908     Py_DECREF(value);
909   } else {
910     PyErr_SetString(PyExc_RuntimeError, mesg);
911   }
912 }
913 
914 SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred(PyObject * obj)915 SWIG_Python_TypeErrorOccurred(PyObject *obj)
916 {
917   PyObject *error;
918   if (obj)
919     return 0;
920   error = PyErr_Occurred();
921   return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
922 }
923 
924 SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError(const char * message)925 SWIG_Python_RaiseOrModifyTypeError(const char *message)
926 {
927   if (SWIG_Python_TypeErrorOccurred(NULL)) {
928     /* Use existing TypeError to preserve stacktrace and enhance with given message */
929     PyObject *newvalue;
930     PyObject *type = NULL, *value = NULL, *traceback = NULL;
931     PyErr_Fetch(&type, &value, &traceback);
932 #if PY_VERSION_HEX >= 0x03000000
933     newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
934 #else
935     newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
936 #endif
937     Py_XDECREF(value);
938     PyErr_Restore(type, newvalue, traceback);
939   } else {
940     /* Raise TypeError using given message */
941     PyErr_SetString(PyExc_TypeError, message);
942   }
943 }
944 
945 #if defined(SWIG_PYTHON_NO_THREADS)
946 #  if defined(SWIG_PYTHON_THREADS)
947 #    undef SWIG_PYTHON_THREADS
948 #  endif
949 #endif
950 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
951 #  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
952 #    define SWIG_PYTHON_USE_GIL
953 #  endif
954 #  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
955 #    ifndef SWIG_PYTHON_INITIALIZE_THREADS
956 #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
957 #    endif
958 #    ifdef __cplusplus /* C++ code */
959        class SWIG_Python_Thread_Block {
960          bool status;
961          PyGILState_STATE state;
962        public:
end()963          void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block()964          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block()965          ~SWIG_Python_Thread_Block() { end(); }
966        };
967        class SWIG_Python_Thread_Allow {
968          bool status;
969          PyThreadState *save;
970        public:
end()971          void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow()972          SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow()973          ~SWIG_Python_Thread_Allow() { end(); }
974        };
975 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
976 #      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
977 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
978 #      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
979 #    else /* C code */
980 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
981 #      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
982 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
983 #      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
984 #    endif
985 #  else /* Old thread way, not implemented, user must provide it */
986 #    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
987 #      define SWIG_PYTHON_INITIALIZE_THREADS
988 #    endif
989 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
990 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
991 #    endif
992 #    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
993 #      define SWIG_PYTHON_THREAD_END_BLOCK
994 #    endif
995 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
996 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
997 #    endif
998 #    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
999 #      define SWIG_PYTHON_THREAD_END_ALLOW
1000 #    endif
1001 #  endif
1002 #else /* No thread support */
1003 #  define SWIG_PYTHON_INITIALIZE_THREADS
1004 #  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1005 #  define SWIG_PYTHON_THREAD_END_BLOCK
1006 #  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1007 #  define SWIG_PYTHON_THREAD_END_ALLOW
1008 #endif
1009 
1010 /* -----------------------------------------------------------------------------
1011  * Python API portion that goes into the runtime
1012  * ----------------------------------------------------------------------------- */
1013 
1014 #ifdef __cplusplus
1015 extern "C" {
1016 #endif
1017 
1018 /* -----------------------------------------------------------------------------
1019  * Constant declarations
1020  * ----------------------------------------------------------------------------- */
1021 
1022 /* Constant Types */
1023 #define SWIG_PY_POINTER 4
1024 #define SWIG_PY_BINARY  5
1025 
1026 /* Constant information structure */
1027 typedef struct swig_const_info {
1028   int type;
1029   const char *name;
1030   long lvalue;
1031   double dvalue;
1032   void   *pvalue;
1033   swig_type_info **ptype;
1034 } swig_const_info;
1035 
1036 #ifdef __cplusplus
1037 }
1038 #endif
1039 
1040 
1041 /* -----------------------------------------------------------------------------
1042  * pyrun.swg
1043  *
1044  * This file contains the runtime support for Python modules
1045  * and includes code for managing global variables and pointer
1046  * type checking.
1047  *
1048  * ----------------------------------------------------------------------------- */
1049 
1050 #if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
1051 # error "This version of SWIG only supports Python >= 2.7"
1052 #endif
1053 
1054 #if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
1055 # error "This version of SWIG only supports Python 3 >= 3.2"
1056 #endif
1057 
1058 /* Common SWIG API */
1059 
1060 /* for raw pointers */
1061 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1062 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1063 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1064 
1065 #ifdef SWIGPYTHON_BUILTIN
1066 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
1067 #else
1068 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1069 #endif
1070 
1071 #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1072 
1073 #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty)
1074 #define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
1075 #define swig_owntype                                    int
1076 
1077 /* for raw packed data */
1078 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1079 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1080 
1081 /* for class or struct pointers */
1082 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1083 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1084 
1085 /* for C or C++ function pointers */
1086 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1087 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1088 
1089 /* for C++ member pointers, ie, member methods */
1090 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1091 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1092 
1093 
1094 /* Runtime API */
1095 
1096 #define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
1097 #define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
1098 #define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
1099 
1100 #define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj
1101 #define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg
1102 #define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)
1103 #define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1104 #define SWIG_fail                        		goto fail
1105 
1106 
1107 /* Runtime API implementation */
1108 
1109 /* Error manipulation */
1110 
1111 SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject * errtype,PyObject * obj)1112 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1113   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1114   PyErr_SetObject(errtype, obj);
1115   Py_DECREF(obj);
1116   SWIG_PYTHON_THREAD_END_BLOCK;
1117 }
1118 
1119 SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject * errtype,const char * msg)1120 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1121   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1122   PyErr_SetString(errtype, msg);
1123   SWIG_PYTHON_THREAD_END_BLOCK;
1124 }
1125 
1126 #define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1127 
1128 /* Set a constant value */
1129 
1130 #if defined(SWIGPYTHON_BUILTIN)
1131 
1132 SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject * seq,const char * key)1133 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1134   PyObject *s = PyString_InternFromString(key);
1135   PyList_Append(seq, s);
1136   Py_DECREF(s);
1137 }
1138 
1139 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,PyObject * public_interface,const char * name,PyObject * obj)1140 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1141   PyDict_SetItemString(d, name, obj);
1142   Py_DECREF(obj);
1143   if (public_interface)
1144     SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1145 }
1146 
1147 #else
1148 
1149 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,const char * name,PyObject * obj)1150 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1151   PyDict_SetItemString(d, name, obj);
1152   Py_DECREF(obj);
1153 }
1154 
1155 #endif
1156 
1157 /* Append a value to the result obj */
1158 
1159 SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject * result,PyObject * obj)1160 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1161   if (!result) {
1162     result = obj;
1163   } else if (result == Py_None) {
1164     Py_DECREF(result);
1165     result = obj;
1166   } else {
1167     if (!PyList_Check(result)) {
1168       PyObject *o2 = result;
1169       result = PyList_New(1);
1170       PyList_SetItem(result, 0, o2);
1171     }
1172     PyList_Append(result,obj);
1173     Py_DECREF(obj);
1174   }
1175   return result;
1176 }
1177 
1178 /* Unpack the argument tuple */
1179 
1180 SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject * args,const char * name,Py_ssize_t min,Py_ssize_t max,PyObject ** objs)1181 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1182 {
1183   if (!args) {
1184     if (!min && !max) {
1185       return 1;
1186     } else {
1187       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1188 		   name, (min == max ? "" : "at least "), (int)min);
1189       return 0;
1190     }
1191   }
1192   if (!PyTuple_Check(args)) {
1193     if (min <= 1 && max >= 1) {
1194       Py_ssize_t i;
1195       objs[0] = args;
1196       for (i = 1; i < max; ++i) {
1197 	objs[i] = 0;
1198       }
1199       return 2;
1200     }
1201     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1202     return 0;
1203   } else {
1204     Py_ssize_t l = PyTuple_GET_SIZE(args);
1205     if (l < min) {
1206       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1207 		   name, (min == max ? "" : "at least "), (int)min, (int)l);
1208       return 0;
1209     } else if (l > max) {
1210       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1211 		   name, (min == max ? "" : "at most "), (int)max, (int)l);
1212       return 0;
1213     } else {
1214       Py_ssize_t i;
1215       for (i = 0; i < l; ++i) {
1216 	objs[i] = PyTuple_GET_ITEM(args, i);
1217       }
1218       for (; l < max; ++l) {
1219 	objs[l] = 0;
1220       }
1221       return i + 1;
1222     }
1223   }
1224 }
1225 
1226 SWIGINTERN int
SWIG_Python_CheckNoKeywords(PyObject * kwargs,const char * name)1227 SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
1228   int no_kwargs = 1;
1229   if (kwargs) {
1230     assert(PyDict_Check(kwargs));
1231     if (PyDict_Size(kwargs) > 0) {
1232       PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
1233       no_kwargs = 0;
1234     }
1235   }
1236   return no_kwargs;
1237 }
1238 
1239 /* A functor is a function object with one single object argument */
1240 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
1241 
1242 /*
1243   Helper for static pointer initialization for both C and C++ code, for example
1244   static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1245 */
1246 #ifdef __cplusplus
1247 #define SWIG_STATIC_POINTER(var)  var
1248 #else
1249 #define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
1250 #endif
1251 
1252 /* -----------------------------------------------------------------------------
1253  * Pointer declarations
1254  * ----------------------------------------------------------------------------- */
1255 
1256 /* Flags for new pointer objects */
1257 #define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
1258 #define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1259 
1260 #define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
1261 
1262 #define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
1263 #define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1264 
1265 #ifdef __cplusplus
1266 extern "C" {
1267 #endif
1268 
1269 /* The python void return value */
1270 
1271 SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)1272 SWIG_Py_Void(void)
1273 {
1274   PyObject *none = Py_None;
1275   Py_INCREF(none);
1276   return none;
1277 }
1278 
1279 /* SwigPyClientData */
1280 
1281 typedef struct {
1282   PyObject *klass;
1283   PyObject *newraw;
1284   PyObject *newargs;
1285   PyObject *destroy;
1286   int delargs;
1287   int implicitconv;
1288   PyTypeObject *pytype;
1289 } SwigPyClientData;
1290 
1291 SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info * ty)1292 SWIG_Python_CheckImplicit(swig_type_info *ty)
1293 {
1294   SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1295   int fail = data ? data->implicitconv : 0;
1296   if (fail)
1297     PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
1298   return fail;
1299 }
1300 
1301 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info * desc)1302 SWIG_Python_ExceptionType(swig_type_info *desc) {
1303   SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1304   PyObject *klass = data ? data->klass : 0;
1305   return (klass ? klass : PyExc_RuntimeError);
1306 }
1307 
1308 
1309 SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject * obj)1310 SwigPyClientData_New(PyObject* obj)
1311 {
1312   if (!obj) {
1313     return 0;
1314   } else {
1315     SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1316     /* the klass element */
1317     data->klass = obj;
1318     Py_INCREF(data->klass);
1319     /* the newraw method and newargs arguments used to create a new raw instance */
1320     if (PyClass_Check(obj)) {
1321       data->newraw = 0;
1322       data->newargs = obj;
1323       Py_INCREF(obj);
1324     } else {
1325       data->newraw = PyObject_GetAttrString(data->klass, "__new__");
1326       if (data->newraw) {
1327 	Py_INCREF(data->newraw);
1328 	data->newargs = PyTuple_New(1);
1329 	PyTuple_SetItem(data->newargs, 0, obj);
1330       } else {
1331 	data->newargs = obj;
1332       }
1333       Py_INCREF(data->newargs);
1334     }
1335     /* the destroy method, aka as the C++ delete method */
1336     data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
1337     if (PyErr_Occurred()) {
1338       PyErr_Clear();
1339       data->destroy = 0;
1340     }
1341     if (data->destroy) {
1342       int flags;
1343       Py_INCREF(data->destroy);
1344       flags = PyCFunction_GET_FLAGS(data->destroy);
1345       data->delargs = !(flags & (METH_O));
1346     } else {
1347       data->delargs = 0;
1348     }
1349     data->implicitconv = 0;
1350     data->pytype = 0;
1351     return data;
1352   }
1353 }
1354 
1355 SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData * data)1356 SwigPyClientData_Del(SwigPyClientData *data) {
1357   Py_XDECREF(data->newraw);
1358   Py_XDECREF(data->newargs);
1359   Py_XDECREF(data->destroy);
1360 }
1361 
1362 /* =============== SwigPyObject =====================*/
1363 
1364 typedef struct {
1365   PyObject_HEAD
1366   void *ptr;
1367   swig_type_info *ty;
1368   int own;
1369   PyObject *next;
1370 #ifdef SWIGPYTHON_BUILTIN
1371   PyObject *dict;
1372 #endif
1373 } SwigPyObject;
1374 
1375 
1376 #ifdef SWIGPYTHON_BUILTIN
1377 
1378 SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1379 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1380 {
1381   SwigPyObject *sobj = (SwigPyObject *)v;
1382 
1383   if (!sobj->dict)
1384     sobj->dict = PyDict_New();
1385 
1386   Py_INCREF(sobj->dict);
1387   return sobj->dict;
1388 }
1389 
1390 #endif
1391 
1392 SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject * v)1393 SwigPyObject_long(SwigPyObject *v)
1394 {
1395   return PyLong_FromVoidPtr(v->ptr);
1396 }
1397 
1398 SWIGRUNTIME PyObject *
SwigPyObject_format(const char * fmt,SwigPyObject * v)1399 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1400 {
1401   PyObject *res = NULL;
1402   PyObject *args = PyTuple_New(1);
1403   if (args) {
1404     if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1405       PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1406       if (ofmt) {
1407 #if PY_VERSION_HEX >= 0x03000000
1408 	res = PyUnicode_Format(ofmt,args);
1409 #else
1410 	res = PyString_Format(ofmt,args);
1411 #endif
1412 	Py_DECREF(ofmt);
1413       }
1414       Py_DECREF(args);
1415     }
1416   }
1417   return res;
1418 }
1419 
1420 SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject * v)1421 SwigPyObject_oct(SwigPyObject *v)
1422 {
1423   return SwigPyObject_format("%o",v);
1424 }
1425 
1426 SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject * v)1427 SwigPyObject_hex(SwigPyObject *v)
1428 {
1429   return SwigPyObject_format("%x",v);
1430 }
1431 
1432 SWIGRUNTIME PyObject *
SwigPyObject_repr(SwigPyObject * v)1433 SwigPyObject_repr(SwigPyObject *v)
1434 {
1435   const char *name = SWIG_TypePrettyName(v->ty);
1436   PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1437   if (v->next) {
1438     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1439 # if PY_VERSION_HEX >= 0x03000000
1440     PyObject *joined = PyUnicode_Concat(repr, nrep);
1441     Py_DecRef(repr);
1442     Py_DecRef(nrep);
1443     repr = joined;
1444 # else
1445     PyString_ConcatAndDel(&repr,nrep);
1446 # endif
1447   }
1448   return repr;
1449 }
1450 
1451 /* We need a version taking two PyObject* parameters so it's a valid
1452  * PyCFunction to use in swigobject_methods[]. */
1453 SWIGRUNTIME PyObject *
SwigPyObject_repr2(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1454 SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1455 {
1456   return SwigPyObject_repr((SwigPyObject*)v);
1457 }
1458 
1459 SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject * v,SwigPyObject * w)1460 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1461 {
1462   void *i = v->ptr;
1463   void *j = w->ptr;
1464   return (i < j) ? -1 : ((i > j) ? 1 : 0);
1465 }
1466 
1467 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1468 SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject * v,SwigPyObject * w,int op)1469 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1470 {
1471   PyObject* res;
1472   if( op != Py_EQ && op != Py_NE ) {
1473     Py_INCREF(Py_NotImplemented);
1474     return Py_NotImplemented;
1475   }
1476   res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1477   return res;
1478 }
1479 
1480 
1481 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1482 
1483 #ifdef SWIGPYTHON_BUILTIN
1484 static swig_type_info *SwigPyObject_stype = 0;
1485 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1486 SwigPyObject_type(void) {
1487     SwigPyClientData *cd;
1488     assert(SwigPyObject_stype);
1489     cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1490     assert(cd);
1491     assert(cd->pytype);
1492     return cd->pytype;
1493 }
1494 #else
1495 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1496 SwigPyObject_type(void) {
1497   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1498   return type;
1499 }
1500 #endif
1501 
1502 SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject * op)1503 SwigPyObject_Check(PyObject *op) {
1504 #ifdef SWIGPYTHON_BUILTIN
1505   PyTypeObject *target_tp = SwigPyObject_type();
1506   if (PyType_IsSubtype(op->ob_type, target_tp))
1507     return 1;
1508   return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1509 #else
1510   return (Py_TYPE(op) == SwigPyObject_type())
1511     || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1512 #endif
1513 }
1514 
1515 SWIGRUNTIME PyObject *
1516 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1517 
1518 SWIGRUNTIME void
SwigPyObject_dealloc(PyObject * v)1519 SwigPyObject_dealloc(PyObject *v)
1520 {
1521   SwigPyObject *sobj = (SwigPyObject *) v;
1522   PyObject *next = sobj->next;
1523   if (sobj->own == SWIG_POINTER_OWN) {
1524     swig_type_info *ty = sobj->ty;
1525     SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1526     PyObject *destroy = data ? data->destroy : 0;
1527     if (destroy) {
1528       /* destroy is always a VARARGS method */
1529       PyObject *res;
1530 
1531       /* PyObject_CallFunction() has the potential to silently drop
1532          the active exception.  In cases of unnamed temporary
1533          variable or where we just finished iterating over a generator
1534          StopIteration will be active right now, and this needs to
1535          remain true upon return from SwigPyObject_dealloc.  So save
1536          and restore. */
1537 
1538       PyObject *type = NULL, *value = NULL, *traceback = NULL;
1539       PyErr_Fetch(&type, &value, &traceback);
1540 
1541       if (data->delargs) {
1542         /* we need to create a temporary object to carry the destroy operation */
1543         PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1544         res = SWIG_Python_CallFunctor(destroy, tmp);
1545         Py_DECREF(tmp);
1546       } else {
1547         PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1548         PyObject *mself = PyCFunction_GET_SELF(destroy);
1549         res = ((*meth)(mself, v));
1550       }
1551       if (!res)
1552         PyErr_WriteUnraisable(destroy);
1553 
1554       PyErr_Restore(type, value, traceback);
1555 
1556       Py_XDECREF(res);
1557     }
1558 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1559     else {
1560       const char *name = SWIG_TypePrettyName(ty);
1561       printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1562     }
1563 #endif
1564   }
1565   Py_XDECREF(next);
1566   PyObject_DEL(v);
1567 }
1568 
1569 SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject * v,PyObject * next)1570 SwigPyObject_append(PyObject* v, PyObject* next)
1571 {
1572   SwigPyObject *sobj = (SwigPyObject *) v;
1573   if (!SwigPyObject_Check(next)) {
1574     PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1575     return NULL;
1576   }
1577   sobj->next = next;
1578   Py_INCREF(next);
1579   return SWIG_Py_Void();
1580 }
1581 
1582 SWIGRUNTIME PyObject*
SwigPyObject_next(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1583 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1584 {
1585   SwigPyObject *sobj = (SwigPyObject *) v;
1586   if (sobj->next) {
1587     Py_INCREF(sobj->next);
1588     return sobj->next;
1589   } else {
1590     return SWIG_Py_Void();
1591   }
1592 }
1593 
1594 SWIGINTERN PyObject*
SwigPyObject_disown(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1595 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1596 {
1597   SwigPyObject *sobj = (SwigPyObject *)v;
1598   sobj->own = 0;
1599   return SWIG_Py_Void();
1600 }
1601 
1602 SWIGINTERN PyObject*
SwigPyObject_acquire(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1603 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1604 {
1605   SwigPyObject *sobj = (SwigPyObject *)v;
1606   sobj->own = SWIG_POINTER_OWN;
1607   return SWIG_Py_Void();
1608 }
1609 
1610 SWIGINTERN PyObject*
SwigPyObject_own(PyObject * v,PyObject * args)1611 SwigPyObject_own(PyObject *v, PyObject *args)
1612 {
1613   PyObject *val = 0;
1614   if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
1615     return NULL;
1616   } else {
1617     SwigPyObject *sobj = (SwigPyObject *)v;
1618     PyObject *obj = PyBool_FromLong(sobj->own);
1619     if (val) {
1620       if (PyObject_IsTrue(val)) {
1621         SwigPyObject_acquire(v,args);
1622       } else {
1623         SwigPyObject_disown(v,args);
1624       }
1625     }
1626     return obj;
1627   }
1628 }
1629 
1630 static PyMethodDef
1631 swigobject_methods[] = {
1632   {"disown",  SwigPyObject_disown,  METH_NOARGS,  "releases ownership of the pointer"},
1633   {"acquire", SwigPyObject_acquire, METH_NOARGS,  "acquires ownership of the pointer"},
1634   {"own",     SwigPyObject_own,     METH_VARARGS, "returns/sets ownership of the pointer"},
1635   {"append",  SwigPyObject_append,  METH_O,       "appends another 'this' object"},
1636   {"next",    SwigPyObject_next,    METH_NOARGS,  "returns the next 'this' object"},
1637   {"__repr__",SwigPyObject_repr2,   METH_NOARGS,  "returns object representation"},
1638   {0, 0, 0, 0}
1639 };
1640 
1641 SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void)1642 SwigPyObject_TypeOnce(void) {
1643   static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1644 
1645   static PyNumberMethods SwigPyObject_as_number = {
1646     (binaryfunc)0, /*nb_add*/
1647     (binaryfunc)0, /*nb_subtract*/
1648     (binaryfunc)0, /*nb_multiply*/
1649     /* nb_divide removed in Python 3 */
1650 #if PY_VERSION_HEX < 0x03000000
1651     (binaryfunc)0, /*nb_divide*/
1652 #endif
1653     (binaryfunc)0, /*nb_remainder*/
1654     (binaryfunc)0, /*nb_divmod*/
1655     (ternaryfunc)0,/*nb_power*/
1656     (unaryfunc)0,  /*nb_negative*/
1657     (unaryfunc)0,  /*nb_positive*/
1658     (unaryfunc)0,  /*nb_absolute*/
1659     (inquiry)0,    /*nb_nonzero*/
1660     0,		   /*nb_invert*/
1661     0,		   /*nb_lshift*/
1662     0,		   /*nb_rshift*/
1663     0,		   /*nb_and*/
1664     0,		   /*nb_xor*/
1665     0,		   /*nb_or*/
1666 #if PY_VERSION_HEX < 0x03000000
1667     0,   /*nb_coerce*/
1668 #endif
1669     (unaryfunc)SwigPyObject_long, /*nb_int*/
1670 #if PY_VERSION_HEX < 0x03000000
1671     (unaryfunc)SwigPyObject_long, /*nb_long*/
1672 #else
1673     0, /*nb_reserved*/
1674 #endif
1675     (unaryfunc)0,                 /*nb_float*/
1676 #if PY_VERSION_HEX < 0x03000000
1677     (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
1678     (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
1679 #endif
1680 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1681     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1682 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1683     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1684 #else
1685     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1686 #endif
1687   };
1688 
1689   static PyTypeObject swigpyobject_type;
1690   static int type_init = 0;
1691   if (!type_init) {
1692     const PyTypeObject tmp = {
1693 #if PY_VERSION_HEX >= 0x03000000
1694       PyVarObject_HEAD_INIT(NULL, 0)
1695 #else
1696       PyObject_HEAD_INIT(NULL)
1697       0,                                    /* ob_size */
1698 #endif
1699       "SwigPyObject",                       /* tp_name */
1700       sizeof(SwigPyObject),                 /* tp_basicsize */
1701       0,                                    /* tp_itemsize */
1702       (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
1703       0,                                    /* tp_print */
1704       (getattrfunc)0,                       /* tp_getattr */
1705       (setattrfunc)0,                       /* tp_setattr */
1706 #if PY_VERSION_HEX >= 0x03000000
1707       0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1708 #else
1709       (cmpfunc)SwigPyObject_compare,        /* tp_compare */
1710 #endif
1711       (reprfunc)SwigPyObject_repr,          /* tp_repr */
1712       &SwigPyObject_as_number,              /* tp_as_number */
1713       0,                                    /* tp_as_sequence */
1714       0,                                    /* tp_as_mapping */
1715       (hashfunc)0,                          /* tp_hash */
1716       (ternaryfunc)0,                       /* tp_call */
1717       0,                                    /* tp_str */
1718       PyObject_GenericGetAttr,              /* tp_getattro */
1719       0,                                    /* tp_setattro */
1720       0,                                    /* tp_as_buffer */
1721       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1722       swigobject_doc,                       /* tp_doc */
1723       0,                                    /* tp_traverse */
1724       0,                                    /* tp_clear */
1725       (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1726       0,                                    /* tp_weaklistoffset */
1727       0,                                    /* tp_iter */
1728       0,                                    /* tp_iternext */
1729       swigobject_methods,                   /* tp_methods */
1730       0,                                    /* tp_members */
1731       0,                                    /* tp_getset */
1732       0,                                    /* tp_base */
1733       0,                                    /* tp_dict */
1734       0,                                    /* tp_descr_get */
1735       0,                                    /* tp_descr_set */
1736       0,                                    /* tp_dictoffset */
1737       0,                                    /* tp_init */
1738       0,                                    /* tp_alloc */
1739       0,                                    /* tp_new */
1740       0,                                    /* tp_free */
1741       0,                                    /* tp_is_gc */
1742       0,                                    /* tp_bases */
1743       0,                                    /* tp_mro */
1744       0,                                    /* tp_cache */
1745       0,                                    /* tp_subclasses */
1746       0,                                    /* tp_weaklist */
1747       0,                                    /* tp_del */
1748       0,                                    /* tp_version_tag */
1749 #if PY_VERSION_HEX >= 0x03040000
1750       0,                                    /* tp_finalize */
1751 #endif
1752 #if PY_VERSION_HEX >= 0x03080000
1753       0,                                    /* tp_vectorcall */
1754 #endif
1755 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1756       0,                                    /* tp_print */
1757 #endif
1758 #ifdef COUNT_ALLOCS
1759       0,                                    /* tp_allocs */
1760       0,                                    /* tp_frees */
1761       0,                                    /* tp_maxalloc */
1762       0,                                    /* tp_prev */
1763       0                                     /* tp_next */
1764 #endif
1765     };
1766     swigpyobject_type = tmp;
1767     type_init = 1;
1768     if (PyType_Ready(&swigpyobject_type) < 0)
1769       return NULL;
1770   }
1771   return &swigpyobject_type;
1772 }
1773 
1774 SWIGRUNTIME PyObject *
SwigPyObject_New(void * ptr,swig_type_info * ty,int own)1775 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1776 {
1777   SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1778   if (sobj) {
1779     sobj->ptr  = ptr;
1780     sobj->ty   = ty;
1781     sobj->own  = own;
1782     sobj->next = 0;
1783   }
1784   return (PyObject *)sobj;
1785 }
1786 
1787 /* -----------------------------------------------------------------------------
1788  * Implements a simple Swig Packed type, and use it instead of string
1789  * ----------------------------------------------------------------------------- */
1790 
1791 typedef struct {
1792   PyObject_HEAD
1793   void *pack;
1794   swig_type_info *ty;
1795   size_t size;
1796 } SwigPyPacked;
1797 
1798 SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked * v)1799 SwigPyPacked_repr(SwigPyPacked *v)
1800 {
1801   char result[SWIG_BUFFER_SIZE];
1802   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1803     return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1804   } else {
1805     return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
1806   }
1807 }
1808 
1809 SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked * v)1810 SwigPyPacked_str(SwigPyPacked *v)
1811 {
1812   char result[SWIG_BUFFER_SIZE];
1813   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1814     return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
1815   } else {
1816     return SWIG_Python_str_FromChar(v->ty->name);
1817   }
1818 }
1819 
1820 SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked * v,SwigPyPacked * w)1821 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
1822 {
1823   size_t i = v->size;
1824   size_t j = w->size;
1825   int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1826   return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
1827 }
1828 
1829 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1830 
1831 SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void)1832 SwigPyPacked_type(void) {
1833   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
1834   return type;
1835 }
1836 
1837 SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject * op)1838 SwigPyPacked_Check(PyObject *op) {
1839   return ((op)->ob_type == SwigPyPacked_TypeOnce())
1840     || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
1841 }
1842 
1843 SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject * v)1844 SwigPyPacked_dealloc(PyObject *v)
1845 {
1846   if (SwigPyPacked_Check(v)) {
1847     SwigPyPacked *sobj = (SwigPyPacked *) v;
1848     free(sobj->pack);
1849   }
1850   PyObject_DEL(v);
1851 }
1852 
1853 SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void)1854 SwigPyPacked_TypeOnce(void) {
1855   static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1856   static PyTypeObject swigpypacked_type;
1857   static int type_init = 0;
1858   if (!type_init) {
1859     const PyTypeObject tmp = {
1860 #if PY_VERSION_HEX>=0x03000000
1861       PyVarObject_HEAD_INIT(NULL, 0)
1862 #else
1863       PyObject_HEAD_INIT(NULL)
1864       0,                                    /* ob_size */
1865 #endif
1866       "SwigPyPacked",                       /* tp_name */
1867       sizeof(SwigPyPacked),                 /* tp_basicsize */
1868       0,                                    /* tp_itemsize */
1869       (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
1870       0,                                    /* tp_print */
1871       (getattrfunc)0,                       /* tp_getattr */
1872       (setattrfunc)0,                       /* tp_setattr */
1873 #if PY_VERSION_HEX>=0x03000000
1874       0, /* tp_reserved in 3.0.1 */
1875 #else
1876       (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
1877 #endif
1878       (reprfunc)SwigPyPacked_repr,          /* tp_repr */
1879       0,                                    /* tp_as_number */
1880       0,                                    /* tp_as_sequence */
1881       0,                                    /* tp_as_mapping */
1882       (hashfunc)0,                          /* tp_hash */
1883       (ternaryfunc)0,                       /* tp_call */
1884       (reprfunc)SwigPyPacked_str,           /* tp_str */
1885       PyObject_GenericGetAttr,              /* tp_getattro */
1886       0,                                    /* tp_setattro */
1887       0,                                    /* tp_as_buffer */
1888       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1889       swigpacked_doc,                       /* tp_doc */
1890       0,                                    /* tp_traverse */
1891       0,                                    /* tp_clear */
1892       0,                                    /* tp_richcompare */
1893       0,                                    /* tp_weaklistoffset */
1894       0,                                    /* tp_iter */
1895       0,                                    /* tp_iternext */
1896       0,                                    /* tp_methods */
1897       0,                                    /* tp_members */
1898       0,                                    /* tp_getset */
1899       0,                                    /* tp_base */
1900       0,                                    /* tp_dict */
1901       0,                                    /* tp_descr_get */
1902       0,                                    /* tp_descr_set */
1903       0,                                    /* tp_dictoffset */
1904       0,                                    /* tp_init */
1905       0,                                    /* tp_alloc */
1906       0,                                    /* tp_new */
1907       0,                                    /* tp_free */
1908       0,                                    /* tp_is_gc */
1909       0,                                    /* tp_bases */
1910       0,                                    /* tp_mro */
1911       0,                                    /* tp_cache */
1912       0,                                    /* tp_subclasses */
1913       0,                                    /* tp_weaklist */
1914       0,                                    /* tp_del */
1915       0,                                    /* tp_version_tag */
1916 #if PY_VERSION_HEX >= 0x03040000
1917       0,                                    /* tp_finalize */
1918 #endif
1919 #if PY_VERSION_HEX >= 0x03080000
1920       0,                                    /* tp_vectorcall */
1921 #endif
1922 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1923       0,                                    /* tp_print */
1924 #endif
1925 #ifdef COUNT_ALLOCS
1926       0,                                    /* tp_allocs */
1927       0,                                    /* tp_frees */
1928       0,                                    /* tp_maxalloc */
1929       0,                                    /* tp_prev */
1930       0                                     /* tp_next */
1931 #endif
1932     };
1933     swigpypacked_type = tmp;
1934     type_init = 1;
1935     if (PyType_Ready(&swigpypacked_type) < 0)
1936       return NULL;
1937   }
1938   return &swigpypacked_type;
1939 }
1940 
1941 SWIGRUNTIME PyObject *
SwigPyPacked_New(void * ptr,size_t size,swig_type_info * ty)1942 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
1943 {
1944   SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
1945   if (sobj) {
1946     void *pack = malloc(size);
1947     if (pack) {
1948       memcpy(pack, ptr, size);
1949       sobj->pack = pack;
1950       sobj->ty   = ty;
1951       sobj->size = size;
1952     } else {
1953       PyObject_DEL((PyObject *) sobj);
1954       sobj = 0;
1955     }
1956   }
1957   return (PyObject *) sobj;
1958 }
1959 
1960 SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject * obj,void * ptr,size_t size)1961 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1962 {
1963   if (SwigPyPacked_Check(obj)) {
1964     SwigPyPacked *sobj = (SwigPyPacked *)obj;
1965     if (sobj->size != size) return 0;
1966     memcpy(ptr, sobj->pack, size);
1967     return sobj->ty;
1968   } else {
1969     return 0;
1970   }
1971 }
1972 
1973 /* -----------------------------------------------------------------------------
1974  * pointers/data manipulation
1975  * ----------------------------------------------------------------------------- */
1976 
1977 static PyObject *Swig_This_global = NULL;
1978 
1979 SWIGRUNTIME PyObject *
SWIG_This(void)1980 SWIG_This(void)
1981 {
1982   if (Swig_This_global == NULL)
1983     Swig_This_global = SWIG_Python_str_FromChar("this");
1984   return Swig_This_global;
1985 }
1986 
1987 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1988 
1989 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
1990 #if PY_VERSION_HEX>=0x03000000
1991 #define SWIG_PYTHON_SLOW_GETSET_THIS
1992 #endif
1993 
1994 SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject * pyobj)1995 SWIG_Python_GetSwigThis(PyObject *pyobj)
1996 {
1997   PyObject *obj;
1998 
1999   if (SwigPyObject_Check(pyobj))
2000     return (SwigPyObject *) pyobj;
2001 
2002 #ifdef SWIGPYTHON_BUILTIN
2003   (void)obj;
2004 # ifdef PyWeakref_CheckProxy
2005   if (PyWeakref_CheckProxy(pyobj)) {
2006     pyobj = PyWeakref_GET_OBJECT(pyobj);
2007     if (pyobj && SwigPyObject_Check(pyobj))
2008       return (SwigPyObject*) pyobj;
2009   }
2010 # endif
2011   return NULL;
2012 #else
2013 
2014   obj = 0;
2015 
2016 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2017   if (PyInstance_Check(pyobj)) {
2018     obj = _PyInstance_Lookup(pyobj, SWIG_This());
2019   } else {
2020     PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2021     if (dictptr != NULL) {
2022       PyObject *dict = *dictptr;
2023       obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2024     } else {
2025 #ifdef PyWeakref_CheckProxy
2026       if (PyWeakref_CheckProxy(pyobj)) {
2027 	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2028 	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2029       }
2030 #endif
2031       obj = PyObject_GetAttr(pyobj,SWIG_This());
2032       if (obj) {
2033 	Py_DECREF(obj);
2034       } else {
2035 	if (PyErr_Occurred()) PyErr_Clear();
2036 	return 0;
2037       }
2038     }
2039   }
2040 #else
2041   obj = PyObject_GetAttr(pyobj,SWIG_This());
2042   if (obj) {
2043     Py_DECREF(obj);
2044   } else {
2045     if (PyErr_Occurred()) PyErr_Clear();
2046     return 0;
2047   }
2048 #endif
2049   if (obj && !SwigPyObject_Check(obj)) {
2050     /* a PyObject is called 'this', try to get the 'real this'
2051        SwigPyObject from it */
2052     return SWIG_Python_GetSwigThis(obj);
2053   }
2054   return (SwigPyObject *)obj;
2055 #endif
2056 }
2057 
2058 /* Acquire a pointer value */
2059 
2060 SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject * obj,int own)2061 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2062   if (own == SWIG_POINTER_OWN) {
2063     SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2064     if (sobj) {
2065       int oldown = sobj->own;
2066       sobj->own = own;
2067       return oldown;
2068     }
2069   }
2070   return 0;
2071 }
2072 
2073 /* Convert a pointer value */
2074 
2075 SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject * obj,void ** ptr,swig_type_info * ty,int flags,int * own)2076 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2077   int res;
2078   SwigPyObject *sobj;
2079   int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2080 
2081   if (!obj)
2082     return SWIG_ERROR;
2083   if (obj == Py_None && !implicit_conv) {
2084     if (ptr)
2085       *ptr = 0;
2086     return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
2087   }
2088 
2089   res = SWIG_ERROR;
2090 
2091   sobj = SWIG_Python_GetSwigThis(obj);
2092   if (own)
2093     *own = 0;
2094   while (sobj) {
2095     void *vptr = sobj->ptr;
2096     if (ty) {
2097       swig_type_info *to = sobj->ty;
2098       if (to == ty) {
2099         /* no type cast needed */
2100         if (ptr) *ptr = vptr;
2101         break;
2102       } else {
2103         swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2104         if (!tc) {
2105           sobj = (SwigPyObject *)sobj->next;
2106         } else {
2107           if (ptr) {
2108             int newmemory = 0;
2109             *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2110             if (newmemory == SWIG_CAST_NEW_MEMORY) {
2111               assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2112               if (own)
2113                 *own = *own | SWIG_CAST_NEW_MEMORY;
2114             }
2115           }
2116           break;
2117         }
2118       }
2119     } else {
2120       if (ptr) *ptr = vptr;
2121       break;
2122     }
2123   }
2124   if (sobj) {
2125     if (own)
2126       *own = *own | sobj->own;
2127     if (flags & SWIG_POINTER_DISOWN) {
2128       sobj->own = 0;
2129     }
2130     res = SWIG_OK;
2131   } else {
2132     if (implicit_conv) {
2133       SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2134       if (data && !data->implicitconv) {
2135         PyObject *klass = data->klass;
2136         if (klass) {
2137           PyObject *impconv;
2138           data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2139           impconv = SWIG_Python_CallFunctor(klass, obj);
2140           data->implicitconv = 0;
2141           if (PyErr_Occurred()) {
2142             PyErr_Clear();
2143             impconv = 0;
2144           }
2145           if (impconv) {
2146             SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2147             if (iobj) {
2148               void *vptr;
2149               res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2150               if (SWIG_IsOK(res)) {
2151                 if (ptr) {
2152                   *ptr = vptr;
2153                   /* transfer the ownership to 'ptr' */
2154                   iobj->own = 0;
2155                   res = SWIG_AddCast(res);
2156                   res = SWIG_AddNewMask(res);
2157                 } else {
2158                   res = SWIG_AddCast(res);
2159                 }
2160               }
2161             }
2162             Py_DECREF(impconv);
2163           }
2164         }
2165       }
2166       if (!SWIG_IsOK(res) && obj == Py_None) {
2167         if (ptr)
2168           *ptr = 0;
2169         if (PyErr_Occurred())
2170           PyErr_Clear();
2171         res = SWIG_OK;
2172       }
2173     }
2174   }
2175   return res;
2176 }
2177 
2178 /* Convert a function ptr value */
2179 
2180 SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject * obj,void ** ptr,swig_type_info * ty)2181 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2182   if (!PyCFunction_Check(obj)) {
2183     return SWIG_ConvertPtr(obj, ptr, ty, 0);
2184   } else {
2185     void *vptr = 0;
2186     swig_cast_info *tc;
2187 
2188     /* here we get the method pointer for callbacks */
2189     const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2190     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2191     if (desc)
2192       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2193     if (!desc)
2194       return SWIG_ERROR;
2195     tc = SWIG_TypeCheck(desc,ty);
2196     if (tc) {
2197       int newmemory = 0;
2198       *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2199       assert(!newmemory); /* newmemory handling not yet implemented */
2200     } else {
2201       return SWIG_ERROR;
2202     }
2203     return SWIG_OK;
2204   }
2205 }
2206 
2207 /* Convert a packed pointer value */
2208 
2209 SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject * obj,void * ptr,size_t sz,swig_type_info * ty)2210 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2211   swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2212   if (!to) return SWIG_ERROR;
2213   if (ty) {
2214     if (to != ty) {
2215       /* check type cast? */
2216       swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2217       if (!tc) return SWIG_ERROR;
2218     }
2219   }
2220   return SWIG_OK;
2221 }
2222 
2223 /* -----------------------------------------------------------------------------
2224  * Create a new pointer object
2225  * ----------------------------------------------------------------------------- */
2226 
2227 /*
2228   Create a new instance object, without calling __init__, and set the
2229   'this' attribute.
2230 */
2231 
2232 SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData * data,PyObject * swig_this)2233 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2234 {
2235   PyObject *inst = 0;
2236   PyObject *newraw = data->newraw;
2237   if (newraw) {
2238     inst = PyObject_Call(newraw, data->newargs, NULL);
2239     if (inst) {
2240 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2241       PyObject **dictptr = _PyObject_GetDictPtr(inst);
2242       if (dictptr != NULL) {
2243 	PyObject *dict = *dictptr;
2244 	if (dict == NULL) {
2245 	  dict = PyDict_New();
2246 	  *dictptr = dict;
2247 	  PyDict_SetItem(dict, SWIG_This(), swig_this);
2248 	}
2249       }
2250 #else
2251       if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2252         Py_DECREF(inst);
2253         inst = 0;
2254       }
2255 #endif
2256     }
2257   } else {
2258 #if PY_VERSION_HEX >= 0x03000000
2259     PyObject *empty_args = PyTuple_New(0);
2260     if (empty_args) {
2261       PyObject *empty_kwargs = PyDict_New();
2262       if (empty_kwargs) {
2263         inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
2264         Py_DECREF(empty_kwargs);
2265         if (inst) {
2266           if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2267             Py_DECREF(inst);
2268             inst = 0;
2269           } else {
2270             Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2271           }
2272         }
2273       }
2274       Py_DECREF(empty_args);
2275     }
2276 #else
2277     PyObject *dict = PyDict_New();
2278     if (dict) {
2279       PyDict_SetItem(dict, SWIG_This(), swig_this);
2280       inst = PyInstance_NewRaw(data->newargs, dict);
2281       Py_DECREF(dict);
2282     }
2283 #endif
2284   }
2285   return inst;
2286 }
2287 
2288 SWIGRUNTIME int
SWIG_Python_SetSwigThis(PyObject * inst,PyObject * swig_this)2289 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2290 {
2291 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2292   PyObject **dictptr = _PyObject_GetDictPtr(inst);
2293   if (dictptr != NULL) {
2294     PyObject *dict = *dictptr;
2295     if (dict == NULL) {
2296       dict = PyDict_New();
2297       *dictptr = dict;
2298     }
2299     return PyDict_SetItem(dict, SWIG_This(), swig_this);
2300   }
2301 #endif
2302   return PyObject_SetAttr(inst, SWIG_This(), swig_this);
2303 }
2304 
2305 
2306 SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject * args)2307 SWIG_Python_InitShadowInstance(PyObject *args) {
2308   PyObject *obj[2];
2309   if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2310     return NULL;
2311   } else {
2312     SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2313     if (sthis) {
2314       SwigPyObject_append((PyObject*) sthis, obj[1]);
2315     } else {
2316       if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
2317         return NULL;
2318     }
2319     return SWIG_Py_Void();
2320   }
2321 }
2322 
2323 /* Create a new pointer object */
2324 
2325 SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject * self,void * ptr,swig_type_info * type,int flags)2326 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2327   SwigPyClientData *clientdata;
2328   PyObject * robj;
2329   int own;
2330 
2331   if (!ptr)
2332     return SWIG_Py_Void();
2333 
2334   clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2335   own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2336   if (clientdata && clientdata->pytype) {
2337     SwigPyObject *newobj;
2338     if (flags & SWIG_BUILTIN_TP_INIT) {
2339       newobj = (SwigPyObject*) self;
2340       if (newobj->ptr) {
2341         PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2342         while (newobj->next)
2343 	  newobj = (SwigPyObject *) newobj->next;
2344         newobj->next = next_self;
2345         newobj = (SwigPyObject *)next_self;
2346 #ifdef SWIGPYTHON_BUILTIN
2347         newobj->dict = 0;
2348 #endif
2349       }
2350     } else {
2351       newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2352 #ifdef SWIGPYTHON_BUILTIN
2353       newobj->dict = 0;
2354 #endif
2355     }
2356     if (newobj) {
2357       newobj->ptr = ptr;
2358       newobj->ty = type;
2359       newobj->own = own;
2360       newobj->next = 0;
2361       return (PyObject*) newobj;
2362     }
2363     return SWIG_Py_Void();
2364   }
2365 
2366   assert(!(flags & SWIG_BUILTIN_TP_INIT));
2367 
2368   robj = SwigPyObject_New(ptr, type, own);
2369   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2370     PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2371     Py_DECREF(robj);
2372     robj = inst;
2373   }
2374   return robj;
2375 }
2376 
2377 /* Create a new packed object */
2378 
2379 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)2380 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2381   return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2382 }
2383 
2384 /* -----------------------------------------------------------------------------*
2385  *  Get type list
2386  * -----------------------------------------------------------------------------*/
2387 
2388 #ifdef SWIG_LINK_RUNTIME
2389 void *SWIG_ReturnGlobalTypeList(void *);
2390 #endif
2391 
2392 SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void * SWIGUNUSEDPARM (clientdata))2393 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2394   static void *type_pointer = (void *)0;
2395   /* first check if module already created */
2396   if (!type_pointer) {
2397 #ifdef SWIG_LINK_RUNTIME
2398     type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2399 #else
2400     type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2401     if (PyErr_Occurred()) {
2402       PyErr_Clear();
2403       type_pointer = (void *)0;
2404     }
2405 #endif
2406   }
2407   return (swig_module_info *) type_pointer;
2408 }
2409 
2410 SWIGRUNTIME void
SWIG_Python_DestroyModule(PyObject * obj)2411 SWIG_Python_DestroyModule(PyObject *obj)
2412 {
2413   swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2414   swig_type_info **types = swig_module->types;
2415   size_t i;
2416   for (i =0; i < swig_module->size; ++i) {
2417     swig_type_info *ty = types[i];
2418     if (ty->owndata) {
2419       SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2420       if (data) SwigPyClientData_Del(data);
2421     }
2422   }
2423   Py_DECREF(SWIG_This());
2424   Swig_This_global = NULL;
2425 }
2426 
2427 SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info * swig_module)2428 SWIG_Python_SetModule(swig_module_info *swig_module) {
2429 #if PY_VERSION_HEX >= 0x03000000
2430  /* Add a dummy module object into sys.modules */
2431   PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2432 #else
2433   static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2434   PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2435 #endif
2436   PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2437   if (pointer && module) {
2438     PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2439   } else {
2440     Py_XDECREF(pointer);
2441   }
2442 }
2443 
2444 /* The python cached type query */
2445 SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void)2446 SWIG_Python_TypeCache(void) {
2447   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2448   return cache;
2449 }
2450 
2451 SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char * type)2452 SWIG_Python_TypeQuery(const char *type)
2453 {
2454   PyObject *cache = SWIG_Python_TypeCache();
2455   PyObject *key = SWIG_Python_str_FromChar(type);
2456   PyObject *obj = PyDict_GetItem(cache, key);
2457   swig_type_info *descriptor;
2458   if (obj) {
2459     descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2460   } else {
2461     swig_module_info *swig_module = SWIG_GetModule(0);
2462     descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2463     if (descriptor) {
2464       obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2465       PyDict_SetItem(cache, key, obj);
2466       Py_DECREF(obj);
2467     }
2468   }
2469   Py_DECREF(key);
2470   return descriptor;
2471 }
2472 
2473 /*
2474    For backward compatibility only
2475 */
2476 #define SWIG_POINTER_EXCEPTION  0
2477 #define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
2478 #define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
2479 
2480 SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char * mesg,int infront)2481 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2482 {
2483   if (PyErr_Occurred()) {
2484     PyObject *type = 0;
2485     PyObject *value = 0;
2486     PyObject *traceback = 0;
2487     PyErr_Fetch(&type, &value, &traceback);
2488     if (value) {
2489       PyObject *old_str = PyObject_Str(value);
2490       const char *tmp = SWIG_Python_str_AsChar(old_str);
2491       const char *errmesg = tmp ? tmp : "Invalid error message";
2492       Py_XINCREF(type);
2493       PyErr_Clear();
2494       if (infront) {
2495 	PyErr_Format(type, "%s %s", mesg, errmesg);
2496       } else {
2497 	PyErr_Format(type, "%s %s", errmesg, mesg);
2498       }
2499       SWIG_Python_str_DelForPy3(tmp);
2500       Py_DECREF(old_str);
2501     }
2502     return 1;
2503   } else {
2504     return 0;
2505   }
2506 }
2507 
2508 SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)2509 SWIG_Python_ArgFail(int argnum)
2510 {
2511   if (PyErr_Occurred()) {
2512     /* add information about failing argument */
2513     char mesg[256];
2514     PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2515     return SWIG_Python_AddErrMesg(mesg, 1);
2516   } else {
2517     return 0;
2518   }
2519 }
2520 
2521 SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject * self)2522 SwigPyObject_GetDesc(PyObject *self)
2523 {
2524   SwigPyObject *v = (SwigPyObject *)self;
2525   swig_type_info *ty = v ? v->ty : 0;
2526   return ty ? ty->str : "";
2527 }
2528 
2529 SWIGRUNTIME void
SWIG_Python_TypeError(const char * type,PyObject * obj)2530 SWIG_Python_TypeError(const char *type, PyObject *obj)
2531 {
2532   if (type) {
2533 #if defined(SWIG_COBJECT_TYPES)
2534     if (obj && SwigPyObject_Check(obj)) {
2535       const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2536       if (otype) {
2537 	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2538 		     type, otype);
2539 	return;
2540       }
2541     } else
2542 #endif
2543     {
2544       const char *otype = (obj ? obj->ob_type->tp_name : 0);
2545       if (otype) {
2546 	PyObject *str = PyObject_Str(obj);
2547 	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2548 	if (cstr) {
2549 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2550 		       type, otype, cstr);
2551           SWIG_Python_str_DelForPy3(cstr);
2552 	} else {
2553 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2554 		       type, otype);
2555 	}
2556 	Py_XDECREF(str);
2557 	return;
2558       }
2559     }
2560     PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2561   } else {
2562     PyErr_Format(PyExc_TypeError, "unexpected type is received");
2563   }
2564 }
2565 
2566 
2567 /* Convert a pointer value, signal an exception on a type mismatch */
2568 SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject * obj,swig_type_info * ty,int SWIGUNUSEDPARM (argnum),int flags)2569 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2570   void *result;
2571   if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2572     PyErr_Clear();
2573 #if SWIG_POINTER_EXCEPTION
2574     if (flags) {
2575       SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2576       SWIG_Python_ArgFail(argnum);
2577     }
2578 #endif
2579   }
2580   return result;
2581 }
2582 
2583 #ifdef SWIGPYTHON_BUILTIN
2584 SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject * obj,PyObject * name,PyObject * value)2585 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2586   PyTypeObject *tp = obj->ob_type;
2587   PyObject *descr;
2588   PyObject *encoded_name;
2589   descrsetfunc f;
2590   int res = -1;
2591 
2592 # ifdef Py_USING_UNICODE
2593   if (PyString_Check(name)) {
2594     name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2595     if (!name)
2596       return -1;
2597   } else if (!PyUnicode_Check(name))
2598 # else
2599   if (!PyString_Check(name))
2600 # endif
2601   {
2602     PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2603     return -1;
2604   } else {
2605     Py_INCREF(name);
2606   }
2607 
2608   if (!tp->tp_dict) {
2609     if (PyType_Ready(tp) < 0)
2610       goto done;
2611   }
2612 
2613   descr = _PyType_Lookup(tp, name);
2614   f = NULL;
2615   if (descr != NULL)
2616     f = descr->ob_type->tp_descr_set;
2617   if (!f) {
2618     if (PyString_Check(name)) {
2619       encoded_name = name;
2620       Py_INCREF(name);
2621     } else {
2622       encoded_name = PyUnicode_AsUTF8String(name);
2623       if (!encoded_name)
2624         return -1;
2625     }
2626     PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2627     Py_DECREF(encoded_name);
2628   } else {
2629     res = f(descr, obj, value);
2630   }
2631 
2632   done:
2633   Py_DECREF(name);
2634   return res;
2635 }
2636 #endif
2637 
2638 
2639 #ifdef __cplusplus
2640 }
2641 #endif
2642 
2643 
2644 
2645 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2646 
2647 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2648 
2649 
2650 
2651 #ifdef __cplusplus
2652 extern "C" {
2653 #endif
2654 
2655 /* Method creation and docstring support functions */
2656 
2657 SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name);
2658 SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2659 SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2660 
2661 #ifdef __cplusplus
2662 }
2663 #endif
2664 
2665 
2666   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
2667 
2668 
2669 /* -------- TYPES TABLE (BEGIN) -------- */
2670 
2671 #define SWIGTYPE_p_FILE swig_types[0]
2672 #define SWIGTYPE_p_PyArrayObject swig_types[1]
2673 #define SWIGTYPE_p_a_10__double swig_types[2]
2674 #define SWIGTYPE_p_a_2__double swig_types[3]
2675 #define SWIGTYPE_p_anqfits_t swig_types[4]
2676 #define SWIGTYPE_p_anwcs_t swig_types[5]
2677 #define SWIGTYPE_p_char swig_types[6]
2678 #define SWIGTYPE_p_coadd_t swig_types[7]
2679 #define SWIGTYPE_p_codetree_t swig_types[8]
2680 #define SWIGTYPE_p_dl swig_types[9]
2681 #define SWIGTYPE_p_double swig_types[10]
2682 #define SWIGTYPE_p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double swig_types[11]
2683 #define SWIGTYPE_p_f_int_p_void__int swig_types[12]
2684 #define SWIGTYPE_p_f_p_q_const__sip_t_double_double_double_double_p_void__void swig_types[13]
2685 #define SWIGTYPE_p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void swig_types[14]
2686 #define SWIGTYPE_p_f_p_q_const__void_double_double_p_double_p_double__int swig_types[15]
2687 #define SWIGTYPE_p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char swig_types[16]
2688 #define SWIGTYPE_p_f_p_q_const__void_double_double_p_double_p_double__void swig_types[17]
2689 #define SWIGTYPE_p_fitsbin_t swig_types[18]
2690 #define SWIGTYPE_p_fitstable_t swig_types[19]
2691 #define SWIGTYPE_p_float swig_types[20]
2692 #define SWIGTYPE_p_il swig_types[21]
2693 #define SWIGTYPE_p_index_t swig_types[22]
2694 #define SWIGTYPE_p_int swig_types[23]
2695 #define SWIGTYPE_p_int16_t swig_types[24]
2696 #define SWIGTYPE_p_int32_t swig_types[25]
2697 #define SWIGTYPE_p_int64_t swig_types[26]
2698 #define SWIGTYPE_p_kdtree_t swig_types[27]
2699 #define SWIGTYPE_p_lanczos_args_t swig_types[28]
2700 #define SWIGTYPE_p_off_t swig_types[29]
2701 #define SWIGTYPE_p_p_char swig_types[30]
2702 #define SWIGTYPE_p_p_double swig_types[31]
2703 #define SWIGTYPE_p_p_int swig_types[32]
2704 #define SWIGTYPE_p_p_qfits_header swig_types[33]
2705 #define SWIGTYPE_p_pl swig_types[34]
2706 #define SWIGTYPE_p_qfits_header swig_types[35]
2707 #define SWIGTYPE_p_qfits_table swig_types[36]
2708 #define SWIGTYPE_p_qfitsdumper swig_types[37]
2709 #define SWIGTYPE_p_quadfile_t swig_types[38]
2710 #define SWIGTYPE_p_sip_t swig_types[39]
2711 #define SWIGTYPE_p_sl swig_types[40]
2712 #define SWIGTYPE_p_startree_t swig_types[41]
2713 #define SWIGTYPE_p_tan_t swig_types[42]
2714 #define SWIGTYPE_p_tfits_type swig_types[43]
2715 #define SWIGTYPE_p_uint32_t swig_types[44]
2716 #define SWIGTYPE_p_uint8_t swig_types[45]
2717 #define SWIGTYPE_p_unsigned_char swig_types[46]
2718 #define SWIGTYPE_p_unsigned_int swig_types[47]
2719 #define SWIGTYPE_p_void swig_types[48]
2720 static swig_type_info *swig_types[50];
2721 static swig_module_info swig_module = {swig_types, 49, 0, 0, 0, 0};
2722 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2723 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2724 
2725 /* -------- TYPES TABLE (END) -------- */
2726 
2727 #ifdef SWIG_TypeQuery
2728 # undef SWIG_TypeQuery
2729 #endif
2730 #define SWIG_TypeQuery SWIG_Python_TypeQuery
2731 
2732 /*-----------------------------------------------
2733               @(target):= _util.so
2734   ------------------------------------------------*/
2735 #if PY_VERSION_HEX >= 0x03000000
2736 #  define SWIG_init    PyInit__util
2737 
2738 #else
2739 #  define SWIG_init    init_util
2740 
2741 #endif
2742 #define SWIG_name    "_util"
2743 
2744 #define SWIGVERSION 0x040002
2745 #define SWIG_VERSION SWIGVERSION
2746 
2747 
2748 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
2749 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
2750 
2751 
2752 // numpy.
2753 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
2754 #include <numpy/arrayobject.h>
2755 
2756 #include <stdint.h>
2757 #include <stdlib.h>
2758 #include <math.h>
2759 
2760 #include "os-features.h"
2761 #include "log.h"
2762 #include "healpix.h"
2763 #include "healpix-utils.h"
2764 #include "anwcs.h"
2765 #include "sip.h"
2766 #include "fitsioutils.h"
2767 #include "sip-utils.h"
2768 #include "sip_qfits.h"
2769 #include "index.h"
2770 #include "quadfile.h"
2771 #include "codekd.h"
2772 #include "starkd.h"
2773 #include "starutil.h"
2774 #include "an-bool.h"
2775 #include "ioutils.h"
2776 
2777 #include "coadd.h"
2778 #include "wcs-resample.h"
2779 #include "resample.h"
2780 #include "keywords.h"
2781 
2782 #include "dimage.h"
2783 
2784 #include "fit-wcs.h"
2785 
2786 #include "qfits_header.h"
2787 #include "qfits_rw.h"
2788 #include "wcs-pv2sip.h"
2789 
2790 #define true 1
2791 #define false 0
2792 
2793 // For sip.h
checkorder(int i,int j)2794 static void checkorder(int i, int j) {
2795     assert(i >= 0);
2796     assert(i < SIP_MAXORDER);
2797     assert(j >= 0);
2798     assert(j < SIP_MAXORDER);
2799 }
2800 
2801 // From index.i:
2802 /**
2803 For returning single codes and quads as python lists, do something like this:
2804 
2805 %typemap(out) float [ANY] {
2806   int i;
2807   $result = PyList_New($1_dim0);
2808   for (i = 0; i < $1_dim0; i++) {
2809     PyObject *o = PyFloat_FromDouble((double) $1[i]);
2810     PyList_SetItem($result,i,o);
2811   }
2812 }
2813 **/
2814 
code_alloc(int DC)2815 double* code_alloc(int DC) {
2816 	 return malloc(DC * sizeof(double));
2817 }
code_free(double * code)2818 void code_free(double* code) {
2819 	 free(code);
2820 }
code_get(double * code,int i)2821 double code_get(double* code, int i) {
2822 	return code[i];
2823 }
2824 
codekd_addr(index_t * ind)2825 long codekd_addr(index_t* ind) {
2826 	 return (long)ind->codekd;
2827 }
starkd_addr(index_t * ind)2828 long starkd_addr(index_t* ind) {
2829 	 return (long)ind->starkd;
2830 }
2831 
quadfile_addr(index_t * ind)2832 long quadfile_addr(index_t* ind) {
2833 	 return (long)ind->quads;
2834 }
2835 /*
2836 long qidxfile_addr(qidxfile* qf) {
2837 	 return (long)qf;
2838 }
2839  */
2840 
2841 
2842 
2843 #include <limits.h>
2844 #if !defined(SWIG_NO_LLONG_MAX)
2845 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2846 #   define LLONG_MAX __LONG_LONG_MAX__
2847 #   define LLONG_MIN (-LLONG_MAX - 1LL)
2848 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2849 # endif
2850 #endif
2851 
2852 
2853 SWIGINTERN int
SWIG_AsVal_double(PyObject * obj,double * val)2854 SWIG_AsVal_double (PyObject *obj, double *val)
2855 {
2856   int res = SWIG_TypeError;
2857   if (PyFloat_Check(obj)) {
2858     if (val) *val = PyFloat_AsDouble(obj);
2859     return SWIG_OK;
2860 #if PY_VERSION_HEX < 0x03000000
2861   } else if (PyInt_Check(obj)) {
2862     if (val) *val = (double) PyInt_AsLong(obj);
2863     return SWIG_OK;
2864 #endif
2865   } else if (PyLong_Check(obj)) {
2866     double v = PyLong_AsDouble(obj);
2867     if (!PyErr_Occurred()) {
2868       if (val) *val = v;
2869       return SWIG_OK;
2870     } else {
2871       PyErr_Clear();
2872     }
2873   }
2874 #ifdef SWIG_PYTHON_CAST_MODE
2875   {
2876     int dispatch = 0;
2877     double d = PyFloat_AsDouble(obj);
2878     if (!PyErr_Occurred()) {
2879       if (val) *val = d;
2880       return SWIG_AddCast(SWIG_OK);
2881     } else {
2882       PyErr_Clear();
2883     }
2884     if (!dispatch) {
2885       long v = PyLong_AsLong(obj);
2886       if (!PyErr_Occurred()) {
2887 	if (val) *val = v;
2888 	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
2889       } else {
2890 	PyErr_Clear();
2891       }
2892     }
2893   }
2894 #endif
2895   return res;
2896 }
2897 
2898 
2899 #include <float.h>
2900 
2901 
2902 #include <math.h>
2903 
2904 
2905 SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double * d,double min,double max)2906 SWIG_CanCastAsInteger(double *d, double min, double max) {
2907   double x = *d;
2908   if ((min <= x && x <= max)) {
2909    double fx = floor(x);
2910    double cx = ceil(x);
2911    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
2912    if ((errno == EDOM) || (errno == ERANGE)) {
2913      errno = 0;
2914    } else {
2915      double summ, reps, diff;
2916      if (rd < x) {
2917        diff = x - rd;
2918      } else if (rd > x) {
2919        diff = rd - x;
2920      } else {
2921        return 1;
2922      }
2923      summ = rd + x;
2924      reps = diff/summ;
2925      if (reps < 8*DBL_EPSILON) {
2926        *d = rd;
2927        return 1;
2928      }
2929    }
2930   }
2931   return 0;
2932 }
2933 
2934 
2935 SWIGINTERN int
SWIG_AsVal_long(PyObject * obj,long * val)2936 SWIG_AsVal_long (PyObject *obj, long* val)
2937 {
2938 #if PY_VERSION_HEX < 0x03000000
2939   if (PyInt_Check(obj)) {
2940     if (val) *val = PyInt_AsLong(obj);
2941     return SWIG_OK;
2942   } else
2943 #endif
2944   if (PyLong_Check(obj)) {
2945     long v = PyLong_AsLong(obj);
2946     if (!PyErr_Occurred()) {
2947       if (val) *val = v;
2948       return SWIG_OK;
2949     } else {
2950       PyErr_Clear();
2951       return SWIG_OverflowError;
2952     }
2953   }
2954 #ifdef SWIG_PYTHON_CAST_MODE
2955   {
2956     int dispatch = 0;
2957     long v = PyInt_AsLong(obj);
2958     if (!PyErr_Occurred()) {
2959       if (val) *val = v;
2960       return SWIG_AddCast(SWIG_OK);
2961     } else {
2962       PyErr_Clear();
2963     }
2964     if (!dispatch) {
2965       double d;
2966       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
2967       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
2968 	if (val) *val = (long)(d);
2969 	return res;
2970       }
2971     }
2972   }
2973 #endif
2974   return SWIG_TypeError;
2975 }
2976 
2977 
2978 SWIGINTERN int
SWIG_AsVal_int(PyObject * obj,int * val)2979 SWIG_AsVal_int (PyObject * obj, int *val)
2980 {
2981   long v;
2982   int res = SWIG_AsVal_long (obj, &v);
2983   if (SWIG_IsOK(res)) {
2984     if ((v < INT_MIN || v > INT_MAX)) {
2985       return SWIG_OverflowError;
2986     } else {
2987       if (val) *val = (int)(v);
2988     }
2989   }
2990   return res;
2991 }
2992 
2993 
2994 SWIGINTERNINLINE PyObject*
SWIG_From_int(int value)2995   SWIG_From_int  (int value)
2996 {
2997   return PyInt_FromLong((long) value);
2998 }
2999 
3000 
3001 /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
3002 #ifndef SWIG_isfinite
3003 /* isfinite() is a macro for C99 */
3004 # if defined(isfinite)
3005 #  define SWIG_isfinite(X) (isfinite(X))
3006 # elif defined(__cplusplus) && __cplusplus >= 201103L
3007 /* Use a template so that this works whether isfinite() is std::isfinite() or
3008  * in the global namespace.  The reality seems to vary between compiler
3009  * versions.
3010  *
3011  * Make sure namespace std exists to avoid compiler warnings.
3012  *
3013  * extern "C++" is required as this fragment can end up inside an extern "C" { } block
3014  */
3015 namespace std { }
3016 extern "C++" template<typename T>
SWIG_isfinite_func(T x)3017 inline int SWIG_isfinite_func(T x) {
3018   using namespace std;
3019   return isfinite(x);
3020 }
3021 #  define SWIG_isfinite(X) (SWIG_isfinite_func(X))
3022 # elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
3023 #  define SWIG_isfinite(X) (__builtin_isfinite(X))
3024 # elif defined(__clang__) && defined(__has_builtin)
3025 #  if __has_builtin(__builtin_isfinite)
3026 #   define SWIG_isfinite(X) (__builtin_isfinite(X))
3027 #  endif
3028 # elif defined(_MSC_VER)
3029 #  define SWIG_isfinite(X) (_finite(X))
3030 # elif defined(__sun) && defined(__SVR4)
3031 #  include <ieeefp.h>
3032 #  define SWIG_isfinite(X) (finite(X))
3033 # endif
3034 #endif
3035 
3036 
3037 /* Accept infinite as a valid float value unless we are unable to check if a value is finite */
3038 #ifdef SWIG_isfinite
3039 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
3040 #else
3041 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
3042 #endif
3043 
3044 
3045 SWIGINTERN int
SWIG_AsVal_float(PyObject * obj,float * val)3046 SWIG_AsVal_float (PyObject * obj, float *val)
3047 {
3048   double v;
3049   int res = SWIG_AsVal_double (obj, &v);
3050   if (SWIG_IsOK(res)) {
3051     if (SWIG_Float_Overflow_Check(v)) {
3052       return SWIG_OverflowError;
3053     } else {
3054       if (val) *val = (float)(v);
3055     }
3056   }
3057   return res;
3058 }
3059 
3060 
3061   #define SWIG_From_double   PyFloat_FromDouble
3062 
3063 
3064 #define ERR(x, ...)                             \
3065     printf(x, ## __VA_ARGS__)
3066 
print_array(PyObject * arr)3067     static void print_array(PyObject* arr) {
3068         PyArrayObject *obj;
3069         int i, N;
3070         PyArray_Descr *desc;
3071         printf("Array: %p\n", arr);
3072         if (!arr) return;
3073         if (!PyArray_Check(arr)) {
3074             printf("  Not a Numpy Array\n");
3075             if (arr == Py_None)
3076                 printf("  is None\n");
3077             return;
3078         }
3079         obj = (PyArrayObject*)arr;
3080 
3081         printf("  Contiguous: %s\n",
3082                PyArray_ISCONTIGUOUS(obj) ? "yes" : "no");
3083         printf("  Writeable: %s\n",
3084                PyArray_ISWRITEABLE(obj) ? "yes" : "no");
3085         printf("  Aligned: %s\n",
3086                PyArray_ISALIGNED(obj) ? "yes" : "no");
3087         printf("  C array: %s\n",
3088                PyArray_ISCARRAY(obj) ? "yes" : "no");
3089 
3090         //printf("  typeobj: %p (float is %p)\n", arr->typeobj,
3091         //&PyFloat_Type);
3092 
3093         printf("  data: %p\n", PyArray_DATA(obj));
3094         printf("  N dims: %i\n", PyArray_NDIM(obj));
3095         N = PyArray_NDIM(obj);
3096         for (i=0; i<N; i++)
3097             printf("  dim %i: %i\n", i, (int)PyArray_DIM(obj, i));
3098         for (i=0; i<N; i++)
3099             printf("  stride %i: %i\n", i, (int)PyArray_STRIDE(obj, i));
3100         desc = PyArray_DESCR(obj);
3101         printf("  descr kind: '%c'\n", desc->kind);
3102         printf("  descr type: '%c'\n", desc->type);
3103         printf("  descr byteorder: '%c'\n", desc->byteorder);
3104         printf("  descr elsize: %i\n", desc->elsize);
3105     }
3106 
3107 
an_hist2d(PyObject * py_arrx,PyObject * py_arry,PyObject * py_hist,double xlo,double xhi,double ylo,double yhi)3108     static PyObject* an_hist2d(PyObject* py_arrx, PyObject* py_arry,
3109                                PyObject* py_hist,
3110                                double xlo, double xhi,
3111                                double ylo, double yhi) {
3112         PyArray_Descr* dtype = NULL;
3113         PyArray_Descr* itype = NULL;
3114         int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED |
3115                NPY_ARRAY_NOTSWAPPED | NPY_ARRAY_ELEMENTSTRIDES;
3116         int reqout = req | NPY_ARRAY_WRITEABLE | NPY_ARRAY_UPDATEIFCOPY;
3117         PyArrayObject* np_arrx;
3118         PyArrayObject* np_arry;
3119         PyArrayObject* np_hist;
3120         double *arrx;
3121         double *arry;
3122         int32_t *hist;
3123         int nx, ny;
3124         double dx, dy, idx, idy;
3125         int i, N;
3126 
3127         dtype = PyArray_DescrFromType(NPY_DOUBLE);
3128         itype = PyArray_DescrFromType(NPY_INT32);
3129 
3130         Py_INCREF(dtype);
3131         np_arrx = (PyArrayObject*)PyArray_FromAny(py_arrx, dtype, 1, 1, req, NULL);
3132         if (!np_arrx) {
3133             PyErr_SetString(PyExc_ValueError,"Expected x array to be double");
3134             Py_DECREF(dtype);
3135             return NULL;
3136         }
3137         N = PyArray_SIZE(np_arrx);
3138 
3139         Py_INCREF(dtype);
3140         np_arry = (PyArrayObject*)PyArray_FromAny(py_arry, dtype, 1, 1, req, NULL);
3141         if (!np_arry) {
3142             PyErr_SetString(PyExc_ValueError,"Expected y array to be double");
3143             Py_DECREF(dtype);
3144             Py_DECREF(np_arrx);
3145             return NULL;
3146         }
3147         if (PyArray_SIZE(np_arry) != N) {
3148             PyErr_SetString(PyExc_ValueError,"Expected x and y arrays to be the same length");
3149             Py_DECREF(dtype);
3150             Py_DECREF(np_arrx);
3151             return NULL;
3152         }
3153         Py_CLEAR(dtype);
3154         Py_INCREF(itype);
3155         np_hist = (PyArrayObject*)PyArray_FromAny(py_hist, itype, 2, 2, reqout, NULL);
3156         if (!np_hist) {
3157             PyErr_SetString(PyExc_ValueError,"Expected hist array to be int32");
3158             Py_DECREF(np_arrx);
3159             Py_DECREF(np_arry);
3160             Py_DECREF(itype);
3161             return NULL;
3162         }
3163         Py_CLEAR(itype);
3164 
3165         ny = PyArray_DIM(np_hist, 0);
3166         nx = PyArray_DIM(np_hist, 1);
3167         dx = (xhi - xlo) / (double)nx;
3168         dy = (yhi - ylo) / (double)ny;
3169         idx = 1./dx;
3170         idy = 1./dy;
3171 
3172         hist = PyArray_DATA(np_hist);
3173         arrx = PyArray_DATA(np_arrx);
3174         arry = PyArray_DATA(np_arry);
3175 
3176         for (i=0; i<N; i++,
3177                  arrx++, arry++) {
3178             double x, y;
3179             int binx, biny;
3180             x = *arrx;
3181             y = *arry;
3182             if ((x < xlo) || (x > xhi) || (y < ylo) || (y > yhi))
3183                 continue;
3184             binx = (int)((x - xlo) * idx);
3185             biny = (int)((y - ylo) * idy);
3186             // == upper limit
3187             if (unlikely(binx == nx)) {
3188                 binx--;
3189             }
3190             if (unlikely(biny == ny)) {
3191                 biny--;
3192             }
3193             hist[biny * nx + binx]++;
3194         }
3195 
3196         Py_DECREF(np_arrx);
3197         Py_DECREF(np_arry);
3198         Py_DECREF(np_hist);
3199 
3200         Py_RETURN_NONE;
3201     }
3202 
3203 
flat_percentile_f(PyObject * np_arr,double pct)3204     static double flat_percentile_f(PyObject* np_arr, double pct) {
3205         PyArray_Descr* dtype;
3206         npy_intp N;
3207         int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED |
3208             NPY_ARRAY_NOTSWAPPED | NPY_ARRAY_ELEMENTSTRIDES;
3209         float* x;
3210         float med = 0;
3211         int L, R;
3212         int mid;
3213 
3214         dtype = PyArray_DescrFromType(NPY_FLOAT);
3215         np_arr  = PyArray_CheckFromAny(np_arr, dtype, 0, 0, req, NULL);
3216         if (!np_arr) {
3217             ERR("flat_median_f: Failed to convert array to float\n");
3218             return 0;
3219         }
3220         dtype = NULL;
3221         N = PyArray_Size(np_arr);
3222         x = (float*)malloc(sizeof(float) * N);
3223         memcpy(x, PyArray_DATA((PyArrayObject*)np_arr), sizeof(float)*N);
3224         Py_DECREF(np_arr);
3225 
3226         {
3227             int i;
3228             for (i=0; i<N; i++) {
3229                 if (!isfinite(x[i])) {
3230                     ERR("flat_median_f cannot handle NaN values (element %i)\n", i);
3231                     return x[i];
3232                 }
3233             }
3234         }
3235 
3236         // Pseudocode from wikipedia's 'Selection algorithm' page
3237         L = 0;
3238         R = (int)(N-1);
3239         mid = (int)(pct * 0.01 * N);
3240         if (mid < 0) {
3241             mid = 0;
3242         }
3243         if (mid >= R) {
3244             mid = R;
3245         }
3246         while (L < R) {
3247             int ipivot;
3248             int i,j;
3249             int k;
3250             float pivot;
3251             //printf("L=%i, R=%i (N=%i), mid=%i\n", L, R, 1+R-L, mid);
3252             ipivot = random() % (1+R-L) + L;
3253             pivot = x[ipivot];
3254             // partition array...
3255             i = L;
3256             j = R;
3257             do {
3258                 // scan for elements out of place
3259                 // scan from the left:
3260                 while (x[i] < pivot)
3261                     i++;
3262                 // scan from the right:
3263                 while (x[j] >= pivot && j>i)
3264                     j--;
3265                 // now x[i] >= pivot
3266                 // and (x[j] < pivot) OR j == i
3267                 assert(x[i] >= pivot);
3268                 assert((x[j] < pivot) || (j == i));
3269                 assert(j >= i);
3270                 if (i < j) {
3271                     // swap
3272                     float tmp = x[i];
3273                     x[i] = x[j];
3274                     x[j] = tmp;
3275                 }
3276             } while (i < j);
3277             {
3278                 for (k=L; k<i; k++) {
3279                     assert(x[k] < pivot);
3280                 }
3281                 for (k=i; k<=R; k++) {
3282                     assert(x[k] >= pivot);
3283                 }
3284             }
3285             // partition the right partition into == and >
3286             j = i;
3287             k = R;
3288             do {
3289                 // scan for elements out of place
3290                 // scan from the right:
3291                 while (x[k] > pivot)
3292                     k--;
3293                 // scan from the left:
3294                 while (x[j] == pivot && j<k)
3295                     j++;
3296 
3297                 assert(x[k] == pivot);
3298                 assert((x[j] > pivot) || (j == k));
3299                 assert(k >= j);
3300                 if (j < k) {
3301                     // swap
3302                     float tmp = x[j];
3303                     x[j] = x[k];
3304                     x[k] = tmp;
3305                 }
3306             } while (j < k);
3307 
3308             j = k+1;
3309 
3310             {
3311                 //printf("L=%i, i=%i, j=%i, k=%i, R=%i\n", L, i, j, k, R);
3312                 for (k=L; k<i; k++) {
3313                     assert(x[k] < pivot);
3314                 }
3315                 for (k=i; k<j; k++) {
3316                     assert(x[k] == pivot);
3317                 }
3318                 for (k=j; k<=R; k++) {
3319                     assert(x[k] > pivot);
3320                 }
3321             }
3322 
3323 
3324 
3325             // there must be at least one element in the right partitions
3326             assert(i <= R);
3327 
3328             // there must be at least one element in the middle partition
3329             assert(j-i >= 1);
3330 
3331             if (mid < i)
3332                 // the median is in the left partition (< pivot)
3333                 R = i-1;
3334             else if (mid >= j)
3335                 // the median is in the right partition (> pivot)
3336                 L = j;
3337             else {
3338                 // the median is in the middle partition (== pivot)
3339                 L = R = i;
3340                 break;
3341             }
3342             assert(L <= mid);
3343             assert(R >= mid);
3344         }
3345         med = x[mid];
3346         free(x);
3347         return med;
3348     }
3349 
flat_median_f(PyObject * np_arr)3350     static double flat_median_f(PyObject* np_arr) {
3351         return flat_percentile_f(np_arr, 50.0);
3352     }
3353 
median_smooth(PyObject * py_image,PyObject * py_mask,int halfbox,PyObject * py_smooth)3354     static int median_smooth(PyObject* py_image,
3355                              PyObject* py_mask,
3356                              int halfbox,
3357                              PyObject* py_smooth) {
3358         /*
3359 
3360          image: np.float32
3361          mask: bool or uint8; 1 to IGNORE.
3362          smooth: np.float32; output array.
3363 
3364          */
3365         PyArrayObject* np_image  = (PyArrayObject*)py_image;
3366         PyArrayObject* np_mask   = (PyArrayObject*)py_mask;
3367         PyArrayObject* np_smooth = (PyArrayObject*)py_smooth;
3368 
3369         if (!PyArray_Check(np_image) ||
3370             !PyArray_Check(np_smooth) ||
3371             !PyArray_ISNOTSWAPPED(np_image) ||
3372             !PyArray_ISNOTSWAPPED(np_smooth ) ||
3373             !PyArray_ISFLOAT(np_image) ||
3374             !PyArray_ISFLOAT(np_smooth ) ||
3375             (PyArray_ITEMSIZE(np_image) != sizeof(float)) ||
3376             (PyArray_ITEMSIZE(np_smooth ) != sizeof(float)) ||
3377             !(PyArray_NDIM(np_image) == 2) ||
3378             !(PyArray_NDIM(np_smooth ) == 2) ||
3379             !PyArray_ISCONTIGUOUS(np_image) ||
3380             !PyArray_ISCONTIGUOUS(np_smooth ) ||
3381             !PyArray_ISWRITEABLE(np_smooth)) {
3382             ERR("median_smooth: array type checks failed for image/smooth\n");
3383             ERR("check %i %i notswapped %i %i isfloat %i %i size %i %i ndim %i %i contig %i %i writable %i\n",
3384                 PyArray_Check(np_image), PyArray_Check(np_smooth),
3385                 PyArray_ISNOTSWAPPED(np_image), PyArray_ISNOTSWAPPED(np_smooth ),
3386                 PyArray_ISFLOAT(np_image), PyArray_ISFLOAT(np_smooth),
3387                 (PyArray_ITEMSIZE(np_image) == sizeof(float)),
3388                 (PyArray_ITEMSIZE(np_smooth) == sizeof(float)),
3389                 (PyArray_NDIM(np_image) == 2),
3390                 (PyArray_NDIM(np_smooth ) == 2),
3391                 PyArray_ISCONTIGUOUS(np_image),
3392                 PyArray_ISCONTIGUOUS(np_smooth),
3393                 PyArray_ISWRITEABLE(np_smooth));
3394             return -1;
3395         }
3396         if ((PyObject*)np_mask != Py_None) {
3397             if (!PyArray_Check(np_mask) ||
3398                 !PyArray_ISNOTSWAPPED(np_mask) ||
3399                 !PyArray_ISBOOL(np_mask) ||
3400                 (PyArray_ITEMSIZE(np_mask) != sizeof(uint8_t)) ||
3401                 !(PyArray_NDIM(np_mask) == 2) ||
3402                 !PyArray_ISCONTIGUOUS(np_mask)) {
3403                 ERR("median_smooth: array type checks failed for mask\n");
3404                 return -1;
3405             }
3406         }
3407         npy_intp NX, NY;
3408         const float* image;
3409         float* smooth;
3410         const uint8_t* maskimg = NULL;
3411 
3412         NY = PyArray_DIM(np_image, 0);
3413         NX = PyArray_DIM(np_image, 1);
3414         if ((PyArray_DIM(np_smooth, 0) != NY) ||
3415             (PyArray_DIM(np_smooth, 1) != NX)) {
3416             ERR("median_smooth: 'smooth' array is wrong shape\n");
3417             return -1;
3418         }
3419         image = PyArray_DATA(np_image);
3420         smooth = PyArray_DATA(np_smooth);
3421 
3422         if ((PyObject*)np_mask != Py_None) {
3423             if ((PyArray_DIM(np_mask, 0) != NY) ||
3424                 (PyArray_DIM(np_mask, 1) != NX)) {
3425                 ERR("median_smooth: 'mask' array is wrong shape\n");
3426                 return -1;
3427             }
3428             maskimg = PyArray_DATA(np_mask);
3429         }
3430 
3431         dmedsmooth(image, maskimg, (int)NX, (int)NY, halfbox, smooth);
3432 
3433         return 0;
3434     }
3435 
3436     #define LANCZOS_INTERP_FUNC lanczos5_interpolate
3437     #define L 5
3438         static int LANCZOS_INTERP_FUNC(PyObject* np_ixi, PyObject* np_iyi,
3439                                        PyObject* np_dx, PyObject* np_dy,
3440                                        PyObject* loutputs, PyObject* linputs);
3441     #include "lanczos.i"
3442     #undef LANCZOS_INTERP_FUNC
3443     #undef L
3444 
3445     #define LANCZOS_INTERP_FUNC lanczos3_interpolate
3446     #define L 3
3447         static int LANCZOS_INTERP_FUNC(PyObject* np_ixi, PyObject* np_iyi,
3448                                        PyObject* np_dx, PyObject* np_dy,
3449                                        PyObject* loutputs, PyObject* linputs);
3450     #include "lanczos.i"
3451     #undef LANCZOS_INTERP_FUNC
3452     #undef L
3453 
lanczos5_filter(PyObject * py_dx,PyObject * py_f)3454     static int lanczos5_filter(PyObject* py_dx, PyObject* py_f) {
3455         npy_intp N;
3456         npy_intp i;
3457         float* dx;
3458         float* f;
3459 
3460         PyArrayObject *np_dx = (PyArrayObject*)py_dx;
3461         PyArrayObject *np_f  = (PyArrayObject*)py_f;
3462 
3463         if (!PyArray_Check(np_dx) ||
3464             !PyArray_Check(np_f ) ||
3465             !PyArray_ISNOTSWAPPED(np_dx) ||
3466             !PyArray_ISNOTSWAPPED(np_f ) ||
3467             !PyArray_ISFLOAT(np_dx) ||
3468             !PyArray_ISFLOAT(np_f ) ||
3469             (PyArray_ITEMSIZE(np_dx) != sizeof(float)) ||
3470             (PyArray_ITEMSIZE(np_f ) != sizeof(float)) ||
3471             !(PyArray_NDIM(np_dx) == 1) ||
3472             !(PyArray_NDIM(np_f ) == 1) ||
3473             !PyArray_ISCONTIGUOUS(np_dx) ||
3474             !PyArray_ISCONTIGUOUS(np_f ) ||
3475             !PyArray_ISWRITEABLE(np_f)
3476             ) {
3477             ERR("Arrays aren't right type\n");
3478             return -1;
3479         }
3480         N = PyArray_DIM(np_dx, 0);
3481         if (PyArray_DIM(np_f, 0) != N) {
3482             ERR("Input and output must have same dimensions\n");
3483             return -1;
3484         }
3485         dx = PyArray_DATA(np_dx);
3486         f = PyArray_DATA(np_f);
3487         const double fifthpi = M_PI / 5.0;
3488         const double pisq = M_PI * M_PI;
3489         const double fiveopisq = 5. / pisq;
3490         for (i=N; i>0; i--, dx++, f++) {
3491             double x = *dx;
3492             if (x < -5.0 || x > 5.0) {
3493                 *f = 0.0;
3494             } else if (x == 0) {
3495                 *f = 1.0;
3496             } else {
3497                 *f = fiveopisq * sin(M_PI * x) * sin(fifthpi * x) / (x * x);
3498             }
3499         }
3500         return 0;
3501     }
3502 
lanczos3_filter(PyObject * py_dx,PyObject * py_f)3503     static int lanczos3_filter(PyObject* py_dx, PyObject* py_f) {
3504         npy_intp N;
3505         npy_intp i;
3506         float* dx;
3507         float* f;
3508 
3509         PyArrayObject *np_dx = (PyArrayObject*)py_dx;
3510         PyArrayObject *np_f  = (PyArrayObject*)py_f;
3511 
3512         if (!PyArray_Check(np_dx) ||
3513             !PyArray_Check(np_f ) ||
3514             !PyArray_ISNOTSWAPPED(np_dx) ||
3515             !PyArray_ISNOTSWAPPED(np_f ) ||
3516             !PyArray_ISFLOAT(np_dx) ||
3517             !PyArray_ISFLOAT(np_f ) ||
3518             (PyArray_ITEMSIZE(np_dx) != sizeof(float)) ||
3519             (PyArray_ITEMSIZE(np_f ) != sizeof(float)) ||
3520             !(PyArray_NDIM(np_dx) == 1) ||
3521             !(PyArray_NDIM(np_f ) == 1) ||
3522             !PyArray_ISCONTIGUOUS(np_dx) ||
3523             !PyArray_ISCONTIGUOUS(np_f ) ||
3524             !PyArray_ISWRITEABLE(np_f)
3525             ) {
3526             ERR("Arrays aren't right type\n");
3527             return -1;
3528         }
3529         N = PyArray_DIM(np_dx, 0);
3530         if (PyArray_DIM(np_f, 0) != N) {
3531             ERR("Input and output must have same dimensions\n");
3532             return -1;
3533         }
3534         dx = PyArray_DATA(np_dx);
3535         f = PyArray_DATA(np_f);
3536         const double thirdpi = M_PI / 3.0;
3537         const double pisq = M_PI * M_PI;
3538         const double threeopisq = 3. / pisq;
3539         for (i=N; i>0; i--, dx++, f++) {
3540             double x = *dx;
3541             if (x < -3.0 || x > 3.0) {
3542                 *f = 0.0;
3543             } else if (x == 0) {
3544                 *f = 1.0;
3545             } else {
3546                 *f = threeopisq * sin(M_PI * x) * sin(thirdpi * x) / (x * x);
3547             }
3548         }
3549         return 0;
3550     }
3551 
lanczos3_filter_table(PyObject * py_dx,PyObject * py_f,int rangecheck)3552     static int lanczos3_filter_table(PyObject* py_dx, PyObject* py_f, int rangecheck) {
3553         npy_intp N;
3554         npy_intp i;
3555         float* dx;
3556         float* f;
3557 
3558         PyArrayObject *np_dx = (PyArrayObject*)py_dx;
3559         PyArrayObject *np_f  = (PyArrayObject*)py_f;
3560 
3561         // Nlutunit is number of bins per unit x
3562         static const int Nlutunit = 1024;
3563         static const float lut0 = -4.;
3564         static const int Nlut = 8192; //8 * Nlutunit;
3565         // We want bins to go from -4 to 4 (Lanczos-3 range of -3 to 3, plus some buffer)
3566         // [Nlut]
3567         static float lut[8192];
3568         static int initialized = 0;
3569 
3570         if (!initialized) {
3571             for (i=0; i<(Nlut); i++) {
3572                 float x,f;
3573                 x = (lut0 + (i / (float)Nlutunit));
3574                 if (x <= -3.0 || x >= 3.0) {
3575                     f = 0.0;
3576                 } else if (x == 0) {
3577                     f = 1.0;
3578                 } else {
3579                     f = 3. * sin(M_PI * x) * sin(M_PI / 3.0 * x) / (M_PI * M_PI * x * x);
3580                 }
3581                 lut[i] = f;
3582             }
3583             initialized = 1;
3584         }
3585 
3586         if (!PyArray_Check(np_dx) ||
3587             !PyArray_Check(np_f )) {
3588             ERR("Array check\n");
3589         }
3590         if (!PyArray_ISNOTSWAPPED(np_dx) ||
3591             !PyArray_ISNOTSWAPPED(np_f )) {
3592             ERR("Swapped\n");
3593         }
3594         if (!PyArray_ISFLOAT(np_dx) ||
3595             !PyArray_ISFLOAT(np_f )) {
3596             ERR("Float\n");
3597         }
3598         if ((PyArray_ITEMSIZE(np_dx) != sizeof(float)) ||
3599             (PyArray_ITEMSIZE(np_f ) != sizeof(float))) {
3600             ERR("sizeof float\n");
3601         }
3602         if ((PyArray_ITEMSIZE(np_dx) != sizeof(float))) {
3603             ERR("sizeof dx %i\n", (int)PyArray_ITEMSIZE(np_dx));
3604         }
3605         if ((PyArray_ITEMSIZE(np_f ) != sizeof(float))) {
3606             ERR("sizeof f %i\n", (int)PyArray_ITEMSIZE(np_f));
3607         }
3608         if (!(PyArray_NDIM(np_dx) == 1) ||
3609             !(PyArray_NDIM(np_f ) == 1)) {
3610             ERR("one-d\n");
3611         }
3612         if (!PyArray_ISCONTIGUOUS(np_dx) ||
3613             !PyArray_ISCONTIGUOUS(np_f )) {
3614             ERR("contig\n");
3615         }
3616         if (!PyArray_ISWRITEABLE(np_f)) {
3617             ERR("writable\n");
3618         }
3619 
3620 
3621         if (!PyArray_Check(np_dx) ||
3622             !PyArray_Check(np_f ) ||
3623             !PyArray_ISNOTSWAPPED(np_dx) ||
3624             !PyArray_ISNOTSWAPPED(np_f ) ||
3625             !PyArray_ISFLOAT(np_dx) ||
3626             !PyArray_ISFLOAT(np_f ) ||
3627             (PyArray_ITEMSIZE(np_dx) != sizeof(float)) ||
3628             (PyArray_ITEMSIZE(np_f ) != sizeof(float)) ||
3629             !(PyArray_NDIM(np_dx) == 1) ||
3630             !(PyArray_NDIM(np_f ) == 1) ||
3631             !PyArray_ISCONTIGUOUS(np_dx) ||
3632             !PyArray_ISCONTIGUOUS(np_f ) ||
3633             !PyArray_ISWRITEABLE(np_f)
3634             ) {
3635             ERR("Arrays aren't right type\n");
3636             return -1;
3637         }
3638         N = PyArray_DIM(np_dx, 0);
3639         if (PyArray_DIM(np_f, 0) != N) {
3640             ERR("Input and output must have same dimensions\n");
3641             return -1;
3642         }
3643         dx = PyArray_DATA(np_dx);
3644         f = PyArray_DATA(np_f);
3645         if (rangecheck) {
3646             for (i=N; i>0; i--, dx++, f++) {
3647                 float x = *dx;
3648                 int li = (int)((x - lut0) * Nlutunit);
3649                 if ((li < 0) || (li >= Nlut)) {
3650                     *f = 0.0;
3651                 } else {
3652                     *f = lut[li];
3653                 }
3654             }
3655         } else {
3656             for (i=N; i>0; i--, dx++, f++) {
3657                 float x = *dx;
3658                 int li = (int)((x - lut0) * Nlutunit);
3659                 *f = lut[li];
3660             }
3661         }
3662         return 0;
3663     }
3664 
lanczos_shift_image_c(PyObject * py_img,PyObject * py_weight,PyObject * py_outimg,PyObject * py_outweight,int order,double dx,double dy)3665     static int lanczos_shift_image_c(PyObject* py_img,
3666                                      PyObject* py_weight,
3667                                      PyObject* py_outimg,
3668                                      PyObject* py_outweight,
3669                                      int order, double dx, double dy) {
3670         int W,H;
3671         int i,j;
3672 
3673         lanczos_args_t lanczos;
3674 
3675         PyArray_Descr* dtype;
3676         int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED |
3677                NPY_ARRAY_NOTSWAPPED | NPY_ARRAY_ELEMENTSTRIDES;
3678         int reqout = req | NPY_ARRAY_WRITEABLE | NPY_ARRAY_UPDATEIFCOPY;
3679         double *img, *weight, *outimg, *outweight;
3680 
3681         PyArrayObject *np_img=NULL, *np_weight=NULL, *np_outimg=NULL, *np_outweight=NULL;
3682 
3683         weight = NULL;
3684         outweight = NULL;
3685         lanczos.order = order;
3686 
3687         /*
3688          printf("np_img:\n");
3689          print_array(np_img);
3690          printf("np_weight:\n");
3691          print_array(np_weight);
3692          printf("np_outimg:\n");
3693          print_array(np_outimg);
3694          printf("np_outweight:\n");
3695          print_array(np_outweight);
3696          */
3697 
3698         dtype = PyArray_DescrFromType(NPY_DOUBLE);
3699         Py_INCREF(dtype);
3700         np_img = (PyArrayObject*)PyArray_CheckFromAny(py_img, dtype, 2, 2, req, NULL);
3701         if (py_weight != Py_None) {
3702             Py_INCREF(dtype);
3703             np_weight = (PyArrayObject*)PyArray_CheckFromAny(py_weight, dtype, 2, 2, req, NULL);
3704             if (!np_weight) {
3705                 ERR("Failed to run PyArray_FromAny on np_weight\n");
3706                 return -1;
3707             }
3708         }
3709         Py_INCREF(dtype);
3710         np_outimg = (PyArrayObject*)PyArray_CheckFromAny(py_outimg, dtype, 2, 2, reqout, NULL);
3711         if (py_outweight != Py_None) {
3712             Py_INCREF(dtype);
3713             np_outweight = (PyArrayObject*)PyArray_CheckFromAny(py_outweight, dtype, 2, 2, reqout, NULL);
3714         }
3715         Py_DECREF(dtype);
3716         dtype = NULL;
3717 
3718         if (!np_img || !np_outimg ||
3719             ((py_outweight != Py_None) && !np_outweight)) {
3720             ERR("Failed to PyArray_FromAny the images (np_img=%p, np_outimg=%p, np_outweight=%p)\n",
3721                 np_img, np_outimg, np_outweight);
3722             return -1;
3723         }
3724 
3725         H = (int)PyArray_DIM(np_img, 0);
3726         W = (int)PyArray_DIM(np_img, 1);
3727 
3728         if ((PyArray_DIM(np_outimg, 0) != H) ||
3729             (PyArray_DIM(np_outimg, 1) != W)) {
3730             ERR("All images must have the same dimensions.\n");
3731             return -1;
3732         }
3733         if (np_weight) {
3734             if ((PyArray_DIM(np_weight, 0) != H) ||
3735                 (PyArray_DIM(np_weight, 1) != W)) {
3736                 ERR("All images must have the same dimensions.\n");
3737                 return -1;
3738             }
3739             weight = PyArray_DATA(np_weight);
3740         }
3741         if (np_outweight) {
3742             if ((PyArray_DIM(np_outweight, 0) != H) ||
3743                 (PyArray_DIM(np_outweight, 1) != W)) {
3744                 ERR("All images must have the same dimensions.\n");
3745                 return -1;
3746             }
3747             outweight = PyArray_DATA(np_outweight);
3748         }
3749 
3750         /*
3751          printf("np_img:\n");
3752          print_array(np_img);
3753          printf("np_weight:\n");
3754          print_array(np_weight);
3755          printf("np_outimg:\n");
3756          print_array(np_outimg);
3757          printf("np_outweight:\n");
3758          print_array(np_outweight);
3759          printf("weight = %p, outweight = %p\n", weight, outweight);
3760          */
3761 
3762         img       = PyArray_DATA(np_img);
3763         outimg    = PyArray_DATA(np_outimg);
3764 
3765         for (i=0; i<H; i++) {
3766             for (j=0; j<W; j++) {
3767                 double wt, val;
3768                 double px, py;
3769                 px = j - dx;
3770                 py = i - dy;
3771                 val = lanczos_resample_d(px, py, img, weight, W, H, &wt,
3772                                          &lanczos);
3773                 //printf("pixel %i,%i: wt %g\n", j, i, wt);
3774                 if (outweight) {
3775                     outimg[i*W + j] = val;
3776                     outweight[i*W + j] = wt;
3777                 } else {
3778                     outimg[i*W + j] = val / wt;
3779                 }
3780             }
3781         }
3782 
3783         /*
3784          if (np_img != Py_None) {
3785          Py_XDECREF(np_img);
3786          }
3787          if (np_weight != Py_None) {
3788          Py_XDECREF(np_weight);
3789          }
3790          if (np_outweight != Py_None) {
3791          Py_XDECREF(np_outweight);
3792          }
3793          if (np_outimg != Py_None) {
3794          Py_XDECREF(np_outimg);
3795          }
3796          */
3797         return 0;
3798     }
3799 
3800 
3801 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)3802 SWIG_pchar_descriptor(void)
3803 {
3804   static int init = 0;
3805   static swig_type_info* info = 0;
3806   if (!init) {
3807     info = SWIG_TypeQuery("_p_char");
3808     init = 1;
3809   }
3810   return info;
3811 }
3812 
3813 
3814 SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject * obj,char ** cptr,size_t * psize,int * alloc)3815 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3816 {
3817 #if PY_VERSION_HEX>=0x03000000
3818 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3819   if (PyBytes_Check(obj))
3820 #else
3821   if (PyUnicode_Check(obj))
3822 #endif
3823 #else
3824   if (PyString_Check(obj))
3825 #endif
3826   {
3827     char *cstr; Py_ssize_t len;
3828     int ret = SWIG_OK;
3829 #if PY_VERSION_HEX>=0x03000000
3830 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3831     if (!alloc && cptr) {
3832         /* We can't allow converting without allocation, since the internal
3833            representation of string in Python 3 is UCS-2/UCS-4 but we require
3834            a UTF-8 representation.
3835            TODO(bhy) More detailed explanation */
3836         return SWIG_RuntimeError;
3837     }
3838     obj = PyUnicode_AsUTF8String(obj);
3839     if (!obj)
3840       return SWIG_TypeError;
3841     if (alloc)
3842       *alloc = SWIG_NEWOBJ;
3843 #endif
3844     if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
3845       return SWIG_TypeError;
3846 #else
3847     if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
3848       return SWIG_TypeError;
3849 #endif
3850     if (cptr) {
3851       if (alloc) {
3852 	if (*alloc == SWIG_NEWOBJ) {
3853 	  *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3854 	  *alloc = SWIG_NEWOBJ;
3855 	} else {
3856 	  *cptr = cstr;
3857 	  *alloc = SWIG_OLDOBJ;
3858 	}
3859       } else {
3860 #if PY_VERSION_HEX>=0x03000000
3861 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3862 	*cptr = PyBytes_AsString(obj);
3863 #else
3864 	assert(0); /* Should never reach here with Unicode strings in Python 3 */
3865 #endif
3866 #else
3867 	*cptr = SWIG_Python_str_AsChar(obj);
3868         if (!*cptr)
3869           ret = SWIG_TypeError;
3870 #endif
3871       }
3872     }
3873     if (psize) *psize = len + 1;
3874 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3875     Py_XDECREF(obj);
3876 #endif
3877     return ret;
3878   } else {
3879 #if defined(SWIG_PYTHON_2_UNICODE)
3880 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3881 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3882 #endif
3883 #if PY_VERSION_HEX<0x03000000
3884     if (PyUnicode_Check(obj)) {
3885       char *cstr; Py_ssize_t len;
3886       if (!alloc && cptr) {
3887         return SWIG_RuntimeError;
3888       }
3889       obj = PyUnicode_AsUTF8String(obj);
3890       if (!obj)
3891         return SWIG_TypeError;
3892       if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3893         if (cptr) {
3894           if (alloc) *alloc = SWIG_NEWOBJ;
3895           *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3896         }
3897         if (psize) *psize = len + 1;
3898 
3899         Py_XDECREF(obj);
3900         return SWIG_OK;
3901       } else {
3902         Py_XDECREF(obj);
3903       }
3904     }
3905 #endif
3906 #endif
3907 
3908     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3909     if (pchar_descriptor) {
3910       void* vptr = 0;
3911       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3912 	if (cptr) *cptr = (char *) vptr;
3913 	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3914 	if (alloc) *alloc = SWIG_OLDOBJ;
3915 	return SWIG_OK;
3916       }
3917     }
3918   }
3919   return SWIG_TypeError;
3920 }
3921 
3922 
3923 
3924 
3925 
3926 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)3927 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3928 {
3929   if (carray) {
3930     if (size > INT_MAX) {
3931       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3932       return pchar_descriptor ?
3933 	SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3934     } else {
3935 #if PY_VERSION_HEX >= 0x03000000
3936 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3937       return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size));
3938 #else
3939       return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape");
3940 #endif
3941 #else
3942       return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
3943 #endif
3944     }
3945   } else {
3946     return SWIG_Py_Void();
3947   }
3948 }
3949 
3950 
3951 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtr(const char * cptr)3952 SWIG_FromCharPtr(const char *cptr)
3953 {
3954   return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3955 }
3956 
3957 
3958 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(PyObject * obj,unsigned long * val)3959 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3960 {
3961 #if PY_VERSION_HEX < 0x03000000
3962   if (PyInt_Check(obj)) {
3963     long v = PyInt_AsLong(obj);
3964     if (v >= 0) {
3965       if (val) *val = v;
3966       return SWIG_OK;
3967     } else {
3968       return SWIG_OverflowError;
3969     }
3970   } else
3971 #endif
3972   if (PyLong_Check(obj)) {
3973     unsigned long v = PyLong_AsUnsignedLong(obj);
3974     if (!PyErr_Occurred()) {
3975       if (val) *val = v;
3976       return SWIG_OK;
3977     } else {
3978       PyErr_Clear();
3979       return SWIG_OverflowError;
3980     }
3981   }
3982 #ifdef SWIG_PYTHON_CAST_MODE
3983   {
3984     int dispatch = 0;
3985     unsigned long v = PyLong_AsUnsignedLong(obj);
3986     if (!PyErr_Occurred()) {
3987       if (val) *val = v;
3988       return SWIG_AddCast(SWIG_OK);
3989     } else {
3990       PyErr_Clear();
3991     }
3992     if (!dispatch) {
3993       double d;
3994       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3995       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3996 	if (val) *val = (unsigned long)(d);
3997 	return res;
3998       }
3999     }
4000   }
4001 #endif
4002   return SWIG_TypeError;
4003 }
4004 
4005 
4006 SWIGINTERN int
SWIG_AsVal_unsigned_SS_char(PyObject * obj,unsigned char * val)4007 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
4008 {
4009   unsigned long v;
4010   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
4011   if (SWIG_IsOK(res)) {
4012     if ((v > UCHAR_MAX)) {
4013       return SWIG_OverflowError;
4014     } else {
4015       if (val) *val = (unsigned char)(v);
4016     }
4017   }
4018   return res;
4019 }
4020 
4021 
4022   #define SWIG_From_long   PyInt_FromLong
4023 
4024 
4025 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long(unsigned long value)4026 SWIG_From_unsigned_SS_long  (unsigned long value)
4027 {
4028   return (value > LONG_MAX) ?
4029     PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value));
4030 }
4031 
4032 
4033 SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_char(unsigned char value)4034 SWIG_From_unsigned_SS_char  (unsigned char value)
4035 {
4036   return SWIG_From_unsigned_SS_long  (value);
4037 }
4038 
4039 
4040 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(PyObject * obj,unsigned int * val)4041 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
4042 {
4043   unsigned long v;
4044   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
4045   if (SWIG_IsOK(res)) {
4046     if ((v > UINT_MAX)) {
4047       return SWIG_OverflowError;
4048     } else {
4049       if (val) *val = (unsigned int)(v);
4050     }
4051   }
4052   return res;
4053 }
4054 
4055 
4056 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_int(unsigned int value)4057   SWIG_From_unsigned_SS_int  (unsigned int value)
4058 {
4059   return PyInt_FromSize_t((size_t) value);
4060 }
4061 
new_anwcs_t(char * fn,int ext,int slen)4062 SWIGINTERN struct anwcs_t *new_anwcs_t(char *fn,int ext,int slen){
4063         if ((ext == -1) ||
4064             (starts_with(fn, "SIMPLE  =") && !file_exists(fn))) {
4065             // assume header string
4066             if (slen == 0) {
4067                  slen = (int)strlen(fn);
4068             }
4069             return anwcs_wcslib_from_string(fn, slen);
4070         }
4071         anwcs_t* w = anwcs_open(fn, ext);
4072         return w;
4073     }
delete_anwcs_t(struct anwcs_t * self)4074 SWIGINTERN void delete_anwcs_t(struct anwcs_t *self){ free(self); }
anwcs_t_pixel_scale(struct anwcs_t * self)4075 SWIGINTERN double anwcs_t_pixel_scale(struct anwcs_t *self){ return anwcs_pixel_scale(self); }
anwcs_t_get_center(struct anwcs_t * self,double * p_ra,double * p_dec)4076 SWIGINTERN void anwcs_t_get_center(struct anwcs_t *self,double *p_ra,double *p_dec){
4077         anwcs_get_radec_center_and_radius(self, p_ra, p_dec, NULL);
4078     }
anwcs_t_get_radius(struct anwcs_t * self,double * p_radius)4079 SWIGINTERN void anwcs_t_get_radius(struct anwcs_t *self,double *p_radius){
4080       anwcs_get_radec_center_and_radius(self, NULL, NULL, p_radius);
4081     }
anwcs_t_is_inside(struct anwcs_t * self,double ra,double dec)4082 SWIGINTERN anbool anwcs_t_is_inside(struct anwcs_t *self,double ra,double dec){
4083         return anwcs_radec_is_inside_image(self, ra, dec);
4084     }
anwcs_t_get_width(struct anwcs_t * self)4085 SWIGINTERN double anwcs_t_get_width(struct anwcs_t *self){
4086         return anwcs_imagew(self);
4087     }
anwcs_t_get_height(struct anwcs_t * self)4088 SWIGINTERN double anwcs_t_get_height(struct anwcs_t *self){
4089         return anwcs_imageh(self);
4090     }
anwcs_t_set_width(struct anwcs_t * self,int W)4091 SWIGINTERN void anwcs_t_set_width(struct anwcs_t *self,int W){
4092         int H = anwcs_imageh(self);
4093         anwcs_set_size(self, W, H);
4094     }
anwcs_t_set_height(struct anwcs_t * self,int H)4095 SWIGINTERN void anwcs_t_set_height(struct anwcs_t *self,int H){
4096         int W = anwcs_imagew(self);
4097         anwcs_set_size(self, W, H);
4098     }
anwcs_t_pixelxy2radec(struct anwcs_t * self,double x,double y,double * p_ra,double * p_dec)4099 SWIGINTERN void anwcs_t_pixelxy2radec(struct anwcs_t *self,double x,double y,double *p_ra,double *p_dec){
4100         anwcs_pixelxy2radec(self, x, y, p_ra, p_dec);
4101     }
anwcs_t_radec2pixelxy(struct anwcs_t * self,double ra,double dec,double * p_x,double * p_y)4102 SWIGINTERN int anwcs_t_radec2pixelxy(struct anwcs_t *self,double ra,double dec,double *p_x,double *p_y){
4103         return anwcs_radec2pixelxy(self, ra, dec, p_x, p_y);
4104     }
anwcs_t_write_to(struct anwcs_t * self,char const * filename)4105 SWIGINTERN int anwcs_t_write_to(struct anwcs_t *self,char const *filename){
4106         return anwcs_write(self, filename);
4107     }
new_tan_t__SWIG_0(char * fn,int ext,int only)4108 SWIGINTERN tan_t *new_tan_t__SWIG_0(char *fn,int ext,int only){
4109         tan_t* t = NULL;
4110         if (fn) {
4111             if (only) {
4112                 t = tan_read_header_file_ext_only(fn, ext, NULL);
4113             } else {
4114                 t = tan_read_header_file_ext(fn, ext, NULL);
4115             }
4116         } else {
4117             t = (tan_t*)calloc(1, sizeof(tan_t));
4118         }
4119     //      printf("tan_t: %p\n", t);
4120         if (!t) {
4121             // SWIG_exception(SWIG_RuntimeError, "Failed to read TAN WCS header");
4122             PyErr_SetString(PyExc_RuntimeError, "Failed to read TAN WCS header");
4123             return NULL;
4124         }
4125         return t;
4126     }
new_tan_t__SWIG_1(double crval1,double crval2,double crpix1,double crpix2,double cd11,double cd12,double cd21,double cd22,double imagew,double imageh)4127 SWIGINTERN tan_t *new_tan_t__SWIG_1(double crval1,double crval2,double crpix1,double crpix2,double cd11,double cd12,double cd21,double cd22,double imagew,double imageh){
4128         tan_t* t = (tan_t*)calloc(1, sizeof(tan_t));
4129         t->crval[0] = crval1;
4130         t->crval[1] = crval2;
4131         t->crpix[0] = crpix1;
4132         t->crpix[1] = crpix2;
4133         t->cd[0][0] = cd11;
4134         t->cd[0][1] = cd12;
4135         t->cd[1][0] = cd21;
4136         t->cd[1][1] = cd22;
4137         t->imagew = imagew;
4138         t->imageh = imageh;
4139         return t;
4140     }
new_tan_t__SWIG_2(tan_t const * other)4141 SWIGINTERN tan_t *new_tan_t__SWIG_2(tan_t const *other){
4142         tan_t* t = (tan_t*)calloc(1, sizeof(tan_t));
4143         memcpy(t, other, sizeof(tan_t));
4144         return t;
4145     }
new_tan_t__SWIG_3(qfits_header const * hdr)4146 SWIGINTERN tan_t *new_tan_t__SWIG_3(qfits_header const *hdr){
4147         tan_t* t = tan_read_header(hdr, NULL);
4148         return t;
4149     }
delete_tan_t(tan_t * self)4150 SWIGINTERN void delete_tan_t(tan_t *self){ free(self); }
tan_t_set(tan_t * self,double crval1,double crval2,double crpix1,double crpix2,double cd11,double cd12,double cd21,double cd22,double imagew,double imageh)4151 SWIGINTERN void tan_t_set(tan_t *self,double crval1,double crval2,double crpix1,double crpix2,double cd11,double cd12,double cd21,double cd22,double imagew,double imageh){
4152         self->crval[0] = crval1;
4153         self->crval[1] = crval2;
4154         self->crpix[0] = crpix1;
4155         self->crpix[1] = crpix2;
4156         self->cd[0][0] = cd11;
4157         self->cd[0][1] = cd12;
4158         self->cd[1][0] = cd21;
4159         self->cd[1][1] = cd22;
4160         self->imagew = imagew;
4161         self->imageh = imageh;
4162     }
tan_t_is_inside(tan_t * self,double ra,double dec)4163 SWIGINTERN anbool tan_t_is_inside(tan_t *self,double ra,double dec){
4164         return tan_is_inside_image(self, ra, dec);
4165     }
tan_t_scale(tan_t * self,double factor)4166 SWIGINTERN tan_t *tan_t_scale(tan_t *self,double factor){
4167         tan_t* t = (tan_t*)calloc(1, sizeof(tan_t));
4168         tan_scale(self, t, factor);
4169         return t;
4170     }
tan_t_rotate(tan_t * self,double angle_deg)4171 SWIGINTERN tan_t *tan_t_rotate(tan_t *self,double angle_deg){
4172         tan_t* t = (tan_t*)calloc(1, sizeof(tan_t));
4173         tan_rotate(self, t, angle_deg);
4174         return t;
4175     }
tan_t_get_width(tan_t * self)4176 SWIGINTERN double tan_t_get_width(tan_t *self){
4177         return self->imagew;
4178     }
tan_t_get_height(tan_t * self)4179 SWIGINTERN double tan_t_get_height(tan_t *self){
4180         return self->imageh;
4181     }
tan_t_set_width(tan_t * self,double x)4182 SWIGINTERN void tan_t_set_width(tan_t *self,double x){
4183         self->imagew = x;
4184     }
tan_t_set_height(tan_t * self,double x)4185 SWIGINTERN void tan_t_set_height(tan_t *self,double x){
4186         self->imageh = x;
4187     }
tan_t_pixel_scale(tan_t * self)4188 SWIGINTERN double tan_t_pixel_scale(tan_t *self){ return tan_pixel_scale(self); }
tan_t_radec_center(tan_t * self,double * p_ra,double * p_dec)4189 SWIGINTERN void tan_t_radec_center(tan_t *self,double *p_ra,double *p_dec){
4190         tan_get_radec_center(self, p_ra, p_dec);
4191     }
tan_t_radius(tan_t * self)4192 SWIGINTERN double tan_t_radius(tan_t *self){
4193         return tan_get_radius_deg(self);
4194     }
tan_t_xyzcenter(tan_t * self,double * p_x,double * p_y,double * p_z)4195 SWIGINTERN void tan_t_xyzcenter(tan_t *self,double *p_x,double *p_y,double *p_z){
4196         double xyz[3];
4197         tan_pixelxy2xyzarr(self, 0.5+self->imagew/2.0, 0.5+self->imageh/2.0, xyz);
4198         *p_x = xyz[0];
4199         *p_y = xyz[1];
4200         *p_z = xyz[2];
4201     }
tan_t_pixelxy2xyz(tan_t * self,double x,double y,double * p_x,double * p_y,double * p_z)4202 SWIGINTERN void tan_t_pixelxy2xyz(tan_t *self,double x,double y,double *p_x,double *p_y,double *p_z){
4203         double xyz[3];
4204         tan_pixelxy2xyzarr(self, x, y, xyz);
4205         *p_x = xyz[0];
4206         *p_y = xyz[1];
4207         *p_z = xyz[2];
4208     }
tan_t_pixelxy2radec(tan_t * self,double x,double y,double * p_ra,double * p_dec)4209 SWIGINTERN void tan_t_pixelxy2radec(tan_t *self,double x,double y,double *p_ra,double *p_dec){
4210         tan_pixelxy2radec(self, x, y, p_ra, p_dec);
4211     }
tan_t_radec2pixelxy(tan_t * self,double ra,double dec,double * p_x,double * p_y)4212 SWIGINTERN int tan_t_radec2pixelxy(tan_t *self,double ra,double dec,double *p_x,double *p_y){
4213         return tan_radec2pixelxy(self, ra, dec, p_x, p_y);
4214     }
tan_t_iwc2pixelxy(tan_t * self,double u,double v,double * p_x,double * p_y)4215 SWIGINTERN void tan_t_iwc2pixelxy(tan_t *self,double u,double v,double *p_x,double *p_y){
4216         tan_iwc2pixelxy(self, u, v, p_x, p_y);
4217     }
tan_t_pixelxy2iwc(tan_t * self,double x,double y,double * p_x,double * p_y)4218 SWIGINTERN void tan_t_pixelxy2iwc(tan_t *self,double x,double y,double *p_x,double *p_y){
4219         tan_pixelxy2iwc(self, x, y, p_x, p_y);
4220     }
tan_t_iwc2radec(tan_t * self,double u,double v,double * p_ra,double * p_dec)4221 SWIGINTERN void tan_t_iwc2radec(tan_t *self,double u,double v,double *p_ra,double *p_dec){
4222         tan_iwc2radec(self, u, v, p_ra, p_dec);
4223     }
tan_t_radec2iwc(tan_t * self,double ra,double dec,double * p_x,double * p_y)4224 SWIGINTERN int tan_t_radec2iwc(tan_t *self,double ra,double dec,double *p_x,double *p_y){
4225         return tan_radec2iwc(self, ra, dec, p_x, p_y);
4226     }
tan_t_xyz2pixelxy(tan_t * self,double x,double y,double z,double * p_x,double * p_y)4227 SWIGINTERN int tan_t_xyz2pixelxy(tan_t *self,double x,double y,double z,double *p_x,double *p_y){
4228         double xyz[3];
4229         xyz[0] = x;
4230         xyz[1] = y;
4231         xyz[2] = z;
4232         return tan_xyzarr2pixelxy(self, xyz, p_x, p_y);
4233     }
tan_t_write_to(tan_t * self,char const * filename)4234 SWIGINTERN int tan_t_write_to(tan_t *self,char const *filename){
4235         return tan_write_to_file(self, filename);
4236     }
tan_t_set_crval(tan_t * self,double ra,double dec)4237 SWIGINTERN void tan_t_set_crval(tan_t *self,double ra,double dec){
4238         self->crval[0] = ra;
4239         self->crval[1] = dec;
4240     }
tan_t_set_crpix(tan_t * self,double x,double y)4241 SWIGINTERN void tan_t_set_crpix(tan_t *self,double x,double y){
4242         self->crpix[0] = x;
4243         self->crpix[1] = y;
4244     }
tan_t_set_cd(tan_t * self,double cd11,double cd12,double cd21,double cd22)4245 SWIGINTERN void tan_t_set_cd(tan_t *self,double cd11,double cd12,double cd21,double cd22){
4246         self->cd[0][0] = cd11;
4247         self->cd[0][1] = cd12;
4248         self->cd[1][0] = cd21;
4249         self->cd[1][1] = cd22;
4250     }
tan_t_set_imagesize(tan_t * self,double w,double h)4251 SWIGINTERN void tan_t_set_imagesize(tan_t *self,double w,double h){
4252         self->imagew = w;
4253         self->imageh = h;
4254     }
new_sip_t__SWIG_0(char const * fn,int ext)4255 SWIGINTERN sip_t *new_sip_t__SWIG_0(char const *fn,int ext){
4256         if (fn)
4257             return sip_read_header_file_ext_only(fn, ext, NULL);
4258         sip_t* t = (sip_t*)calloc(1, sizeof(sip_t));
4259         return t;
4260     }
new_sip_t__SWIG_1(char const * s,int len,int XXX)4261 SWIGINTERN sip_t *new_sip_t__SWIG_1(char const *s,int len,int XXX){
4262         return sip_from_string(s, len, NULL);
4263     }
new_sip_t__SWIG_2(sip_t const * other)4264 SWIGINTERN sip_t *new_sip_t__SWIG_2(sip_t const *other){
4265         sip_t* t = (sip_t*)calloc(1, sizeof(sip_t));
4266         memcpy(t, other, sizeof(sip_t));
4267         return t;
4268     }
new_sip_t__SWIG_3(tan_t const * other)4269 SWIGINTERN sip_t *new_sip_t__SWIG_3(tan_t const *other){
4270         sip_t* t = (sip_t*)calloc(1, sizeof(sip_t));
4271         memcpy(&(t->wcstan), other, sizeof(tan_t));
4272         return t;
4273     }
new_sip_t__SWIG_4(qfits_header const * hdr)4274 SWIGINTERN sip_t *new_sip_t__SWIG_4(qfits_header const *hdr){
4275         sip_t* t = sip_read_header(hdr, NULL);
4276         return t;
4277     }
delete_sip_t(sip_t * self)4278 SWIGINTERN void delete_sip_t(sip_t *self){ free(self); }
sip_t_get_subimage(sip_t * self,int x0,int y0,int w,int h)4279 SWIGINTERN sip_t *sip_t_get_subimage(sip_t *self,int x0,int y0,int w,int h){
4280         sip_t* sub = malloc(sizeof(sip_t));
4281         memcpy(sub, self, sizeof(sip_t));
4282         sub->wcstan.crpix[0] -= x0;
4283         sub->wcstan.crpix[1] -= y0;
4284         sub->wcstan.imagew = w;
4285         sub->wcstan.imageh = h;
4286         return sub;
4287     }
sip_t_scale(sip_t * self,double factor)4288 SWIGINTERN sip_t *sip_t_scale(sip_t *self,double factor){
4289         sip_t* s = (sip_t*)calloc(1, sizeof(sip_t));
4290         sip_scale(self, s, factor);
4291         return s;
4292     }
sip_t_pixel_scale(sip_t * self)4293 SWIGINTERN double sip_t_pixel_scale(sip_t *self){ return sip_pixel_scale(self); }
sip_t_radec_center(sip_t * self,double * p_ra,double * p_dec)4294 SWIGINTERN void sip_t_radec_center(sip_t *self,double *p_ra,double *p_dec){
4295         sip_get_radec_center(self, p_ra, p_dec);
4296     }
sip_t_radius(sip_t * self)4297 SWIGINTERN double sip_t_radius(sip_t *self){
4298         return sip_get_radius_deg(self);
4299     }
sip_t_write_to(sip_t * self,char const * filename)4300 SWIGINTERN int sip_t_write_to(sip_t *self,char const *filename){
4301         return sip_write_to_file(self, filename);
4302     }
sip_t_ensure_inverse_polynomials(sip_t * self)4303 SWIGINTERN int sip_t_ensure_inverse_polynomials(sip_t *self){
4304         return sip_ensure_inverse_polynomials(self);
4305     }
sip_t_pixelxy2xyz(sip_t * self,double x,double y,double * p_x,double * p_y,double * p_z)4306 SWIGINTERN void sip_t_pixelxy2xyz(sip_t *self,double x,double y,double *p_x,double *p_y,double *p_z){
4307         double xyz[3];
4308         sip_pixelxy2xyzarr(self, x, y, xyz);
4309         *p_x = xyz[0];
4310         *p_y = xyz[1];
4311         *p_z = xyz[2];
4312     }
sip_t_pixelxy2radec(sip_t * self,double x,double y,double * p_ra,double * p_dec)4313 SWIGINTERN void sip_t_pixelxy2radec(sip_t *self,double x,double y,double *p_ra,double *p_dec){
4314         sip_pixelxy2radec(self, x, y, p_ra, p_dec);
4315     }
sip_t_radec2pixelxy(sip_t * self,double ra,double dec,double * p_x,double * p_y)4316 SWIGINTERN int sip_t_radec2pixelxy(sip_t *self,double ra,double dec,double *p_x,double *p_y){
4317         return sip_radec2pixelxy(self, ra, dec, p_x, p_y);
4318     }
sip_t_iwc2pixelxy(sip_t * self,double u,double v,double * p_x,double * p_y)4319 SWIGINTERN void sip_t_iwc2pixelxy(sip_t *self,double u,double v,double *p_x,double *p_y){
4320         sip_iwc2pixelxy(self, u, v, p_x, p_y);
4321     }
sip_t_pixelxy2iwc(sip_t * self,double x,double y,double * p_x,double * p_y)4322 SWIGINTERN void sip_t_pixelxy2iwc(sip_t *self,double x,double y,double *p_x,double *p_y){
4323         sip_pixelxy2iwc(self, x, y, p_x, p_y);
4324     }
sip_t_iwc2radec(sip_t * self,double u,double v,double * p_ra,double * p_dec)4325 SWIGINTERN void sip_t_iwc2radec(sip_t *self,double u,double v,double *p_ra,double *p_dec){
4326         sip_iwc2radec(self, u, v, p_ra, p_dec);
4327     }
sip_t_radec2iwc(sip_t * self,double ra,double dec,double * p_x,double * p_y)4328 SWIGINTERN int sip_t_radec2iwc(sip_t *self,double ra,double dec,double *p_x,double *p_y){
4329         return sip_radec2iwc(self, ra, dec, p_x, p_y);
4330     }
sip_t_xyz2pixelxy(sip_t * self,double x,double y,double z,double * p_x,double * p_y)4331 SWIGINTERN int sip_t_xyz2pixelxy(sip_t *self,double x,double y,double z,double *p_x,double *p_y){
4332         double xyz[3];
4333         xyz[0] = x;
4334         xyz[1] = y;
4335         xyz[2] = z;
4336         return sip_xyzarr2pixelxy(self, xyz, p_x, p_y);
4337     }
sip_t_is_inside(sip_t * self,double ra,double dec)4338 SWIGINTERN anbool sip_t_is_inside(sip_t *self,double ra,double dec){
4339        return sip_is_inside_image(self, ra, dec);
4340     }
sip_t_set_a_term(sip_t * self,int i,int j,double val)4341 SWIGINTERN void sip_t_set_a_term(sip_t *self,int i,int j,double val){
4342         checkorder(i, j);
4343         self->a[i][j] = val;
4344     }
sip_t_set_b_term(sip_t * self,int i,int j,double val)4345 SWIGINTERN void sip_t_set_b_term(sip_t *self,int i,int j,double val){
4346         checkorder(i, j);
4347         self->b[i][j] = val;
4348     }
sip_t_set_ap_term(sip_t * self,int i,int j,double val)4349 SWIGINTERN void sip_t_set_ap_term(sip_t *self,int i,int j,double val){
4350         checkorder(i, j);
4351         self->ap[i][j] = val;
4352     }
sip_t_set_bp_term(sip_t * self,int i,int j,double val)4353 SWIGINTERN void sip_t_set_bp_term(sip_t *self,int i,int j,double val){
4354         checkorder(i, j);
4355         self->bp[i][j] = val;
4356     }
sip_t_get_a_term(sip_t * self,int i,int j)4357 SWIGINTERN double sip_t_get_a_term(sip_t *self,int i,int j){
4358         checkorder(i, j);
4359         return self->a[i][j];
4360     }
sip_t_get_b_term(sip_t * self,int i,int j)4361 SWIGINTERN double sip_t_get_b_term(sip_t *self,int i,int j){
4362         checkorder(i, j);
4363         return self->b[i][j];
4364     }
sip_t_get_ap_term(sip_t * self,int i,int j)4365 SWIGINTERN double sip_t_get_ap_term(sip_t *self,int i,int j){
4366         checkorder(i, j);
4367         return self->ap[i][j];
4368     }
sip_t_get_bp_term(sip_t * self,int i,int j)4369 SWIGINTERN double sip_t_get_bp_term(sip_t *self,int i,int j){
4370         checkorder(i, j);
4371         return self->bp[i][j];
4372     }
sip_t_set_width(sip_t * self,double x)4373 SWIGINTERN void sip_t_set_width(sip_t *self,double x){
4374         self->wcstan.imagew = x;
4375     }
sip_t_set_height(sip_t * self,double x)4376 SWIGINTERN void sip_t_set_height(sip_t *self,double x){
4377         self->wcstan.imageh = x;
4378     }
sip_t_get_width(sip_t * self)4379 SWIGINTERN double sip_t_get_width(sip_t *self){
4380         return self->wcstan.imagew;
4381     }
sip_t_get_height(sip_t * self)4382 SWIGINTERN double sip_t_get_height(sip_t *self){
4383         return self->wcstan.imageh;
4384     }
sip_t_get_distortion(sip_t * self,double x,double y,double * p_x,double * p_y)4385 SWIGINTERN void sip_t_get_distortion(sip_t *self,double x,double y,double *p_x,double *p_y){
4386         return sip_pixel_distortion(self, x, y, p_x, p_y);
4387     }
sip_t_get_undistortion(sip_t * self,double x,double y,double * p_x,double * p_y)4388 SWIGINTERN void sip_t_get_undistortion(sip_t *self,double x,double y,double *p_x,double *p_y){
4389         return sip_pixel_undistortion(self, x, y, p_x, p_y);
4390     }
4391 
4392 
4393   // Wrapper on coadd_add_image that accepts numpy arrays.
4394 
coadd_add_numpy(coadd_t * c,PyObject * py_img,PyObject * py_weight,float fweight,const anwcs_t * wcs)4395   static int coadd_add_numpy(coadd_t* c,
4396                              PyObject* py_img, PyObject* py_weight,
4397                              float fweight, const anwcs_t* wcs) {
4398     PyArray_Descr* dtype = PyArray_DescrFromType(NPY_FLOAT);
4399     int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED | NPY_ARRAY_NOTSWAPPED | NPY_ARRAY_ELEMENTSTRIDES;
4400     float *img, *weight=NULL;
4401 
4402     PyArrayObject *np_img=NULL, *np_weight=NULL;
4403 
4404     Py_INCREF(dtype);
4405     np_img = (PyArrayObject*)PyArray_CheckFromAny(py_img, dtype, 2, 2, req, NULL);
4406     img = PyArray_DATA(np_img);
4407     if (!np_img) {
4408       ERR("Failed to PyArray_FromAny the image\n");
4409       Py_XDECREF(np_img);
4410       Py_DECREF(dtype);
4411       return -1;
4412     }
4413     if (py_weight != Py_None) {
4414       Py_INCREF(dtype);
4415       np_weight = (PyArrayObject*)PyArray_CheckFromAny(py_weight, dtype, 2, 2, req, NULL);
4416       if (!np_weight) {
4417         ERR("Failed to PyArray_FromAny the weight\n");
4418         Py_XDECREF(np_weight);
4419         Py_DECREF(dtype);
4420         return -1;
4421       }
4422       weight = PyArray_DATA(np_weight);
4423     }
4424 
4425     int rtn = coadd_add_image(c, img, weight, fweight, wcs);
4426 
4427     Py_DECREF(np_img);
4428     if (weight) {
4429       Py_DECREF(np_weight);
4430     }
4431     Py_DECREF(dtype);
4432     return rtn;
4433   }
4434 
coadd_get_snapshot_numpy(coadd_t * co,float badpix)4435   static PyObject* coadd_get_snapshot_numpy(coadd_t* co, float badpix) {
4436     npy_intp dim[2];
4437     PyObject* npimg;
4438     dim[0] = co->H;
4439     dim[1] = co->W;
4440     npimg = PyArray_EMPTY(2, dim, NPY_FLOAT, 0);
4441     coadd_get_snapshot(co, PyArray_DATA((PyArrayObject*)npimg), badpix);
4442     return npimg;
4443   }
4444 
fit_sip_wcs_py(PyObject * py_starxyz,PyObject * py_fieldxy,PyObject * py_weights,tan_t * tanin,int sip_order,int inv_order)4445   static sip_t* fit_sip_wcs_py(PyObject* py_starxyz,
4446                               PyObject* py_fieldxy,
4447                               PyObject* py_weights,
4448                               tan_t* tanin,
4449                               int sip_order,
4450                               int inv_order) {
4451       PyArray_Descr* dtype = PyArray_DescrFromType(NPY_DOUBLE);
4452       int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED | NPY_ARRAY_NOTSWAPPED |
4453           NPY_ARRAY_ELEMENTSTRIDES;
4454       PyArrayObject *np_starxyz=NULL, *np_fieldxy=NULL, *np_weights=NULL;
4455 
4456       Py_INCREF(dtype);
4457       np_starxyz = (PyArrayObject*)PyArray_CheckFromAny(py_starxyz, dtype, 2, 2, req, NULL);
4458       Py_INCREF(dtype);
4459       np_fieldxy = (PyArrayObject*)PyArray_CheckFromAny(py_fieldxy, dtype, 2, 2, req, NULL);
4460       if (!np_starxyz || !np_fieldxy) {
4461           Py_DECREF(dtype);
4462           Py_DECREF(dtype);
4463           printf("Failed to convert starxyz or fieldxy to numpy double arrays\n");
4464           return NULL;
4465       }
4466       if (py_weights != Py_None) {
4467           Py_INCREF(dtype);
4468           np_weights = (PyArrayObject*)PyArray_CheckFromAny(py_weights, dtype, 1, 1, req,NULL);
4469           if (!np_weights) {
4470               Py_DECREF(dtype);
4471               printf("Failed to convert weights to numpy double array\n");
4472               return NULL;
4473           }
4474       }
4475       Py_DECREF(dtype);
4476       dtype = NULL;
4477 
4478       int M = (int)PyArray_DIM(np_starxyz, 0);
4479       if (PyArray_DIM(np_fieldxy, 0) != M) {
4480           printf("Expected starxyz and fieldxy to have the same length\n");
4481           return NULL;
4482       }
4483       if (np_weights && (PyArray_DIM(np_weights, 0) != M)) {
4484           printf("Expected starxyz and weights to have the same length\n");
4485           return NULL;
4486       }
4487       if ((PyArray_DIM(np_starxyz, 1) != 3) ||
4488           (PyArray_DIM(np_fieldxy, 1) != 2)) {
4489           printf("Expected starxyz Mx3 and fieldxy Mx2\n");
4490           return NULL;
4491       }
4492 
4493       sip_t* sipout = calloc(1, sizeof(sip_t));
4494 
4495       double* weights = NULL;
4496       if (np_weights)
4497           weights = PyArray_DATA(np_weights);
4498 
4499       int doshift = 1;
4500       int rtn = fit_sip_wcs(PyArray_DATA(np_starxyz),
4501                             PyArray_DATA(np_fieldxy),
4502                             weights, M, tanin, sip_order, inv_order,
4503                             doshift, sipout);
4504       if (rtn) {
4505           free(sipout);
4506           printf("fit_sip_wcs() returned %i\n", rtn);
4507           return NULL;
4508       }
4509       return sipout;
4510   }
4511 
4512 
4513 
4514 
4515 
4516     typedef anbool (*f_2to2ok)(const void*, double, double, double*, double*);
4517     typedef void   (*f_2to2)  (const void*, double, double, double*, double*);
4518     typedef int    (*f_2to2i) (const void*, double, double, double*, double*);
4519 
4520     static PyObject* broadcast_2to2ok
4521         (
4522          //anbool func(const void*, double, double, double*, double*),
4523          f_2to2ok func,
4524          const void* baton,
4525          PyObject* in1, PyObject* in2);
4526 
4527     static PyObject* broadcast_2to2
4528         (
4529          //void func(const void*, double, double, double*, double*),
4530          f_2to2 func,
4531          const void* baton,
4532          PyObject* in1, PyObject* in2);
4533 
4534     static PyObject* broadcast_2to2i
4535         (
4536          //int func(const void*, double, double, double*, double*),
4537          f_2to2i func,
4538          const void* baton,
4539          PyObject* in1, PyObject* in2);
4540 
tan_rd2xy_wrapper(const tan_t * wcs,PyObject * in1,PyObject * in2)4541 static PyObject* tan_rd2xy_wrapper(const tan_t* wcs,
4542                                    PyObject* in1, PyObject* in2) {
4543     return broadcast_2to2ok((f_2to2ok)tan_radec2pixelxy, wcs, in1, in2);
4544 }
sip_rd2xy_wrapper(const sip_t * wcs,PyObject * in1,PyObject * in2)4545 static PyObject* sip_rd2xy_wrapper(const sip_t* wcs,
4546                                    PyObject* in1, PyObject* in2) {
4547     return broadcast_2to2ok((f_2to2ok)sip_radec2pixelxy, wcs, in1, in2);
4548 }
anwcs_rd2xy_wrapper(const anwcs_t * wcs,PyObject * in1,PyObject * in2)4549 static PyObject* anwcs_rd2xy_wrapper(const anwcs_t* wcs,
4550                                      PyObject* in1, PyObject* in2) {
4551     return broadcast_2to2i((f_2to2i)anwcs_radec2pixelxy, wcs, in1, in2);
4552 }
4553 
tan_iwc2xy_wrapper(const tan_t * wcs,PyObject * in1,PyObject * in2)4554 static PyObject* tan_iwc2xy_wrapper(const tan_t* wcs,
4555                                    PyObject* in1, PyObject* in2) {
4556     return broadcast_2to2((f_2to2)tan_iwc2pixelxy, wcs, in1, in2);
4557 }
sip_iwc2xy_wrapper(const sip_t * wcs,PyObject * in1,PyObject * in2)4558 static PyObject* sip_iwc2xy_wrapper(const sip_t* wcs,
4559                                    PyObject* in1, PyObject* in2) {
4560     return broadcast_2to2((f_2to2)sip_iwc2pixelxy, wcs, in1, in2);
4561 }
4562 
tan_xy2iwc_wrapper(const tan_t * wcs,PyObject * in1,PyObject * in2)4563 static PyObject* tan_xy2iwc_wrapper(const tan_t* wcs,
4564                                    PyObject* in1, PyObject* in2) {
4565     return broadcast_2to2((f_2to2)tan_pixelxy2iwc, wcs, in1, in2);
4566 }
sip_xy2iwc_wrapper(const sip_t * wcs,PyObject * in1,PyObject * in2)4567 static PyObject* sip_xy2iwc_wrapper(const sip_t* wcs,
4568                                    PyObject* in1, PyObject* in2) {
4569     return broadcast_2to2((f_2to2)sip_pixelxy2iwc, wcs, in1, in2);
4570 }
4571 
tan_iwc2rd_wrapper(const tan_t * wcs,PyObject * in1,PyObject * in2)4572 static PyObject* tan_iwc2rd_wrapper(const tan_t* wcs,
4573                                    PyObject* in1, PyObject* in2) {
4574     return broadcast_2to2((f_2to2)tan_iwc2radec, wcs, in1, in2);
4575 }
sip_iwc2rd_wrapper(const sip_t * wcs,PyObject * in1,PyObject * in2)4576 static PyObject* sip_iwc2rd_wrapper(const sip_t* wcs,
4577                                    PyObject* in1, PyObject* in2) {
4578     return broadcast_2to2((f_2to2)sip_iwc2radec, wcs, in1, in2);
4579 }
4580 
tan_rd2iwc_wrapper(const tan_t * wcs,PyObject * in1,PyObject * in2)4581 static PyObject* tan_rd2iwc_wrapper(const tan_t* wcs,
4582                                    PyObject* in1, PyObject* in2) {
4583     return broadcast_2to2ok((f_2to2ok)tan_radec2iwc, wcs, in1, in2);
4584 }
sip_rd2iwc_wrapper(const sip_t * wcs,PyObject * in1,PyObject * in2)4585 static PyObject* sip_rd2iwc_wrapper(const sip_t* wcs,
4586                                    PyObject* in1, PyObject* in2) {
4587     return broadcast_2to2ok((f_2to2ok)sip_radec2iwc, wcs, in1, in2);
4588 }
4589 
tan_xy2rd_wrapper(const tan_t * wcs,PyObject * in1,PyObject * in2)4590 static PyObject* tan_xy2rd_wrapper(const tan_t* wcs,
4591                                    PyObject* in1, PyObject* in2) {
4592     return broadcast_2to2((f_2to2)tan_pixelxy2radec, wcs, in1, in2);
4593 }
sip_xy2rd_wrapper(const sip_t * wcs,PyObject * in1,PyObject * in2)4594 static PyObject* sip_xy2rd_wrapper(const sip_t* wcs,
4595                                    PyObject* in1, PyObject* in2) {
4596     return broadcast_2to2((f_2to2)sip_pixelxy2radec, wcs, in1, in2);
4597 }
anwcs_xy2rd_wrapper(const anwcs_t * wcs,PyObject * in1,PyObject * in2)4598 static PyObject* anwcs_xy2rd_wrapper(const anwcs_t* wcs,
4599                                    PyObject* in1, PyObject* in2) {
4600     return broadcast_2to2i((f_2to2i)anwcs_pixelxy2radec, wcs, in1, in2);
4601 }
4602 
broadcast_2to2ok(f_2to2ok func,const void * baton,PyObject * in1,PyObject * in2)4603     static PyObject* broadcast_2to2ok
4604         (
4605          //anbool func(const void*, double, double, double*, double*),
4606          f_2to2ok func,
4607          const void* baton,
4608          PyObject* in1, PyObject* in2) {
4609 
4610         NpyIter *iter = NULL;
4611         NpyIter_IterNextFunc *iternext;
4612         PyArrayObject *op[5];
4613         PyObject *ret;
4614         npy_uint32 flags;
4615         npy_uint32 op_flags[5];
4616         npy_intp *innersizeptr;
4617         char **dataptrarray;
4618         npy_intp* strideptr;
4619         PyArray_Descr* dtypes[5];
4620         npy_intp i, N;
4621 
4622         // we'll do the inner loop ourselves
4623         flags = NPY_ITER_EXTERNAL_LOOP;
4624         // use buffers to satisfy dtype casts
4625         flags |= NPY_ITER_BUFFERED;
4626         // grow inner loop
4627         flags |= NPY_ITER_GROWINNER;
4628 
4629         op[0] = (PyArrayObject*)PyArray_FromAny(in1, NULL, 0, 0, 0, NULL);
4630         op[1] = (PyArrayObject*)PyArray_FromAny(in2, NULL, 0, 0, 0, NULL);
4631         // automatically allocate the output arrays.
4632         op[2] = NULL;
4633         op[3] = NULL;
4634         op[4] = NULL;
4635 
4636         if ((PyArray_Size((PyObject*)op[0]) == 0) ||
4637             (PyArray_Size((PyObject*)op[1]) == 0)) {
4638             // empty inputs -- empty outputs
4639             npy_intp dim = 0;
4640             ret = Py_BuildValue("(NNN)",
4641                                 PyArray_SimpleNew(1, &dim, NPY_BOOL),
4642                                 PyArray_SimpleNew(1, &dim, NPY_DOUBLE),
4643                                 PyArray_SimpleNew(1, &dim, NPY_DOUBLE));
4644             goto cleanup;
4645         }
4646 
4647         op_flags[0] = NPY_ITER_READONLY | NPY_ITER_NBO;
4648         op_flags[1] = NPY_ITER_READONLY | NPY_ITER_NBO;
4649         op_flags[2] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO;
4650         op_flags[3] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO;
4651         op_flags[4] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO;
4652 
4653         dtypes[0] = PyArray_DescrFromType(NPY_DOUBLE);
4654         dtypes[1] = PyArray_DescrFromType(NPY_DOUBLE);
4655         dtypes[2] = PyArray_DescrFromType(NPY_DOUBLE);
4656         dtypes[3] = PyArray_DescrFromType(NPY_DOUBLE);
4657         dtypes[4] = PyArray_DescrFromType(NPY_BOOL);
4658 
4659         iter = NpyIter_MultiNew(5, op, flags, NPY_KEEPORDER, NPY_SAFE_CASTING,
4660                                 op_flags, dtypes);
4661         for (i=0; i<5; i++)
4662             Py_DECREF(dtypes[i]);
4663 
4664         if (!iter)
4665             return NULL;
4666 
4667         iternext = NpyIter_GetIterNext(iter, NULL);
4668         strideptr = NpyIter_GetInnerStrideArray(iter);
4669         // The inner loop size and data pointers may change during the
4670         // loop, so just cache the addresses.
4671         innersizeptr = NpyIter_GetInnerLoopSizePtr(iter);
4672         dataptrarray = NpyIter_GetDataPtrArray(iter);
4673 
4674         do {
4675             // are the inputs contiguous?  (Outputs will be, since we
4676             // allocated them)
4677             if ((strideptr[0] == sizeof(double)) &&
4678                 (strideptr[1] == sizeof(double))) {
4679                 // printf("Contiguous inputs; going fast\n");
4680                 double* din1  = (double*)(dataptrarray[0]);
4681                 double* din2  = (double*)(dataptrarray[1]);
4682                 double* dout1 = (double*)(dataptrarray[2]);
4683                 double* dout2 = (double*)(dataptrarray[3]);
4684                 char* ok = dataptrarray[4];
4685                 N = *innersizeptr;
4686                 while (N--) {
4687                     *ok = func(baton, *din1, *din2, dout1, dout2);
4688                     ok++;
4689                     din1++;
4690                     din2++;
4691                     dout1++;
4692                     dout2++;
4693                 }
4694             } else {
4695                 // printf("Non-contiguous inputs; going slow\n");
4696                 npy_intp stride1 = strideptr[0];
4697                 npy_intp stride2 = strideptr[1];
4698                 npy_intp size = *innersizeptr;
4699                 char* src1 = dataptrarray[0];
4700                 char* src2 = dataptrarray[1];
4701                 double* dout1 = (double*)dataptrarray[2];
4702                 double* dout2 = (double*)dataptrarray[3];
4703                 char* ok = dataptrarray[4];
4704 
4705                 for (i=0; i<size; i++) {
4706                     *ok = func(baton, *((double*)src1), *((double*)src2),
4707                                dout1, dout2);
4708                     ok++;
4709                     src1 += stride1;
4710                     src2 += stride2;
4711                     dout1++;
4712                     dout2++;
4713                 }
4714             }
4715         } while (iternext(iter));
4716 
4717         if (PyArray_IsPythonScalar(in1) && PyArray_IsPythonScalar(in2)) {
4718             PyObject* px  = (PyObject*)(NpyIter_GetOperandArray(iter)[2]);
4719             PyObject* py  = (PyObject*)(NpyIter_GetOperandArray(iter)[3]);
4720             PyObject* pok = (PyObject*)(NpyIter_GetOperandArray(iter)[4]);
4721             //printf("Both inputs are python scalars\n");
4722             double d;
4723             unsigned char c;
4724             d = *(double*)PyArray_DATA((PyArrayObject*)px);
4725             px = PyFloat_FromDouble(d);
4726             d = *(double*)PyArray_DATA((PyArrayObject*)py);
4727             py = PyFloat_FromDouble(d);
4728             c = *(unsigned char*)PyArray_DATA((PyArrayObject*)pok);
4729             pok = PyBool_FromLong(c);
4730             ret = Py_BuildValue("(NNN)", pok, px, py);
4731             /*
4732              // I couldn't figure this out -- ScalarAsCtype didn't work
4733              if (PyArray_CheckScalar(px)) {
4734              printf("x is scalar\n");
4735              }
4736              if (PyArray_IsScalar(px, Double)) {
4737              printf("x is PyDoubleArrType\n");
4738              }
4739              if (PyArray_IsScalar(px, CDouble)) {
4740              printf("x is PyCDoubleArrType\n");
4741              }
4742              if (PyArray_ISFLOAT(px)) {
4743              printf("x ISFLOAT\n");
4744              }
4745              //PyArray_ScalarAsCtype(px, &d);
4746              */
4747         } else {
4748             ret = Py_BuildValue("(OOO)",
4749                                 NpyIter_GetOperandArray(iter)[4],
4750                                 NpyIter_GetOperandArray(iter)[2],
4751                                 NpyIter_GetOperandArray(iter)[3]);
4752         }
4753 
4754         cleanup:
4755         if (NpyIter_Deallocate(iter) != NPY_SUCCEED) {
4756             Py_DECREF(ret);
4757             return NULL;
4758         }
4759         Py_DECREF(op[0]);
4760         Py_DECREF(op[1]);
4761         return ret;
4762     }
4763 
4764 
broadcast_2to2i(f_2to2i func,const void * baton,PyObject * in1,PyObject * in2)4765     static PyObject* broadcast_2to2i
4766         (
4767          //int func(const void*, double, double, double*, double*),
4768          f_2to2i func,
4769          const void* baton,
4770          PyObject* in1, PyObject* in2) {
4771 
4772         NpyIter *iter = NULL;
4773         NpyIter_IterNextFunc *iternext;
4774         PyArrayObject *op[5];
4775         PyObject *ret;
4776         npy_uint32 flags;
4777         npy_uint32 op_flags[5];
4778         npy_intp *innersizeptr;
4779         char **dataptrarray;
4780         npy_intp* strideptr;
4781         PyArray_Descr* dtypes[5];
4782         int j;
4783 
4784         // we'll do the inner loop ourselves
4785         flags = NPY_ITER_EXTERNAL_LOOP;
4786         // use buffers to satisfy dtype casts
4787         flags |= NPY_ITER_BUFFERED;
4788         // grow inner loop
4789         flags |= NPY_ITER_GROWINNER;
4790 
4791         op[0] = (PyArrayObject*)PyArray_FromAny(in1, NULL, 0, 0, 0, NULL);
4792         op[1] = (PyArrayObject*)PyArray_FromAny(in2, NULL, 0, 0, 0, NULL);
4793         // automatically allocate the output arrays.
4794         op[2] = NULL;
4795         op[3] = NULL;
4796         op[4] = NULL;
4797 
4798         if ((PyArray_Size((PyObject*)op[0]) == 0) ||
4799             (PyArray_Size((PyObject*)op[1]) == 0)) {
4800             // empty inputs -- empty outputs
4801             npy_intp dim = 0;
4802             ret = Py_BuildValue("(NNN)",
4803                                 PyArray_SimpleNew(1, &dim, NPY_INT),
4804                                 PyArray_SimpleNew(1, &dim, NPY_DOUBLE),
4805                                 PyArray_SimpleNew(1, &dim, NPY_DOUBLE));
4806             goto cleanup;
4807         }
4808 
4809         op_flags[0] = NPY_ITER_READONLY | NPY_ITER_NBO;
4810         op_flags[1] = NPY_ITER_READONLY | NPY_ITER_NBO;
4811         op_flags[2] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO | NPY_ITER_CONTIG | NPY_ITER_ALIGNED;
4812         op_flags[3] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO | NPY_ITER_CONTIG | NPY_ITER_ALIGNED;
4813         op_flags[4] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO | NPY_ITER_CONTIG | NPY_ITER_ALIGNED;
4814 
4815         dtypes[0] = PyArray_DescrFromType(NPY_DOUBLE);
4816         dtypes[1] = PyArray_DescrFromType(NPY_DOUBLE);
4817         dtypes[2] = PyArray_DescrFromType(NPY_DOUBLE);
4818         dtypes[3] = PyArray_DescrFromType(NPY_DOUBLE);
4819         dtypes[4] = PyArray_DescrFromType(NPY_INT);
4820 
4821         iter = NpyIter_MultiNew(5, op, flags, NPY_KEEPORDER, NPY_SAFE_CASTING,
4822                                 op_flags, dtypes);
4823         for (j=0; j<5; j++)
4824             Py_DECREF(dtypes[j]);
4825 
4826         if (!iter)
4827             return NULL;
4828 
4829         iternext = NpyIter_GetIterNext(iter, NULL);
4830         strideptr = NpyIter_GetInnerStrideArray(iter);
4831         // The inner loop size and data pointers may change during the
4832         // loop, so just cache the addresses.
4833         innersizeptr = NpyIter_GetInnerLoopSizePtr(iter);
4834         dataptrarray = NpyIter_GetDataPtrArray(iter);
4835 
4836         do {
4837             npy_intp i, N;
4838             char* src1 = dataptrarray[0];
4839             char* src2 = dataptrarray[1];
4840             double* dout1 = (double*)(dataptrarray[2]);
4841             double* dout2 = (double*)(dataptrarray[3]);
4842             int* ok = (int*)dataptrarray[4];
4843             N = *innersizeptr;
4844 
4845             //printf("2to2i: N=%i, strides %i,%i\n", N, strideptr[0], strideptr[1]);
4846 
4847             // are the inputs contiguous?  (Outputs will be, since we
4848             // allocated them)
4849             if ((strideptr[0] == sizeof(double)) &&
4850                 (strideptr[1] == sizeof(double))) {
4851                 // printf("Contiguous inputs; going fast\n");
4852                 double* din1  = (double*)src1;
4853                 double* din2  = (double*)src2;
4854                 while (N--) {
4855                     *ok = func(baton, *din1, *din2, dout1, dout2);
4856                     ok++;
4857                     din1++;
4858                     din2++;
4859                     dout1++;
4860                     dout2++;
4861                 }
4862             } else {
4863                 // printf("Non-contiguous inputs; going slow\n");
4864                 npy_intp stride1 = strideptr[0];
4865                 npy_intp stride2 = strideptr[1];
4866                 for (i=0; i<N; i++) {
4867                     *ok = func(baton, *((double*)src1), *((double*)src2),
4868                                dout1, dout2);
4869                     ok++;
4870                     src1 += stride1;
4871                     src2 += stride2;
4872                     dout1++;
4873                     dout2++;
4874                 }
4875             }
4876         } while (iternext(iter));
4877 
4878         if (PyArray_IsPythonScalar(in1) && PyArray_IsPythonScalar(in2)) {
4879             PyObject* px  = (PyObject*)(NpyIter_GetOperandArray(iter)[2]);
4880             PyObject* py  = (PyObject*)(NpyIter_GetOperandArray(iter)[3]);
4881             PyObject* pok = (PyObject*)(NpyIter_GetOperandArray(iter)[4]);
4882             //printf("Both inputs are python scalars\n");
4883             double d;
4884             int i;
4885             d = *(double*)PyArray_DATA((PyArrayObject*)px);
4886             px = PyFloat_FromDouble(d);
4887             d = *(double*)PyArray_DATA((PyArrayObject*)py);
4888             py = PyFloat_FromDouble(d);
4889             i = *(int*)PyArray_DATA((PyArrayObject*)pok);
4890             pok = PyInt_FromLong(i);
4891             ret = Py_BuildValue("(NNN)", pok, px, py);
4892         } else {
4893             // Grab the results -- note "4,2,3" order -- ok,x,y
4894             ret = Py_BuildValue("(OOO)",
4895                                 NpyIter_GetOperandArray(iter)[4],
4896                                 NpyIter_GetOperandArray(iter)[2],
4897                                 NpyIter_GetOperandArray(iter)[3]);
4898         }
4899         cleanup:
4900         if (NpyIter_Deallocate(iter) != NPY_SUCCEED) {
4901             Py_DECREF(ret);
4902             return NULL;
4903         }
4904         Py_DECREF(op[0]);
4905         Py_DECREF(op[1]);
4906         return ret;
4907     }
4908 
broadcast_2to2(f_2to2 func,const void * baton,PyObject * in1,PyObject * in2)4909     static PyObject* broadcast_2to2
4910         (
4911          //void func(const void*, double, double, double*, double*),
4912          f_2to2 func,
4913          const void* baton,
4914          PyObject* in1, PyObject* in2) {
4915 
4916         NpyIter *iter = NULL;
4917         NpyIter_IterNextFunc *iternext;
4918         PyArrayObject *op[4];
4919         PyObject *ret;
4920         npy_uint32 flags;
4921         npy_uint32 op_flags[4];
4922         npy_intp *innersizeptr;
4923         char **dataptrarray;
4924         npy_intp* strideptr;
4925         PyArray_Descr* dtypes[4];
4926         npy_intp i;
4927 
4928         // we'll do the inner loop ourselves
4929         flags = NPY_ITER_EXTERNAL_LOOP;
4930         // use buffers to satisfy dtype casts
4931         flags |= NPY_ITER_BUFFERED;
4932         // grow inner loop
4933         flags |= NPY_ITER_GROWINNER;
4934 
4935         op[0] = (PyArrayObject*)PyArray_FromAny(in1, NULL, 0, 0, 0, NULL);
4936         op[1] = (PyArrayObject*)PyArray_FromAny(in2, NULL, 0, 0, 0, NULL);
4937         // automatically allocate the output arrays.
4938         op[2] = NULL;
4939         op[3] = NULL;
4940 
4941         if ((PyArray_Size((PyObject*)op[0]) == 0) ||
4942             (PyArray_Size((PyObject*)op[1]) == 0)) {
4943             // empty inputs -- empty outputs
4944             npy_intp dim = 0;
4945             ret = Py_BuildValue("(NN)",
4946                                 PyArray_SimpleNew(1, &dim, NPY_DOUBLE),
4947                                 PyArray_SimpleNew(1, &dim, NPY_DOUBLE));
4948             goto cleanup;
4949         }
4950 
4951         op_flags[0] = NPY_ITER_READONLY | NPY_ITER_NBO;
4952         op_flags[1] = NPY_ITER_READONLY | NPY_ITER_NBO;
4953         op_flags[2] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO;
4954         op_flags[3] = NPY_ITER_WRITEONLY | NPY_ITER_ALLOCATE | NPY_ITER_NBO;
4955 
4956         dtypes[0] = PyArray_DescrFromType(NPY_DOUBLE);
4957         dtypes[1] = PyArray_DescrFromType(NPY_DOUBLE);
4958         dtypes[2] = PyArray_DescrFromType(NPY_DOUBLE);
4959         dtypes[3] = PyArray_DescrFromType(NPY_DOUBLE);
4960 
4961         iter = NpyIter_MultiNew(4, op, flags, NPY_KEEPORDER, NPY_SAFE_CASTING,
4962                                 op_flags, dtypes);
4963         for (i=0; i<4; i++)
4964             Py_DECREF(dtypes[i]);
4965         if (!iter)
4966             return NULL;
4967 
4968         iternext = NpyIter_GetIterNext(iter, NULL);
4969         strideptr = NpyIter_GetInnerStrideArray(iter);
4970         // The inner loop size and data pointers may change during the
4971         // loop, so just cache the addresses.
4972         innersizeptr = NpyIter_GetInnerLoopSizePtr(iter);
4973         dataptrarray = NpyIter_GetDataPtrArray(iter);
4974 
4975         do {
4976             // are the inputs contiguous?  (Outputs will be, since we
4977             // allocated them)
4978             if ((strideptr[0] == sizeof(double)) &&
4979                 (strideptr[1] == sizeof(double))) {
4980 
4981                 npy_intp N = *innersizeptr;
4982                 double* din1  = (double*)(dataptrarray[0]);
4983                 double* din2  = (double*)(dataptrarray[1]);
4984                 double* dout1 = (double*)(dataptrarray[2]);
4985                 double* dout2 = (double*)(dataptrarray[3]);
4986 
4987                 //printf("Contiguous inputs; going fast\n");
4988                 //printf("Inner loop: %i\n", (int)N);
4989                 //printf("Output strides: %i %i\n", (int)strideptr[2], (int)strideptr[3]);
4990                 //printf("Strides: %i %i %i %i\n", (int)strideptr[0], (int)strideptr[1], (int)strideptr[2], (int)strideptr[3]);
4991 
4992                 while (N--) {
4993                     //printf("Calling %i: inputs (%12g,%12g)\n", (int)N, *din1, *din2);
4994                     func(baton, *din1, *din2, dout1, dout2);
4995                     din1++;
4996                     din2++;
4997                     dout1++;
4998                     dout2++;
4999                 }
5000             } else {
5001                 npy_intp stride1 = NpyIter_GetInnerStrideArray(iter)[0];
5002                 npy_intp stride2 = NpyIter_GetInnerStrideArray(iter)[1];
5003                 npy_intp size = *innersizeptr;
5004                 char*   src1  = dataptrarray[0];
5005                 char*   src2  = dataptrarray[1];
5006                 double* dout1 = (double*)(dataptrarray[2]);
5007                 double* dout2 = (double*)(dataptrarray[3]);
5008 
5009                 //printf("Non-contiguous inputs; going slow\n");
5010                 //printf("%i items\n", (int)size);
5011 
5012                 for (i=0; i<size; i++) {
5013                     //printf("Call %i: inputs (%12g,%12g)\n", (int)i, ((double*)src1)[0], ((double*)src2)[0]);
5014                     func(baton, *((double*)src1), *((double*)src2),
5015                          dout1, dout2);
5016                     src1 += stride1;
5017                     src2 += stride2;
5018                     dout1++;
5019                     dout2++;
5020                 }
5021             }
5022         } while (iternext(iter));
5023 
5024         if (PyArray_IsPythonScalar(in1) && PyArray_IsPythonScalar(in2)) {
5025             PyObject* px  = (PyObject*)(NpyIter_GetOperandArray(iter)[2]);
5026             PyObject* py  = (PyObject*)(NpyIter_GetOperandArray(iter)[3]);
5027             //printf("Both inputs are python scalars\n");
5028             double d;
5029             d = *(double*)PyArray_DATA((PyArrayObject*)px);
5030             px = PyFloat_FromDouble(d);
5031             d = *(double*)PyArray_DATA((PyArrayObject*)py);
5032             py = PyFloat_FromDouble(d);
5033             ret = Py_BuildValue("(NN)", px, py);
5034         } else {
5035             // Grab the results
5036             ret = Py_BuildValue("(OO)",
5037                                 NpyIter_GetOperandArray(iter)[2],
5038                                 NpyIter_GetOperandArray(iter)[3]);
5039         }
5040 
5041         cleanup:
5042         if (NpyIter_Deallocate(iter) != NPY_SUCCEED) {
5043             Py_DECREF(ret);
5044             return NULL;
5045         }
5046         Py_DECREF(op[0]);
5047         Py_DECREF(op[1]);
5048         return ret;
5049     }
5050 
tan_wcs_resample(tan_t * inwcs,tan_t * outwcs,PyObject * py_inimg,PyObject * py_outimg,int weighted,int lorder)5051     static int tan_wcs_resample(tan_t* inwcs, tan_t* outwcs,
5052                                 PyObject* py_inimg, PyObject* py_outimg,
5053                                 int weighted, int lorder) {
5054         PyArray_Descr* dtype = PyArray_DescrFromType(NPY_FLOAT);
5055         int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED | NPY_ARRAY_NOTSWAPPED | NPY_ARRAY_ELEMENTSTRIDES;
5056         int reqout = req | NPY_ARRAY_WRITEABLE | NPY_ARRAY_UPDATEIFCOPY;
5057         PyArrayObject *np_inimg=NULL, *np_outimg=NULL;
5058 
5059         Py_INCREF(dtype);
5060         Py_INCREF(dtype);
5061         np_inimg  = (PyArrayObject*)PyArray_CheckFromAny(py_inimg,  dtype, 2, 2, req, NULL);
5062         np_outimg = (PyArrayObject*)PyArray_CheckFromAny(py_outimg, dtype, 2, 2, reqout, NULL);
5063         if (!np_inimg || !np_outimg) {
5064             ERR("Failed to PyArray_FromAny the images (np_inimg=%p, np_outimg=%p)\n",
5065                 np_inimg, np_outimg);
5066             Py_XDECREF(np_inimg);
5067             Py_XDECREF(np_outimg);
5068             Py_DECREF(dtype);
5069             return -1;
5070         }
5071 
5072         int inW, inH, outW, outH;
5073         float *inimg, *outimg;
5074         inH = (int)PyArray_DIM(np_inimg, 0);
5075         inW = (int)PyArray_DIM(np_inimg, 1);
5076         outH = (int)PyArray_DIM(np_outimg, 0);
5077         outW = (int)PyArray_DIM(np_outimg, 1);
5078         inimg = PyArray_DATA(np_inimg);
5079         outimg = PyArray_DATA(np_outimg);
5080 
5081         anwcs_t* inanwcs = anwcs_new_tan(inwcs);
5082         anwcs_t* outanwcs = anwcs_new_tan(outwcs);
5083 
5084         int res = resample_wcs(inanwcs, inimg, inW, inH,
5085                                outanwcs, outimg, outW, outH,
5086                                weighted, lorder);
5087 
5088         anwcs_free(inanwcs);
5089         anwcs_free(outanwcs);
5090 
5091         Py_DECREF(dtype);
5092         Py_DECREF(np_inimg);
5093         Py_DECREF(np_outimg);
5094 
5095         return res;
5096     }
5097 
tan_numpy_xyz2pixelxy(tan_t * tan,PyArrayObject * npxyz,PyArrayObject * npx,PyArrayObject * npy)5098     static int tan_numpy_xyz2pixelxy(tan_t* tan, PyArrayObject* npxyz,
5099                                      PyArrayObject* npx, PyArrayObject* npy) {
5100         npy_intp i, N;
5101         int rtn = 0;
5102         double *x, *y;
5103 
5104         if (PyArray_NDIM(npx) != 1) {
5105             PyErr_SetString(PyExc_ValueError, "arrays must be one-dimensional");
5106             return -1;
5107         }
5108         if (PyArray_TYPE(npx) != NPY_DOUBLE) {
5109             PyErr_SetString(PyExc_ValueError, "array must contain doubles");
5110             return -1;
5111         }
5112         N = PyArray_DIM(npx, 0);
5113         if ((PyArray_DIM(npy, 0) != N) ||
5114             (PyArray_DIM(npxyz, 0) != N) ||
5115             (PyArray_DIM(npxyz, 1) != 3)) {
5116             PyErr_SetString(PyExc_ValueError, "arrays must be the same size");
5117             return -1;
5118         }
5119         x = PyArray_GETPTR1(npx, 0);
5120         y = PyArray_GETPTR1(npy, 0);
5121         for (i=0; i<N; i++) {
5122             double xyz[3];
5123             anbool ok;
5124             xyz[0] = *((double*)PyArray_GETPTR2(npxyz, i, 0));
5125             xyz[1] = *((double*)PyArray_GETPTR2(npxyz, i, 1));
5126             xyz[2] = *((double*)PyArray_GETPTR2(npxyz, i, 2));
5127             ok = tan_xyzarr2pixelxy(tan, xyz, x+i, y+i);
5128             if (!ok) {
5129                 x[i] = -1.0;
5130                 y[i] = -1.0;
5131                 rtn = -1;
5132             }
5133         }
5134         return rtn;
5135     }
5136 
5137 
an_tally(PyObject * py_counts,PyObject * py_x,PyObject * py_y)5138     static int an_tally(PyObject* py_counts, PyObject* py_x, PyObject* py_y) {
5139         PyArray_Descr* itype;
5140         PyArrayObject *np_counts=NULL, *np_x=NULL, *np_y=NULL;
5141         int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED | NPY_ARRAY_NOTSWAPPED |
5142             NPY_ARRAY_ELEMENTSTRIDES;
5143         int reqout = req | NPY_ARRAY_WRITEABLE | NPY_ARRAY_UPDATEIFCOPY;
5144         int32_t *counts, *px, *py;
5145         int W, H, i, N;
5146 
5147         itype = PyArray_DescrFromType(NPY_INT32);
5148         Py_INCREF(itype);
5149         Py_INCREF(itype);
5150 
5151         np_counts = (PyArrayObject*)PyArray_CheckFromAny(py_counts, itype, 2, 2, reqout, NULL);
5152         np_x = (PyArrayObject*)PyArray_CheckFromAny(py_x, itype, 1, 1, req, NULL);
5153         np_y = (PyArrayObject*)PyArray_CheckFromAny(py_y, itype, 1, 1, req, NULL);
5154 
5155         if (!np_counts || !np_x || !np_y) {
5156             ERR("Failed to PyArray_FromAny the counts, x, and y arrays.\n");
5157             Py_XDECREF(np_counts);
5158             Py_XDECREF(np_x);
5159             Py_XDECREF(np_y);
5160             return -1;
5161         }
5162         N = (int)PyArray_DIM(np_x, 0);
5163         if (PyArray_DIM(np_y, 0) != N) {
5164             ERR("Expected x and y arrays to have the same lengths!\n");
5165             Py_XDECREF(np_counts);
5166             Py_XDECREF(np_x);
5167             Py_XDECREF(np_y);
5168             return -1;
5169         }
5170 
5171         H = (int)PyArray_DIM(np_counts, 0);
5172         W = (int)PyArray_DIM(np_counts, 1);
5173         //printf("Counts array size %i x %i\n", W, H);
5174         counts = PyArray_DATA(np_counts);
5175         px = PyArray_DATA(np_x);
5176         py = PyArray_DATA(np_y);
5177         for (i=0; i<N; i++) {
5178             int32_t xi = (*px);
5179             int32_t yi = (*py);
5180             if (yi < 0 || yi >= H || xi < 0 || xi >= W) {
5181                 printf("Warning: skipping out-of-range value: i=%i, xi,yi = %i,%i\n", i, xi, yi);
5182             } else {
5183                 counts[yi*W + xi]++;
5184             }
5185             px++;
5186             py++;
5187         }
5188         Py_DECREF(np_counts);
5189         Py_DECREF(np_x);
5190         Py_DECREF(np_y);
5191         return 0;
5192     }
5193 
5194 
5195 
5196 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
5197 #  define SWIG_LONG_LONG_AVAILABLE
5198 #endif
5199 
5200 
5201 #ifdef SWIG_LONG_LONG_AVAILABLE
5202 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long(PyObject * obj,unsigned long long * val)5203 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
5204 {
5205   int res = SWIG_TypeError;
5206   if (PyLong_Check(obj)) {
5207     unsigned long long v = PyLong_AsUnsignedLongLong(obj);
5208     if (!PyErr_Occurred()) {
5209       if (val) *val = v;
5210       return SWIG_OK;
5211     } else {
5212       PyErr_Clear();
5213       res = SWIG_OverflowError;
5214     }
5215   } else {
5216     unsigned long v;
5217     res = SWIG_AsVal_unsigned_SS_long (obj,&v);
5218     if (SWIG_IsOK(res)) {
5219       if (val) *val = v;
5220       return res;
5221     }
5222   }
5223 #ifdef SWIG_PYTHON_CAST_MODE
5224   {
5225     const double mant_max = 1LL << DBL_MANT_DIG;
5226     double d;
5227     res = SWIG_AsVal_double (obj,&d);
5228     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
5229       return SWIG_OverflowError;
5230     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
5231       if (val) *val = (unsigned long long)(d);
5232       return SWIG_AddCast(res);
5233     }
5234     res = SWIG_TypeError;
5235   }
5236 #endif
5237   return res;
5238 }
5239 #endif
5240 
5241 
5242 SWIGINTERNINLINE int
SWIG_AsVal_size_t(PyObject * obj,size_t * val)5243 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
5244 {
5245   int res = SWIG_TypeError;
5246 #ifdef SWIG_LONG_LONG_AVAILABLE
5247   if (sizeof(size_t) <= sizeof(unsigned long)) {
5248 #endif
5249     unsigned long v;
5250     res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
5251     if (SWIG_IsOK(res) && val) *val = (size_t)(v);
5252 #ifdef SWIG_LONG_LONG_AVAILABLE
5253   } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
5254     unsigned long long v;
5255     res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
5256     if (SWIG_IsOK(res) && val) *val = (size_t)(v);
5257   }
5258 #endif
5259   return res;
5260 }
5261 
5262 
5263 #ifdef SWIG_LONG_LONG_AVAILABLE
5264 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)5265 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
5266 {
5267   return (value > LONG_MAX) ?
5268     PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)(value));
5269 }
5270 #endif
5271 
5272 
5273 SWIGINTERNINLINE PyObject *
SWIG_From_size_t(size_t value)5274 SWIG_From_size_t  (size_t value)
5275 {
5276 #ifdef SWIG_LONG_LONG_AVAILABLE
5277   if (sizeof(size_t) <= sizeof(unsigned long)) {
5278 #endif
5279     return SWIG_From_unsigned_SS_long  ((unsigned long)(value));
5280 #ifdef SWIG_LONG_LONG_AVAILABLE
5281   } else {
5282     /* assume sizeof(size_t) <= sizeof(unsigned long long) */
5283     return SWIG_From_unsigned_SS_long_SS_long  ((unsigned long long)(value));
5284   }
5285 #endif
5286 }
5287 
5288 
5289 SWIGINTERN int
SWIG_AsCharArray(PyObject * obj,char * val,size_t size)5290 SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
5291 {
5292   char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
5293   int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
5294   if (SWIG_IsOK(res)) {
5295     /* special case of single char conversion when we don't need space for NUL */
5296     if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
5297     if (csize <= size) {
5298       if (val) {
5299 	if (csize) memcpy(val, cptr, csize*sizeof(char));
5300 	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
5301       }
5302       if (alloc == SWIG_NEWOBJ) {
5303 	free((char*)cptr);
5304 	res = SWIG_DelNewMask(res);
5305       }
5306       return res;
5307     }
5308     if (alloc == SWIG_NEWOBJ) free((char*)cptr);
5309   }
5310   return SWIG_TypeError;
5311 }
5312 
5313 
5314 SWIGINTERN int
SWIG_AsVal_char(PyObject * obj,char * val)5315 SWIG_AsVal_char (PyObject * obj, char *val)
5316 {
5317   int res = SWIG_AsCharArray(obj, val, 1);
5318   if (!SWIG_IsOK(res)) {
5319     long v;
5320     res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
5321     if (SWIG_IsOK(res)) {
5322       if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
5323 	if (val) *val = (char)(v);
5324       } else {
5325 	res = SWIG_OverflowError;
5326       }
5327     }
5328   }
5329   return res;
5330 }
5331 
5332 
5333 SWIGINTERNINLINE PyObject *
SWIG_From_float(float value)5334 SWIG_From_float  (float value)
5335 {
5336   return SWIG_From_double  (value);
5337 }
5338 
5339 
dcen3x3b(float i0,float i1,float i2,float i3,float i4,float i5,float i6,float i7,float i8,float * xcen,float * ycen)5340 int dcen3x3b(float i0, float i1, float i2,
5341              float i3, float i4, float i5,
5342              float i6, float i7, float i8,
5343              float *xcen, float *ycen) {
5344 float im[9];
5345 im[0] = i0;
5346 im[1] = i1;
5347 im[2] = i2;
5348 im[3] = i3;
5349 im[4] = i4;
5350 im[5] = i5;
5351 im[6] = i6;
5352 im[7] = i7;
5353 im[8] = i8;
5354 return dcen3x3(im, xcen, ycen);
5355 }
5356 
5357 #ifdef __cplusplus
5358 extern "C" {
5359 #endif
_wrap_log_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5360 SWIGINTERN PyObject *_wrap_log_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5361   PyObject *resultobj = 0;
5362   int arg1 ;
5363   int val1 ;
5364   int ecode1 = 0 ;
5365   PyObject *swig_obj[1] ;
5366 
5367   if (!args) SWIG_fail;
5368   swig_obj[0] = args;
5369   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
5370   if (!SWIG_IsOK(ecode1)) {
5371     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_init" "', argument " "1"" of type '" "int""'");
5372   }
5373   arg1 = (int)(val1);
5374   log_init(arg1);
5375   resultobj = SWIG_Py_Void();
5376   return resultobj;
5377 fail:
5378   return NULL;
5379 }
5380 
5381 
_wrap_log_get_level(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5382 SWIGINTERN PyObject *_wrap_log_get_level(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5383   PyObject *resultobj = 0;
5384   int result;
5385 
5386   if (!SWIG_Python_UnpackTuple(args, "log_get_level", 0, 0, 0)) SWIG_fail;
5387   result = (int)log_get_level();
5388   resultobj = SWIG_From_int((int)(result));
5389   return resultobj;
5390 fail:
5391   return NULL;
5392 }
5393 
5394 
_wrap_log_set_level(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5395 SWIGINTERN PyObject *_wrap_log_set_level(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5396   PyObject *resultobj = 0;
5397   int arg1 ;
5398   int val1 ;
5399   int ecode1 = 0 ;
5400   PyObject *swig_obj[1] ;
5401 
5402   if (!args) SWIG_fail;
5403   swig_obj[0] = args;
5404   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
5405   if (!SWIG_IsOK(ecode1)) {
5406     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log_set_level" "', argument " "1"" of type '" "int""'");
5407   }
5408   arg1 = (int)(val1);
5409   log_set_level(arg1);
5410   resultobj = SWIG_Py_Void();
5411   return resultobj;
5412 fail:
5413   return NULL;
5414 }
5415 
5416 
_wrap_coadd_t_img_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5417 SWIGINTERN PyObject *_wrap_coadd_t_img_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5418   PyObject *resultobj = 0;
5419   coadd_t *arg1 = (coadd_t *) 0 ;
5420   number *arg2 = (number *) 0 ;
5421   void *argp1 = 0 ;
5422   int res1 = 0 ;
5423   void *argp2 = 0 ;
5424   int res2 = 0 ;
5425   PyObject *swig_obj[2] ;
5426 
5427   if (!SWIG_Python_UnpackTuple(args, "coadd_t_img_set", 2, 2, swig_obj)) SWIG_fail;
5428   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5429   if (!SWIG_IsOK(res1)) {
5430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_img_set" "', argument " "1"" of type '" "coadd_t *""'");
5431   }
5432   arg1 = (coadd_t *)(argp1);
5433   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN |  0 );
5434   if (!SWIG_IsOK(res2)) {
5435     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coadd_t_img_set" "', argument " "2"" of type '" "number *""'");
5436   }
5437   arg2 = (number *)(argp2);
5438   if (arg1) (arg1)->img = arg2;
5439   resultobj = SWIG_Py_Void();
5440   return resultobj;
5441 fail:
5442   return NULL;
5443 }
5444 
5445 
_wrap_coadd_t_img_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5446 SWIGINTERN PyObject *_wrap_coadd_t_img_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5447   PyObject *resultobj = 0;
5448   coadd_t *arg1 = (coadd_t *) 0 ;
5449   void *argp1 = 0 ;
5450   int res1 = 0 ;
5451   PyObject *swig_obj[1] ;
5452   number *result = 0 ;
5453 
5454   if (!args) SWIG_fail;
5455   swig_obj[0] = args;
5456   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5457   if (!SWIG_IsOK(res1)) {
5458     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_img_get" "', argument " "1"" of type '" "coadd_t *""'");
5459   }
5460   arg1 = (coadd_t *)(argp1);
5461   result = (number *) ((arg1)->img);
5462   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
5463   return resultobj;
5464 fail:
5465   return NULL;
5466 }
5467 
5468 
_wrap_coadd_t_weight_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5469 SWIGINTERN PyObject *_wrap_coadd_t_weight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5470   PyObject *resultobj = 0;
5471   coadd_t *arg1 = (coadd_t *) 0 ;
5472   number *arg2 = (number *) 0 ;
5473   void *argp1 = 0 ;
5474   int res1 = 0 ;
5475   void *argp2 = 0 ;
5476   int res2 = 0 ;
5477   PyObject *swig_obj[2] ;
5478 
5479   if (!SWIG_Python_UnpackTuple(args, "coadd_t_weight_set", 2, 2, swig_obj)) SWIG_fail;
5480   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5481   if (!SWIG_IsOK(res1)) {
5482     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_weight_set" "', argument " "1"" of type '" "coadd_t *""'");
5483   }
5484   arg1 = (coadd_t *)(argp1);
5485   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN |  0 );
5486   if (!SWIG_IsOK(res2)) {
5487     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coadd_t_weight_set" "', argument " "2"" of type '" "number *""'");
5488   }
5489   arg2 = (number *)(argp2);
5490   if (arg1) (arg1)->weight = arg2;
5491   resultobj = SWIG_Py_Void();
5492   return resultobj;
5493 fail:
5494   return NULL;
5495 }
5496 
5497 
_wrap_coadd_t_weight_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5498 SWIGINTERN PyObject *_wrap_coadd_t_weight_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5499   PyObject *resultobj = 0;
5500   coadd_t *arg1 = (coadd_t *) 0 ;
5501   void *argp1 = 0 ;
5502   int res1 = 0 ;
5503   PyObject *swig_obj[1] ;
5504   number *result = 0 ;
5505 
5506   if (!args) SWIG_fail;
5507   swig_obj[0] = args;
5508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5509   if (!SWIG_IsOK(res1)) {
5510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_weight_get" "', argument " "1"" of type '" "coadd_t *""'");
5511   }
5512   arg1 = (coadd_t *)(argp1);
5513   result = (number *) ((arg1)->weight);
5514   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
5515   return resultobj;
5516 fail:
5517   return NULL;
5518 }
5519 
5520 
_wrap_coadd_t_W_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5521 SWIGINTERN PyObject *_wrap_coadd_t_W_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5522   PyObject *resultobj = 0;
5523   coadd_t *arg1 = (coadd_t *) 0 ;
5524   int arg2 ;
5525   void *argp1 = 0 ;
5526   int res1 = 0 ;
5527   int val2 ;
5528   int ecode2 = 0 ;
5529   PyObject *swig_obj[2] ;
5530 
5531   if (!SWIG_Python_UnpackTuple(args, "coadd_t_W_set", 2, 2, swig_obj)) SWIG_fail;
5532   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5533   if (!SWIG_IsOK(res1)) {
5534     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_W_set" "', argument " "1"" of type '" "coadd_t *""'");
5535   }
5536   arg1 = (coadd_t *)(argp1);
5537   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5538   if (!SWIG_IsOK(ecode2)) {
5539     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_t_W_set" "', argument " "2"" of type '" "int""'");
5540   }
5541   arg2 = (int)(val2);
5542   if (arg1) (arg1)->W = arg2;
5543   resultobj = SWIG_Py_Void();
5544   return resultobj;
5545 fail:
5546   return NULL;
5547 }
5548 
5549 
_wrap_coadd_t_W_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5550 SWIGINTERN PyObject *_wrap_coadd_t_W_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5551   PyObject *resultobj = 0;
5552   coadd_t *arg1 = (coadd_t *) 0 ;
5553   void *argp1 = 0 ;
5554   int res1 = 0 ;
5555   PyObject *swig_obj[1] ;
5556   int result;
5557 
5558   if (!args) SWIG_fail;
5559   swig_obj[0] = args;
5560   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5561   if (!SWIG_IsOK(res1)) {
5562     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_W_get" "', argument " "1"" of type '" "coadd_t *""'");
5563   }
5564   arg1 = (coadd_t *)(argp1);
5565   result = (int) ((arg1)->W);
5566   resultobj = SWIG_From_int((int)(result));
5567   return resultobj;
5568 fail:
5569   return NULL;
5570 }
5571 
5572 
_wrap_coadd_t_H_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5573 SWIGINTERN PyObject *_wrap_coadd_t_H_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5574   PyObject *resultobj = 0;
5575   coadd_t *arg1 = (coadd_t *) 0 ;
5576   int arg2 ;
5577   void *argp1 = 0 ;
5578   int res1 = 0 ;
5579   int val2 ;
5580   int ecode2 = 0 ;
5581   PyObject *swig_obj[2] ;
5582 
5583   if (!SWIG_Python_UnpackTuple(args, "coadd_t_H_set", 2, 2, swig_obj)) SWIG_fail;
5584   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5585   if (!SWIG_IsOK(res1)) {
5586     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_H_set" "', argument " "1"" of type '" "coadd_t *""'");
5587   }
5588   arg1 = (coadd_t *)(argp1);
5589   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5590   if (!SWIG_IsOK(ecode2)) {
5591     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_t_H_set" "', argument " "2"" of type '" "int""'");
5592   }
5593   arg2 = (int)(val2);
5594   if (arg1) (arg1)->H = arg2;
5595   resultobj = SWIG_Py_Void();
5596   return resultobj;
5597 fail:
5598   return NULL;
5599 }
5600 
5601 
_wrap_coadd_t_H_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5602 SWIGINTERN PyObject *_wrap_coadd_t_H_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5603   PyObject *resultobj = 0;
5604   coadd_t *arg1 = (coadd_t *) 0 ;
5605   void *argp1 = 0 ;
5606   int res1 = 0 ;
5607   PyObject *swig_obj[1] ;
5608   int result;
5609 
5610   if (!args) SWIG_fail;
5611   swig_obj[0] = args;
5612   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5613   if (!SWIG_IsOK(res1)) {
5614     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_H_get" "', argument " "1"" of type '" "coadd_t *""'");
5615   }
5616   arg1 = (coadd_t *)(argp1);
5617   result = (int) ((arg1)->H);
5618   resultobj = SWIG_From_int((int)(result));
5619   return resultobj;
5620 fail:
5621   return NULL;
5622 }
5623 
5624 
_wrap_coadd_t_wcs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5625 SWIGINTERN PyObject *_wrap_coadd_t_wcs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5626   PyObject *resultobj = 0;
5627   coadd_t *arg1 = (coadd_t *) 0 ;
5628   anwcs_t *arg2 = (anwcs_t *) 0 ;
5629   void *argp1 = 0 ;
5630   int res1 = 0 ;
5631   void *argp2 = 0 ;
5632   int res2 = 0 ;
5633   PyObject *swig_obj[2] ;
5634 
5635   if (!SWIG_Python_UnpackTuple(args, "coadd_t_wcs_set", 2, 2, swig_obj)) SWIG_fail;
5636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5637   if (!SWIG_IsOK(res1)) {
5638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_wcs_set" "', argument " "1"" of type '" "coadd_t *""'");
5639   }
5640   arg1 = (coadd_t *)(argp1);
5641   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, SWIG_POINTER_DISOWN |  0 );
5642   if (!SWIG_IsOK(res2)) {
5643     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coadd_t_wcs_set" "', argument " "2"" of type '" "anwcs_t *""'");
5644   }
5645   arg2 = (anwcs_t *)(argp2);
5646   if (arg1) (arg1)->wcs = arg2;
5647   resultobj = SWIG_Py_Void();
5648   return resultobj;
5649 fail:
5650   return NULL;
5651 }
5652 
5653 
_wrap_coadd_t_wcs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5654 SWIGINTERN PyObject *_wrap_coadd_t_wcs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5655   PyObject *resultobj = 0;
5656   coadd_t *arg1 = (coadd_t *) 0 ;
5657   void *argp1 = 0 ;
5658   int res1 = 0 ;
5659   PyObject *swig_obj[1] ;
5660   anwcs_t *result = 0 ;
5661 
5662   if (!args) SWIG_fail;
5663   swig_obj[0] = args;
5664   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5665   if (!SWIG_IsOK(res1)) {
5666     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_wcs_get" "', argument " "1"" of type '" "coadd_t *""'");
5667   }
5668   arg1 = (coadd_t *)(argp1);
5669   result = (anwcs_t *) ((arg1)->wcs);
5670   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
5671   return resultobj;
5672 fail:
5673   return NULL;
5674 }
5675 
5676 
_wrap_coadd_t_resample_func_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5677 SWIGINTERN PyObject *_wrap_coadd_t_resample_func_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5678   PyObject *resultobj = 0;
5679   coadd_t *arg1 = (coadd_t *) 0 ;
5680   double (*arg2)(double,double,number const *,number const *,int,int,double *,void *) = (double (*)(double,double,number const *,number const *,int,int,double *,void *)) 0 ;
5681   void *argp1 = 0 ;
5682   int res1 = 0 ;
5683   PyObject *swig_obj[2] ;
5684 
5685   if (!SWIG_Python_UnpackTuple(args, "coadd_t_resample_func_set", 2, 2, swig_obj)) SWIG_fail;
5686   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5687   if (!SWIG_IsOK(res1)) {
5688     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_resample_func_set" "', argument " "1"" of type '" "coadd_t *""'");
5689   }
5690   arg1 = (coadd_t *)(argp1);
5691   {
5692     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double);
5693     if (!SWIG_IsOK(res)) {
5694       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "coadd_t_resample_func_set" "', argument " "2"" of type '" "double (*)(double,double,number const *,number const *,int,int,double *,void *)""'");
5695     }
5696   }
5697   if (arg1) (arg1)->resample_func = arg2;
5698   resultobj = SWIG_Py_Void();
5699   return resultobj;
5700 fail:
5701   return NULL;
5702 }
5703 
5704 
_wrap_coadd_t_resample_func_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5705 SWIGINTERN PyObject *_wrap_coadd_t_resample_func_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5706   PyObject *resultobj = 0;
5707   coadd_t *arg1 = (coadd_t *) 0 ;
5708   void *argp1 = 0 ;
5709   int res1 = 0 ;
5710   PyObject *swig_obj[1] ;
5711   double (*result)(double,double,number const *,number const *,int,int,double *,void *) = 0 ;
5712 
5713   if (!args) SWIG_fail;
5714   swig_obj[0] = args;
5715   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5716   if (!SWIG_IsOK(res1)) {
5717     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_resample_func_get" "', argument " "1"" of type '" "coadd_t *""'");
5718   }
5719   arg1 = (coadd_t *)(argp1);
5720   result = (double (*)(double,double,number const *,number const *,int,int,double *,void *)) ((arg1)->resample_func);
5721   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double);
5722   return resultobj;
5723 fail:
5724   return NULL;
5725 }
5726 
5727 
_wrap_coadd_t_resample_token_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5728 SWIGINTERN PyObject *_wrap_coadd_t_resample_token_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5729   PyObject *resultobj = 0;
5730   coadd_t *arg1 = (coadd_t *) 0 ;
5731   void *arg2 = (void *) 0 ;
5732   void *argp1 = 0 ;
5733   int res1 = 0 ;
5734   int res2 ;
5735   PyObject *swig_obj[2] ;
5736 
5737   if (!SWIG_Python_UnpackTuple(args, "coadd_t_resample_token_set", 2, 2, swig_obj)) SWIG_fail;
5738   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5739   if (!SWIG_IsOK(res1)) {
5740     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_resample_token_set" "', argument " "1"" of type '" "coadd_t *""'");
5741   }
5742   arg1 = (coadd_t *)(argp1);
5743   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
5744   if (!SWIG_IsOK(res2)) {
5745     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coadd_t_resample_token_set" "', argument " "2"" of type '" "void *""'");
5746   }
5747   if (arg1) (arg1)->resample_token = arg2;
5748   resultobj = SWIG_Py_Void();
5749   return resultobj;
5750 fail:
5751   return NULL;
5752 }
5753 
5754 
_wrap_coadd_t_resample_token_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5755 SWIGINTERN PyObject *_wrap_coadd_t_resample_token_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5756   PyObject *resultobj = 0;
5757   coadd_t *arg1 = (coadd_t *) 0 ;
5758   void *argp1 = 0 ;
5759   int res1 = 0 ;
5760   PyObject *swig_obj[1] ;
5761   void *result = 0 ;
5762 
5763   if (!args) SWIG_fail;
5764   swig_obj[0] = args;
5765   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5766   if (!SWIG_IsOK(res1)) {
5767     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_t_resample_token_get" "', argument " "1"" of type '" "coadd_t *""'");
5768   }
5769   arg1 = (coadd_t *)(argp1);
5770   result = (void *) ((arg1)->resample_token);
5771   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
5772   return resultobj;
5773 fail:
5774   return NULL;
5775 }
5776 
5777 
_wrap_new_coadd_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5778 SWIGINTERN PyObject *_wrap_new_coadd_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5779   PyObject *resultobj = 0;
5780   coadd_t *result = 0 ;
5781 
5782   if (!SWIG_Python_UnpackTuple(args, "new_coadd_t", 0, 0, 0)) SWIG_fail;
5783   result = (coadd_t *)calloc(1, sizeof(coadd_t));
5784   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coadd_t, SWIG_POINTER_NEW |  0 );
5785   return resultobj;
5786 fail:
5787   return NULL;
5788 }
5789 
5790 
_wrap_delete_coadd_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5791 SWIGINTERN PyObject *_wrap_delete_coadd_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5792   PyObject *resultobj = 0;
5793   coadd_t *arg1 = (coadd_t *) 0 ;
5794   void *argp1 = 0 ;
5795   int res1 = 0 ;
5796   PyObject *swig_obj[1] ;
5797 
5798   if (!args) SWIG_fail;
5799   swig_obj[0] = args;
5800   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, SWIG_POINTER_DISOWN |  0 );
5801   if (!SWIG_IsOK(res1)) {
5802     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coadd_t" "', argument " "1"" of type '" "coadd_t *""'");
5803   }
5804   arg1 = (coadd_t *)(argp1);
5805   free((char *) arg1);
5806   resultobj = SWIG_Py_Void();
5807   return resultobj;
5808 fail:
5809   return NULL;
5810 }
5811 
5812 
coadd_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5813 SWIGINTERN PyObject *coadd_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5814   PyObject *obj;
5815   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
5816   SWIG_TypeNewClientData(SWIGTYPE_p_coadd_t, SWIG_NewClientData(obj));
5817   return SWIG_Py_Void();
5818 }
5819 
coadd_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5820 SWIGINTERN PyObject *coadd_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5821   return SWIG_Python_InitShadowInstance(args);
5822 }
5823 
_wrap_coadd_new(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5824 SWIGINTERN PyObject *_wrap_coadd_new(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5825   PyObject *resultobj = 0;
5826   int arg1 ;
5827   int arg2 ;
5828   int val1 ;
5829   int ecode1 = 0 ;
5830   int val2 ;
5831   int ecode2 = 0 ;
5832   PyObject *swig_obj[2] ;
5833   coadd_t *result = 0 ;
5834 
5835   if (!SWIG_Python_UnpackTuple(args, "coadd_new", 2, 2, swig_obj)) SWIG_fail;
5836   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
5837   if (!SWIG_IsOK(ecode1)) {
5838     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "coadd_new" "', argument " "1"" of type '" "int""'");
5839   }
5840   arg1 = (int)(val1);
5841   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5842   if (!SWIG_IsOK(ecode2)) {
5843     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_new" "', argument " "2"" of type '" "int""'");
5844   }
5845   arg2 = (int)(val2);
5846   result = (coadd_t *)coadd_new(arg1,arg2);
5847   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coadd_t, 0 |  0 );
5848   return resultobj;
5849 fail:
5850   return NULL;
5851 }
5852 
5853 
_wrap_coadd_new_from_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5854 SWIGINTERN PyObject *_wrap_coadd_new_from_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5855   PyObject *resultobj = 0;
5856   anwcs_t *arg1 = (anwcs_t *) 0 ;
5857   void *argp1 = 0 ;
5858   int res1 = 0 ;
5859   PyObject *swig_obj[1] ;
5860   coadd_t *result = 0 ;
5861 
5862   if (!args) SWIG_fail;
5863   swig_obj[0] = args;
5864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
5865   if (!SWIG_IsOK(res1)) {
5866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_new_from_wcs" "', argument " "1"" of type '" "anwcs_t *""'");
5867   }
5868   arg1 = (anwcs_t *)(argp1);
5869   result = (coadd_t *)coadd_new_from_wcs(arg1);
5870   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coadd_t, 0 |  0 );
5871   return resultobj;
5872 fail:
5873   return NULL;
5874 }
5875 
5876 
_wrap_coadd_set_lanczos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5877 SWIGINTERN PyObject *_wrap_coadd_set_lanczos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5878   PyObject *resultobj = 0;
5879   coadd_t *arg1 = (coadd_t *) 0 ;
5880   int arg2 ;
5881   void *argp1 = 0 ;
5882   int res1 = 0 ;
5883   int val2 ;
5884   int ecode2 = 0 ;
5885   PyObject *swig_obj[2] ;
5886 
5887   if (!SWIG_Python_UnpackTuple(args, "coadd_set_lanczos", 2, 2, swig_obj)) SWIG_fail;
5888   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5889   if (!SWIG_IsOK(res1)) {
5890     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_set_lanczos" "', argument " "1"" of type '" "coadd_t *""'");
5891   }
5892   arg1 = (coadd_t *)(argp1);
5893   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5894   if (!SWIG_IsOK(ecode2)) {
5895     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_set_lanczos" "', argument " "2"" of type '" "int""'");
5896   }
5897   arg2 = (int)(val2);
5898   coadd_set_lanczos(arg1,arg2);
5899   resultobj = SWIG_Py_Void();
5900   return resultobj;
5901 fail:
5902   return NULL;
5903 }
5904 
5905 
_wrap_coadd_add_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5906 SWIGINTERN PyObject *_wrap_coadd_add_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5907   PyObject *resultobj = 0;
5908   coadd_t *arg1 = (coadd_t *) 0 ;
5909   number *arg2 = (number *) 0 ;
5910   number *arg3 = (number *) 0 ;
5911   number arg4 ;
5912   anwcs_t *arg5 = (anwcs_t *) 0 ;
5913   void *argp1 = 0 ;
5914   int res1 = 0 ;
5915   void *argp2 = 0 ;
5916   int res2 = 0 ;
5917   void *argp3 = 0 ;
5918   int res3 = 0 ;
5919   float val4 ;
5920   int ecode4 = 0 ;
5921   void *argp5 = 0 ;
5922   int res5 = 0 ;
5923   PyObject *swig_obj[5] ;
5924   int result;
5925 
5926   if (!SWIG_Python_UnpackTuple(args, "coadd_add_image", 5, 5, swig_obj)) SWIG_fail;
5927   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5928   if (!SWIG_IsOK(res1)) {
5929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_add_image" "', argument " "1"" of type '" "coadd_t *""'");
5930   }
5931   arg1 = (coadd_t *)(argp1);
5932   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
5933   if (!SWIG_IsOK(res2)) {
5934     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coadd_add_image" "', argument " "2"" of type '" "number const *""'");
5935   }
5936   arg2 = (number *)(argp2);
5937   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
5938   if (!SWIG_IsOK(res3)) {
5939     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "coadd_add_image" "', argument " "3"" of type '" "number const *""'");
5940   }
5941   arg3 = (number *)(argp3);
5942   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
5943   if (!SWIG_IsOK(ecode4)) {
5944     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "coadd_add_image" "', argument " "4"" of type '" "number""'");
5945   }
5946   arg4 = (number)(val4);
5947   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_anwcs_t, 0 |  0 );
5948   if (!SWIG_IsOK(res5)) {
5949     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "coadd_add_image" "', argument " "5"" of type '" "anwcs_t const *""'");
5950   }
5951   arg5 = (anwcs_t *)(argp5);
5952   result = (int)coadd_add_image(arg1,(float const *)arg2,(float const *)arg3,arg4,(struct anwcs_t const *)arg5);
5953   resultobj = SWIG_From_int((int)(result));
5954   return resultobj;
5955 fail:
5956   return NULL;
5957 }
5958 
5959 
_wrap_coadd_divide_by_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5960 SWIGINTERN PyObject *_wrap_coadd_divide_by_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5961   PyObject *resultobj = 0;
5962   coadd_t *arg1 = (coadd_t *) 0 ;
5963   number arg2 ;
5964   void *argp1 = 0 ;
5965   int res1 = 0 ;
5966   float val2 ;
5967   int ecode2 = 0 ;
5968   PyObject *swig_obj[2] ;
5969 
5970   if (!SWIG_Python_UnpackTuple(args, "coadd_divide_by_weight", 2, 2, swig_obj)) SWIG_fail;
5971   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
5972   if (!SWIG_IsOK(res1)) {
5973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_divide_by_weight" "', argument " "1"" of type '" "coadd_t *""'");
5974   }
5975   arg1 = (coadd_t *)(argp1);
5976   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
5977   if (!SWIG_IsOK(ecode2)) {
5978     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_divide_by_weight" "', argument " "2"" of type '" "number""'");
5979   }
5980   arg2 = (number)(val2);
5981   coadd_divide_by_weight(arg1,arg2);
5982   resultobj = SWIG_Py_Void();
5983   return resultobj;
5984 fail:
5985   return NULL;
5986 }
5987 
5988 
_wrap_coadd_get_snapshot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5989 SWIGINTERN PyObject *_wrap_coadd_get_snapshot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5990   PyObject *resultobj = 0;
5991   coadd_t *arg1 = (coadd_t *) 0 ;
5992   number *arg2 = (number *) 0 ;
5993   number arg3 ;
5994   void *argp1 = 0 ;
5995   int res1 = 0 ;
5996   void *argp2 = 0 ;
5997   int res2 = 0 ;
5998   float val3 ;
5999   int ecode3 = 0 ;
6000   PyObject *swig_obj[3] ;
6001   number *result = 0 ;
6002 
6003   if (!SWIG_Python_UnpackTuple(args, "coadd_get_snapshot", 3, 3, swig_obj)) SWIG_fail;
6004   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
6005   if (!SWIG_IsOK(res1)) {
6006     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_get_snapshot" "', argument " "1"" of type '" "coadd_t *""'");
6007   }
6008   arg1 = (coadd_t *)(argp1);
6009   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
6010   if (!SWIG_IsOK(res2)) {
6011     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coadd_get_snapshot" "', argument " "2"" of type '" "number *""'");
6012   }
6013   arg2 = (number *)(argp2);
6014   ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
6015   if (!SWIG_IsOK(ecode3)) {
6016     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "coadd_get_snapshot" "', argument " "3"" of type '" "number""'");
6017   }
6018   arg3 = (number)(val3);
6019   result = (number *)coadd_get_snapshot(arg1,arg2,arg3);
6020   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
6021   return resultobj;
6022 fail:
6023   return NULL;
6024 }
6025 
6026 
_wrap_coadd_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6027 SWIGINTERN PyObject *_wrap_coadd_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6028   PyObject *resultobj = 0;
6029   coadd_t *arg1 = (coadd_t *) 0 ;
6030   void *argp1 = 0 ;
6031   int res1 = 0 ;
6032   PyObject *swig_obj[1] ;
6033 
6034   if (!args) SWIG_fail;
6035   swig_obj[0] = args;
6036   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
6037   if (!SWIG_IsOK(res1)) {
6038     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_free" "', argument " "1"" of type '" "coadd_t *""'");
6039   }
6040   arg1 = (coadd_t *)(argp1);
6041   coadd_free(arg1);
6042   resultobj = SWIG_Py_Void();
6043   return resultobj;
6044 fail:
6045   return NULL;
6046 }
6047 
6048 
_wrap_coadd_debug(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6049 SWIGINTERN PyObject *_wrap_coadd_debug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050   PyObject *resultobj = 0;
6051   coadd_t *arg1 = (coadd_t *) 0 ;
6052   void *argp1 = 0 ;
6053   int res1 = 0 ;
6054   PyObject *swig_obj[1] ;
6055 
6056   if (!args) SWIG_fail;
6057   swig_obj[0] = args;
6058   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
6059   if (!SWIG_IsOK(res1)) {
6060     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_debug" "', argument " "1"" of type '" "coadd_t *""'");
6061   }
6062   arg1 = (coadd_t *)(argp1);
6063   coadd_debug(arg1);
6064   resultobj = SWIG_Py_Void();
6065   return resultobj;
6066 fail:
6067   return NULL;
6068 }
6069 
6070 
_wrap_coadd_create_weight_image_from_range(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6071 SWIGINTERN PyObject *_wrap_coadd_create_weight_image_from_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6072   PyObject *resultobj = 0;
6073   number *arg1 = (number *) 0 ;
6074   int arg2 ;
6075   int arg3 ;
6076   number arg4 ;
6077   number arg5 ;
6078   void *argp1 = 0 ;
6079   int res1 = 0 ;
6080   int val2 ;
6081   int ecode2 = 0 ;
6082   int val3 ;
6083   int ecode3 = 0 ;
6084   float val4 ;
6085   int ecode4 = 0 ;
6086   float val5 ;
6087   int ecode5 = 0 ;
6088   PyObject *swig_obj[5] ;
6089   number *result = 0 ;
6090 
6091   if (!SWIG_Python_UnpackTuple(args, "coadd_create_weight_image_from_range", 5, 5, swig_obj)) SWIG_fail;
6092   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
6093   if (!SWIG_IsOK(res1)) {
6094     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_create_weight_image_from_range" "', argument " "1"" of type '" "number const *""'");
6095   }
6096   arg1 = (number *)(argp1);
6097   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
6098   if (!SWIG_IsOK(ecode2)) {
6099     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_create_weight_image_from_range" "', argument " "2"" of type '" "int""'");
6100   }
6101   arg2 = (int)(val2);
6102   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
6103   if (!SWIG_IsOK(ecode3)) {
6104     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "coadd_create_weight_image_from_range" "', argument " "3"" of type '" "int""'");
6105   }
6106   arg3 = (int)(val3);
6107   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
6108   if (!SWIG_IsOK(ecode4)) {
6109     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "coadd_create_weight_image_from_range" "', argument " "4"" of type '" "number""'");
6110   }
6111   arg4 = (number)(val4);
6112   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
6113   if (!SWIG_IsOK(ecode5)) {
6114     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "coadd_create_weight_image_from_range" "', argument " "5"" of type '" "number""'");
6115   }
6116   arg5 = (number)(val5);
6117   result = (number *)coadd_create_weight_image_from_range((float const *)arg1,arg2,arg3,arg4,arg5);
6118   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
6119   return resultobj;
6120 fail:
6121   return NULL;
6122 }
6123 
6124 
_wrap_coadd_weight_image_mask_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6125 SWIGINTERN PyObject *_wrap_coadd_weight_image_mask_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6126   PyObject *resultobj = 0;
6127   number *arg1 = (number *) 0 ;
6128   int arg2 ;
6129   int arg3 ;
6130   number *arg4 = (number *) 0 ;
6131   number arg5 ;
6132   void *argp1 = 0 ;
6133   int res1 = 0 ;
6134   int val2 ;
6135   int ecode2 = 0 ;
6136   int val3 ;
6137   int ecode3 = 0 ;
6138   void *argp4 = 0 ;
6139   int res4 = 0 ;
6140   float val5 ;
6141   int ecode5 = 0 ;
6142   PyObject *swig_obj[5] ;
6143 
6144   if (!SWIG_Python_UnpackTuple(args, "coadd_weight_image_mask_value", 5, 5, swig_obj)) SWIG_fail;
6145   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
6146   if (!SWIG_IsOK(res1)) {
6147     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_weight_image_mask_value" "', argument " "1"" of type '" "number const *""'");
6148   }
6149   arg1 = (number *)(argp1);
6150   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
6151   if (!SWIG_IsOK(ecode2)) {
6152     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_weight_image_mask_value" "', argument " "2"" of type '" "int""'");
6153   }
6154   arg2 = (int)(val2);
6155   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
6156   if (!SWIG_IsOK(ecode3)) {
6157     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "coadd_weight_image_mask_value" "', argument " "3"" of type '" "int""'");
6158   }
6159   arg3 = (int)(val3);
6160   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
6161   if (!SWIG_IsOK(res4)) {
6162     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "coadd_weight_image_mask_value" "', argument " "4"" of type '" "number *""'");
6163   }
6164   arg4 = (number *)(argp4);
6165   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
6166   if (!SWIG_IsOK(ecode5)) {
6167     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "coadd_weight_image_mask_value" "', argument " "5"" of type '" "number""'");
6168   }
6169   arg5 = (number)(val5);
6170   coadd_weight_image_mask_value((float const *)arg1,arg2,arg3,arg4,arg5);
6171   resultobj = SWIG_Py_Void();
6172   return resultobj;
6173 fail:
6174   return NULL;
6175 }
6176 
6177 
_wrap_lanczos_args_t_order_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6178 SWIGINTERN PyObject *_wrap_lanczos_args_t_order_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6179   PyObject *resultobj = 0;
6180   lanczos_args_t *arg1 = (lanczos_args_t *) 0 ;
6181   int arg2 ;
6182   void *argp1 = 0 ;
6183   int res1 = 0 ;
6184   int val2 ;
6185   int ecode2 = 0 ;
6186   PyObject *swig_obj[2] ;
6187 
6188   if (!SWIG_Python_UnpackTuple(args, "lanczos_args_t_order_set", 2, 2, swig_obj)) SWIG_fail;
6189   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lanczos_args_t, 0 |  0 );
6190   if (!SWIG_IsOK(res1)) {
6191     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lanczos_args_t_order_set" "', argument " "1"" of type '" "lanczos_args_t *""'");
6192   }
6193   arg1 = (lanczos_args_t *)(argp1);
6194   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
6195   if (!SWIG_IsOK(ecode2)) {
6196     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lanczos_args_t_order_set" "', argument " "2"" of type '" "int""'");
6197   }
6198   arg2 = (int)(val2);
6199   if (arg1) (arg1)->order = arg2;
6200   resultobj = SWIG_Py_Void();
6201   return resultobj;
6202 fail:
6203   return NULL;
6204 }
6205 
6206 
_wrap_lanczos_args_t_order_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6207 SWIGINTERN PyObject *_wrap_lanczos_args_t_order_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6208   PyObject *resultobj = 0;
6209   lanczos_args_t *arg1 = (lanczos_args_t *) 0 ;
6210   void *argp1 = 0 ;
6211   int res1 = 0 ;
6212   PyObject *swig_obj[1] ;
6213   int result;
6214 
6215   if (!args) SWIG_fail;
6216   swig_obj[0] = args;
6217   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lanczos_args_t, 0 |  0 );
6218   if (!SWIG_IsOK(res1)) {
6219     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lanczos_args_t_order_get" "', argument " "1"" of type '" "lanczos_args_t *""'");
6220   }
6221   arg1 = (lanczos_args_t *)(argp1);
6222   result = (int) ((arg1)->order);
6223   resultobj = SWIG_From_int((int)(result));
6224   return resultobj;
6225 fail:
6226   return NULL;
6227 }
6228 
6229 
_wrap_lanczos_args_t_weighted_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6230 SWIGINTERN PyObject *_wrap_lanczos_args_t_weighted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6231   PyObject *resultobj = 0;
6232   lanczos_args_t *arg1 = (lanczos_args_t *) 0 ;
6233   int arg2 ;
6234   void *argp1 = 0 ;
6235   int res1 = 0 ;
6236   int val2 ;
6237   int ecode2 = 0 ;
6238   PyObject *swig_obj[2] ;
6239 
6240   if (!SWIG_Python_UnpackTuple(args, "lanczos_args_t_weighted_set", 2, 2, swig_obj)) SWIG_fail;
6241   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lanczos_args_t, 0 |  0 );
6242   if (!SWIG_IsOK(res1)) {
6243     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lanczos_args_t_weighted_set" "', argument " "1"" of type '" "lanczos_args_t *""'");
6244   }
6245   arg1 = (lanczos_args_t *)(argp1);
6246   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
6247   if (!SWIG_IsOK(ecode2)) {
6248     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lanczos_args_t_weighted_set" "', argument " "2"" of type '" "int""'");
6249   }
6250   arg2 = (int)(val2);
6251   if (arg1) (arg1)->weighted = arg2;
6252   resultobj = SWIG_Py_Void();
6253   return resultobj;
6254 fail:
6255   return NULL;
6256 }
6257 
6258 
_wrap_lanczos_args_t_weighted_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6259 SWIGINTERN PyObject *_wrap_lanczos_args_t_weighted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6260   PyObject *resultobj = 0;
6261   lanczos_args_t *arg1 = (lanczos_args_t *) 0 ;
6262   void *argp1 = 0 ;
6263   int res1 = 0 ;
6264   PyObject *swig_obj[1] ;
6265   int result;
6266 
6267   if (!args) SWIG_fail;
6268   swig_obj[0] = args;
6269   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lanczos_args_t, 0 |  0 );
6270   if (!SWIG_IsOK(res1)) {
6271     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lanczos_args_t_weighted_get" "', argument " "1"" of type '" "lanczos_args_t *""'");
6272   }
6273   arg1 = (lanczos_args_t *)(argp1);
6274   result = (int) ((arg1)->weighted);
6275   resultobj = SWIG_From_int((int)(result));
6276   return resultobj;
6277 fail:
6278   return NULL;
6279 }
6280 
6281 
_wrap_new_lanczos_args_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6282 SWIGINTERN PyObject *_wrap_new_lanczos_args_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6283   PyObject *resultobj = 0;
6284   lanczos_args_t *result = 0 ;
6285 
6286   if (!SWIG_Python_UnpackTuple(args, "new_lanczos_args_t", 0, 0, 0)) SWIG_fail;
6287   result = (lanczos_args_t *)calloc(1, sizeof(lanczos_args_t));
6288   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lanczos_args_t, SWIG_POINTER_NEW |  0 );
6289   return resultobj;
6290 fail:
6291   return NULL;
6292 }
6293 
6294 
_wrap_delete_lanczos_args_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6295 SWIGINTERN PyObject *_wrap_delete_lanczos_args_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6296   PyObject *resultobj = 0;
6297   lanczos_args_t *arg1 = (lanczos_args_t *) 0 ;
6298   void *argp1 = 0 ;
6299   int res1 = 0 ;
6300   PyObject *swig_obj[1] ;
6301 
6302   if (!args) SWIG_fail;
6303   swig_obj[0] = args;
6304   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lanczos_args_t, SWIG_POINTER_DISOWN |  0 );
6305   if (!SWIG_IsOK(res1)) {
6306     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_lanczos_args_t" "', argument " "1"" of type '" "lanczos_args_t *""'");
6307   }
6308   arg1 = (lanczos_args_t *)(argp1);
6309   free((char *) arg1);
6310   resultobj = SWIG_Py_Void();
6311   return resultobj;
6312 fail:
6313   return NULL;
6314 }
6315 
6316 
lanczos_args_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6317 SWIGINTERN PyObject *lanczos_args_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6318   PyObject *obj;
6319   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
6320   SWIG_TypeNewClientData(SWIGTYPE_p_lanczos_args_t, SWIG_NewClientData(obj));
6321   return SWIG_Py_Void();
6322 }
6323 
lanczos_args_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6324 SWIGINTERN PyObject *lanczos_args_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6325   return SWIG_Python_InitShadowInstance(args);
6326 }
6327 
_wrap_lanczos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6328 SWIGINTERN PyObject *_wrap_lanczos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6329   PyObject *resultobj = 0;
6330   double arg1 ;
6331   int arg2 ;
6332   double val1 ;
6333   int ecode1 = 0 ;
6334   int val2 ;
6335   int ecode2 = 0 ;
6336   PyObject *swig_obj[2] ;
6337   double result;
6338 
6339   if (!SWIG_Python_UnpackTuple(args, "lanczos", 2, 2, swig_obj)) SWIG_fail;
6340   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
6341   if (!SWIG_IsOK(ecode1)) {
6342     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "lanczos" "', argument " "1"" of type '" "double""'");
6343   }
6344   arg1 = (double)(val1);
6345   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
6346   if (!SWIG_IsOK(ecode2)) {
6347     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lanczos" "', argument " "2"" of type '" "int""'");
6348   }
6349   arg2 = (int)(val2);
6350   result = (double)lanczos(arg1,arg2);
6351   resultobj = SWIG_From_double((double)(result));
6352   return resultobj;
6353 fail:
6354   return NULL;
6355 }
6356 
6357 
_wrap_nearest_resample_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6358 SWIGINTERN PyObject *_wrap_nearest_resample_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6359   PyObject *resultobj = 0;
6360   double arg1 ;
6361   double arg2 ;
6362   float *arg3 = (float *) 0 ;
6363   float *arg4 = (float *) 0 ;
6364   int arg5 ;
6365   int arg6 ;
6366   double *arg7 = (double *) 0 ;
6367   void *arg8 = (void *) 0 ;
6368   double val1 ;
6369   int ecode1 = 0 ;
6370   double val2 ;
6371   int ecode2 = 0 ;
6372   void *argp3 = 0 ;
6373   int res3 = 0 ;
6374   void *argp4 = 0 ;
6375   int res4 = 0 ;
6376   int val5 ;
6377   int ecode5 = 0 ;
6378   int val6 ;
6379   int ecode6 = 0 ;
6380   void *argp7 = 0 ;
6381   int res7 = 0 ;
6382   int res8 ;
6383   PyObject *swig_obj[8] ;
6384   double result;
6385 
6386   if (!SWIG_Python_UnpackTuple(args, "nearest_resample_f", 8, 8, swig_obj)) SWIG_fail;
6387   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
6388   if (!SWIG_IsOK(ecode1)) {
6389     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "nearest_resample_f" "', argument " "1"" of type '" "double""'");
6390   }
6391   arg1 = (double)(val1);
6392   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6393   if (!SWIG_IsOK(ecode2)) {
6394     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "nearest_resample_f" "', argument " "2"" of type '" "double""'");
6395   }
6396   arg2 = (double)(val2);
6397   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
6398   if (!SWIG_IsOK(res3)) {
6399     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "nearest_resample_f" "', argument " "3"" of type '" "float const *""'");
6400   }
6401   arg3 = (float *)(argp3);
6402   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
6403   if (!SWIG_IsOK(res4)) {
6404     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "nearest_resample_f" "', argument " "4"" of type '" "float const *""'");
6405   }
6406   arg4 = (float *)(argp4);
6407   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
6408   if (!SWIG_IsOK(ecode5)) {
6409     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "nearest_resample_f" "', argument " "5"" of type '" "int""'");
6410   }
6411   arg5 = (int)(val5);
6412   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6413   if (!SWIG_IsOK(ecode6)) {
6414     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "nearest_resample_f" "', argument " "6"" of type '" "int""'");
6415   }
6416   arg6 = (int)(val6);
6417   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_double, 0 |  0 );
6418   if (!SWIG_IsOK(res7)) {
6419     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "nearest_resample_f" "', argument " "7"" of type '" "double *""'");
6420   }
6421   arg7 = (double *)(argp7);
6422   res8 = SWIG_ConvertPtr(swig_obj[7],SWIG_as_voidptrptr(&arg8), 0, 0);
6423   if (!SWIG_IsOK(res8)) {
6424     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "nearest_resample_f" "', argument " "8"" of type '" "void *""'");
6425   }
6426   result = (double)nearest_resample_f(arg1,arg2,(float const *)arg3,(float const *)arg4,arg5,arg6,arg7,arg8);
6427   resultobj = SWIG_From_double((double)(result));
6428   return resultobj;
6429 fail:
6430   return NULL;
6431 }
6432 
6433 
_wrap_lanczos_resample_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6434 SWIGINTERN PyObject *_wrap_lanczos_resample_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6435   PyObject *resultobj = 0;
6436   double arg1 ;
6437   double arg2 ;
6438   float *arg3 = (float *) 0 ;
6439   float *arg4 = (float *) 0 ;
6440   int arg5 ;
6441   int arg6 ;
6442   double *arg7 = (double *) 0 ;
6443   void *arg8 = (void *) 0 ;
6444   double val1 ;
6445   int ecode1 = 0 ;
6446   double val2 ;
6447   int ecode2 = 0 ;
6448   void *argp3 = 0 ;
6449   int res3 = 0 ;
6450   void *argp4 = 0 ;
6451   int res4 = 0 ;
6452   int val5 ;
6453   int ecode5 = 0 ;
6454   int val6 ;
6455   int ecode6 = 0 ;
6456   void *argp7 = 0 ;
6457   int res7 = 0 ;
6458   int res8 ;
6459   PyObject *swig_obj[8] ;
6460   double result;
6461 
6462   if (!SWIG_Python_UnpackTuple(args, "lanczos_resample_f", 8, 8, swig_obj)) SWIG_fail;
6463   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
6464   if (!SWIG_IsOK(ecode1)) {
6465     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "lanczos_resample_f" "', argument " "1"" of type '" "double""'");
6466   }
6467   arg1 = (double)(val1);
6468   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6469   if (!SWIG_IsOK(ecode2)) {
6470     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lanczos_resample_f" "', argument " "2"" of type '" "double""'");
6471   }
6472   arg2 = (double)(val2);
6473   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
6474   if (!SWIG_IsOK(res3)) {
6475     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lanczos_resample_f" "', argument " "3"" of type '" "float const *""'");
6476   }
6477   arg3 = (float *)(argp3);
6478   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
6479   if (!SWIG_IsOK(res4)) {
6480     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "lanczos_resample_f" "', argument " "4"" of type '" "float const *""'");
6481   }
6482   arg4 = (float *)(argp4);
6483   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
6484   if (!SWIG_IsOK(ecode5)) {
6485     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "lanczos_resample_f" "', argument " "5"" of type '" "int""'");
6486   }
6487   arg5 = (int)(val5);
6488   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6489   if (!SWIG_IsOK(ecode6)) {
6490     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "lanczos_resample_f" "', argument " "6"" of type '" "int""'");
6491   }
6492   arg6 = (int)(val6);
6493   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_double, 0 |  0 );
6494   if (!SWIG_IsOK(res7)) {
6495     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "lanczos_resample_f" "', argument " "7"" of type '" "double *""'");
6496   }
6497   arg7 = (double *)(argp7);
6498   res8 = SWIG_ConvertPtr(swig_obj[7],SWIG_as_voidptrptr(&arg8), 0, 0);
6499   if (!SWIG_IsOK(res8)) {
6500     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "lanczos_resample_f" "', argument " "8"" of type '" "void *""'");
6501   }
6502   result = (double)lanczos_resample_f(arg1,arg2,(float const *)arg3,(float const *)arg4,arg5,arg6,arg7,arg8);
6503   resultobj = SWIG_From_double((double)(result));
6504   return resultobj;
6505 fail:
6506   return NULL;
6507 }
6508 
6509 
_wrap_lanczos_resample_unw_sep_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6510 SWIGINTERN PyObject *_wrap_lanczos_resample_unw_sep_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511   PyObject *resultobj = 0;
6512   double arg1 ;
6513   double arg2 ;
6514   float *arg3 = (float *) 0 ;
6515   int arg4 ;
6516   int arg5 ;
6517   void *arg6 = (void *) 0 ;
6518   double val1 ;
6519   int ecode1 = 0 ;
6520   double val2 ;
6521   int ecode2 = 0 ;
6522   void *argp3 = 0 ;
6523   int res3 = 0 ;
6524   int val4 ;
6525   int ecode4 = 0 ;
6526   int val5 ;
6527   int ecode5 = 0 ;
6528   int res6 ;
6529   PyObject *swig_obj[6] ;
6530   double result;
6531 
6532   if (!SWIG_Python_UnpackTuple(args, "lanczos_resample_unw_sep_f", 6, 6, swig_obj)) SWIG_fail;
6533   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
6534   if (!SWIG_IsOK(ecode1)) {
6535     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "lanczos_resample_unw_sep_f" "', argument " "1"" of type '" "double""'");
6536   }
6537   arg1 = (double)(val1);
6538   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6539   if (!SWIG_IsOK(ecode2)) {
6540     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lanczos_resample_unw_sep_f" "', argument " "2"" of type '" "double""'");
6541   }
6542   arg2 = (double)(val2);
6543   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
6544   if (!SWIG_IsOK(res3)) {
6545     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lanczos_resample_unw_sep_f" "', argument " "3"" of type '" "float const *""'");
6546   }
6547   arg3 = (float *)(argp3);
6548   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
6549   if (!SWIG_IsOK(ecode4)) {
6550     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "lanczos_resample_unw_sep_f" "', argument " "4"" of type '" "int""'");
6551   }
6552   arg4 = (int)(val4);
6553   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
6554   if (!SWIG_IsOK(ecode5)) {
6555     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "lanczos_resample_unw_sep_f" "', argument " "5"" of type '" "int""'");
6556   }
6557   arg5 = (int)(val5);
6558   res6 = SWIG_ConvertPtr(swig_obj[5],SWIG_as_voidptrptr(&arg6), 0, 0);
6559   if (!SWIG_IsOK(res6)) {
6560     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "lanczos_resample_unw_sep_f" "', argument " "6"" of type '" "void *""'");
6561   }
6562   result = (double)lanczos_resample_unw_sep_f(arg1,arg2,(float const *)arg3,arg4,arg5,arg6);
6563   resultobj = SWIG_From_double((double)(result));
6564   return resultobj;
6565 fail:
6566   return NULL;
6567 }
6568 
6569 
_wrap_nearest_resample_d(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6570 SWIGINTERN PyObject *_wrap_nearest_resample_d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6571   PyObject *resultobj = 0;
6572   double arg1 ;
6573   double arg2 ;
6574   double *arg3 = (double *) 0 ;
6575   double *arg4 = (double *) 0 ;
6576   int arg5 ;
6577   int arg6 ;
6578   double *arg7 = (double *) 0 ;
6579   void *arg8 = (void *) 0 ;
6580   double val1 ;
6581   int ecode1 = 0 ;
6582   double val2 ;
6583   int ecode2 = 0 ;
6584   void *argp3 = 0 ;
6585   int res3 = 0 ;
6586   void *argp4 = 0 ;
6587   int res4 = 0 ;
6588   int val5 ;
6589   int ecode5 = 0 ;
6590   int val6 ;
6591   int ecode6 = 0 ;
6592   void *argp7 = 0 ;
6593   int res7 = 0 ;
6594   int res8 ;
6595   PyObject *swig_obj[8] ;
6596   double result;
6597 
6598   if (!SWIG_Python_UnpackTuple(args, "nearest_resample_d", 8, 8, swig_obj)) SWIG_fail;
6599   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
6600   if (!SWIG_IsOK(ecode1)) {
6601     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "nearest_resample_d" "', argument " "1"" of type '" "double""'");
6602   }
6603   arg1 = (double)(val1);
6604   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6605   if (!SWIG_IsOK(ecode2)) {
6606     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "nearest_resample_d" "', argument " "2"" of type '" "double""'");
6607   }
6608   arg2 = (double)(val2);
6609   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
6610   if (!SWIG_IsOK(res3)) {
6611     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "nearest_resample_d" "', argument " "3"" of type '" "double const *""'");
6612   }
6613   arg3 = (double *)(argp3);
6614   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
6615   if (!SWIG_IsOK(res4)) {
6616     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "nearest_resample_d" "', argument " "4"" of type '" "double const *""'");
6617   }
6618   arg4 = (double *)(argp4);
6619   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
6620   if (!SWIG_IsOK(ecode5)) {
6621     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "nearest_resample_d" "', argument " "5"" of type '" "int""'");
6622   }
6623   arg5 = (int)(val5);
6624   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6625   if (!SWIG_IsOK(ecode6)) {
6626     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "nearest_resample_d" "', argument " "6"" of type '" "int""'");
6627   }
6628   arg6 = (int)(val6);
6629   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_double, 0 |  0 );
6630   if (!SWIG_IsOK(res7)) {
6631     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "nearest_resample_d" "', argument " "7"" of type '" "double *""'");
6632   }
6633   arg7 = (double *)(argp7);
6634   res8 = SWIG_ConvertPtr(swig_obj[7],SWIG_as_voidptrptr(&arg8), 0, 0);
6635   if (!SWIG_IsOK(res8)) {
6636     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "nearest_resample_d" "', argument " "8"" of type '" "void *""'");
6637   }
6638   result = (double)nearest_resample_d(arg1,arg2,(double const *)arg3,(double const *)arg4,arg5,arg6,arg7,arg8);
6639   resultobj = SWIG_From_double((double)(result));
6640   return resultobj;
6641 fail:
6642   return NULL;
6643 }
6644 
6645 
_wrap_lanczos_resample_d(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6646 SWIGINTERN PyObject *_wrap_lanczos_resample_d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6647   PyObject *resultobj = 0;
6648   double arg1 ;
6649   double arg2 ;
6650   double *arg3 = (double *) 0 ;
6651   double *arg4 = (double *) 0 ;
6652   int arg5 ;
6653   int arg6 ;
6654   double *arg7 = (double *) 0 ;
6655   void *arg8 = (void *) 0 ;
6656   double val1 ;
6657   int ecode1 = 0 ;
6658   double val2 ;
6659   int ecode2 = 0 ;
6660   void *argp3 = 0 ;
6661   int res3 = 0 ;
6662   void *argp4 = 0 ;
6663   int res4 = 0 ;
6664   int val5 ;
6665   int ecode5 = 0 ;
6666   int val6 ;
6667   int ecode6 = 0 ;
6668   void *argp7 = 0 ;
6669   int res7 = 0 ;
6670   int res8 ;
6671   PyObject *swig_obj[8] ;
6672   double result;
6673 
6674   if (!SWIG_Python_UnpackTuple(args, "lanczos_resample_d", 8, 8, swig_obj)) SWIG_fail;
6675   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
6676   if (!SWIG_IsOK(ecode1)) {
6677     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "lanczos_resample_d" "', argument " "1"" of type '" "double""'");
6678   }
6679   arg1 = (double)(val1);
6680   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6681   if (!SWIG_IsOK(ecode2)) {
6682     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lanczos_resample_d" "', argument " "2"" of type '" "double""'");
6683   }
6684   arg2 = (double)(val2);
6685   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
6686   if (!SWIG_IsOK(res3)) {
6687     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lanczos_resample_d" "', argument " "3"" of type '" "double const *""'");
6688   }
6689   arg3 = (double *)(argp3);
6690   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
6691   if (!SWIG_IsOK(res4)) {
6692     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "lanczos_resample_d" "', argument " "4"" of type '" "double const *""'");
6693   }
6694   arg4 = (double *)(argp4);
6695   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
6696   if (!SWIG_IsOK(ecode5)) {
6697     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "lanczos_resample_d" "', argument " "5"" of type '" "int""'");
6698   }
6699   arg5 = (int)(val5);
6700   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6701   if (!SWIG_IsOK(ecode6)) {
6702     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "lanczos_resample_d" "', argument " "6"" of type '" "int""'");
6703   }
6704   arg6 = (int)(val6);
6705   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_double, 0 |  0 );
6706   if (!SWIG_IsOK(res7)) {
6707     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "lanczos_resample_d" "', argument " "7"" of type '" "double *""'");
6708   }
6709   arg7 = (double *)(argp7);
6710   res8 = SWIG_ConvertPtr(swig_obj[7],SWIG_as_voidptrptr(&arg8), 0, 0);
6711   if (!SWIG_IsOK(res8)) {
6712     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "lanczos_resample_d" "', argument " "8"" of type '" "void *""'");
6713   }
6714   result = (double)lanczos_resample_d(arg1,arg2,(double const *)arg3,(double const *)arg4,arg5,arg6,arg7,arg8);
6715   resultobj = SWIG_From_double((double)(result));
6716   return resultobj;
6717 fail:
6718   return NULL;
6719 }
6720 
6721 
_wrap_fit_sip_coefficients(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6722 SWIGINTERN PyObject *_wrap_fit_sip_coefficients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6723   PyObject *resultobj = 0;
6724   double *arg1 = (double *) 0 ;
6725   double *arg2 = (double *) 0 ;
6726   double *arg3 = (double *) 0 ;
6727   int arg4 ;
6728   tan_t *arg5 = (tan_t *) 0 ;
6729   int arg6 ;
6730   int arg7 ;
6731   sip_t *arg8 = (sip_t *) 0 ;
6732   void *argp1 = 0 ;
6733   int res1 = 0 ;
6734   void *argp2 = 0 ;
6735   int res2 = 0 ;
6736   void *argp3 = 0 ;
6737   int res3 = 0 ;
6738   int val4 ;
6739   int ecode4 = 0 ;
6740   void *argp5 = 0 ;
6741   int res5 = 0 ;
6742   int val6 ;
6743   int ecode6 = 0 ;
6744   int val7 ;
6745   int ecode7 = 0 ;
6746   void *argp8 = 0 ;
6747   int res8 = 0 ;
6748   PyObject *swig_obj[8] ;
6749   int result;
6750 
6751   if (!SWIG_Python_UnpackTuple(args, "fit_sip_coefficients", 8, 8, swig_obj)) SWIG_fail;
6752   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
6753   if (!SWIG_IsOK(res1)) {
6754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_sip_coefficients" "', argument " "1"" of type '" "double const *""'");
6755   }
6756   arg1 = (double *)(argp1);
6757   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
6758   if (!SWIG_IsOK(res2)) {
6759     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_sip_coefficients" "', argument " "2"" of type '" "double const *""'");
6760   }
6761   arg2 = (double *)(argp2);
6762   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
6763   if (!SWIG_IsOK(res3)) {
6764     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fit_sip_coefficients" "', argument " "3"" of type '" "double const *""'");
6765   }
6766   arg3 = (double *)(argp3);
6767   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
6768   if (!SWIG_IsOK(ecode4)) {
6769     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fit_sip_coefficients" "', argument " "4"" of type '" "int""'");
6770   }
6771   arg4 = (int)(val4);
6772   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_tan_t, 0 |  0 );
6773   if (!SWIG_IsOK(res5)) {
6774     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fit_sip_coefficients" "', argument " "5"" of type '" "tan_t const *""'");
6775   }
6776   arg5 = (tan_t *)(argp5);
6777   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6778   if (!SWIG_IsOK(ecode6)) {
6779     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fit_sip_coefficients" "', argument " "6"" of type '" "int""'");
6780   }
6781   arg6 = (int)(val6);
6782   ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
6783   if (!SWIG_IsOK(ecode7)) {
6784     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "fit_sip_coefficients" "', argument " "7"" of type '" "int""'");
6785   }
6786   arg7 = (int)(val7);
6787   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_sip_t, 0 |  0 );
6788   if (!SWIG_IsOK(res8)) {
6789     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "fit_sip_coefficients" "', argument " "8"" of type '" "sip_t *""'");
6790   }
6791   arg8 = (sip_t *)(argp8);
6792   result = (int)fit_sip_coefficients((double const *)arg1,(double const *)arg2,(double const *)arg3,arg4,(tan_t const *)arg5,arg6,arg7,arg8);
6793   resultobj = SWIG_From_int((int)(result));
6794   return resultobj;
6795 fail:
6796   return NULL;
6797 }
6798 
6799 
_wrap_wcs_shift(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6800 SWIGINTERN PyObject *_wrap_wcs_shift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6801   PyObject *resultobj = 0;
6802   tan_t *arg1 = (tan_t *) 0 ;
6803   double arg2 ;
6804   double arg3 ;
6805   void *argp1 = 0 ;
6806   int res1 = 0 ;
6807   double val2 ;
6808   int ecode2 = 0 ;
6809   double val3 ;
6810   int ecode3 = 0 ;
6811   PyObject *swig_obj[3] ;
6812 
6813   if (!SWIG_Python_UnpackTuple(args, "wcs_shift", 3, 3, swig_obj)) SWIG_fail;
6814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
6815   if (!SWIG_IsOK(res1)) {
6816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wcs_shift" "', argument " "1"" of type '" "tan_t *""'");
6817   }
6818   arg1 = (tan_t *)(argp1);
6819   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6820   if (!SWIG_IsOK(ecode2)) {
6821     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wcs_shift" "', argument " "2"" of type '" "double""'");
6822   }
6823   arg2 = (double)(val2);
6824   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
6825   if (!SWIG_IsOK(ecode3)) {
6826     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "wcs_shift" "', argument " "3"" of type '" "double""'");
6827   }
6828   arg3 = (double)(val3);
6829   wcs_shift(arg1,arg2,arg3);
6830   resultobj = SWIG_Py_Void();
6831   return resultobj;
6832 fail:
6833   return NULL;
6834 }
6835 
6836 
_wrap_fit_sip_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6837 SWIGINTERN PyObject *_wrap_fit_sip_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6838   PyObject *resultobj = 0;
6839   double *arg1 = (double *) 0 ;
6840   double *arg2 = (double *) 0 ;
6841   double *arg3 = (double *) 0 ;
6842   int arg4 ;
6843   tan_t *arg5 = (tan_t *) 0 ;
6844   int arg6 ;
6845   int arg7 ;
6846   int arg8 ;
6847   sip_t *arg9 = (sip_t *) 0 ;
6848   void *argp1 = 0 ;
6849   int res1 = 0 ;
6850   void *argp2 = 0 ;
6851   int res2 = 0 ;
6852   void *argp3 = 0 ;
6853   int res3 = 0 ;
6854   int val4 ;
6855   int ecode4 = 0 ;
6856   void *argp5 = 0 ;
6857   int res5 = 0 ;
6858   int val6 ;
6859   int ecode6 = 0 ;
6860   int val7 ;
6861   int ecode7 = 0 ;
6862   int val8 ;
6863   int ecode8 = 0 ;
6864   void *argp9 = 0 ;
6865   int res9 = 0 ;
6866   PyObject *swig_obj[9] ;
6867   int result;
6868 
6869   if (!SWIG_Python_UnpackTuple(args, "fit_sip_wcs", 9, 9, swig_obj)) SWIG_fail;
6870   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
6871   if (!SWIG_IsOK(res1)) {
6872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_sip_wcs" "', argument " "1"" of type '" "double const *""'");
6873   }
6874   arg1 = (double *)(argp1);
6875   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
6876   if (!SWIG_IsOK(res2)) {
6877     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_sip_wcs" "', argument " "2"" of type '" "double const *""'");
6878   }
6879   arg2 = (double *)(argp2);
6880   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
6881   if (!SWIG_IsOK(res3)) {
6882     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fit_sip_wcs" "', argument " "3"" of type '" "double const *""'");
6883   }
6884   arg3 = (double *)(argp3);
6885   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
6886   if (!SWIG_IsOK(ecode4)) {
6887     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fit_sip_wcs" "', argument " "4"" of type '" "int""'");
6888   }
6889   arg4 = (int)(val4);
6890   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_tan_t, 0 |  0 );
6891   if (!SWIG_IsOK(res5)) {
6892     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fit_sip_wcs" "', argument " "5"" of type '" "tan_t const *""'");
6893   }
6894   arg5 = (tan_t *)(argp5);
6895   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6896   if (!SWIG_IsOK(ecode6)) {
6897     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fit_sip_wcs" "', argument " "6"" of type '" "int""'");
6898   }
6899   arg6 = (int)(val6);
6900   ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
6901   if (!SWIG_IsOK(ecode7)) {
6902     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "fit_sip_wcs" "', argument " "7"" of type '" "int""'");
6903   }
6904   arg7 = (int)(val7);
6905   ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
6906   if (!SWIG_IsOK(ecode8)) {
6907     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "fit_sip_wcs" "', argument " "8"" of type '" "int""'");
6908   }
6909   arg8 = (int)(val8);
6910   res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_sip_t, 0 |  0 );
6911   if (!SWIG_IsOK(res9)) {
6912     SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "fit_sip_wcs" "', argument " "9"" of type '" "sip_t *""'");
6913   }
6914   arg9 = (sip_t *)(argp9);
6915   result = (int)fit_sip_wcs((double const *)arg1,(double const *)arg2,(double const *)arg3,arg4,(tan_t const *)arg5,arg6,arg7,arg8,arg9);
6916   resultobj = SWIG_From_int((int)(result));
6917   return resultobj;
6918 fail:
6919   return NULL;
6920 }
6921 
6922 
_wrap_fit_sip_wcs_2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6923 SWIGINTERN PyObject *_wrap_fit_sip_wcs_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6924   PyObject *resultobj = 0;
6925   double *arg1 = (double *) 0 ;
6926   double *arg2 = (double *) 0 ;
6927   double *arg3 = (double *) 0 ;
6928   int arg4 ;
6929   int arg5 ;
6930   int arg6 ;
6931   int arg7 ;
6932   int arg8 ;
6933   int arg9 ;
6934   double *arg10 = (double *) 0 ;
6935   int arg11 ;
6936   sip_t *arg12 = (sip_t *) 0 ;
6937   void *argp1 = 0 ;
6938   int res1 = 0 ;
6939   void *argp2 = 0 ;
6940   int res2 = 0 ;
6941   void *argp3 = 0 ;
6942   int res3 = 0 ;
6943   int val4 ;
6944   int ecode4 = 0 ;
6945   int val5 ;
6946   int ecode5 = 0 ;
6947   int val6 ;
6948   int ecode6 = 0 ;
6949   int val7 ;
6950   int ecode7 = 0 ;
6951   int val8 ;
6952   int ecode8 = 0 ;
6953   int val9 ;
6954   int ecode9 = 0 ;
6955   void *argp10 = 0 ;
6956   int res10 = 0 ;
6957   int val11 ;
6958   int ecode11 = 0 ;
6959   void *argp12 = 0 ;
6960   int res12 = 0 ;
6961   PyObject *swig_obj[12] ;
6962   int result;
6963 
6964   if (!SWIG_Python_UnpackTuple(args, "fit_sip_wcs_2", 12, 12, swig_obj)) SWIG_fail;
6965   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
6966   if (!SWIG_IsOK(res1)) {
6967     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_sip_wcs_2" "', argument " "1"" of type '" "double const *""'");
6968   }
6969   arg1 = (double *)(argp1);
6970   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
6971   if (!SWIG_IsOK(res2)) {
6972     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_sip_wcs_2" "', argument " "2"" of type '" "double const *""'");
6973   }
6974   arg2 = (double *)(argp2);
6975   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
6976   if (!SWIG_IsOK(res3)) {
6977     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fit_sip_wcs_2" "', argument " "3"" of type '" "double const *""'");
6978   }
6979   arg3 = (double *)(argp3);
6980   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
6981   if (!SWIG_IsOK(ecode4)) {
6982     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fit_sip_wcs_2" "', argument " "4"" of type '" "int""'");
6983   }
6984   arg4 = (int)(val4);
6985   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
6986   if (!SWIG_IsOK(ecode5)) {
6987     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fit_sip_wcs_2" "', argument " "5"" of type '" "int""'");
6988   }
6989   arg5 = (int)(val5);
6990   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
6991   if (!SWIG_IsOK(ecode6)) {
6992     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fit_sip_wcs_2" "', argument " "6"" of type '" "int""'");
6993   }
6994   arg6 = (int)(val6);
6995   ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
6996   if (!SWIG_IsOK(ecode7)) {
6997     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "fit_sip_wcs_2" "', argument " "7"" of type '" "int""'");
6998   }
6999   arg7 = (int)(val7);
7000   ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
7001   if (!SWIG_IsOK(ecode8)) {
7002     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "fit_sip_wcs_2" "', argument " "8"" of type '" "int""'");
7003   }
7004   arg8 = (int)(val8);
7005   ecode9 = SWIG_AsVal_int(swig_obj[8], &val9);
7006   if (!SWIG_IsOK(ecode9)) {
7007     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "fit_sip_wcs_2" "', argument " "9"" of type '" "int""'");
7008   }
7009   arg9 = (int)(val9);
7010   res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_double, 0 |  0 );
7011   if (!SWIG_IsOK(res10)) {
7012     SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "fit_sip_wcs_2" "', argument " "10"" of type '" "double *""'");
7013   }
7014   arg10 = (double *)(argp10);
7015   ecode11 = SWIG_AsVal_int(swig_obj[10], &val11);
7016   if (!SWIG_IsOK(ecode11)) {
7017     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "fit_sip_wcs_2" "', argument " "11"" of type '" "int""'");
7018   }
7019   arg11 = (int)(val11);
7020   res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_sip_t, 0 |  0 );
7021   if (!SWIG_IsOK(res12)) {
7022     SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "fit_sip_wcs_2" "', argument " "12"" of type '" "sip_t *""'");
7023   }
7024   arg12 = (sip_t *)(argp12);
7025   result = (int)fit_sip_wcs_2((double const *)arg1,(double const *)arg2,(double const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
7026   resultobj = SWIG_From_int((int)(result));
7027   return resultobj;
7028 fail:
7029   return NULL;
7030 }
7031 
7032 
_wrap_fit_tan_wcs_move_tangent_point(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7033 SWIGINTERN PyObject *_wrap_fit_tan_wcs_move_tangent_point(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7034   PyObject *resultobj = 0;
7035   double *arg1 = (double *) 0 ;
7036   double *arg2 = (double *) 0 ;
7037   int arg3 ;
7038   double *arg4 = (double *) 0 ;
7039   tan_t *arg5 = (tan_t *) 0 ;
7040   tan_t *arg6 = (tan_t *) 0 ;
7041   void *argp1 = 0 ;
7042   int res1 = 0 ;
7043   void *argp2 = 0 ;
7044   int res2 = 0 ;
7045   int val3 ;
7046   int ecode3 = 0 ;
7047   void *argp4 = 0 ;
7048   int res4 = 0 ;
7049   void *argp5 = 0 ;
7050   int res5 = 0 ;
7051   void *argp6 = 0 ;
7052   int res6 = 0 ;
7053   PyObject *swig_obj[6] ;
7054   int result;
7055 
7056   if (!SWIG_Python_UnpackTuple(args, "fit_tan_wcs_move_tangent_point", 6, 6, swig_obj)) SWIG_fail;
7057   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
7058   if (!SWIG_IsOK(res1)) {
7059     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_tan_wcs_move_tangent_point" "', argument " "1"" of type '" "double const *""'");
7060   }
7061   arg1 = (double *)(argp1);
7062   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
7063   if (!SWIG_IsOK(res2)) {
7064     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_tan_wcs_move_tangent_point" "', argument " "2"" of type '" "double const *""'");
7065   }
7066   arg2 = (double *)(argp2);
7067   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
7068   if (!SWIG_IsOK(ecode3)) {
7069     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fit_tan_wcs_move_tangent_point" "', argument " "3"" of type '" "int""'");
7070   }
7071   arg3 = (int)(val3);
7072   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
7073   if (!SWIG_IsOK(res4)) {
7074     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fit_tan_wcs_move_tangent_point" "', argument " "4"" of type '" "double const *""'");
7075   }
7076   arg4 = (double *)(argp4);
7077   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_tan_t, 0 |  0 );
7078   if (!SWIG_IsOK(res5)) {
7079     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fit_tan_wcs_move_tangent_point" "', argument " "5"" of type '" "tan_t const *""'");
7080   }
7081   arg5 = (tan_t *)(argp5);
7082   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_tan_t, 0 |  0 );
7083   if (!SWIG_IsOK(res6)) {
7084     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "fit_tan_wcs_move_tangent_point" "', argument " "6"" of type '" "tan_t *""'");
7085   }
7086   arg6 = (tan_t *)(argp6);
7087   result = (int)fit_tan_wcs_move_tangent_point((double const *)arg1,(double const *)arg2,arg3,(double const *)arg4,(tan_t const *)arg5,arg6);
7088   resultobj = SWIG_From_int((int)(result));
7089   return resultobj;
7090 fail:
7091   return NULL;
7092 }
7093 
7094 
_wrap_fit_tan_wcs_move_tangent_point_weighted(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7095 SWIGINTERN PyObject *_wrap_fit_tan_wcs_move_tangent_point_weighted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7096   PyObject *resultobj = 0;
7097   double *arg1 = (double *) 0 ;
7098   double *arg2 = (double *) 0 ;
7099   double *arg3 = (double *) 0 ;
7100   int arg4 ;
7101   double *arg5 = (double *) 0 ;
7102   tan_t *arg6 = (tan_t *) 0 ;
7103   tan_t *arg7 = (tan_t *) 0 ;
7104   void *argp1 = 0 ;
7105   int res1 = 0 ;
7106   void *argp2 = 0 ;
7107   int res2 = 0 ;
7108   void *argp3 = 0 ;
7109   int res3 = 0 ;
7110   int val4 ;
7111   int ecode4 = 0 ;
7112   void *argp5 = 0 ;
7113   int res5 = 0 ;
7114   void *argp6 = 0 ;
7115   int res6 = 0 ;
7116   void *argp7 = 0 ;
7117   int res7 = 0 ;
7118   PyObject *swig_obj[7] ;
7119   int result;
7120 
7121   if (!SWIG_Python_UnpackTuple(args, "fit_tan_wcs_move_tangent_point_weighted", 7, 7, swig_obj)) SWIG_fail;
7122   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
7123   if (!SWIG_IsOK(res1)) {
7124     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "1"" of type '" "double const *""'");
7125   }
7126   arg1 = (double *)(argp1);
7127   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
7128   if (!SWIG_IsOK(res2)) {
7129     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "2"" of type '" "double const *""'");
7130   }
7131   arg2 = (double *)(argp2);
7132   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
7133   if (!SWIG_IsOK(res3)) {
7134     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "3"" of type '" "double const *""'");
7135   }
7136   arg3 = (double *)(argp3);
7137   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
7138   if (!SWIG_IsOK(ecode4)) {
7139     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "4"" of type '" "int""'");
7140   }
7141   arg4 = (int)(val4);
7142   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
7143   if (!SWIG_IsOK(res5)) {
7144     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "5"" of type '" "double const *""'");
7145   }
7146   arg5 = (double *)(argp5);
7147   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_tan_t, 0 |  0 );
7148   if (!SWIG_IsOK(res6)) {
7149     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "6"" of type '" "tan_t const *""'");
7150   }
7151   arg6 = (tan_t *)(argp6);
7152   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_tan_t, 0 |  0 );
7153   if (!SWIG_IsOK(res7)) {
7154     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "fit_tan_wcs_move_tangent_point_weighted" "', argument " "7"" of type '" "tan_t *""'");
7155   }
7156   arg7 = (tan_t *)(argp7);
7157   result = (int)fit_tan_wcs_move_tangent_point_weighted((double const *)arg1,(double const *)arg2,(double const *)arg3,arg4,(double const *)arg5,(tan_t const *)arg6,arg7);
7158   resultobj = SWIG_From_int((int)(result));
7159   return resultobj;
7160 fail:
7161   return NULL;
7162 }
7163 
7164 
_wrap_fit_tan_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7165 SWIGINTERN PyObject *_wrap_fit_tan_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7166   PyObject *resultobj = 0;
7167   double *arg1 = (double *) 0 ;
7168   double *arg2 = (double *) 0 ;
7169   int arg3 ;
7170   tan_t *arg4 = (tan_t *) 0 ;
7171   double *arg5 = (double *) 0 ;
7172   void *argp1 = 0 ;
7173   int res1 = 0 ;
7174   void *argp2 = 0 ;
7175   int res2 = 0 ;
7176   int val3 ;
7177   int ecode3 = 0 ;
7178   void *argp4 = 0 ;
7179   int res4 = 0 ;
7180   void *argp5 = 0 ;
7181   int res5 = 0 ;
7182   PyObject *swig_obj[5] ;
7183   int result;
7184 
7185   if (!SWIG_Python_UnpackTuple(args, "fit_tan_wcs", 5, 5, swig_obj)) SWIG_fail;
7186   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
7187   if (!SWIG_IsOK(res1)) {
7188     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_tan_wcs" "', argument " "1"" of type '" "double const *""'");
7189   }
7190   arg1 = (double *)(argp1);
7191   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
7192   if (!SWIG_IsOK(res2)) {
7193     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_tan_wcs" "', argument " "2"" of type '" "double const *""'");
7194   }
7195   arg2 = (double *)(argp2);
7196   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
7197   if (!SWIG_IsOK(ecode3)) {
7198     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fit_tan_wcs" "', argument " "3"" of type '" "int""'");
7199   }
7200   arg3 = (int)(val3);
7201   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_tan_t, 0 |  0 );
7202   if (!SWIG_IsOK(res4)) {
7203     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fit_tan_wcs" "', argument " "4"" of type '" "tan_t *""'");
7204   }
7205   arg4 = (tan_t *)(argp4);
7206   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
7207   if (!SWIG_IsOK(res5)) {
7208     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fit_tan_wcs" "', argument " "5"" of type '" "double *""'");
7209   }
7210   arg5 = (double *)(argp5);
7211   result = (int)fit_tan_wcs((double const *)arg1,(double const *)arg2,arg3,arg4,arg5);
7212   resultobj = SWIG_From_int((int)(result));
7213   return resultobj;
7214 fail:
7215   return NULL;
7216 }
7217 
7218 
_wrap_fit_tan_wcs_weighted(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7219 SWIGINTERN PyObject *_wrap_fit_tan_wcs_weighted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7220   PyObject *resultobj = 0;
7221   double *arg1 = (double *) 0 ;
7222   double *arg2 = (double *) 0 ;
7223   double *arg3 = (double *) 0 ;
7224   int arg4 ;
7225   tan_t *arg5 = (tan_t *) 0 ;
7226   double *arg6 = (double *) 0 ;
7227   void *argp1 = 0 ;
7228   int res1 = 0 ;
7229   void *argp2 = 0 ;
7230   int res2 = 0 ;
7231   void *argp3 = 0 ;
7232   int res3 = 0 ;
7233   int val4 ;
7234   int ecode4 = 0 ;
7235   void *argp5 = 0 ;
7236   int res5 = 0 ;
7237   void *argp6 = 0 ;
7238   int res6 = 0 ;
7239   PyObject *swig_obj[6] ;
7240   int result;
7241 
7242   if (!SWIG_Python_UnpackTuple(args, "fit_tan_wcs_weighted", 6, 6, swig_obj)) SWIG_fail;
7243   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
7244   if (!SWIG_IsOK(res1)) {
7245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_tan_wcs_weighted" "', argument " "1"" of type '" "double const *""'");
7246   }
7247   arg1 = (double *)(argp1);
7248   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
7249   if (!SWIG_IsOK(res2)) {
7250     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_tan_wcs_weighted" "', argument " "2"" of type '" "double const *""'");
7251   }
7252   arg2 = (double *)(argp2);
7253   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
7254   if (!SWIG_IsOK(res3)) {
7255     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fit_tan_wcs_weighted" "', argument " "3"" of type '" "double const *""'");
7256   }
7257   arg3 = (double *)(argp3);
7258   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
7259   if (!SWIG_IsOK(ecode4)) {
7260     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fit_tan_wcs_weighted" "', argument " "4"" of type '" "int""'");
7261   }
7262   arg4 = (int)(val4);
7263   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_tan_t, 0 |  0 );
7264   if (!SWIG_IsOK(res5)) {
7265     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fit_tan_wcs_weighted" "', argument " "5"" of type '" "tan_t *""'");
7266   }
7267   arg5 = (tan_t *)(argp5);
7268   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_double, 0 |  0 );
7269   if (!SWIG_IsOK(res6)) {
7270     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "fit_tan_wcs_weighted" "', argument " "6"" of type '" "double *""'");
7271   }
7272   arg6 = (double *)(argp6);
7273   result = (int)fit_tan_wcs_weighted((double const *)arg1,(double const *)arg2,(double const *)arg3,arg4,arg5,arg6);
7274   resultobj = SWIG_From_int((int)(result));
7275   return resultobj;
7276 fail:
7277   return NULL;
7278 }
7279 
7280 
_wrap_print_array(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7281 SWIGINTERN PyObject *_wrap_print_array(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7282   PyObject *resultobj = 0;
7283   PyObject *arg1 = (PyObject *) 0 ;
7284   PyObject *swig_obj[1] ;
7285 
7286   if (!args) SWIG_fail;
7287   swig_obj[0] = args;
7288   arg1 = swig_obj[0];
7289   print_array(arg1);
7290   resultobj = SWIG_Py_Void();
7291   return resultobj;
7292 fail:
7293   return NULL;
7294 }
7295 
7296 
_wrap_an_hist2d(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7297 SWIGINTERN PyObject *_wrap_an_hist2d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7298   PyObject *resultobj = 0;
7299   PyObject *arg1 = (PyObject *) 0 ;
7300   PyObject *arg2 = (PyObject *) 0 ;
7301   PyObject *arg3 = (PyObject *) 0 ;
7302   double arg4 ;
7303   double arg5 ;
7304   double arg6 ;
7305   double arg7 ;
7306   double val4 ;
7307   int ecode4 = 0 ;
7308   double val5 ;
7309   int ecode5 = 0 ;
7310   double val6 ;
7311   int ecode6 = 0 ;
7312   double val7 ;
7313   int ecode7 = 0 ;
7314   PyObject *swig_obj[7] ;
7315   PyObject *result = 0 ;
7316 
7317   if (!SWIG_Python_UnpackTuple(args, "an_hist2d", 7, 7, swig_obj)) SWIG_fail;
7318   arg1 = swig_obj[0];
7319   arg2 = swig_obj[1];
7320   arg3 = swig_obj[2];
7321   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
7322   if (!SWIG_IsOK(ecode4)) {
7323     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "an_hist2d" "', argument " "4"" of type '" "double""'");
7324   }
7325   arg4 = (double)(val4);
7326   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
7327   if (!SWIG_IsOK(ecode5)) {
7328     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "an_hist2d" "', argument " "5"" of type '" "double""'");
7329   }
7330   arg5 = (double)(val5);
7331   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
7332   if (!SWIG_IsOK(ecode6)) {
7333     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "an_hist2d" "', argument " "6"" of type '" "double""'");
7334   }
7335   arg6 = (double)(val6);
7336   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
7337   if (!SWIG_IsOK(ecode7)) {
7338     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "an_hist2d" "', argument " "7"" of type '" "double""'");
7339   }
7340   arg7 = (double)(val7);
7341   result = (PyObject *)an_hist2d(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
7342   resultobj = result;
7343   return resultobj;
7344 fail:
7345   return NULL;
7346 }
7347 
7348 
_wrap_flat_percentile_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7349 SWIGINTERN PyObject *_wrap_flat_percentile_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7350   PyObject *resultobj = 0;
7351   PyObject *arg1 = (PyObject *) 0 ;
7352   double arg2 ;
7353   double val2 ;
7354   int ecode2 = 0 ;
7355   PyObject *swig_obj[2] ;
7356   double result;
7357 
7358   if (!SWIG_Python_UnpackTuple(args, "flat_percentile_f", 2, 2, swig_obj)) SWIG_fail;
7359   arg1 = swig_obj[0];
7360   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7361   if (!SWIG_IsOK(ecode2)) {
7362     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flat_percentile_f" "', argument " "2"" of type '" "double""'");
7363   }
7364   arg2 = (double)(val2);
7365   result = (double)flat_percentile_f(arg1,arg2);
7366   resultobj = SWIG_From_double((double)(result));
7367   return resultobj;
7368 fail:
7369   return NULL;
7370 }
7371 
7372 
_wrap_flat_median_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7373 SWIGINTERN PyObject *_wrap_flat_median_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7374   PyObject *resultobj = 0;
7375   PyObject *arg1 = (PyObject *) 0 ;
7376   PyObject *swig_obj[1] ;
7377   double result;
7378 
7379   if (!args) SWIG_fail;
7380   swig_obj[0] = args;
7381   arg1 = swig_obj[0];
7382   result = (double)flat_median_f(arg1);
7383   resultobj = SWIG_From_double((double)(result));
7384   return resultobj;
7385 fail:
7386   return NULL;
7387 }
7388 
7389 
_wrap_median_smooth(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7390 SWIGINTERN PyObject *_wrap_median_smooth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7391   PyObject *resultobj = 0;
7392   PyObject *arg1 = (PyObject *) 0 ;
7393   PyObject *arg2 = (PyObject *) 0 ;
7394   int arg3 ;
7395   PyObject *arg4 = (PyObject *) 0 ;
7396   int val3 ;
7397   int ecode3 = 0 ;
7398   PyObject *swig_obj[4] ;
7399   int result;
7400 
7401   if (!SWIG_Python_UnpackTuple(args, "median_smooth", 4, 4, swig_obj)) SWIG_fail;
7402   arg1 = swig_obj[0];
7403   arg2 = swig_obj[1];
7404   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
7405   if (!SWIG_IsOK(ecode3)) {
7406     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "median_smooth" "', argument " "3"" of type '" "int""'");
7407   }
7408   arg3 = (int)(val3);
7409   arg4 = swig_obj[3];
7410   result = (int)median_smooth(arg1,arg2,arg3,arg4);
7411   resultobj = SWIG_From_int((int)(result));
7412   return resultobj;
7413 fail:
7414   return NULL;
7415 }
7416 
7417 
_wrap_lanczos5_interpolate(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7418 SWIGINTERN PyObject *_wrap_lanczos5_interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419   PyObject *resultobj = 0;
7420   PyObject *arg1 = (PyObject *) 0 ;
7421   PyObject *arg2 = (PyObject *) 0 ;
7422   PyObject *arg3 = (PyObject *) 0 ;
7423   PyObject *arg4 = (PyObject *) 0 ;
7424   PyObject *arg5 = (PyObject *) 0 ;
7425   PyObject *arg6 = (PyObject *) 0 ;
7426   PyObject *swig_obj[6] ;
7427   int result;
7428 
7429   if (!SWIG_Python_UnpackTuple(args, "lanczos5_interpolate", 6, 6, swig_obj)) SWIG_fail;
7430   arg1 = swig_obj[0];
7431   arg2 = swig_obj[1];
7432   arg3 = swig_obj[2];
7433   arg4 = swig_obj[3];
7434   arg5 = swig_obj[4];
7435   arg6 = swig_obj[5];
7436   result = (int)lanczos5_interpolate(arg1,arg2,arg3,arg4,arg5,arg6);
7437   resultobj = SWIG_From_int((int)(result));
7438   return resultobj;
7439 fail:
7440   return NULL;
7441 }
7442 
7443 
_wrap_lanczos3_interpolate(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7444 SWIGINTERN PyObject *_wrap_lanczos3_interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7445   PyObject *resultobj = 0;
7446   PyObject *arg1 = (PyObject *) 0 ;
7447   PyObject *arg2 = (PyObject *) 0 ;
7448   PyObject *arg3 = (PyObject *) 0 ;
7449   PyObject *arg4 = (PyObject *) 0 ;
7450   PyObject *arg5 = (PyObject *) 0 ;
7451   PyObject *arg6 = (PyObject *) 0 ;
7452   PyObject *swig_obj[6] ;
7453   int result;
7454 
7455   if (!SWIG_Python_UnpackTuple(args, "lanczos3_interpolate", 6, 6, swig_obj)) SWIG_fail;
7456   arg1 = swig_obj[0];
7457   arg2 = swig_obj[1];
7458   arg3 = swig_obj[2];
7459   arg4 = swig_obj[3];
7460   arg5 = swig_obj[4];
7461   arg6 = swig_obj[5];
7462   result = (int)lanczos3_interpolate(arg1,arg2,arg3,arg4,arg5,arg6);
7463   resultobj = SWIG_From_int((int)(result));
7464   return resultobj;
7465 fail:
7466   return NULL;
7467 }
7468 
7469 
_wrap_lanczos5_filter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7470 SWIGINTERN PyObject *_wrap_lanczos5_filter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7471   PyObject *resultobj = 0;
7472   PyObject *arg1 = (PyObject *) 0 ;
7473   PyObject *arg2 = (PyObject *) 0 ;
7474   PyObject *swig_obj[2] ;
7475   int result;
7476 
7477   if (!SWIG_Python_UnpackTuple(args, "lanczos5_filter", 2, 2, swig_obj)) SWIG_fail;
7478   arg1 = swig_obj[0];
7479   arg2 = swig_obj[1];
7480   result = (int)lanczos5_filter(arg1,arg2);
7481   resultobj = SWIG_From_int((int)(result));
7482   return resultobj;
7483 fail:
7484   return NULL;
7485 }
7486 
7487 
_wrap_lanczos3_filter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7488 SWIGINTERN PyObject *_wrap_lanczos3_filter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7489   PyObject *resultobj = 0;
7490   PyObject *arg1 = (PyObject *) 0 ;
7491   PyObject *arg2 = (PyObject *) 0 ;
7492   PyObject *swig_obj[2] ;
7493   int result;
7494 
7495   if (!SWIG_Python_UnpackTuple(args, "lanczos3_filter", 2, 2, swig_obj)) SWIG_fail;
7496   arg1 = swig_obj[0];
7497   arg2 = swig_obj[1];
7498   result = (int)lanczos3_filter(arg1,arg2);
7499   resultobj = SWIG_From_int((int)(result));
7500   return resultobj;
7501 fail:
7502   return NULL;
7503 }
7504 
7505 
_wrap_lanczos3_filter_table(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7506 SWIGINTERN PyObject *_wrap_lanczos3_filter_table(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7507   PyObject *resultobj = 0;
7508   PyObject *arg1 = (PyObject *) 0 ;
7509   PyObject *arg2 = (PyObject *) 0 ;
7510   int arg3 ;
7511   int val3 ;
7512   int ecode3 = 0 ;
7513   PyObject *swig_obj[3] ;
7514   int result;
7515 
7516   if (!SWIG_Python_UnpackTuple(args, "lanczos3_filter_table", 3, 3, swig_obj)) SWIG_fail;
7517   arg1 = swig_obj[0];
7518   arg2 = swig_obj[1];
7519   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
7520   if (!SWIG_IsOK(ecode3)) {
7521     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "lanczos3_filter_table" "', argument " "3"" of type '" "int""'");
7522   }
7523   arg3 = (int)(val3);
7524   result = (int)lanczos3_filter_table(arg1,arg2,arg3);
7525   resultobj = SWIG_From_int((int)(result));
7526   return resultobj;
7527 fail:
7528   return NULL;
7529 }
7530 
7531 
_wrap_lanczos_shift_image_c(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7532 SWIGINTERN PyObject *_wrap_lanczos_shift_image_c(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7533   PyObject *resultobj = 0;
7534   PyObject *arg1 = (PyObject *) 0 ;
7535   PyObject *arg2 = (PyObject *) 0 ;
7536   PyObject *arg3 = (PyObject *) 0 ;
7537   PyObject *arg4 = (PyObject *) 0 ;
7538   int arg5 ;
7539   double arg6 ;
7540   double arg7 ;
7541   int val5 ;
7542   int ecode5 = 0 ;
7543   double val6 ;
7544   int ecode6 = 0 ;
7545   double val7 ;
7546   int ecode7 = 0 ;
7547   PyObject *swig_obj[7] ;
7548   int result;
7549 
7550   if (!SWIG_Python_UnpackTuple(args, "lanczos_shift_image_c", 7, 7, swig_obj)) SWIG_fail;
7551   arg1 = swig_obj[0];
7552   arg2 = swig_obj[1];
7553   arg3 = swig_obj[2];
7554   arg4 = swig_obj[3];
7555   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
7556   if (!SWIG_IsOK(ecode5)) {
7557     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "lanczos_shift_image_c" "', argument " "5"" of type '" "int""'");
7558   }
7559   arg5 = (int)(val5);
7560   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
7561   if (!SWIG_IsOK(ecode6)) {
7562     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "lanczos_shift_image_c" "', argument " "6"" of type '" "double""'");
7563   }
7564   arg6 = (double)(val6);
7565   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
7566   if (!SWIG_IsOK(ecode7)) {
7567     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "lanczos_shift_image_c" "', argument " "7"" of type '" "double""'");
7568   }
7569   arg7 = (double)(val7);
7570   result = (int)lanczos_shift_image_c(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
7571   resultobj = SWIG_From_int((int)(result));
7572   return resultobj;
7573 fail:
7574   return NULL;
7575 }
7576 
7577 
_wrap_index_t_codekd_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7578 SWIGINTERN PyObject *_wrap_index_t_codekd_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7579   PyObject *resultobj = 0;
7580   index_t *arg1 = (index_t *) 0 ;
7581   codetree_t *arg2 = (codetree_t *) 0 ;
7582   void *argp1 = 0 ;
7583   int res1 = 0 ;
7584   void *argp2 = 0 ;
7585   int res2 = 0 ;
7586   PyObject *swig_obj[2] ;
7587 
7588   if (!SWIG_Python_UnpackTuple(args, "index_t_codekd_set", 2, 2, swig_obj)) SWIG_fail;
7589   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7590   if (!SWIG_IsOK(res1)) {
7591     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_codekd_set" "', argument " "1"" of type '" "index_t *""'");
7592   }
7593   arg1 = (index_t *)(argp1);
7594   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_codetree_t, SWIG_POINTER_DISOWN |  0 );
7595   if (!SWIG_IsOK(res2)) {
7596     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_codekd_set" "', argument " "2"" of type '" "codetree_t *""'");
7597   }
7598   arg2 = (codetree_t *)(argp2);
7599   if (arg1) (arg1)->codekd = arg2;
7600   resultobj = SWIG_Py_Void();
7601   return resultobj;
7602 fail:
7603   return NULL;
7604 }
7605 
7606 
_wrap_index_t_codekd_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7607 SWIGINTERN PyObject *_wrap_index_t_codekd_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7608   PyObject *resultobj = 0;
7609   index_t *arg1 = (index_t *) 0 ;
7610   void *argp1 = 0 ;
7611   int res1 = 0 ;
7612   PyObject *swig_obj[1] ;
7613   codetree_t *result = 0 ;
7614 
7615   if (!args) SWIG_fail;
7616   swig_obj[0] = args;
7617   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7618   if (!SWIG_IsOK(res1)) {
7619     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_codekd_get" "', argument " "1"" of type '" "index_t *""'");
7620   }
7621   arg1 = (index_t *)(argp1);
7622   result = (codetree_t *) ((arg1)->codekd);
7623   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_codetree_t, 0 |  0 );
7624   return resultobj;
7625 fail:
7626   return NULL;
7627 }
7628 
7629 
_wrap_index_t_quads_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7630 SWIGINTERN PyObject *_wrap_index_t_quads_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7631   PyObject *resultobj = 0;
7632   index_t *arg1 = (index_t *) 0 ;
7633   quadfile_t *arg2 = (quadfile_t *) 0 ;
7634   void *argp1 = 0 ;
7635   int res1 = 0 ;
7636   void *argp2 = 0 ;
7637   int res2 = 0 ;
7638   PyObject *swig_obj[2] ;
7639 
7640   if (!SWIG_Python_UnpackTuple(args, "index_t_quads_set", 2, 2, swig_obj)) SWIG_fail;
7641   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7642   if (!SWIG_IsOK(res1)) {
7643     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_quads_set" "', argument " "1"" of type '" "index_t *""'");
7644   }
7645   arg1 = (index_t *)(argp1);
7646   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_quadfile_t, SWIG_POINTER_DISOWN |  0 );
7647   if (!SWIG_IsOK(res2)) {
7648     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_quads_set" "', argument " "2"" of type '" "quadfile_t *""'");
7649   }
7650   arg2 = (quadfile_t *)(argp2);
7651   if (arg1) (arg1)->quads = arg2;
7652   resultobj = SWIG_Py_Void();
7653   return resultobj;
7654 fail:
7655   return NULL;
7656 }
7657 
7658 
_wrap_index_t_quads_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7659 SWIGINTERN PyObject *_wrap_index_t_quads_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7660   PyObject *resultobj = 0;
7661   index_t *arg1 = (index_t *) 0 ;
7662   void *argp1 = 0 ;
7663   int res1 = 0 ;
7664   PyObject *swig_obj[1] ;
7665   quadfile_t *result = 0 ;
7666 
7667   if (!args) SWIG_fail;
7668   swig_obj[0] = args;
7669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7670   if (!SWIG_IsOK(res1)) {
7671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_quads_get" "', argument " "1"" of type '" "index_t *""'");
7672   }
7673   arg1 = (index_t *)(argp1);
7674   result = (quadfile_t *) ((arg1)->quads);
7675   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_quadfile_t, 0 |  0 );
7676   return resultobj;
7677 fail:
7678   return NULL;
7679 }
7680 
7681 
_wrap_index_t_starkd_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7682 SWIGINTERN PyObject *_wrap_index_t_starkd_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7683   PyObject *resultobj = 0;
7684   index_t *arg1 = (index_t *) 0 ;
7685   startree_t *arg2 = (startree_t *) 0 ;
7686   void *argp1 = 0 ;
7687   int res1 = 0 ;
7688   void *argp2 = 0 ;
7689   int res2 = 0 ;
7690   PyObject *swig_obj[2] ;
7691 
7692   if (!SWIG_Python_UnpackTuple(args, "index_t_starkd_set", 2, 2, swig_obj)) SWIG_fail;
7693   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7694   if (!SWIG_IsOK(res1)) {
7695     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_starkd_set" "', argument " "1"" of type '" "index_t *""'");
7696   }
7697   arg1 = (index_t *)(argp1);
7698   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_startree_t, SWIG_POINTER_DISOWN |  0 );
7699   if (!SWIG_IsOK(res2)) {
7700     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_starkd_set" "', argument " "2"" of type '" "startree_t *""'");
7701   }
7702   arg2 = (startree_t *)(argp2);
7703   if (arg1) (arg1)->starkd = arg2;
7704   resultobj = SWIG_Py_Void();
7705   return resultobj;
7706 fail:
7707   return NULL;
7708 }
7709 
7710 
_wrap_index_t_starkd_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7711 SWIGINTERN PyObject *_wrap_index_t_starkd_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7712   PyObject *resultobj = 0;
7713   index_t *arg1 = (index_t *) 0 ;
7714   void *argp1 = 0 ;
7715   int res1 = 0 ;
7716   PyObject *swig_obj[1] ;
7717   startree_t *result = 0 ;
7718 
7719   if (!args) SWIG_fail;
7720   swig_obj[0] = args;
7721   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7722   if (!SWIG_IsOK(res1)) {
7723     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_starkd_get" "', argument " "1"" of type '" "index_t *""'");
7724   }
7725   arg1 = (index_t *)(argp1);
7726   result = (startree_t *) ((arg1)->starkd);
7727   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_startree_t, 0 |  0 );
7728   return resultobj;
7729 fail:
7730   return NULL;
7731 }
7732 
7733 
_wrap_index_t_fits_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7734 SWIGINTERN PyObject *_wrap_index_t_fits_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7735   PyObject *resultobj = 0;
7736   index_t *arg1 = (index_t *) 0 ;
7737   anqfits_t *arg2 = (anqfits_t *) 0 ;
7738   void *argp1 = 0 ;
7739   int res1 = 0 ;
7740   void *argp2 = 0 ;
7741   int res2 = 0 ;
7742   PyObject *swig_obj[2] ;
7743 
7744   if (!SWIG_Python_UnpackTuple(args, "index_t_fits_set", 2, 2, swig_obj)) SWIG_fail;
7745   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7746   if (!SWIG_IsOK(res1)) {
7747     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_fits_set" "', argument " "1"" of type '" "index_t *""'");
7748   }
7749   arg1 = (index_t *)(argp1);
7750   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anqfits_t, SWIG_POINTER_DISOWN |  0 );
7751   if (!SWIG_IsOK(res2)) {
7752     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_fits_set" "', argument " "2"" of type '" "anqfits_t *""'");
7753   }
7754   arg2 = (anqfits_t *)(argp2);
7755   if (arg1) (arg1)->fits = arg2;
7756   resultobj = SWIG_Py_Void();
7757   return resultobj;
7758 fail:
7759   return NULL;
7760 }
7761 
7762 
_wrap_index_t_fits_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7763 SWIGINTERN PyObject *_wrap_index_t_fits_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7764   PyObject *resultobj = 0;
7765   index_t *arg1 = (index_t *) 0 ;
7766   void *argp1 = 0 ;
7767   int res1 = 0 ;
7768   PyObject *swig_obj[1] ;
7769   anqfits_t *result = 0 ;
7770 
7771   if (!args) SWIG_fail;
7772   swig_obj[0] = args;
7773   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7774   if (!SWIG_IsOK(res1)) {
7775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_fits_get" "', argument " "1"" of type '" "index_t *""'");
7776   }
7777   arg1 = (index_t *)(argp1);
7778   result = (anqfits_t *) ((arg1)->fits);
7779   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anqfits_t, 0 |  0 );
7780   return resultobj;
7781 fail:
7782   return NULL;
7783 }
7784 
7785 
_wrap_index_t_indexfn_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7786 SWIGINTERN PyObject *_wrap_index_t_indexfn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7787   PyObject *resultobj = 0;
7788   index_t *arg1 = (index_t *) 0 ;
7789   char *arg2 = (char *) 0 ;
7790   void *argp1 = 0 ;
7791   int res1 = 0 ;
7792   int res2 ;
7793   char *buf2 = 0 ;
7794   int alloc2 = 0 ;
7795   PyObject *swig_obj[2] ;
7796 
7797   if (!SWIG_Python_UnpackTuple(args, "index_t_indexfn_set", 2, 2, swig_obj)) SWIG_fail;
7798   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7799   if (!SWIG_IsOK(res1)) {
7800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_indexfn_set" "', argument " "1"" of type '" "index_t *""'");
7801   }
7802   arg1 = (index_t *)(argp1);
7803   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7804   if (!SWIG_IsOK(res2)) {
7805     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_indexfn_set" "', argument " "2"" of type '" "char *""'");
7806   }
7807   arg2 = (char *)(buf2);
7808   if (arg1->indexfn) free((char*)arg1->indexfn);
7809   if (arg2) {
7810     size_t size = strlen((const char *)(arg2)) + 1;
7811     arg1->indexfn = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
7812   } else {
7813     arg1->indexfn = 0;
7814   }
7815   resultobj = SWIG_Py_Void();
7816   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7817   return resultobj;
7818 fail:
7819   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7820   return NULL;
7821 }
7822 
7823 
_wrap_index_t_indexfn_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7824 SWIGINTERN PyObject *_wrap_index_t_indexfn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7825   PyObject *resultobj = 0;
7826   index_t *arg1 = (index_t *) 0 ;
7827   void *argp1 = 0 ;
7828   int res1 = 0 ;
7829   PyObject *swig_obj[1] ;
7830   char *result = 0 ;
7831 
7832   if (!args) SWIG_fail;
7833   swig_obj[0] = args;
7834   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7835   if (!SWIG_IsOK(res1)) {
7836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_indexfn_get" "', argument " "1"" of type '" "index_t *""'");
7837   }
7838   arg1 = (index_t *)(argp1);
7839   result = (char *) ((arg1)->indexfn);
7840   resultobj = SWIG_FromCharPtr((const char *)result);
7841   return resultobj;
7842 fail:
7843   return NULL;
7844 }
7845 
7846 
_wrap_index_t_indexname_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7847 SWIGINTERN PyObject *_wrap_index_t_indexname_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7848   PyObject *resultobj = 0;
7849   index_t *arg1 = (index_t *) 0 ;
7850   char *arg2 = (char *) 0 ;
7851   void *argp1 = 0 ;
7852   int res1 = 0 ;
7853   int res2 ;
7854   char *buf2 = 0 ;
7855   int alloc2 = 0 ;
7856   PyObject *swig_obj[2] ;
7857 
7858   if (!SWIG_Python_UnpackTuple(args, "index_t_indexname_set", 2, 2, swig_obj)) SWIG_fail;
7859   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7860   if (!SWIG_IsOK(res1)) {
7861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_indexname_set" "', argument " "1"" of type '" "index_t *""'");
7862   }
7863   arg1 = (index_t *)(argp1);
7864   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
7865   if (!SWIG_IsOK(res2)) {
7866     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_indexname_set" "', argument " "2"" of type '" "char *""'");
7867   }
7868   arg2 = (char *)(buf2);
7869   if (arg1->indexname) free((char*)arg1->indexname);
7870   if (arg2) {
7871     size_t size = strlen((const char *)(arg2)) + 1;
7872     arg1->indexname = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
7873   } else {
7874     arg1->indexname = 0;
7875   }
7876   resultobj = SWIG_Py_Void();
7877   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7878   return resultobj;
7879 fail:
7880   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7881   return NULL;
7882 }
7883 
7884 
_wrap_index_t_indexname_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7885 SWIGINTERN PyObject *_wrap_index_t_indexname_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7886   PyObject *resultobj = 0;
7887   index_t *arg1 = (index_t *) 0 ;
7888   void *argp1 = 0 ;
7889   int res1 = 0 ;
7890   PyObject *swig_obj[1] ;
7891   char *result = 0 ;
7892 
7893   if (!args) SWIG_fail;
7894   swig_obj[0] = args;
7895   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7896   if (!SWIG_IsOK(res1)) {
7897     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_indexname_get" "', argument " "1"" of type '" "index_t *""'");
7898   }
7899   arg1 = (index_t *)(argp1);
7900   result = (char *) ((arg1)->indexname);
7901   resultobj = SWIG_FromCharPtr((const char *)result);
7902   return resultobj;
7903 fail:
7904   return NULL;
7905 }
7906 
7907 
_wrap_index_t_indexid_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7908 SWIGINTERN PyObject *_wrap_index_t_indexid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7909   PyObject *resultobj = 0;
7910   index_t *arg1 = (index_t *) 0 ;
7911   int arg2 ;
7912   void *argp1 = 0 ;
7913   int res1 = 0 ;
7914   int val2 ;
7915   int ecode2 = 0 ;
7916   PyObject *swig_obj[2] ;
7917 
7918   if (!SWIG_Python_UnpackTuple(args, "index_t_indexid_set", 2, 2, swig_obj)) SWIG_fail;
7919   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7920   if (!SWIG_IsOK(res1)) {
7921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_indexid_set" "', argument " "1"" of type '" "index_t *""'");
7922   }
7923   arg1 = (index_t *)(argp1);
7924   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7925   if (!SWIG_IsOK(ecode2)) {
7926     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_indexid_set" "', argument " "2"" of type '" "int""'");
7927   }
7928   arg2 = (int)(val2);
7929   if (arg1) (arg1)->indexid = arg2;
7930   resultobj = SWIG_Py_Void();
7931   return resultobj;
7932 fail:
7933   return NULL;
7934 }
7935 
7936 
_wrap_index_t_indexid_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7937 SWIGINTERN PyObject *_wrap_index_t_indexid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7938   PyObject *resultobj = 0;
7939   index_t *arg1 = (index_t *) 0 ;
7940   void *argp1 = 0 ;
7941   int res1 = 0 ;
7942   PyObject *swig_obj[1] ;
7943   int result;
7944 
7945   if (!args) SWIG_fail;
7946   swig_obj[0] = args;
7947   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7948   if (!SWIG_IsOK(res1)) {
7949     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_indexid_get" "', argument " "1"" of type '" "index_t *""'");
7950   }
7951   arg1 = (index_t *)(argp1);
7952   result = (int) ((arg1)->indexid);
7953   resultobj = SWIG_From_int((int)(result));
7954   return resultobj;
7955 fail:
7956   return NULL;
7957 }
7958 
7959 
_wrap_index_t_healpix_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7960 SWIGINTERN PyObject *_wrap_index_t_healpix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7961   PyObject *resultobj = 0;
7962   index_t *arg1 = (index_t *) 0 ;
7963   int arg2 ;
7964   void *argp1 = 0 ;
7965   int res1 = 0 ;
7966   int val2 ;
7967   int ecode2 = 0 ;
7968   PyObject *swig_obj[2] ;
7969 
7970   if (!SWIG_Python_UnpackTuple(args, "index_t_healpix_set", 2, 2, swig_obj)) SWIG_fail;
7971   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
7972   if (!SWIG_IsOK(res1)) {
7973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_healpix_set" "', argument " "1"" of type '" "index_t *""'");
7974   }
7975   arg1 = (index_t *)(argp1);
7976   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7977   if (!SWIG_IsOK(ecode2)) {
7978     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_healpix_set" "', argument " "2"" of type '" "int""'");
7979   }
7980   arg2 = (int)(val2);
7981   if (arg1) (arg1)->healpix = arg2;
7982   resultobj = SWIG_Py_Void();
7983   return resultobj;
7984 fail:
7985   return NULL;
7986 }
7987 
7988 
_wrap_index_t_healpix_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7989 SWIGINTERN PyObject *_wrap_index_t_healpix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7990   PyObject *resultobj = 0;
7991   index_t *arg1 = (index_t *) 0 ;
7992   void *argp1 = 0 ;
7993   int res1 = 0 ;
7994   PyObject *swig_obj[1] ;
7995   int result;
7996 
7997   if (!args) SWIG_fail;
7998   swig_obj[0] = args;
7999   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8000   if (!SWIG_IsOK(res1)) {
8001     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_healpix_get" "', argument " "1"" of type '" "index_t *""'");
8002   }
8003   arg1 = (index_t *)(argp1);
8004   result = (int) ((arg1)->healpix);
8005   resultobj = SWIG_From_int((int)(result));
8006   return resultobj;
8007 fail:
8008   return NULL;
8009 }
8010 
8011 
_wrap_index_t_hpnside_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8012 SWIGINTERN PyObject *_wrap_index_t_hpnside_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8013   PyObject *resultobj = 0;
8014   index_t *arg1 = (index_t *) 0 ;
8015   int arg2 ;
8016   void *argp1 = 0 ;
8017   int res1 = 0 ;
8018   int val2 ;
8019   int ecode2 = 0 ;
8020   PyObject *swig_obj[2] ;
8021 
8022   if (!SWIG_Python_UnpackTuple(args, "index_t_hpnside_set", 2, 2, swig_obj)) SWIG_fail;
8023   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8024   if (!SWIG_IsOK(res1)) {
8025     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_hpnside_set" "', argument " "1"" of type '" "index_t *""'");
8026   }
8027   arg1 = (index_t *)(argp1);
8028   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8029   if (!SWIG_IsOK(ecode2)) {
8030     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_hpnside_set" "', argument " "2"" of type '" "int""'");
8031   }
8032   arg2 = (int)(val2);
8033   if (arg1) (arg1)->hpnside = arg2;
8034   resultobj = SWIG_Py_Void();
8035   return resultobj;
8036 fail:
8037   return NULL;
8038 }
8039 
8040 
_wrap_index_t_hpnside_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8041 SWIGINTERN PyObject *_wrap_index_t_hpnside_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8042   PyObject *resultobj = 0;
8043   index_t *arg1 = (index_t *) 0 ;
8044   void *argp1 = 0 ;
8045   int res1 = 0 ;
8046   PyObject *swig_obj[1] ;
8047   int result;
8048 
8049   if (!args) SWIG_fail;
8050   swig_obj[0] = args;
8051   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8052   if (!SWIG_IsOK(res1)) {
8053     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_hpnside_get" "', argument " "1"" of type '" "index_t *""'");
8054   }
8055   arg1 = (index_t *)(argp1);
8056   result = (int) ((arg1)->hpnside);
8057   resultobj = SWIG_From_int((int)(result));
8058   return resultobj;
8059 fail:
8060   return NULL;
8061 }
8062 
8063 
_wrap_index_t_index_jitter_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8064 SWIGINTERN PyObject *_wrap_index_t_index_jitter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8065   PyObject *resultobj = 0;
8066   index_t *arg1 = (index_t *) 0 ;
8067   double arg2 ;
8068   void *argp1 = 0 ;
8069   int res1 = 0 ;
8070   double val2 ;
8071   int ecode2 = 0 ;
8072   PyObject *swig_obj[2] ;
8073 
8074   if (!SWIG_Python_UnpackTuple(args, "index_t_index_jitter_set", 2, 2, swig_obj)) SWIG_fail;
8075   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8076   if (!SWIG_IsOK(res1)) {
8077     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_index_jitter_set" "', argument " "1"" of type '" "index_t *""'");
8078   }
8079   arg1 = (index_t *)(argp1);
8080   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8081   if (!SWIG_IsOK(ecode2)) {
8082     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_index_jitter_set" "', argument " "2"" of type '" "double""'");
8083   }
8084   arg2 = (double)(val2);
8085   if (arg1) (arg1)->index_jitter = arg2;
8086   resultobj = SWIG_Py_Void();
8087   return resultobj;
8088 fail:
8089   return NULL;
8090 }
8091 
8092 
_wrap_index_t_index_jitter_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8093 SWIGINTERN PyObject *_wrap_index_t_index_jitter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8094   PyObject *resultobj = 0;
8095   index_t *arg1 = (index_t *) 0 ;
8096   void *argp1 = 0 ;
8097   int res1 = 0 ;
8098   PyObject *swig_obj[1] ;
8099   double result;
8100 
8101   if (!args) SWIG_fail;
8102   swig_obj[0] = args;
8103   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8104   if (!SWIG_IsOK(res1)) {
8105     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_index_jitter_get" "', argument " "1"" of type '" "index_t *""'");
8106   }
8107   arg1 = (index_t *)(argp1);
8108   result = (double) ((arg1)->index_jitter);
8109   resultobj = SWIG_From_double((double)(result));
8110   return resultobj;
8111 fail:
8112   return NULL;
8113 }
8114 
8115 
_wrap_index_t_cutnside_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8116 SWIGINTERN PyObject *_wrap_index_t_cutnside_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8117   PyObject *resultobj = 0;
8118   index_t *arg1 = (index_t *) 0 ;
8119   int arg2 ;
8120   void *argp1 = 0 ;
8121   int res1 = 0 ;
8122   int val2 ;
8123   int ecode2 = 0 ;
8124   PyObject *swig_obj[2] ;
8125 
8126   if (!SWIG_Python_UnpackTuple(args, "index_t_cutnside_set", 2, 2, swig_obj)) SWIG_fail;
8127   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8128   if (!SWIG_IsOK(res1)) {
8129     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutnside_set" "', argument " "1"" of type '" "index_t *""'");
8130   }
8131   arg1 = (index_t *)(argp1);
8132   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8133   if (!SWIG_IsOK(ecode2)) {
8134     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_cutnside_set" "', argument " "2"" of type '" "int""'");
8135   }
8136   arg2 = (int)(val2);
8137   if (arg1) (arg1)->cutnside = arg2;
8138   resultobj = SWIG_Py_Void();
8139   return resultobj;
8140 fail:
8141   return NULL;
8142 }
8143 
8144 
_wrap_index_t_cutnside_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8145 SWIGINTERN PyObject *_wrap_index_t_cutnside_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8146   PyObject *resultobj = 0;
8147   index_t *arg1 = (index_t *) 0 ;
8148   void *argp1 = 0 ;
8149   int res1 = 0 ;
8150   PyObject *swig_obj[1] ;
8151   int result;
8152 
8153   if (!args) SWIG_fail;
8154   swig_obj[0] = args;
8155   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8156   if (!SWIG_IsOK(res1)) {
8157     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutnside_get" "', argument " "1"" of type '" "index_t *""'");
8158   }
8159   arg1 = (index_t *)(argp1);
8160   result = (int) ((arg1)->cutnside);
8161   resultobj = SWIG_From_int((int)(result));
8162   return resultobj;
8163 fail:
8164   return NULL;
8165 }
8166 
8167 
_wrap_index_t_cutnsweep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8168 SWIGINTERN PyObject *_wrap_index_t_cutnsweep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8169   PyObject *resultobj = 0;
8170   index_t *arg1 = (index_t *) 0 ;
8171   int arg2 ;
8172   void *argp1 = 0 ;
8173   int res1 = 0 ;
8174   int val2 ;
8175   int ecode2 = 0 ;
8176   PyObject *swig_obj[2] ;
8177 
8178   if (!SWIG_Python_UnpackTuple(args, "index_t_cutnsweep_set", 2, 2, swig_obj)) SWIG_fail;
8179   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8180   if (!SWIG_IsOK(res1)) {
8181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutnsweep_set" "', argument " "1"" of type '" "index_t *""'");
8182   }
8183   arg1 = (index_t *)(argp1);
8184   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8185   if (!SWIG_IsOK(ecode2)) {
8186     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_cutnsweep_set" "', argument " "2"" of type '" "int""'");
8187   }
8188   arg2 = (int)(val2);
8189   if (arg1) (arg1)->cutnsweep = arg2;
8190   resultobj = SWIG_Py_Void();
8191   return resultobj;
8192 fail:
8193   return NULL;
8194 }
8195 
8196 
_wrap_index_t_cutnsweep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8197 SWIGINTERN PyObject *_wrap_index_t_cutnsweep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8198   PyObject *resultobj = 0;
8199   index_t *arg1 = (index_t *) 0 ;
8200   void *argp1 = 0 ;
8201   int res1 = 0 ;
8202   PyObject *swig_obj[1] ;
8203   int result;
8204 
8205   if (!args) SWIG_fail;
8206   swig_obj[0] = args;
8207   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8208   if (!SWIG_IsOK(res1)) {
8209     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutnsweep_get" "', argument " "1"" of type '" "index_t *""'");
8210   }
8211   arg1 = (index_t *)(argp1);
8212   result = (int) ((arg1)->cutnsweep);
8213   resultobj = SWIG_From_int((int)(result));
8214   return resultobj;
8215 fail:
8216   return NULL;
8217 }
8218 
8219 
_wrap_index_t_cutdedup_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8220 SWIGINTERN PyObject *_wrap_index_t_cutdedup_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8221   PyObject *resultobj = 0;
8222   index_t *arg1 = (index_t *) 0 ;
8223   double arg2 ;
8224   void *argp1 = 0 ;
8225   int res1 = 0 ;
8226   double val2 ;
8227   int ecode2 = 0 ;
8228   PyObject *swig_obj[2] ;
8229 
8230   if (!SWIG_Python_UnpackTuple(args, "index_t_cutdedup_set", 2, 2, swig_obj)) SWIG_fail;
8231   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8232   if (!SWIG_IsOK(res1)) {
8233     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutdedup_set" "', argument " "1"" of type '" "index_t *""'");
8234   }
8235   arg1 = (index_t *)(argp1);
8236   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8237   if (!SWIG_IsOK(ecode2)) {
8238     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_cutdedup_set" "', argument " "2"" of type '" "double""'");
8239   }
8240   arg2 = (double)(val2);
8241   if (arg1) (arg1)->cutdedup = arg2;
8242   resultobj = SWIG_Py_Void();
8243   return resultobj;
8244 fail:
8245   return NULL;
8246 }
8247 
8248 
_wrap_index_t_cutdedup_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8249 SWIGINTERN PyObject *_wrap_index_t_cutdedup_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8250   PyObject *resultobj = 0;
8251   index_t *arg1 = (index_t *) 0 ;
8252   void *argp1 = 0 ;
8253   int res1 = 0 ;
8254   PyObject *swig_obj[1] ;
8255   double result;
8256 
8257   if (!args) SWIG_fail;
8258   swig_obj[0] = args;
8259   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8260   if (!SWIG_IsOK(res1)) {
8261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutdedup_get" "', argument " "1"" of type '" "index_t *""'");
8262   }
8263   arg1 = (index_t *)(argp1);
8264   result = (double) ((arg1)->cutdedup);
8265   resultobj = SWIG_From_double((double)(result));
8266   return resultobj;
8267 fail:
8268   return NULL;
8269 }
8270 
8271 
_wrap_index_t_cutband_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8272 SWIGINTERN PyObject *_wrap_index_t_cutband_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8273   PyObject *resultobj = 0;
8274   index_t *arg1 = (index_t *) 0 ;
8275   char *arg2 = (char *) 0 ;
8276   void *argp1 = 0 ;
8277   int res1 = 0 ;
8278   int res2 ;
8279   char *buf2 = 0 ;
8280   int alloc2 = 0 ;
8281   PyObject *swig_obj[2] ;
8282 
8283   if (!SWIG_Python_UnpackTuple(args, "index_t_cutband_set", 2, 2, swig_obj)) SWIG_fail;
8284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8285   if (!SWIG_IsOK(res1)) {
8286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutband_set" "', argument " "1"" of type '" "index_t *""'");
8287   }
8288   arg1 = (index_t *)(argp1);
8289   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
8290   if (!SWIG_IsOK(res2)) {
8291     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_t_cutband_set" "', argument " "2"" of type '" "char *""'");
8292   }
8293   arg2 = (char *)(buf2);
8294   if (arg1->cutband) free((char*)arg1->cutband);
8295   if (arg2) {
8296     size_t size = strlen((const char *)(arg2)) + 1;
8297     arg1->cutband = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
8298   } else {
8299     arg1->cutband = 0;
8300   }
8301   resultobj = SWIG_Py_Void();
8302   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8303   return resultobj;
8304 fail:
8305   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8306   return NULL;
8307 }
8308 
8309 
_wrap_index_t_cutband_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8310 SWIGINTERN PyObject *_wrap_index_t_cutband_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8311   PyObject *resultobj = 0;
8312   index_t *arg1 = (index_t *) 0 ;
8313   void *argp1 = 0 ;
8314   int res1 = 0 ;
8315   PyObject *swig_obj[1] ;
8316   char *result = 0 ;
8317 
8318   if (!args) SWIG_fail;
8319   swig_obj[0] = args;
8320   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8321   if (!SWIG_IsOK(res1)) {
8322     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutband_get" "', argument " "1"" of type '" "index_t *""'");
8323   }
8324   arg1 = (index_t *)(argp1);
8325   result = (char *) ((arg1)->cutband);
8326   resultobj = SWIG_FromCharPtr((const char *)result);
8327   return resultobj;
8328 fail:
8329   return NULL;
8330 }
8331 
8332 
_wrap_index_t_cutmargin_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8333 SWIGINTERN PyObject *_wrap_index_t_cutmargin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8334   PyObject *resultobj = 0;
8335   index_t *arg1 = (index_t *) 0 ;
8336   int arg2 ;
8337   void *argp1 = 0 ;
8338   int res1 = 0 ;
8339   int val2 ;
8340   int ecode2 = 0 ;
8341   PyObject *swig_obj[2] ;
8342 
8343   if (!SWIG_Python_UnpackTuple(args, "index_t_cutmargin_set", 2, 2, swig_obj)) SWIG_fail;
8344   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8345   if (!SWIG_IsOK(res1)) {
8346     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutmargin_set" "', argument " "1"" of type '" "index_t *""'");
8347   }
8348   arg1 = (index_t *)(argp1);
8349   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8350   if (!SWIG_IsOK(ecode2)) {
8351     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_cutmargin_set" "', argument " "2"" of type '" "int""'");
8352   }
8353   arg2 = (int)(val2);
8354   if (arg1) (arg1)->cutmargin = arg2;
8355   resultobj = SWIG_Py_Void();
8356   return resultobj;
8357 fail:
8358   return NULL;
8359 }
8360 
8361 
_wrap_index_t_cutmargin_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8362 SWIGINTERN PyObject *_wrap_index_t_cutmargin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8363   PyObject *resultobj = 0;
8364   index_t *arg1 = (index_t *) 0 ;
8365   void *argp1 = 0 ;
8366   int res1 = 0 ;
8367   PyObject *swig_obj[1] ;
8368   int result;
8369 
8370   if (!args) SWIG_fail;
8371   swig_obj[0] = args;
8372   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8373   if (!SWIG_IsOK(res1)) {
8374     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cutmargin_get" "', argument " "1"" of type '" "index_t *""'");
8375   }
8376   arg1 = (index_t *)(argp1);
8377   result = (int) ((arg1)->cutmargin);
8378   resultobj = SWIG_From_int((int)(result));
8379   return resultobj;
8380 fail:
8381   return NULL;
8382 }
8383 
8384 
_wrap_index_t_circle_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8385 SWIGINTERN PyObject *_wrap_index_t_circle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8386   PyObject *resultobj = 0;
8387   index_t *arg1 = (index_t *) 0 ;
8388   anbool arg2 ;
8389   void *argp1 = 0 ;
8390   int res1 = 0 ;
8391   unsigned char val2 ;
8392   int ecode2 = 0 ;
8393   PyObject *swig_obj[2] ;
8394 
8395   if (!SWIG_Python_UnpackTuple(args, "index_t_circle_set", 2, 2, swig_obj)) SWIG_fail;
8396   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8397   if (!SWIG_IsOK(res1)) {
8398     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_circle_set" "', argument " "1"" of type '" "index_t *""'");
8399   }
8400   arg1 = (index_t *)(argp1);
8401   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
8402   if (!SWIG_IsOK(ecode2)) {
8403     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_circle_set" "', argument " "2"" of type '" "anbool""'");
8404   }
8405   arg2 = (anbool)(val2);
8406   if (arg1) (arg1)->circle = arg2;
8407   resultobj = SWIG_Py_Void();
8408   return resultobj;
8409 fail:
8410   return NULL;
8411 }
8412 
8413 
_wrap_index_t_circle_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8414 SWIGINTERN PyObject *_wrap_index_t_circle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8415   PyObject *resultobj = 0;
8416   index_t *arg1 = (index_t *) 0 ;
8417   void *argp1 = 0 ;
8418   int res1 = 0 ;
8419   PyObject *swig_obj[1] ;
8420   anbool result;
8421 
8422   if (!args) SWIG_fail;
8423   swig_obj[0] = args;
8424   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8425   if (!SWIG_IsOK(res1)) {
8426     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_circle_get" "', argument " "1"" of type '" "index_t *""'");
8427   }
8428   arg1 = (index_t *)(argp1);
8429   result = (anbool) ((arg1)->circle);
8430   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
8431   return resultobj;
8432 fail:
8433   return NULL;
8434 }
8435 
8436 
_wrap_index_t_cx_less_than_dx_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8437 SWIGINTERN PyObject *_wrap_index_t_cx_less_than_dx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8438   PyObject *resultobj = 0;
8439   index_t *arg1 = (index_t *) 0 ;
8440   anbool arg2 ;
8441   void *argp1 = 0 ;
8442   int res1 = 0 ;
8443   unsigned char val2 ;
8444   int ecode2 = 0 ;
8445   PyObject *swig_obj[2] ;
8446 
8447   if (!SWIG_Python_UnpackTuple(args, "index_t_cx_less_than_dx_set", 2, 2, swig_obj)) SWIG_fail;
8448   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8449   if (!SWIG_IsOK(res1)) {
8450     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cx_less_than_dx_set" "', argument " "1"" of type '" "index_t *""'");
8451   }
8452   arg1 = (index_t *)(argp1);
8453   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
8454   if (!SWIG_IsOK(ecode2)) {
8455     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_cx_less_than_dx_set" "', argument " "2"" of type '" "anbool""'");
8456   }
8457   arg2 = (anbool)(val2);
8458   if (arg1) (arg1)->cx_less_than_dx = arg2;
8459   resultobj = SWIG_Py_Void();
8460   return resultobj;
8461 fail:
8462   return NULL;
8463 }
8464 
8465 
_wrap_index_t_cx_less_than_dx_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8466 SWIGINTERN PyObject *_wrap_index_t_cx_less_than_dx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8467   PyObject *resultobj = 0;
8468   index_t *arg1 = (index_t *) 0 ;
8469   void *argp1 = 0 ;
8470   int res1 = 0 ;
8471   PyObject *swig_obj[1] ;
8472   anbool result;
8473 
8474   if (!args) SWIG_fail;
8475   swig_obj[0] = args;
8476   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8477   if (!SWIG_IsOK(res1)) {
8478     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_cx_less_than_dx_get" "', argument " "1"" of type '" "index_t *""'");
8479   }
8480   arg1 = (index_t *)(argp1);
8481   result = (anbool) ((arg1)->cx_less_than_dx);
8482   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
8483   return resultobj;
8484 fail:
8485   return NULL;
8486 }
8487 
8488 
_wrap_index_t_meanx_less_than_half_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8489 SWIGINTERN PyObject *_wrap_index_t_meanx_less_than_half_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8490   PyObject *resultobj = 0;
8491   index_t *arg1 = (index_t *) 0 ;
8492   anbool arg2 ;
8493   void *argp1 = 0 ;
8494   int res1 = 0 ;
8495   unsigned char val2 ;
8496   int ecode2 = 0 ;
8497   PyObject *swig_obj[2] ;
8498 
8499   if (!SWIG_Python_UnpackTuple(args, "index_t_meanx_less_than_half_set", 2, 2, swig_obj)) SWIG_fail;
8500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8501   if (!SWIG_IsOK(res1)) {
8502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_meanx_less_than_half_set" "', argument " "1"" of type '" "index_t *""'");
8503   }
8504   arg1 = (index_t *)(argp1);
8505   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
8506   if (!SWIG_IsOK(ecode2)) {
8507     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_meanx_less_than_half_set" "', argument " "2"" of type '" "anbool""'");
8508   }
8509   arg2 = (anbool)(val2);
8510   if (arg1) (arg1)->meanx_less_than_half = arg2;
8511   resultobj = SWIG_Py_Void();
8512   return resultobj;
8513 fail:
8514   return NULL;
8515 }
8516 
8517 
_wrap_index_t_meanx_less_than_half_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8518 SWIGINTERN PyObject *_wrap_index_t_meanx_less_than_half_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8519   PyObject *resultobj = 0;
8520   index_t *arg1 = (index_t *) 0 ;
8521   void *argp1 = 0 ;
8522   int res1 = 0 ;
8523   PyObject *swig_obj[1] ;
8524   anbool result;
8525 
8526   if (!args) SWIG_fail;
8527   swig_obj[0] = args;
8528   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8529   if (!SWIG_IsOK(res1)) {
8530     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_meanx_less_than_half_get" "', argument " "1"" of type '" "index_t *""'");
8531   }
8532   arg1 = (index_t *)(argp1);
8533   result = (anbool) ((arg1)->meanx_less_than_half);
8534   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
8535   return resultobj;
8536 fail:
8537   return NULL;
8538 }
8539 
8540 
_wrap_index_t_index_scale_upper_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8541 SWIGINTERN PyObject *_wrap_index_t_index_scale_upper_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8542   PyObject *resultobj = 0;
8543   index_t *arg1 = (index_t *) 0 ;
8544   double arg2 ;
8545   void *argp1 = 0 ;
8546   int res1 = 0 ;
8547   double val2 ;
8548   int ecode2 = 0 ;
8549   PyObject *swig_obj[2] ;
8550 
8551   if (!SWIG_Python_UnpackTuple(args, "index_t_index_scale_upper_set", 2, 2, swig_obj)) SWIG_fail;
8552   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8553   if (!SWIG_IsOK(res1)) {
8554     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_index_scale_upper_set" "', argument " "1"" of type '" "index_t *""'");
8555   }
8556   arg1 = (index_t *)(argp1);
8557   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8558   if (!SWIG_IsOK(ecode2)) {
8559     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_index_scale_upper_set" "', argument " "2"" of type '" "double""'");
8560   }
8561   arg2 = (double)(val2);
8562   if (arg1) (arg1)->index_scale_upper = arg2;
8563   resultobj = SWIG_Py_Void();
8564   return resultobj;
8565 fail:
8566   return NULL;
8567 }
8568 
8569 
_wrap_index_t_index_scale_upper_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8570 SWIGINTERN PyObject *_wrap_index_t_index_scale_upper_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8571   PyObject *resultobj = 0;
8572   index_t *arg1 = (index_t *) 0 ;
8573   void *argp1 = 0 ;
8574   int res1 = 0 ;
8575   PyObject *swig_obj[1] ;
8576   double result;
8577 
8578   if (!args) SWIG_fail;
8579   swig_obj[0] = args;
8580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8581   if (!SWIG_IsOK(res1)) {
8582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_index_scale_upper_get" "', argument " "1"" of type '" "index_t *""'");
8583   }
8584   arg1 = (index_t *)(argp1);
8585   result = (double) ((arg1)->index_scale_upper);
8586   resultobj = SWIG_From_double((double)(result));
8587   return resultobj;
8588 fail:
8589   return NULL;
8590 }
8591 
8592 
_wrap_index_t_index_scale_lower_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8593 SWIGINTERN PyObject *_wrap_index_t_index_scale_lower_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8594   PyObject *resultobj = 0;
8595   index_t *arg1 = (index_t *) 0 ;
8596   double arg2 ;
8597   void *argp1 = 0 ;
8598   int res1 = 0 ;
8599   double val2 ;
8600   int ecode2 = 0 ;
8601   PyObject *swig_obj[2] ;
8602 
8603   if (!SWIG_Python_UnpackTuple(args, "index_t_index_scale_lower_set", 2, 2, swig_obj)) SWIG_fail;
8604   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8605   if (!SWIG_IsOK(res1)) {
8606     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_index_scale_lower_set" "', argument " "1"" of type '" "index_t *""'");
8607   }
8608   arg1 = (index_t *)(argp1);
8609   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8610   if (!SWIG_IsOK(ecode2)) {
8611     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_index_scale_lower_set" "', argument " "2"" of type '" "double""'");
8612   }
8613   arg2 = (double)(val2);
8614   if (arg1) (arg1)->index_scale_lower = arg2;
8615   resultobj = SWIG_Py_Void();
8616   return resultobj;
8617 fail:
8618   return NULL;
8619 }
8620 
8621 
_wrap_index_t_index_scale_lower_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8622 SWIGINTERN PyObject *_wrap_index_t_index_scale_lower_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8623   PyObject *resultobj = 0;
8624   index_t *arg1 = (index_t *) 0 ;
8625   void *argp1 = 0 ;
8626   int res1 = 0 ;
8627   PyObject *swig_obj[1] ;
8628   double result;
8629 
8630   if (!args) SWIG_fail;
8631   swig_obj[0] = args;
8632   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8633   if (!SWIG_IsOK(res1)) {
8634     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_index_scale_lower_get" "', argument " "1"" of type '" "index_t *""'");
8635   }
8636   arg1 = (index_t *)(argp1);
8637   result = (double) ((arg1)->index_scale_lower);
8638   resultobj = SWIG_From_double((double)(result));
8639   return resultobj;
8640 fail:
8641   return NULL;
8642 }
8643 
8644 
_wrap_index_t_dimquads_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8645 SWIGINTERN PyObject *_wrap_index_t_dimquads_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8646   PyObject *resultobj = 0;
8647   index_t *arg1 = (index_t *) 0 ;
8648   int arg2 ;
8649   void *argp1 = 0 ;
8650   int res1 = 0 ;
8651   int val2 ;
8652   int ecode2 = 0 ;
8653   PyObject *swig_obj[2] ;
8654 
8655   if (!SWIG_Python_UnpackTuple(args, "index_t_dimquads_set", 2, 2, swig_obj)) SWIG_fail;
8656   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8657   if (!SWIG_IsOK(res1)) {
8658     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_dimquads_set" "', argument " "1"" of type '" "index_t *""'");
8659   }
8660   arg1 = (index_t *)(argp1);
8661   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8662   if (!SWIG_IsOK(ecode2)) {
8663     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_dimquads_set" "', argument " "2"" of type '" "int""'");
8664   }
8665   arg2 = (int)(val2);
8666   if (arg1) (arg1)->dimquads = arg2;
8667   resultobj = SWIG_Py_Void();
8668   return resultobj;
8669 fail:
8670   return NULL;
8671 }
8672 
8673 
_wrap_index_t_dimquads_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8674 SWIGINTERN PyObject *_wrap_index_t_dimquads_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8675   PyObject *resultobj = 0;
8676   index_t *arg1 = (index_t *) 0 ;
8677   void *argp1 = 0 ;
8678   int res1 = 0 ;
8679   PyObject *swig_obj[1] ;
8680   int result;
8681 
8682   if (!args) SWIG_fail;
8683   swig_obj[0] = args;
8684   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8685   if (!SWIG_IsOK(res1)) {
8686     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_dimquads_get" "', argument " "1"" of type '" "index_t *""'");
8687   }
8688   arg1 = (index_t *)(argp1);
8689   result = (int) ((arg1)->dimquads);
8690   resultobj = SWIG_From_int((int)(result));
8691   return resultobj;
8692 fail:
8693   return NULL;
8694 }
8695 
8696 
_wrap_index_t_nstars_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8697 SWIGINTERN PyObject *_wrap_index_t_nstars_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8698   PyObject *resultobj = 0;
8699   index_t *arg1 = (index_t *) 0 ;
8700   int arg2 ;
8701   void *argp1 = 0 ;
8702   int res1 = 0 ;
8703   int val2 ;
8704   int ecode2 = 0 ;
8705   PyObject *swig_obj[2] ;
8706 
8707   if (!SWIG_Python_UnpackTuple(args, "index_t_nstars_set", 2, 2, swig_obj)) SWIG_fail;
8708   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8709   if (!SWIG_IsOK(res1)) {
8710     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_nstars_set" "', argument " "1"" of type '" "index_t *""'");
8711   }
8712   arg1 = (index_t *)(argp1);
8713   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8714   if (!SWIG_IsOK(ecode2)) {
8715     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_nstars_set" "', argument " "2"" of type '" "int""'");
8716   }
8717   arg2 = (int)(val2);
8718   if (arg1) (arg1)->nstars = arg2;
8719   resultobj = SWIG_Py_Void();
8720   return resultobj;
8721 fail:
8722   return NULL;
8723 }
8724 
8725 
_wrap_index_t_nstars_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8726 SWIGINTERN PyObject *_wrap_index_t_nstars_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8727   PyObject *resultobj = 0;
8728   index_t *arg1 = (index_t *) 0 ;
8729   void *argp1 = 0 ;
8730   int res1 = 0 ;
8731   PyObject *swig_obj[1] ;
8732   int result;
8733 
8734   if (!args) SWIG_fail;
8735   swig_obj[0] = args;
8736   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8737   if (!SWIG_IsOK(res1)) {
8738     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_nstars_get" "', argument " "1"" of type '" "index_t *""'");
8739   }
8740   arg1 = (index_t *)(argp1);
8741   result = (int) ((arg1)->nstars);
8742   resultobj = SWIG_From_int((int)(result));
8743   return resultobj;
8744 fail:
8745   return NULL;
8746 }
8747 
8748 
_wrap_index_t_nquads_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8749 SWIGINTERN PyObject *_wrap_index_t_nquads_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8750   PyObject *resultobj = 0;
8751   index_t *arg1 = (index_t *) 0 ;
8752   int arg2 ;
8753   void *argp1 = 0 ;
8754   int res1 = 0 ;
8755   int val2 ;
8756   int ecode2 = 0 ;
8757   PyObject *swig_obj[2] ;
8758 
8759   if (!SWIG_Python_UnpackTuple(args, "index_t_nquads_set", 2, 2, swig_obj)) SWIG_fail;
8760   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8761   if (!SWIG_IsOK(res1)) {
8762     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_nquads_set" "', argument " "1"" of type '" "index_t *""'");
8763   }
8764   arg1 = (index_t *)(argp1);
8765   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8766   if (!SWIG_IsOK(ecode2)) {
8767     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_t_nquads_set" "', argument " "2"" of type '" "int""'");
8768   }
8769   arg2 = (int)(val2);
8770   if (arg1) (arg1)->nquads = arg2;
8771   resultobj = SWIG_Py_Void();
8772   return resultobj;
8773 fail:
8774   return NULL;
8775 }
8776 
8777 
_wrap_index_t_nquads_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8778 SWIGINTERN PyObject *_wrap_index_t_nquads_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8779   PyObject *resultobj = 0;
8780   index_t *arg1 = (index_t *) 0 ;
8781   void *argp1 = 0 ;
8782   int res1 = 0 ;
8783   PyObject *swig_obj[1] ;
8784   int result;
8785 
8786   if (!args) SWIG_fail;
8787   swig_obj[0] = args;
8788   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8789   if (!SWIG_IsOK(res1)) {
8790     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_t_nquads_get" "', argument " "1"" of type '" "index_t *""'");
8791   }
8792   arg1 = (index_t *)(argp1);
8793   result = (int) ((arg1)->nquads);
8794   resultobj = SWIG_From_int((int)(result));
8795   return resultobj;
8796 fail:
8797   return NULL;
8798 }
8799 
8800 
_wrap_new_index_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8801 SWIGINTERN PyObject *_wrap_new_index_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8802   PyObject *resultobj = 0;
8803   index_t *result = 0 ;
8804 
8805   if (!SWIG_Python_UnpackTuple(args, "new_index_t", 0, 0, 0)) SWIG_fail;
8806   result = (index_t *)calloc(1, sizeof(index_t));
8807   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_index_t, SWIG_POINTER_NEW |  0 );
8808   return resultobj;
8809 fail:
8810   return NULL;
8811 }
8812 
8813 
_wrap_delete_index_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8814 SWIGINTERN PyObject *_wrap_delete_index_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8815   PyObject *resultobj = 0;
8816   index_t *arg1 = (index_t *) 0 ;
8817   void *argp1 = 0 ;
8818   int res1 = 0 ;
8819   PyObject *swig_obj[1] ;
8820 
8821   if (!args) SWIG_fail;
8822   swig_obj[0] = args;
8823   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, SWIG_POINTER_DISOWN |  0 );
8824   if (!SWIG_IsOK(res1)) {
8825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_index_t" "', argument " "1"" of type '" "index_t *""'");
8826   }
8827   arg1 = (index_t *)(argp1);
8828   free((char *) arg1);
8829   resultobj = SWIG_Py_Void();
8830   return resultobj;
8831 fail:
8832   return NULL;
8833 }
8834 
8835 
index_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8836 SWIGINTERN PyObject *index_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8837   PyObject *obj;
8838   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
8839   SWIG_TypeNewClientData(SWIGTYPE_p_index_t, SWIG_NewClientData(obj));
8840   return SWIG_Py_Void();
8841 }
8842 
index_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8843 SWIGINTERN PyObject *index_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8844   return SWIG_Python_InitShadowInstance(args);
8845 }
8846 
_wrap_index_dimquads(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8847 SWIGINTERN PyObject *_wrap_index_dimquads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8848   PyObject *resultobj = 0;
8849   index_t *arg1 = (index_t *) 0 ;
8850   void *argp1 = 0 ;
8851   int res1 = 0 ;
8852   PyObject *swig_obj[1] ;
8853   int result;
8854 
8855   if (!args) SWIG_fail;
8856   swig_obj[0] = args;
8857   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8858   if (!SWIG_IsOK(res1)) {
8859     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_dimquads" "', argument " "1"" of type '" "index_t *""'");
8860   }
8861   arg1 = (index_t *)(argp1);
8862   result = (int)index_dimquads(arg1);
8863   resultobj = SWIG_From_int((int)(result));
8864   return resultobj;
8865 fail:
8866   return NULL;
8867 }
8868 
8869 
_wrap_index_overlaps_scale_range(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8870 SWIGINTERN PyObject *_wrap_index_overlaps_scale_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8871   PyObject *resultobj = 0;
8872   index_t *arg1 = (index_t *) 0 ;
8873   double arg2 ;
8874   double arg3 ;
8875   void *argp1 = 0 ;
8876   int res1 = 0 ;
8877   double val2 ;
8878   int ecode2 = 0 ;
8879   double val3 ;
8880   int ecode3 = 0 ;
8881   PyObject *swig_obj[3] ;
8882   anbool result;
8883 
8884   if (!SWIG_Python_UnpackTuple(args, "index_overlaps_scale_range", 3, 3, swig_obj)) SWIG_fail;
8885   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8886   if (!SWIG_IsOK(res1)) {
8887     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_overlaps_scale_range" "', argument " "1"" of type '" "index_t *""'");
8888   }
8889   arg1 = (index_t *)(argp1);
8890   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8891   if (!SWIG_IsOK(ecode2)) {
8892     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_overlaps_scale_range" "', argument " "2"" of type '" "double""'");
8893   }
8894   arg2 = (double)(val2);
8895   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8896   if (!SWIG_IsOK(ecode3)) {
8897     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "index_overlaps_scale_range" "', argument " "3"" of type '" "double""'");
8898   }
8899   arg3 = (double)(val3);
8900   result = (anbool)index_overlaps_scale_range(arg1,arg2,arg3);
8901   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
8902   return resultobj;
8903 fail:
8904   return NULL;
8905 }
8906 
8907 
_wrap_index_is_within_range(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8908 SWIGINTERN PyObject *_wrap_index_is_within_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8909   PyObject *resultobj = 0;
8910   index_t *arg1 = (index_t *) 0 ;
8911   double arg2 ;
8912   double arg3 ;
8913   double arg4 ;
8914   void *argp1 = 0 ;
8915   int res1 = 0 ;
8916   double val2 ;
8917   int ecode2 = 0 ;
8918   double val3 ;
8919   int ecode3 = 0 ;
8920   double val4 ;
8921   int ecode4 = 0 ;
8922   PyObject *swig_obj[4] ;
8923   anbool result;
8924 
8925   if (!SWIG_Python_UnpackTuple(args, "index_is_within_range", 4, 4, swig_obj)) SWIG_fail;
8926   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
8927   if (!SWIG_IsOK(res1)) {
8928     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_is_within_range" "', argument " "1"" of type '" "index_t *""'");
8929   }
8930   arg1 = (index_t *)(argp1);
8931   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8932   if (!SWIG_IsOK(ecode2)) {
8933     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_is_within_range" "', argument " "2"" of type '" "double""'");
8934   }
8935   arg2 = (double)(val2);
8936   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8937   if (!SWIG_IsOK(ecode3)) {
8938     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "index_is_within_range" "', argument " "3"" of type '" "double""'");
8939   }
8940   arg3 = (double)(val3);
8941   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
8942   if (!SWIG_IsOK(ecode4)) {
8943     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "index_is_within_range" "', argument " "4"" of type '" "double""'");
8944   }
8945   arg4 = (double)(val4);
8946   result = (anbool)index_is_within_range(arg1,arg2,arg3,arg4);
8947   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
8948   return resultobj;
8949 fail:
8950   return NULL;
8951 }
8952 
8953 
_wrap_index_get_meta(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8954 SWIGINTERN PyObject *_wrap_index_get_meta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8955   PyObject *resultobj = 0;
8956   char *arg1 = (char *) 0 ;
8957   index_t *arg2 = (index_t *) 0 ;
8958   int res1 ;
8959   char *buf1 = 0 ;
8960   int alloc1 = 0 ;
8961   void *argp2 = 0 ;
8962   int res2 = 0 ;
8963   PyObject *swig_obj[2] ;
8964   int result;
8965 
8966   if (!SWIG_Python_UnpackTuple(args, "index_get_meta", 2, 2, swig_obj)) SWIG_fail;
8967   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
8968   if (!SWIG_IsOK(res1)) {
8969     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_get_meta" "', argument " "1"" of type '" "char const *""'");
8970   }
8971   arg1 = (char *)(buf1);
8972   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_index_t, 0 |  0 );
8973   if (!SWIG_IsOK(res2)) {
8974     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_get_meta" "', argument " "2"" of type '" "index_t *""'");
8975   }
8976   arg2 = (index_t *)(argp2);
8977   result = (int)index_get_meta((char const *)arg1,arg2);
8978   resultobj = SWIG_From_int((int)(result));
8979   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
8980   return resultobj;
8981 fail:
8982   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
8983   return NULL;
8984 }
8985 
8986 
_wrap_index_is_file_index(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8987 SWIGINTERN PyObject *_wrap_index_is_file_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8988   PyObject *resultobj = 0;
8989   char *arg1 = (char *) 0 ;
8990   int res1 ;
8991   char *buf1 = 0 ;
8992   int alloc1 = 0 ;
8993   PyObject *swig_obj[1] ;
8994   anbool result;
8995 
8996   if (!args) SWIG_fail;
8997   swig_obj[0] = args;
8998   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
8999   if (!SWIG_IsOK(res1)) {
9000     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_is_file_index" "', argument " "1"" of type '" "char const *""'");
9001   }
9002   arg1 = (char *)(buf1);
9003   result = (anbool)index_is_file_index((char const *)arg1);
9004   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
9005   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9006   return resultobj;
9007 fail:
9008   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9009   return NULL;
9010 }
9011 
9012 
_wrap_index_get_quad_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9013 SWIGINTERN PyObject *_wrap_index_get_quad_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9014   PyObject *resultobj = 0;
9015   char *arg1 = (char *) 0 ;
9016   int res1 ;
9017   char *buf1 = 0 ;
9018   int alloc1 = 0 ;
9019   PyObject *swig_obj[1] ;
9020   char *result = 0 ;
9021 
9022   if (!args) SWIG_fail;
9023   swig_obj[0] = args;
9024   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
9025   if (!SWIG_IsOK(res1)) {
9026     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_get_quad_filename" "', argument " "1"" of type '" "char const *""'");
9027   }
9028   arg1 = (char *)(buf1);
9029   result = (char *)index_get_quad_filename((char const *)arg1);
9030   resultobj = SWIG_FromCharPtr((const char *)result);
9031   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9032   return resultobj;
9033 fail:
9034   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9035   return NULL;
9036 }
9037 
9038 
_wrap_index_get_qidx_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9039 SWIGINTERN PyObject *_wrap_index_get_qidx_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9040   PyObject *resultobj = 0;
9041   char *arg1 = (char *) 0 ;
9042   int res1 ;
9043   char *buf1 = 0 ;
9044   int alloc1 = 0 ;
9045   PyObject *swig_obj[1] ;
9046   char *result = 0 ;
9047 
9048   if (!args) SWIG_fail;
9049   swig_obj[0] = args;
9050   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
9051   if (!SWIG_IsOK(res1)) {
9052     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_get_qidx_filename" "', argument " "1"" of type '" "char const *""'");
9053   }
9054   arg1 = (char *)(buf1);
9055   result = (char *)index_get_qidx_filename((char const *)arg1);
9056   resultobj = SWIG_FromCharPtr((const char *)result);
9057   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9058   return resultobj;
9059 fail:
9060   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9061   return NULL;
9062 }
9063 
9064 
_wrap_index_get_quad_dim(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9065 SWIGINTERN PyObject *_wrap_index_get_quad_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9066   PyObject *resultobj = 0;
9067   index_t *arg1 = (index_t *) 0 ;
9068   void *argp1 = 0 ;
9069   int res1 = 0 ;
9070   PyObject *swig_obj[1] ;
9071   int result;
9072 
9073   if (!args) SWIG_fail;
9074   swig_obj[0] = args;
9075   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9076   if (!SWIG_IsOK(res1)) {
9077     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_get_quad_dim" "', argument " "1"" of type '" "index_t const *""'");
9078   }
9079   arg1 = (index_t *)(argp1);
9080   result = (int)index_get_quad_dim((index_t const *)arg1);
9081   resultobj = SWIG_From_int((int)(result));
9082   return resultobj;
9083 fail:
9084   return NULL;
9085 }
9086 
9087 
_wrap_index_get_code_dim(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9088 SWIGINTERN PyObject *_wrap_index_get_code_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9089   PyObject *resultobj = 0;
9090   index_t *arg1 = (index_t *) 0 ;
9091   void *argp1 = 0 ;
9092   int res1 = 0 ;
9093   PyObject *swig_obj[1] ;
9094   int result;
9095 
9096   if (!args) SWIG_fail;
9097   swig_obj[0] = args;
9098   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9099   if (!SWIG_IsOK(res1)) {
9100     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_get_code_dim" "', argument " "1"" of type '" "index_t const *""'");
9101   }
9102   arg1 = (index_t *)(argp1);
9103   result = (int)index_get_code_dim((index_t const *)arg1);
9104   resultobj = SWIG_From_int((int)(result));
9105   return resultobj;
9106 fail:
9107   return NULL;
9108 }
9109 
9110 
_wrap_index_nquads(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9111 SWIGINTERN PyObject *_wrap_index_nquads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9112   PyObject *resultobj = 0;
9113   index_t *arg1 = (index_t *) 0 ;
9114   void *argp1 = 0 ;
9115   int res1 = 0 ;
9116   PyObject *swig_obj[1] ;
9117   int result;
9118 
9119   if (!args) SWIG_fail;
9120   swig_obj[0] = args;
9121   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9122   if (!SWIG_IsOK(res1)) {
9123     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_nquads" "', argument " "1"" of type '" "index_t const *""'");
9124   }
9125   arg1 = (index_t *)(argp1);
9126   result = (int)index_nquads((index_t const *)arg1);
9127   resultobj = SWIG_From_int((int)(result));
9128   return resultobj;
9129 fail:
9130   return NULL;
9131 }
9132 
9133 
_wrap_index_nstars(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9134 SWIGINTERN PyObject *_wrap_index_nstars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9135   PyObject *resultobj = 0;
9136   index_t *arg1 = (index_t *) 0 ;
9137   void *argp1 = 0 ;
9138   int res1 = 0 ;
9139   PyObject *swig_obj[1] ;
9140   int result;
9141 
9142   if (!args) SWIG_fail;
9143   swig_obj[0] = args;
9144   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9145   if (!SWIG_IsOK(res1)) {
9146     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_nstars" "', argument " "1"" of type '" "index_t const *""'");
9147   }
9148   arg1 = (index_t *)(argp1);
9149   result = (int)index_nstars((index_t const *)arg1);
9150   resultobj = SWIG_From_int((int)(result));
9151   return resultobj;
9152 fail:
9153   return NULL;
9154 }
9155 
9156 
_wrap_index_build_from(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9157 SWIGINTERN PyObject *_wrap_index_build_from(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9158   PyObject *resultobj = 0;
9159   codetree_t *arg1 = (codetree_t *) 0 ;
9160   quadfile_t *arg2 = (quadfile_t *) 0 ;
9161   startree_t *arg3 = (startree_t *) 0 ;
9162   void *argp1 = 0 ;
9163   int res1 = 0 ;
9164   void *argp2 = 0 ;
9165   int res2 = 0 ;
9166   void *argp3 = 0 ;
9167   int res3 = 0 ;
9168   PyObject *swig_obj[3] ;
9169   index_t *result = 0 ;
9170 
9171   if (!SWIG_Python_UnpackTuple(args, "index_build_from", 3, 3, swig_obj)) SWIG_fail;
9172   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
9173   if (!SWIG_IsOK(res1)) {
9174     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_build_from" "', argument " "1"" of type '" "codetree_t *""'");
9175   }
9176   arg1 = (codetree_t *)(argp1);
9177   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_quadfile_t, 0 |  0 );
9178   if (!SWIG_IsOK(res2)) {
9179     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_build_from" "', argument " "2"" of type '" "quadfile_t *""'");
9180   }
9181   arg2 = (quadfile_t *)(argp2);
9182   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_startree_t, 0 |  0 );
9183   if (!SWIG_IsOK(res3)) {
9184     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "index_build_from" "', argument " "3"" of type '" "startree_t *""'");
9185   }
9186   arg3 = (startree_t *)(argp3);
9187   result = (index_t *)index_build_from(arg1,arg2,arg3);
9188   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_index_t, 0 |  0 );
9189   return resultobj;
9190 fail:
9191   return NULL;
9192 }
9193 
9194 
_wrap_index_load(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9195 SWIGINTERN PyObject *_wrap_index_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9196   PyObject *resultobj = 0;
9197   char *arg1 = (char *) 0 ;
9198   int arg2 ;
9199   index_t *arg3 = (index_t *) 0 ;
9200   int res1 ;
9201   char *buf1 = 0 ;
9202   int alloc1 = 0 ;
9203   int val2 ;
9204   int ecode2 = 0 ;
9205   void *argp3 = 0 ;
9206   int res3 = 0 ;
9207   PyObject *swig_obj[3] ;
9208   index_t *result = 0 ;
9209 
9210   if (!SWIG_Python_UnpackTuple(args, "index_load", 3, 3, swig_obj)) SWIG_fail;
9211   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
9212   if (!SWIG_IsOK(res1)) {
9213     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_load" "', argument " "1"" of type '" "char const *""'");
9214   }
9215   arg1 = (char *)(buf1);
9216   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9217   if (!SWIG_IsOK(ecode2)) {
9218     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "index_load" "', argument " "2"" of type '" "int""'");
9219   }
9220   arg2 = (int)(val2);
9221   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_index_t, 0 |  0 );
9222   if (!SWIG_IsOK(res3)) {
9223     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "index_load" "', argument " "3"" of type '" "index_t *""'");
9224   }
9225   arg3 = (index_t *)(argp3);
9226   result = (index_t *)index_load((char const *)arg1,arg2,arg3);
9227   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_index_t, 0 |  0 );
9228   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9229   return resultobj;
9230 fail:
9231   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9232   return NULL;
9233 }
9234 
9235 
_wrap_index_unload(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9236 SWIGINTERN PyObject *_wrap_index_unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9237   PyObject *resultobj = 0;
9238   index_t *arg1 = (index_t *) 0 ;
9239   void *argp1 = 0 ;
9240   int res1 = 0 ;
9241   PyObject *swig_obj[1] ;
9242 
9243   if (!args) SWIG_fail;
9244   swig_obj[0] = args;
9245   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9246   if (!SWIG_IsOK(res1)) {
9247     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_unload" "', argument " "1"" of type '" "index_t *""'");
9248   }
9249   arg1 = (index_t *)(argp1);
9250   index_unload(arg1);
9251   resultobj = SWIG_Py_Void();
9252   return resultobj;
9253 fail:
9254   return NULL;
9255 }
9256 
9257 
_wrap_index_reload(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9258 SWIGINTERN PyObject *_wrap_index_reload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9259   PyObject *resultobj = 0;
9260   index_t *arg1 = (index_t *) 0 ;
9261   void *argp1 = 0 ;
9262   int res1 = 0 ;
9263   PyObject *swig_obj[1] ;
9264   int result;
9265 
9266   if (!args) SWIG_fail;
9267   swig_obj[0] = args;
9268   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9269   if (!SWIG_IsOK(res1)) {
9270     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_reload" "', argument " "1"" of type '" "index_t *""'");
9271   }
9272   arg1 = (index_t *)(argp1);
9273   result = (int)index_reload(arg1);
9274   resultobj = SWIG_From_int((int)(result));
9275   return resultobj;
9276 fail:
9277   return NULL;
9278 }
9279 
9280 
_wrap_index_close_fds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9281 SWIGINTERN PyObject *_wrap_index_close_fds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9282   PyObject *resultobj = 0;
9283   index_t *arg1 = (index_t *) 0 ;
9284   void *argp1 = 0 ;
9285   int res1 = 0 ;
9286   PyObject *swig_obj[1] ;
9287   int result;
9288 
9289   if (!args) SWIG_fail;
9290   swig_obj[0] = args;
9291   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9292   if (!SWIG_IsOK(res1)) {
9293     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_close_fds" "', argument " "1"" of type '" "index_t *""'");
9294   }
9295   arg1 = (index_t *)(argp1);
9296   result = (int)index_close_fds(arg1);
9297   resultobj = SWIG_From_int((int)(result));
9298   return resultobj;
9299 fail:
9300   return NULL;
9301 }
9302 
9303 
_wrap_index_close(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9304 SWIGINTERN PyObject *_wrap_index_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9305   PyObject *resultobj = 0;
9306   index_t *arg1 = (index_t *) 0 ;
9307   void *argp1 = 0 ;
9308   int res1 = 0 ;
9309   PyObject *swig_obj[1] ;
9310 
9311   if (!args) SWIG_fail;
9312   swig_obj[0] = args;
9313   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9314   if (!SWIG_IsOK(res1)) {
9315     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_close" "', argument " "1"" of type '" "index_t *""'");
9316   }
9317   arg1 = (index_t *)(argp1);
9318   index_close(arg1);
9319   resultobj = SWIG_Py_Void();
9320   return resultobj;
9321 fail:
9322   return NULL;
9323 }
9324 
9325 
_wrap_index_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9326 SWIGINTERN PyObject *_wrap_index_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9327   PyObject *resultobj = 0;
9328   index_t *arg1 = (index_t *) 0 ;
9329   void *argp1 = 0 ;
9330   int res1 = 0 ;
9331   PyObject *swig_obj[1] ;
9332 
9333   if (!args) SWIG_fail;
9334   swig_obj[0] = args;
9335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
9336   if (!SWIG_IsOK(res1)) {
9337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "index_free" "', argument " "1"" of type '" "index_t *""'");
9338   }
9339   arg1 = (index_t *)(argp1);
9340   index_free(arg1);
9341   resultobj = SWIG_Py_Void();
9342   return resultobj;
9343 fail:
9344   return NULL;
9345 }
9346 
9347 
_wrap_index_get_missing_cut_params(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9348 SWIGINTERN PyObject *_wrap_index_get_missing_cut_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9349   PyObject *resultobj = 0;
9350   int arg1 ;
9351   int *arg2 = (int *) 0 ;
9352   int *arg3 = (int *) 0 ;
9353   double *arg4 = (double *) 0 ;
9354   int *arg5 = (int *) 0 ;
9355   char **arg6 = (char **) 0 ;
9356   int val1 ;
9357   int ecode1 = 0 ;
9358   void *argp2 = 0 ;
9359   int res2 = 0 ;
9360   void *argp3 = 0 ;
9361   int res3 = 0 ;
9362   void *argp4 = 0 ;
9363   int res4 = 0 ;
9364   void *argp5 = 0 ;
9365   int res5 = 0 ;
9366   void *argp6 = 0 ;
9367   int res6 = 0 ;
9368   PyObject *swig_obj[6] ;
9369   int result;
9370 
9371   if (!SWIG_Python_UnpackTuple(args, "index_get_missing_cut_params", 6, 6, swig_obj)) SWIG_fail;
9372   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
9373   if (!SWIG_IsOK(ecode1)) {
9374     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "index_get_missing_cut_params" "', argument " "1"" of type '" "int""'");
9375   }
9376   arg1 = (int)(val1);
9377   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
9378   if (!SWIG_IsOK(res2)) {
9379     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "index_get_missing_cut_params" "', argument " "2"" of type '" "int *""'");
9380   }
9381   arg2 = (int *)(argp2);
9382   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
9383   if (!SWIG_IsOK(res3)) {
9384     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "index_get_missing_cut_params" "', argument " "3"" of type '" "int *""'");
9385   }
9386   arg3 = (int *)(argp3);
9387   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
9388   if (!SWIG_IsOK(res4)) {
9389     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "index_get_missing_cut_params" "', argument " "4"" of type '" "double *""'");
9390   }
9391   arg4 = (double *)(argp4);
9392   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
9393   if (!SWIG_IsOK(res5)) {
9394     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "index_get_missing_cut_params" "', argument " "5"" of type '" "int *""'");
9395   }
9396   arg5 = (int *)(argp5);
9397   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_p_char, 0 |  0 );
9398   if (!SWIG_IsOK(res6)) {
9399     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "index_get_missing_cut_params" "', argument " "6"" of type '" "char **""'");
9400   }
9401   arg6 = (char **)(argp6);
9402   result = (int)index_get_missing_cut_params(arg1,arg2,arg3,arg4,arg5,arg6);
9403   resultobj = SWIG_From_int((int)(result));
9404   return resultobj;
9405 fail:
9406   return NULL;
9407 }
9408 
9409 
_wrap_quadfile_t_numquads_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9410 SWIGINTERN PyObject *_wrap_quadfile_t_numquads_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9411   PyObject *resultobj = 0;
9412   quadfile_t *arg1 = (quadfile_t *) 0 ;
9413   unsigned int arg2 ;
9414   void *argp1 = 0 ;
9415   int res1 = 0 ;
9416   unsigned int val2 ;
9417   int ecode2 = 0 ;
9418   PyObject *swig_obj[2] ;
9419 
9420   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_numquads_set", 2, 2, swig_obj)) SWIG_fail;
9421   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9422   if (!SWIG_IsOK(res1)) {
9423     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_numquads_set" "', argument " "1"" of type '" "quadfile_t *""'");
9424   }
9425   arg1 = (quadfile_t *)(argp1);
9426   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
9427   if (!SWIG_IsOK(ecode2)) {
9428     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_numquads_set" "', argument " "2"" of type '" "unsigned int""'");
9429   }
9430   arg2 = (unsigned int)(val2);
9431   if (arg1) (arg1)->numquads = arg2;
9432   resultobj = SWIG_Py_Void();
9433   return resultobj;
9434 fail:
9435   return NULL;
9436 }
9437 
9438 
_wrap_quadfile_t_numquads_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9439 SWIGINTERN PyObject *_wrap_quadfile_t_numquads_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9440   PyObject *resultobj = 0;
9441   quadfile_t *arg1 = (quadfile_t *) 0 ;
9442   void *argp1 = 0 ;
9443   int res1 = 0 ;
9444   PyObject *swig_obj[1] ;
9445   unsigned int result;
9446 
9447   if (!args) SWIG_fail;
9448   swig_obj[0] = args;
9449   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9450   if (!SWIG_IsOK(res1)) {
9451     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_numquads_get" "', argument " "1"" of type '" "quadfile_t *""'");
9452   }
9453   arg1 = (quadfile_t *)(argp1);
9454   result = (unsigned int) ((arg1)->numquads);
9455   resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
9456   return resultobj;
9457 fail:
9458   return NULL;
9459 }
9460 
9461 
_wrap_quadfile_t_numstars_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9462 SWIGINTERN PyObject *_wrap_quadfile_t_numstars_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9463   PyObject *resultobj = 0;
9464   quadfile_t *arg1 = (quadfile_t *) 0 ;
9465   unsigned int arg2 ;
9466   void *argp1 = 0 ;
9467   int res1 = 0 ;
9468   unsigned int val2 ;
9469   int ecode2 = 0 ;
9470   PyObject *swig_obj[2] ;
9471 
9472   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_numstars_set", 2, 2, swig_obj)) SWIG_fail;
9473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9474   if (!SWIG_IsOK(res1)) {
9475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_numstars_set" "', argument " "1"" of type '" "quadfile_t *""'");
9476   }
9477   arg1 = (quadfile_t *)(argp1);
9478   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
9479   if (!SWIG_IsOK(ecode2)) {
9480     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_numstars_set" "', argument " "2"" of type '" "unsigned int""'");
9481   }
9482   arg2 = (unsigned int)(val2);
9483   if (arg1) (arg1)->numstars = arg2;
9484   resultobj = SWIG_Py_Void();
9485   return resultobj;
9486 fail:
9487   return NULL;
9488 }
9489 
9490 
_wrap_quadfile_t_numstars_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9491 SWIGINTERN PyObject *_wrap_quadfile_t_numstars_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9492   PyObject *resultobj = 0;
9493   quadfile_t *arg1 = (quadfile_t *) 0 ;
9494   void *argp1 = 0 ;
9495   int res1 = 0 ;
9496   PyObject *swig_obj[1] ;
9497   unsigned int result;
9498 
9499   if (!args) SWIG_fail;
9500   swig_obj[0] = args;
9501   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9502   if (!SWIG_IsOK(res1)) {
9503     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_numstars_get" "', argument " "1"" of type '" "quadfile_t *""'");
9504   }
9505   arg1 = (quadfile_t *)(argp1);
9506   result = (unsigned int) ((arg1)->numstars);
9507   resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
9508   return resultobj;
9509 fail:
9510   return NULL;
9511 }
9512 
9513 
_wrap_quadfile_t_dimquads_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9514 SWIGINTERN PyObject *_wrap_quadfile_t_dimquads_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9515   PyObject *resultobj = 0;
9516   quadfile_t *arg1 = (quadfile_t *) 0 ;
9517   int arg2 ;
9518   void *argp1 = 0 ;
9519   int res1 = 0 ;
9520   int val2 ;
9521   int ecode2 = 0 ;
9522   PyObject *swig_obj[2] ;
9523 
9524   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_dimquads_set", 2, 2, swig_obj)) SWIG_fail;
9525   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9526   if (!SWIG_IsOK(res1)) {
9527     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_dimquads_set" "', argument " "1"" of type '" "quadfile_t *""'");
9528   }
9529   arg1 = (quadfile_t *)(argp1);
9530   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9531   if (!SWIG_IsOK(ecode2)) {
9532     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_dimquads_set" "', argument " "2"" of type '" "int""'");
9533   }
9534   arg2 = (int)(val2);
9535   if (arg1) (arg1)->dimquads = arg2;
9536   resultobj = SWIG_Py_Void();
9537   return resultobj;
9538 fail:
9539   return NULL;
9540 }
9541 
9542 
_wrap_quadfile_t_dimquads_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9543 SWIGINTERN PyObject *_wrap_quadfile_t_dimquads_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9544   PyObject *resultobj = 0;
9545   quadfile_t *arg1 = (quadfile_t *) 0 ;
9546   void *argp1 = 0 ;
9547   int res1 = 0 ;
9548   PyObject *swig_obj[1] ;
9549   int result;
9550 
9551   if (!args) SWIG_fail;
9552   swig_obj[0] = args;
9553   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9554   if (!SWIG_IsOK(res1)) {
9555     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_dimquads_get" "', argument " "1"" of type '" "quadfile_t *""'");
9556   }
9557   arg1 = (quadfile_t *)(argp1);
9558   result = (int) ((arg1)->dimquads);
9559   resultobj = SWIG_From_int((int)(result));
9560   return resultobj;
9561 fail:
9562   return NULL;
9563 }
9564 
9565 
_wrap_quadfile_t_index_scale_upper_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9566 SWIGINTERN PyObject *_wrap_quadfile_t_index_scale_upper_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9567   PyObject *resultobj = 0;
9568   quadfile_t *arg1 = (quadfile_t *) 0 ;
9569   double arg2 ;
9570   void *argp1 = 0 ;
9571   int res1 = 0 ;
9572   double val2 ;
9573   int ecode2 = 0 ;
9574   PyObject *swig_obj[2] ;
9575 
9576   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_index_scale_upper_set", 2, 2, swig_obj)) SWIG_fail;
9577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9578   if (!SWIG_IsOK(res1)) {
9579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_index_scale_upper_set" "', argument " "1"" of type '" "quadfile_t *""'");
9580   }
9581   arg1 = (quadfile_t *)(argp1);
9582   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9583   if (!SWIG_IsOK(ecode2)) {
9584     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_index_scale_upper_set" "', argument " "2"" of type '" "double""'");
9585   }
9586   arg2 = (double)(val2);
9587   if (arg1) (arg1)->index_scale_upper = arg2;
9588   resultobj = SWIG_Py_Void();
9589   return resultobj;
9590 fail:
9591   return NULL;
9592 }
9593 
9594 
_wrap_quadfile_t_index_scale_upper_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9595 SWIGINTERN PyObject *_wrap_quadfile_t_index_scale_upper_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9596   PyObject *resultobj = 0;
9597   quadfile_t *arg1 = (quadfile_t *) 0 ;
9598   void *argp1 = 0 ;
9599   int res1 = 0 ;
9600   PyObject *swig_obj[1] ;
9601   double result;
9602 
9603   if (!args) SWIG_fail;
9604   swig_obj[0] = args;
9605   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9606   if (!SWIG_IsOK(res1)) {
9607     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_index_scale_upper_get" "', argument " "1"" of type '" "quadfile_t *""'");
9608   }
9609   arg1 = (quadfile_t *)(argp1);
9610   result = (double) ((arg1)->index_scale_upper);
9611   resultobj = SWIG_From_double((double)(result));
9612   return resultobj;
9613 fail:
9614   return NULL;
9615 }
9616 
9617 
_wrap_quadfile_t_index_scale_lower_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9618 SWIGINTERN PyObject *_wrap_quadfile_t_index_scale_lower_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9619   PyObject *resultobj = 0;
9620   quadfile_t *arg1 = (quadfile_t *) 0 ;
9621   double arg2 ;
9622   void *argp1 = 0 ;
9623   int res1 = 0 ;
9624   double val2 ;
9625   int ecode2 = 0 ;
9626   PyObject *swig_obj[2] ;
9627 
9628   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_index_scale_lower_set", 2, 2, swig_obj)) SWIG_fail;
9629   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9630   if (!SWIG_IsOK(res1)) {
9631     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_index_scale_lower_set" "', argument " "1"" of type '" "quadfile_t *""'");
9632   }
9633   arg1 = (quadfile_t *)(argp1);
9634   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9635   if (!SWIG_IsOK(ecode2)) {
9636     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_index_scale_lower_set" "', argument " "2"" of type '" "double""'");
9637   }
9638   arg2 = (double)(val2);
9639   if (arg1) (arg1)->index_scale_lower = arg2;
9640   resultobj = SWIG_Py_Void();
9641   return resultobj;
9642 fail:
9643   return NULL;
9644 }
9645 
9646 
_wrap_quadfile_t_index_scale_lower_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9647 SWIGINTERN PyObject *_wrap_quadfile_t_index_scale_lower_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9648   PyObject *resultobj = 0;
9649   quadfile_t *arg1 = (quadfile_t *) 0 ;
9650   void *argp1 = 0 ;
9651   int res1 = 0 ;
9652   PyObject *swig_obj[1] ;
9653   double result;
9654 
9655   if (!args) SWIG_fail;
9656   swig_obj[0] = args;
9657   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9658   if (!SWIG_IsOK(res1)) {
9659     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_index_scale_lower_get" "', argument " "1"" of type '" "quadfile_t *""'");
9660   }
9661   arg1 = (quadfile_t *)(argp1);
9662   result = (double) ((arg1)->index_scale_lower);
9663   resultobj = SWIG_From_double((double)(result));
9664   return resultobj;
9665 fail:
9666   return NULL;
9667 }
9668 
9669 
_wrap_quadfile_t_indexid_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9670 SWIGINTERN PyObject *_wrap_quadfile_t_indexid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9671   PyObject *resultobj = 0;
9672   quadfile_t *arg1 = (quadfile_t *) 0 ;
9673   int arg2 ;
9674   void *argp1 = 0 ;
9675   int res1 = 0 ;
9676   int val2 ;
9677   int ecode2 = 0 ;
9678   PyObject *swig_obj[2] ;
9679 
9680   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_indexid_set", 2, 2, swig_obj)) SWIG_fail;
9681   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9682   if (!SWIG_IsOK(res1)) {
9683     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_indexid_set" "', argument " "1"" of type '" "quadfile_t *""'");
9684   }
9685   arg1 = (quadfile_t *)(argp1);
9686   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9687   if (!SWIG_IsOK(ecode2)) {
9688     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_indexid_set" "', argument " "2"" of type '" "int""'");
9689   }
9690   arg2 = (int)(val2);
9691   if (arg1) (arg1)->indexid = arg2;
9692   resultobj = SWIG_Py_Void();
9693   return resultobj;
9694 fail:
9695   return NULL;
9696 }
9697 
9698 
_wrap_quadfile_t_indexid_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9699 SWIGINTERN PyObject *_wrap_quadfile_t_indexid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9700   PyObject *resultobj = 0;
9701   quadfile_t *arg1 = (quadfile_t *) 0 ;
9702   void *argp1 = 0 ;
9703   int res1 = 0 ;
9704   PyObject *swig_obj[1] ;
9705   int result;
9706 
9707   if (!args) SWIG_fail;
9708   swig_obj[0] = args;
9709   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9710   if (!SWIG_IsOK(res1)) {
9711     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_indexid_get" "', argument " "1"" of type '" "quadfile_t *""'");
9712   }
9713   arg1 = (quadfile_t *)(argp1);
9714   result = (int) ((arg1)->indexid);
9715   resultobj = SWIG_From_int((int)(result));
9716   return resultobj;
9717 fail:
9718   return NULL;
9719 }
9720 
9721 
_wrap_quadfile_t_healpix_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9722 SWIGINTERN PyObject *_wrap_quadfile_t_healpix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9723   PyObject *resultobj = 0;
9724   quadfile_t *arg1 = (quadfile_t *) 0 ;
9725   int arg2 ;
9726   void *argp1 = 0 ;
9727   int res1 = 0 ;
9728   int val2 ;
9729   int ecode2 = 0 ;
9730   PyObject *swig_obj[2] ;
9731 
9732   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_healpix_set", 2, 2, swig_obj)) SWIG_fail;
9733   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9734   if (!SWIG_IsOK(res1)) {
9735     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_healpix_set" "', argument " "1"" of type '" "quadfile_t *""'");
9736   }
9737   arg1 = (quadfile_t *)(argp1);
9738   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9739   if (!SWIG_IsOK(ecode2)) {
9740     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_healpix_set" "', argument " "2"" of type '" "int""'");
9741   }
9742   arg2 = (int)(val2);
9743   if (arg1) (arg1)->healpix = arg2;
9744   resultobj = SWIG_Py_Void();
9745   return resultobj;
9746 fail:
9747   return NULL;
9748 }
9749 
9750 
_wrap_quadfile_t_healpix_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9751 SWIGINTERN PyObject *_wrap_quadfile_t_healpix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9752   PyObject *resultobj = 0;
9753   quadfile_t *arg1 = (quadfile_t *) 0 ;
9754   void *argp1 = 0 ;
9755   int res1 = 0 ;
9756   PyObject *swig_obj[1] ;
9757   int result;
9758 
9759   if (!args) SWIG_fail;
9760   swig_obj[0] = args;
9761   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9762   if (!SWIG_IsOK(res1)) {
9763     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_healpix_get" "', argument " "1"" of type '" "quadfile_t *""'");
9764   }
9765   arg1 = (quadfile_t *)(argp1);
9766   result = (int) ((arg1)->healpix);
9767   resultobj = SWIG_From_int((int)(result));
9768   return resultobj;
9769 fail:
9770   return NULL;
9771 }
9772 
9773 
_wrap_quadfile_t_hpnside_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9774 SWIGINTERN PyObject *_wrap_quadfile_t_hpnside_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9775   PyObject *resultobj = 0;
9776   quadfile_t *arg1 = (quadfile_t *) 0 ;
9777   int arg2 ;
9778   void *argp1 = 0 ;
9779   int res1 = 0 ;
9780   int val2 ;
9781   int ecode2 = 0 ;
9782   PyObject *swig_obj[2] ;
9783 
9784   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_hpnside_set", 2, 2, swig_obj)) SWIG_fail;
9785   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9786   if (!SWIG_IsOK(res1)) {
9787     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_hpnside_set" "', argument " "1"" of type '" "quadfile_t *""'");
9788   }
9789   arg1 = (quadfile_t *)(argp1);
9790   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9791   if (!SWIG_IsOK(ecode2)) {
9792     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_t_hpnside_set" "', argument " "2"" of type '" "int""'");
9793   }
9794   arg2 = (int)(val2);
9795   if (arg1) (arg1)->hpnside = arg2;
9796   resultobj = SWIG_Py_Void();
9797   return resultobj;
9798 fail:
9799   return NULL;
9800 }
9801 
9802 
_wrap_quadfile_t_hpnside_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9803 SWIGINTERN PyObject *_wrap_quadfile_t_hpnside_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9804   PyObject *resultobj = 0;
9805   quadfile_t *arg1 = (quadfile_t *) 0 ;
9806   void *argp1 = 0 ;
9807   int res1 = 0 ;
9808   PyObject *swig_obj[1] ;
9809   int result;
9810 
9811   if (!args) SWIG_fail;
9812   swig_obj[0] = args;
9813   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9814   if (!SWIG_IsOK(res1)) {
9815     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_hpnside_get" "', argument " "1"" of type '" "quadfile_t *""'");
9816   }
9817   arg1 = (quadfile_t *)(argp1);
9818   result = (int) ((arg1)->hpnside);
9819   resultobj = SWIG_From_int((int)(result));
9820   return resultobj;
9821 fail:
9822   return NULL;
9823 }
9824 
9825 
_wrap_quadfile_t_fb_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9826 SWIGINTERN PyObject *_wrap_quadfile_t_fb_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9827   PyObject *resultobj = 0;
9828   quadfile_t *arg1 = (quadfile_t *) 0 ;
9829   fitsbin_t *arg2 = (fitsbin_t *) 0 ;
9830   void *argp1 = 0 ;
9831   int res1 = 0 ;
9832   void *argp2 = 0 ;
9833   int res2 = 0 ;
9834   PyObject *swig_obj[2] ;
9835 
9836   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_fb_set", 2, 2, swig_obj)) SWIG_fail;
9837   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9838   if (!SWIG_IsOK(res1)) {
9839     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_fb_set" "', argument " "1"" of type '" "quadfile_t *""'");
9840   }
9841   arg1 = (quadfile_t *)(argp1);
9842   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_fitsbin_t, SWIG_POINTER_DISOWN |  0 );
9843   if (!SWIG_IsOK(res2)) {
9844     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "quadfile_t_fb_set" "', argument " "2"" of type '" "fitsbin_t *""'");
9845   }
9846   arg2 = (fitsbin_t *)(argp2);
9847   if (arg1) (arg1)->fb = arg2;
9848   resultobj = SWIG_Py_Void();
9849   return resultobj;
9850 fail:
9851   return NULL;
9852 }
9853 
9854 
_wrap_quadfile_t_fb_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9855 SWIGINTERN PyObject *_wrap_quadfile_t_fb_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9856   PyObject *resultobj = 0;
9857   quadfile_t *arg1 = (quadfile_t *) 0 ;
9858   void *argp1 = 0 ;
9859   int res1 = 0 ;
9860   PyObject *swig_obj[1] ;
9861   fitsbin_t *result = 0 ;
9862 
9863   if (!args) SWIG_fail;
9864   swig_obj[0] = args;
9865   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9866   if (!SWIG_IsOK(res1)) {
9867     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_fb_get" "', argument " "1"" of type '" "quadfile_t *""'");
9868   }
9869   arg1 = (quadfile_t *)(argp1);
9870   result = (fitsbin_t *) ((arg1)->fb);
9871   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fitsbin_t, 0 |  0 );
9872   return resultobj;
9873 fail:
9874   return NULL;
9875 }
9876 
9877 
_wrap_quadfile_t_quadarray_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9878 SWIGINTERN PyObject *_wrap_quadfile_t_quadarray_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9879   PyObject *resultobj = 0;
9880   quadfile_t *arg1 = (quadfile_t *) 0 ;
9881   uint32_t *arg2 = (uint32_t *) 0 ;
9882   void *argp1 = 0 ;
9883   int res1 = 0 ;
9884   void *argp2 = 0 ;
9885   int res2 = 0 ;
9886   PyObject *swig_obj[2] ;
9887 
9888   if (!SWIG_Python_UnpackTuple(args, "quadfile_t_quadarray_set", 2, 2, swig_obj)) SWIG_fail;
9889   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9890   if (!SWIG_IsOK(res1)) {
9891     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_quadarray_set" "', argument " "1"" of type '" "quadfile_t *""'");
9892   }
9893   arg1 = (quadfile_t *)(argp1);
9894   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_uint32_t, SWIG_POINTER_DISOWN |  0 );
9895   if (!SWIG_IsOK(res2)) {
9896     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "quadfile_t_quadarray_set" "', argument " "2"" of type '" "uint32_t *""'");
9897   }
9898   arg2 = (uint32_t *)(argp2);
9899   if (arg1) (arg1)->quadarray = arg2;
9900   resultobj = SWIG_Py_Void();
9901   return resultobj;
9902 fail:
9903   return NULL;
9904 }
9905 
9906 
_wrap_quadfile_t_quadarray_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9907 SWIGINTERN PyObject *_wrap_quadfile_t_quadarray_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9908   PyObject *resultobj = 0;
9909   quadfile_t *arg1 = (quadfile_t *) 0 ;
9910   void *argp1 = 0 ;
9911   int res1 = 0 ;
9912   PyObject *swig_obj[1] ;
9913   uint32_t *result = 0 ;
9914 
9915   if (!args) SWIG_fail;
9916   swig_obj[0] = args;
9917   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
9918   if (!SWIG_IsOK(res1)) {
9919     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_t_quadarray_get" "', argument " "1"" of type '" "quadfile_t *""'");
9920   }
9921   arg1 = (quadfile_t *)(argp1);
9922   result = (uint32_t *) ((arg1)->quadarray);
9923   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 |  0 );
9924   return resultobj;
9925 fail:
9926   return NULL;
9927 }
9928 
9929 
_wrap_new_quadfile_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9930 SWIGINTERN PyObject *_wrap_new_quadfile_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9931   PyObject *resultobj = 0;
9932   quadfile_t *result = 0 ;
9933 
9934   if (!SWIG_Python_UnpackTuple(args, "new_quadfile_t", 0, 0, 0)) SWIG_fail;
9935   result = (quadfile_t *)calloc(1, sizeof(quadfile_t));
9936   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_quadfile_t, SWIG_POINTER_NEW |  0 );
9937   return resultobj;
9938 fail:
9939   return NULL;
9940 }
9941 
9942 
_wrap_delete_quadfile_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9943 SWIGINTERN PyObject *_wrap_delete_quadfile_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9944   PyObject *resultobj = 0;
9945   quadfile_t *arg1 = (quadfile_t *) 0 ;
9946   void *argp1 = 0 ;
9947   int res1 = 0 ;
9948   PyObject *swig_obj[1] ;
9949 
9950   if (!args) SWIG_fail;
9951   swig_obj[0] = args;
9952   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, SWIG_POINTER_DISOWN |  0 );
9953   if (!SWIG_IsOK(res1)) {
9954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_quadfile_t" "', argument " "1"" of type '" "quadfile_t *""'");
9955   }
9956   arg1 = (quadfile_t *)(argp1);
9957   free((char *) arg1);
9958   resultobj = SWIG_Py_Void();
9959   return resultobj;
9960 fail:
9961   return NULL;
9962 }
9963 
9964 
quadfile_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9965 SWIGINTERN PyObject *quadfile_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9966   PyObject *obj;
9967   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
9968   SWIG_TypeNewClientData(SWIGTYPE_p_quadfile_t, SWIG_NewClientData(obj));
9969   return SWIG_Py_Void();
9970 }
9971 
quadfile_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9972 SWIGINTERN PyObject *quadfile_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9973   return SWIG_Python_InitShadowInstance(args);
9974 }
9975 
_wrap_quadfile_open(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9976 SWIGINTERN PyObject *_wrap_quadfile_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9977   PyObject *resultobj = 0;
9978   char *arg1 = (char *) 0 ;
9979   int res1 ;
9980   char *buf1 = 0 ;
9981   int alloc1 = 0 ;
9982   PyObject *swig_obj[1] ;
9983   quadfile_t *result = 0 ;
9984 
9985   if (!args) SWIG_fail;
9986   swig_obj[0] = args;
9987   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
9988   if (!SWIG_IsOK(res1)) {
9989     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_open" "', argument " "1"" of type '" "char const *""'");
9990   }
9991   arg1 = (char *)(buf1);
9992   result = (quadfile_t *)quadfile_open((char const *)arg1);
9993   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_quadfile_t, 0 |  0 );
9994   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9995   return resultobj;
9996 fail:
9997   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9998   return NULL;
9999 }
10000 
10001 
_wrap_quadfile_open_fits(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10002 SWIGINTERN PyObject *_wrap_quadfile_open_fits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10003   PyObject *resultobj = 0;
10004   anqfits_t *arg1 = (anqfits_t *) 0 ;
10005   void *argp1 = 0 ;
10006   int res1 = 0 ;
10007   PyObject *swig_obj[1] ;
10008   quadfile_t *result = 0 ;
10009 
10010   if (!args) SWIG_fail;
10011   swig_obj[0] = args;
10012   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anqfits_t, 0 |  0 );
10013   if (!SWIG_IsOK(res1)) {
10014     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_open_fits" "', argument " "1"" of type '" "anqfits_t *""'");
10015   }
10016   arg1 = (anqfits_t *)(argp1);
10017   result = (quadfile_t *)quadfile_open_fits(arg1);
10018   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_quadfile_t, 0 |  0 );
10019   return resultobj;
10020 fail:
10021   return NULL;
10022 }
10023 
10024 
_wrap_quadfile_get_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10025 SWIGINTERN PyObject *_wrap_quadfile_get_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10026   PyObject *resultobj = 0;
10027   quadfile_t *arg1 = (quadfile_t *) 0 ;
10028   void *argp1 = 0 ;
10029   int res1 = 0 ;
10030   PyObject *swig_obj[1] ;
10031   char *result = 0 ;
10032 
10033   if (!args) SWIG_fail;
10034   swig_obj[0] = args;
10035   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10036   if (!SWIG_IsOK(res1)) {
10037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_get_filename" "', argument " "1"" of type '" "quadfile_t const *""'");
10038   }
10039   arg1 = (quadfile_t *)(argp1);
10040   result = (char *)quadfile_get_filename((quadfile_t const *)arg1);
10041   resultobj = SWIG_FromCharPtr((const char *)result);
10042   return resultobj;
10043 fail:
10044   return NULL;
10045 }
10046 
10047 
_wrap_quadfile_open_for_writing(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10048 SWIGINTERN PyObject *_wrap_quadfile_open_for_writing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10049   PyObject *resultobj = 0;
10050   char *arg1 = (char *) 0 ;
10051   int res1 ;
10052   char *buf1 = 0 ;
10053   int alloc1 = 0 ;
10054   PyObject *swig_obj[1] ;
10055   quadfile_t *result = 0 ;
10056 
10057   if (!args) SWIG_fail;
10058   swig_obj[0] = args;
10059   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
10060   if (!SWIG_IsOK(res1)) {
10061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_open_for_writing" "', argument " "1"" of type '" "char const *""'");
10062   }
10063   arg1 = (char *)(buf1);
10064   result = (quadfile_t *)quadfile_open_for_writing((char const *)arg1);
10065   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_quadfile_t, 0 |  0 );
10066   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
10067   return resultobj;
10068 fail:
10069   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
10070   return NULL;
10071 }
10072 
10073 
_wrap_quadfile_open_in_memory(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10074 SWIGINTERN PyObject *_wrap_quadfile_open_in_memory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10075   PyObject *resultobj = 0;
10076   quadfile_t *result = 0 ;
10077 
10078   if (!SWIG_Python_UnpackTuple(args, "quadfile_open_in_memory", 0, 0, 0)) SWIG_fail;
10079   result = (quadfile_t *)quadfile_open_in_memory();
10080   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_quadfile_t, 0 |  0 );
10081   return resultobj;
10082 fail:
10083   return NULL;
10084 }
10085 
10086 
_wrap_quadfile_switch_to_reading(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10087 SWIGINTERN PyObject *_wrap_quadfile_switch_to_reading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10088   PyObject *resultobj = 0;
10089   quadfile_t *arg1 = (quadfile_t *) 0 ;
10090   void *argp1 = 0 ;
10091   int res1 = 0 ;
10092   PyObject *swig_obj[1] ;
10093   int result;
10094 
10095   if (!args) SWIG_fail;
10096   swig_obj[0] = args;
10097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10098   if (!SWIG_IsOK(res1)) {
10099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_switch_to_reading" "', argument " "1"" of type '" "quadfile_t *""'");
10100   }
10101   arg1 = (quadfile_t *)(argp1);
10102   result = (int)quadfile_switch_to_reading(arg1);
10103   resultobj = SWIG_From_int((int)(result));
10104   return resultobj;
10105 fail:
10106   return NULL;
10107 }
10108 
10109 
_wrap_quadfile_close(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10110 SWIGINTERN PyObject *_wrap_quadfile_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10111   PyObject *resultobj = 0;
10112   quadfile_t *arg1 = (quadfile_t *) 0 ;
10113   void *argp1 = 0 ;
10114   int res1 = 0 ;
10115   PyObject *swig_obj[1] ;
10116   int result;
10117 
10118   if (!args) SWIG_fail;
10119   swig_obj[0] = args;
10120   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10121   if (!SWIG_IsOK(res1)) {
10122     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_close" "', argument " "1"" of type '" "quadfile_t *""'");
10123   }
10124   arg1 = (quadfile_t *)(argp1);
10125   result = (int)quadfile_close(arg1);
10126   resultobj = SWIG_From_int((int)(result));
10127   return resultobj;
10128 fail:
10129   return NULL;
10130 }
10131 
10132 
_wrap_quadfile_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10133 SWIGINTERN PyObject *_wrap_quadfile_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10134   PyObject *resultobj = 0;
10135   quadfile_t *arg1 = (quadfile_t *) 0 ;
10136   void *argp1 = 0 ;
10137   int res1 = 0 ;
10138   PyObject *swig_obj[1] ;
10139   int result;
10140 
10141   if (!args) SWIG_fail;
10142   swig_obj[0] = args;
10143   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10144   if (!SWIG_IsOK(res1)) {
10145     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_check" "', argument " "1"" of type '" "quadfile_t const *""'");
10146   }
10147   arg1 = (quadfile_t *)(argp1);
10148   result = (int)quadfile_check((quadfile_t const *)arg1);
10149   resultobj = SWIG_From_int((int)(result));
10150   return resultobj;
10151 fail:
10152   return NULL;
10153 }
10154 
10155 
_wrap_quadfile_get_stars(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10156 SWIGINTERN PyObject *_wrap_quadfile_get_stars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10157   PyObject *resultobj = 0;
10158   quadfile_t *arg1 = (quadfile_t *) 0 ;
10159   unsigned int arg2 ;
10160   unsigned int *arg3 = (unsigned int *) 0 ;
10161   void *argp1 = 0 ;
10162   int res1 = 0 ;
10163   unsigned int val2 ;
10164   int ecode2 = 0 ;
10165   unsigned int tempstars3[DQMAX] ;
10166   PyObject *swig_obj[2] ;
10167   int result;
10168 
10169   {
10170     arg3 = tempstars3;
10171   }
10172   if (!SWIG_Python_UnpackTuple(args, "quadfile_get_stars", 2, 2, swig_obj)) SWIG_fail;
10173   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10174   if (!SWIG_IsOK(res1)) {
10175     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_get_stars" "', argument " "1"" of type '" "quadfile_t const *""'");
10176   }
10177   arg1 = (quadfile_t *)(argp1);
10178   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
10179   if (!SWIG_IsOK(ecode2)) {
10180     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "quadfile_get_stars" "', argument " "2"" of type '" "unsigned int""'");
10181   }
10182   arg2 = (unsigned int)(val2);
10183   result = (int)quadfile_get_stars((quadfile_t const *)arg1,arg2,arg3);
10184   resultobj = SWIG_From_int((int)(result));
10185   {
10186     int i;
10187     int D;
10188     if (result == -1) {
10189       goto fail;
10190     }
10191     D = arg1->dimquads;
10192     resultobj = PyList_New(D);
10193     for (i = 0; i < D; i++) {
10194       PyObject *o = PyInt_FromLong(arg3[i]);
10195       PyList_SetItem(resultobj, i, o);
10196     }
10197   }
10198   return resultobj;
10199 fail:
10200   return NULL;
10201 }
10202 
10203 
_wrap_quadfile_write_quad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10204 SWIGINTERN PyObject *_wrap_quadfile_write_quad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10205   PyObject *resultobj = 0;
10206   quadfile_t *arg1 = (quadfile_t *) 0 ;
10207   unsigned int *arg2 = (unsigned int *) 0 ;
10208   void *argp1 = 0 ;
10209   int res1 = 0 ;
10210   unsigned int tempstars2[DQMAX] ;
10211   PyObject *swig_obj[1] ;
10212   int result;
10213 
10214   {
10215     arg2 = tempstars2;
10216   }
10217   if (!args) SWIG_fail;
10218   swig_obj[0] = args;
10219   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10220   if (!SWIG_IsOK(res1)) {
10221     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_write_quad" "', argument " "1"" of type '" "quadfile_t *""'");
10222   }
10223   arg1 = (quadfile_t *)(argp1);
10224   result = (int)quadfile_write_quad(arg1,arg2);
10225   resultobj = SWIG_From_int((int)(result));
10226   return resultobj;
10227 fail:
10228   return NULL;
10229 }
10230 
10231 
_wrap_quadfile_dimquads(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10232 SWIGINTERN PyObject *_wrap_quadfile_dimquads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10233   PyObject *resultobj = 0;
10234   quadfile_t *arg1 = (quadfile_t *) 0 ;
10235   void *argp1 = 0 ;
10236   int res1 = 0 ;
10237   PyObject *swig_obj[1] ;
10238   int result;
10239 
10240   if (!args) SWIG_fail;
10241   swig_obj[0] = args;
10242   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10243   if (!SWIG_IsOK(res1)) {
10244     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_dimquads" "', argument " "1"" of type '" "quadfile_t const *""'");
10245   }
10246   arg1 = (quadfile_t *)(argp1);
10247   result = (int)quadfile_dimquads((quadfile_t const *)arg1);
10248   resultobj = SWIG_From_int((int)(result));
10249   return resultobj;
10250 fail:
10251   return NULL;
10252 }
10253 
10254 
_wrap_quadfile_nquads(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10255 SWIGINTERN PyObject *_wrap_quadfile_nquads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10256   PyObject *resultobj = 0;
10257   quadfile_t *arg1 = (quadfile_t *) 0 ;
10258   void *argp1 = 0 ;
10259   int res1 = 0 ;
10260   PyObject *swig_obj[1] ;
10261   int result;
10262 
10263   if (!args) SWIG_fail;
10264   swig_obj[0] = args;
10265   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10266   if (!SWIG_IsOK(res1)) {
10267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_nquads" "', argument " "1"" of type '" "quadfile_t const *""'");
10268   }
10269   arg1 = (quadfile_t *)(argp1);
10270   result = (int)quadfile_nquads((quadfile_t const *)arg1);
10271   resultobj = SWIG_From_int((int)(result));
10272   return resultobj;
10273 fail:
10274   return NULL;
10275 }
10276 
10277 
_wrap_quadfile_fix_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10278 SWIGINTERN PyObject *_wrap_quadfile_fix_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10279   PyObject *resultobj = 0;
10280   quadfile_t *arg1 = (quadfile_t *) 0 ;
10281   void *argp1 = 0 ;
10282   int res1 = 0 ;
10283   PyObject *swig_obj[1] ;
10284   int result;
10285 
10286   if (!args) SWIG_fail;
10287   swig_obj[0] = args;
10288   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10289   if (!SWIG_IsOK(res1)) {
10290     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_fix_header" "', argument " "1"" of type '" "quadfile_t *""'");
10291   }
10292   arg1 = (quadfile_t *)(argp1);
10293   result = (int)quadfile_fix_header(arg1);
10294   resultobj = SWIG_From_int((int)(result));
10295   return resultobj;
10296 fail:
10297   return NULL;
10298 }
10299 
10300 
_wrap_quadfile_write_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10301 SWIGINTERN PyObject *_wrap_quadfile_write_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10302   PyObject *resultobj = 0;
10303   quadfile_t *arg1 = (quadfile_t *) 0 ;
10304   void *argp1 = 0 ;
10305   int res1 = 0 ;
10306   PyObject *swig_obj[1] ;
10307   int result;
10308 
10309   if (!args) SWIG_fail;
10310   swig_obj[0] = args;
10311   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10312   if (!SWIG_IsOK(res1)) {
10313     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_write_header" "', argument " "1"" of type '" "quadfile_t *""'");
10314   }
10315   arg1 = (quadfile_t *)(argp1);
10316   result = (int)quadfile_write_header(arg1);
10317   resultobj = SWIG_From_int((int)(result));
10318   return resultobj;
10319 fail:
10320   return NULL;
10321 }
10322 
10323 
_wrap_quadfile_get_index_scale_upper_arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10324 SWIGINTERN PyObject *_wrap_quadfile_get_index_scale_upper_arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10325   PyObject *resultobj = 0;
10326   quadfile_t *arg1 = (quadfile_t *) 0 ;
10327   void *argp1 = 0 ;
10328   int res1 = 0 ;
10329   PyObject *swig_obj[1] ;
10330   double result;
10331 
10332   if (!args) SWIG_fail;
10333   swig_obj[0] = args;
10334   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10335   if (!SWIG_IsOK(res1)) {
10336     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_get_index_scale_upper_arcsec" "', argument " "1"" of type '" "quadfile_t const *""'");
10337   }
10338   arg1 = (quadfile_t *)(argp1);
10339   result = (double)quadfile_get_index_scale_upper_arcsec((quadfile_t const *)arg1);
10340   resultobj = SWIG_From_double((double)(result));
10341   return resultobj;
10342 fail:
10343   return NULL;
10344 }
10345 
10346 
_wrap_quadfile_get_index_scale_lower_arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10347 SWIGINTERN PyObject *_wrap_quadfile_get_index_scale_lower_arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10348   PyObject *resultobj = 0;
10349   quadfile_t *arg1 = (quadfile_t *) 0 ;
10350   void *argp1 = 0 ;
10351   int res1 = 0 ;
10352   PyObject *swig_obj[1] ;
10353   double result;
10354 
10355   if (!args) SWIG_fail;
10356   swig_obj[0] = args;
10357   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10358   if (!SWIG_IsOK(res1)) {
10359     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_get_index_scale_lower_arcsec" "', argument " "1"" of type '" "quadfile_t const *""'");
10360   }
10361   arg1 = (quadfile_t *)(argp1);
10362   result = (double)quadfile_get_index_scale_lower_arcsec((quadfile_t const *)arg1);
10363   resultobj = SWIG_From_double((double)(result));
10364   return resultobj;
10365 fail:
10366   return NULL;
10367 }
10368 
10369 
_wrap_quadfile_get_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10370 SWIGINTERN PyObject *_wrap_quadfile_get_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10371   PyObject *resultobj = 0;
10372   quadfile_t *arg1 = (quadfile_t *) 0 ;
10373   void *argp1 = 0 ;
10374   int res1 = 0 ;
10375   PyObject *swig_obj[1] ;
10376   qfits_header *result = 0 ;
10377 
10378   if (!args) SWIG_fail;
10379   swig_obj[0] = args;
10380   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10381   if (!SWIG_IsOK(res1)) {
10382     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_get_header" "', argument " "1"" of type '" "quadfile_t const *""'");
10383   }
10384   arg1 = (quadfile_t *)(argp1);
10385   result = (qfits_header *)quadfile_get_header((quadfile_t const *)arg1);
10386   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
10387   return resultobj;
10388 fail:
10389   return NULL;
10390 }
10391 
10392 
_wrap_quadfile_write_header_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10393 SWIGINTERN PyObject *_wrap_quadfile_write_header_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10394   PyObject *resultobj = 0;
10395   quadfile_t *arg1 = (quadfile_t *) 0 ;
10396   FILE *arg2 = (FILE *) 0 ;
10397   void *argp1 = 0 ;
10398   int res1 = 0 ;
10399   void *argp2 = 0 ;
10400   int res2 = 0 ;
10401   PyObject *swig_obj[2] ;
10402   int result;
10403 
10404   if (!SWIG_Python_UnpackTuple(args, "quadfile_write_header_to", 2, 2, swig_obj)) SWIG_fail;
10405   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10406   if (!SWIG_IsOK(res1)) {
10407     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_write_header_to" "', argument " "1"" of type '" "quadfile_t *""'");
10408   }
10409   arg1 = (quadfile_t *)(argp1);
10410   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
10411   if (!SWIG_IsOK(res2)) {
10412     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "quadfile_write_header_to" "', argument " "2"" of type '" "FILE *""'");
10413   }
10414   arg2 = (FILE *)(argp2);
10415   result = (int)quadfile_write_header_to(arg1,arg2);
10416   resultobj = SWIG_From_int((int)(result));
10417   return resultobj;
10418 fail:
10419   return NULL;
10420 }
10421 
10422 
_wrap_quadfile_write_all_quads_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10423 SWIGINTERN PyObject *_wrap_quadfile_write_all_quads_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424   PyObject *resultobj = 0;
10425   quadfile_t *arg1 = (quadfile_t *) 0 ;
10426   FILE *arg2 = (FILE *) 0 ;
10427   void *argp1 = 0 ;
10428   int res1 = 0 ;
10429   void *argp2 = 0 ;
10430   int res2 = 0 ;
10431   PyObject *swig_obj[2] ;
10432   int result;
10433 
10434   if (!SWIG_Python_UnpackTuple(args, "quadfile_write_all_quads_to", 2, 2, swig_obj)) SWIG_fail;
10435   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_quadfile_t, 0 |  0 );
10436   if (!SWIG_IsOK(res1)) {
10437     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_write_all_quads_to" "', argument " "1"" of type '" "quadfile_t *""'");
10438   }
10439   arg1 = (quadfile_t *)(argp1);
10440   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
10441   if (!SWIG_IsOK(res2)) {
10442     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "quadfile_write_all_quads_to" "', argument " "2"" of type '" "FILE *""'");
10443   }
10444   arg2 = (FILE *)(argp2);
10445   result = (int)quadfile_write_all_quads_to(arg1,arg2);
10446   resultobj = SWIG_From_int((int)(result));
10447   return resultobj;
10448 fail:
10449   return NULL;
10450 }
10451 
10452 
_wrap_codetree_t_tree_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10453 SWIGINTERN PyObject *_wrap_codetree_t_tree_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10454   PyObject *resultobj = 0;
10455   codetree_t *arg1 = (codetree_t *) 0 ;
10456   kdtree_t *arg2 = (kdtree_t *) 0 ;
10457   void *argp1 = 0 ;
10458   int res1 = 0 ;
10459   void *argp2 = 0 ;
10460   int res2 = 0 ;
10461   PyObject *swig_obj[2] ;
10462 
10463   if (!SWIG_Python_UnpackTuple(args, "codetree_t_tree_set", 2, 2, swig_obj)) SWIG_fail;
10464   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10465   if (!SWIG_IsOK(res1)) {
10466     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_t_tree_set" "', argument " "1"" of type '" "codetree_t *""'");
10467   }
10468   arg1 = (codetree_t *)(argp1);
10469   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_kdtree_t, SWIG_POINTER_DISOWN |  0 );
10470   if (!SWIG_IsOK(res2)) {
10471     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "codetree_t_tree_set" "', argument " "2"" of type '" "kdtree_t *""'");
10472   }
10473   arg2 = (kdtree_t *)(argp2);
10474   if (arg1) (arg1)->tree = arg2;
10475   resultobj = SWIG_Py_Void();
10476   return resultobj;
10477 fail:
10478   return NULL;
10479 }
10480 
10481 
_wrap_codetree_t_tree_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10482 SWIGINTERN PyObject *_wrap_codetree_t_tree_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10483   PyObject *resultobj = 0;
10484   codetree_t *arg1 = (codetree_t *) 0 ;
10485   void *argp1 = 0 ;
10486   int res1 = 0 ;
10487   PyObject *swig_obj[1] ;
10488   kdtree_t *result = 0 ;
10489 
10490   if (!args) SWIG_fail;
10491   swig_obj[0] = args;
10492   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10493   if (!SWIG_IsOK(res1)) {
10494     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_t_tree_get" "', argument " "1"" of type '" "codetree_t *""'");
10495   }
10496   arg1 = (codetree_t *)(argp1);
10497   result = (kdtree_t *) ((arg1)->tree);
10498   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_kdtree_t, 0 |  0 );
10499   return resultobj;
10500 fail:
10501   return NULL;
10502 }
10503 
10504 
_wrap_codetree_t_header_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10505 SWIGINTERN PyObject *_wrap_codetree_t_header_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10506   PyObject *resultobj = 0;
10507   codetree_t *arg1 = (codetree_t *) 0 ;
10508   qfits_header *arg2 = (qfits_header *) 0 ;
10509   void *argp1 = 0 ;
10510   int res1 = 0 ;
10511   void *argp2 = 0 ;
10512   int res2 = 0 ;
10513   PyObject *swig_obj[2] ;
10514 
10515   if (!SWIG_Python_UnpackTuple(args, "codetree_t_header_set", 2, 2, swig_obj)) SWIG_fail;
10516   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10517   if (!SWIG_IsOK(res1)) {
10518     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_t_header_set" "', argument " "1"" of type '" "codetree_t *""'");
10519   }
10520   arg1 = (codetree_t *)(argp1);
10521   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, SWIG_POINTER_DISOWN |  0 );
10522   if (!SWIG_IsOK(res2)) {
10523     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "codetree_t_header_set" "', argument " "2"" of type '" "qfits_header *""'");
10524   }
10525   arg2 = (qfits_header *)(argp2);
10526   if (arg1) (arg1)->header = arg2;
10527   resultobj = SWIG_Py_Void();
10528   return resultobj;
10529 fail:
10530   return NULL;
10531 }
10532 
10533 
_wrap_codetree_t_header_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10534 SWIGINTERN PyObject *_wrap_codetree_t_header_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10535   PyObject *resultobj = 0;
10536   codetree_t *arg1 = (codetree_t *) 0 ;
10537   void *argp1 = 0 ;
10538   int res1 = 0 ;
10539   PyObject *swig_obj[1] ;
10540   qfits_header *result = 0 ;
10541 
10542   if (!args) SWIG_fail;
10543   swig_obj[0] = args;
10544   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10545   if (!SWIG_IsOK(res1)) {
10546     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_t_header_get" "', argument " "1"" of type '" "codetree_t *""'");
10547   }
10548   arg1 = (codetree_t *)(argp1);
10549   result = (qfits_header *) ((arg1)->header);
10550   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
10551   return resultobj;
10552 fail:
10553   return NULL;
10554 }
10555 
10556 
_wrap_codetree_t_inverse_perm_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10557 SWIGINTERN PyObject *_wrap_codetree_t_inverse_perm_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10558   PyObject *resultobj = 0;
10559   codetree_t *arg1 = (codetree_t *) 0 ;
10560   int *arg2 = (int *) 0 ;
10561   void *argp1 = 0 ;
10562   int res1 = 0 ;
10563   void *argp2 = 0 ;
10564   int res2 = 0 ;
10565   PyObject *swig_obj[2] ;
10566 
10567   if (!SWIG_Python_UnpackTuple(args, "codetree_t_inverse_perm_set", 2, 2, swig_obj)) SWIG_fail;
10568   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10569   if (!SWIG_IsOK(res1)) {
10570     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_t_inverse_perm_set" "', argument " "1"" of type '" "codetree_t *""'");
10571   }
10572   arg1 = (codetree_t *)(argp1);
10573   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN |  0 );
10574   if (!SWIG_IsOK(res2)) {
10575     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "codetree_t_inverse_perm_set" "', argument " "2"" of type '" "int *""'");
10576   }
10577   arg2 = (int *)(argp2);
10578   if (arg1) (arg1)->inverse_perm = arg2;
10579   resultobj = SWIG_Py_Void();
10580   return resultobj;
10581 fail:
10582   return NULL;
10583 }
10584 
10585 
_wrap_codetree_t_inverse_perm_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10586 SWIGINTERN PyObject *_wrap_codetree_t_inverse_perm_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10587   PyObject *resultobj = 0;
10588   codetree_t *arg1 = (codetree_t *) 0 ;
10589   void *argp1 = 0 ;
10590   int res1 = 0 ;
10591   PyObject *swig_obj[1] ;
10592   int *result = 0 ;
10593 
10594   if (!args) SWIG_fail;
10595   swig_obj[0] = args;
10596   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10597   if (!SWIG_IsOK(res1)) {
10598     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_t_inverse_perm_get" "', argument " "1"" of type '" "codetree_t *""'");
10599   }
10600   arg1 = (codetree_t *)(argp1);
10601   result = (int *) ((arg1)->inverse_perm);
10602   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
10603   return resultobj;
10604 fail:
10605   return NULL;
10606 }
10607 
10608 
_wrap_new_codetree_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10609 SWIGINTERN PyObject *_wrap_new_codetree_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10610   PyObject *resultobj = 0;
10611   codetree_t *result = 0 ;
10612 
10613   if (!SWIG_Python_UnpackTuple(args, "new_codetree_t", 0, 0, 0)) SWIG_fail;
10614   result = (codetree_t *)calloc(1, sizeof(codetree_t));
10615   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_codetree_t, SWIG_POINTER_NEW |  0 );
10616   return resultobj;
10617 fail:
10618   return NULL;
10619 }
10620 
10621 
_wrap_delete_codetree_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10622 SWIGINTERN PyObject *_wrap_delete_codetree_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10623   PyObject *resultobj = 0;
10624   codetree_t *arg1 = (codetree_t *) 0 ;
10625   void *argp1 = 0 ;
10626   int res1 = 0 ;
10627   PyObject *swig_obj[1] ;
10628 
10629   if (!args) SWIG_fail;
10630   swig_obj[0] = args;
10631   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, SWIG_POINTER_DISOWN |  0 );
10632   if (!SWIG_IsOK(res1)) {
10633     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_codetree_t" "', argument " "1"" of type '" "codetree_t *""'");
10634   }
10635   arg1 = (codetree_t *)(argp1);
10636   free((char *) arg1);
10637   resultobj = SWIG_Py_Void();
10638   return resultobj;
10639 fail:
10640   return NULL;
10641 }
10642 
10643 
codetree_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10644 SWIGINTERN PyObject *codetree_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10645   PyObject *obj;
10646   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
10647   SWIG_TypeNewClientData(SWIGTYPE_p_codetree_t, SWIG_NewClientData(obj));
10648   return SWIG_Py_Void();
10649 }
10650 
codetree_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10651 SWIGINTERN PyObject *codetree_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10652   return SWIG_Python_InitShadowInstance(args);
10653 }
10654 
_wrap_codetree_open(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10655 SWIGINTERN PyObject *_wrap_codetree_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10656   PyObject *resultobj = 0;
10657   char *arg1 = (char *) 0 ;
10658   int res1 ;
10659   char *buf1 = 0 ;
10660   int alloc1 = 0 ;
10661   PyObject *swig_obj[1] ;
10662   codetree_t *result = 0 ;
10663 
10664   if (!args) SWIG_fail;
10665   swig_obj[0] = args;
10666   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
10667   if (!SWIG_IsOK(res1)) {
10668     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_open" "', argument " "1"" of type '" "char const *""'");
10669   }
10670   arg1 = (char *)(buf1);
10671   result = (codetree_t *)codetree_open((char const *)arg1);
10672   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_codetree_t, 0 |  0 );
10673   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
10674   return resultobj;
10675 fail:
10676   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
10677   return NULL;
10678 }
10679 
10680 
_wrap_codetree_open_fits(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10681 SWIGINTERN PyObject *_wrap_codetree_open_fits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10682   PyObject *resultobj = 0;
10683   anqfits_t *arg1 = (anqfits_t *) 0 ;
10684   void *argp1 = 0 ;
10685   int res1 = 0 ;
10686   PyObject *swig_obj[1] ;
10687   codetree_t *result = 0 ;
10688 
10689   if (!args) SWIG_fail;
10690   swig_obj[0] = args;
10691   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anqfits_t, 0 |  0 );
10692   if (!SWIG_IsOK(res1)) {
10693     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_open_fits" "', argument " "1"" of type '" "anqfits_t *""'");
10694   }
10695   arg1 = (anqfits_t *)(argp1);
10696   result = (codetree_t *)codetree_open_fits(arg1);
10697   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_codetree_t, 0 |  0 );
10698   return resultobj;
10699 fail:
10700   return NULL;
10701 }
10702 
10703 
_wrap_codetree_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10704 SWIGINTERN PyObject *_wrap_codetree_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10705   PyObject *resultobj = 0;
10706   codetree_t *arg1 = (codetree_t *) 0 ;
10707   unsigned int arg2 ;
10708   double *arg3 = (double *) 0 ;
10709   void *argp1 = 0 ;
10710   int res1 = 0 ;
10711   unsigned int val2 ;
10712   int ecode2 = 0 ;
10713   void *argp3 = 0 ;
10714   int res3 = 0 ;
10715   PyObject *swig_obj[3] ;
10716   int result;
10717 
10718   if (!SWIG_Python_UnpackTuple(args, "codetree_get", 3, 3, swig_obj)) SWIG_fail;
10719   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10720   if (!SWIG_IsOK(res1)) {
10721     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_get" "', argument " "1"" of type '" "codetree_t *""'");
10722   }
10723   arg1 = (codetree_t *)(argp1);
10724   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
10725   if (!SWIG_IsOK(ecode2)) {
10726     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "codetree_get" "', argument " "2"" of type '" "unsigned int""'");
10727   }
10728   arg2 = (unsigned int)(val2);
10729   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
10730   if (!SWIG_IsOK(res3)) {
10731     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "codetree_get" "', argument " "3"" of type '" "double *""'");
10732   }
10733   arg3 = (double *)(argp3);
10734   result = (int)codetree_get(arg1,arg2,arg3);
10735   resultobj = SWIG_From_int((int)(result));
10736   return resultobj;
10737 fail:
10738   return NULL;
10739 }
10740 
10741 
_wrap_codetree_N(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10742 SWIGINTERN PyObject *_wrap_codetree_N(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10743   PyObject *resultobj = 0;
10744   codetree_t *arg1 = (codetree_t *) 0 ;
10745   void *argp1 = 0 ;
10746   int res1 = 0 ;
10747   PyObject *swig_obj[1] ;
10748   int result;
10749 
10750   if (!args) SWIG_fail;
10751   swig_obj[0] = args;
10752   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10753   if (!SWIG_IsOK(res1)) {
10754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_N" "', argument " "1"" of type '" "codetree_t *""'");
10755   }
10756   arg1 = (codetree_t *)(argp1);
10757   result = (int)codetree_N(arg1);
10758   resultobj = SWIG_From_int((int)(result));
10759   return resultobj;
10760 fail:
10761   return NULL;
10762 }
10763 
10764 
_wrap_codetree_nodes(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10765 SWIGINTERN PyObject *_wrap_codetree_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10766   PyObject *resultobj = 0;
10767   codetree_t *arg1 = (codetree_t *) 0 ;
10768   void *argp1 = 0 ;
10769   int res1 = 0 ;
10770   PyObject *swig_obj[1] ;
10771   int result;
10772 
10773   if (!args) SWIG_fail;
10774   swig_obj[0] = args;
10775   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10776   if (!SWIG_IsOK(res1)) {
10777     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_nodes" "', argument " "1"" of type '" "codetree_t *""'");
10778   }
10779   arg1 = (codetree_t *)(argp1);
10780   result = (int)codetree_nodes(arg1);
10781   resultobj = SWIG_From_int((int)(result));
10782   return resultobj;
10783 fail:
10784   return NULL;
10785 }
10786 
10787 
_wrap_codetree_D(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10788 SWIGINTERN PyObject *_wrap_codetree_D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10789   PyObject *resultobj = 0;
10790   codetree_t *arg1 = (codetree_t *) 0 ;
10791   void *argp1 = 0 ;
10792   int res1 = 0 ;
10793   PyObject *swig_obj[1] ;
10794   int result;
10795 
10796   if (!args) SWIG_fail;
10797   swig_obj[0] = args;
10798   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10799   if (!SWIG_IsOK(res1)) {
10800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_D" "', argument " "1"" of type '" "codetree_t *""'");
10801   }
10802   arg1 = (codetree_t *)(argp1);
10803   result = (int)codetree_D(arg1);
10804   resultobj = SWIG_From_int((int)(result));
10805   return resultobj;
10806 fail:
10807   return NULL;
10808 }
10809 
10810 
_wrap_codetree_get_permuted(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10811 SWIGINTERN PyObject *_wrap_codetree_get_permuted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10812   PyObject *resultobj = 0;
10813   codetree_t *arg1 = (codetree_t *) 0 ;
10814   int arg2 ;
10815   void *argp1 = 0 ;
10816   int res1 = 0 ;
10817   int val2 ;
10818   int ecode2 = 0 ;
10819   PyObject *swig_obj[2] ;
10820   int result;
10821 
10822   if (!SWIG_Python_UnpackTuple(args, "codetree_get_permuted", 2, 2, swig_obj)) SWIG_fail;
10823   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10824   if (!SWIG_IsOK(res1)) {
10825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_get_permuted" "', argument " "1"" of type '" "codetree_t *""'");
10826   }
10827   arg1 = (codetree_t *)(argp1);
10828   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10829   if (!SWIG_IsOK(ecode2)) {
10830     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "codetree_get_permuted" "', argument " "2"" of type '" "int""'");
10831   }
10832   arg2 = (int)(val2);
10833   result = (int)codetree_get_permuted(arg1,arg2);
10834   resultobj = SWIG_From_int((int)(result));
10835   return resultobj;
10836 fail:
10837   return NULL;
10838 }
10839 
10840 
_wrap_codetree_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10841 SWIGINTERN PyObject *_wrap_codetree_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10842   PyObject *resultobj = 0;
10843   codetree_t *arg1 = (codetree_t *) 0 ;
10844   void *argp1 = 0 ;
10845   int res1 = 0 ;
10846   PyObject *swig_obj[1] ;
10847   qfits_header *result = 0 ;
10848 
10849   if (!args) SWIG_fail;
10850   swig_obj[0] = args;
10851   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10852   if (!SWIG_IsOK(res1)) {
10853     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_header" "', argument " "1"" of type '" "codetree_t *""'");
10854   }
10855   arg1 = (codetree_t *)(argp1);
10856   result = (qfits_header *)codetree_header(arg1);
10857   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
10858   return resultobj;
10859 fail:
10860   return NULL;
10861 }
10862 
10863 
_wrap_codetree_close(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10864 SWIGINTERN PyObject *_wrap_codetree_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10865   PyObject *resultobj = 0;
10866   codetree_t *arg1 = (codetree_t *) 0 ;
10867   void *argp1 = 0 ;
10868   int res1 = 0 ;
10869   PyObject *swig_obj[1] ;
10870   int result;
10871 
10872   if (!args) SWIG_fail;
10873   swig_obj[0] = args;
10874   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10875   if (!SWIG_IsOK(res1)) {
10876     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_close" "', argument " "1"" of type '" "codetree_t *""'");
10877   }
10878   arg1 = (codetree_t *)(argp1);
10879   result = (int)codetree_close(arg1);
10880   resultobj = SWIG_From_int((int)(result));
10881   return resultobj;
10882 fail:
10883   return NULL;
10884 }
10885 
10886 
_wrap_codetree_new(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10887 SWIGINTERN PyObject *_wrap_codetree_new(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10888   PyObject *resultobj = 0;
10889   codetree_t *result = 0 ;
10890 
10891   if (!SWIG_Python_UnpackTuple(args, "codetree_new", 0, 0, 0)) SWIG_fail;
10892   result = (codetree_t *)codetree_new();
10893   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_codetree_t, 0 |  0 );
10894   return resultobj;
10895 fail:
10896   return NULL;
10897 }
10898 
10899 
_wrap_codetree_append_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10900 SWIGINTERN PyObject *_wrap_codetree_append_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10901   PyObject *resultobj = 0;
10902   codetree_t *arg1 = (codetree_t *) 0 ;
10903   FILE *arg2 = (FILE *) 0 ;
10904   void *argp1 = 0 ;
10905   int res1 = 0 ;
10906   void *argp2 = 0 ;
10907   int res2 = 0 ;
10908   PyObject *swig_obj[2] ;
10909   int result;
10910 
10911   if (!SWIG_Python_UnpackTuple(args, "codetree_append_to", 2, 2, swig_obj)) SWIG_fail;
10912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10913   if (!SWIG_IsOK(res1)) {
10914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_append_to" "', argument " "1"" of type '" "codetree_t *""'");
10915   }
10916   arg1 = (codetree_t *)(argp1);
10917   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
10918   if (!SWIG_IsOK(res2)) {
10919     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "codetree_append_to" "', argument " "2"" of type '" "FILE *""'");
10920   }
10921   arg2 = (FILE *)(argp2);
10922   result = (int)codetree_append_to(arg1,arg2);
10923   resultobj = SWIG_From_int((int)(result));
10924   return resultobj;
10925 fail:
10926   return NULL;
10927 }
10928 
10929 
_wrap_codetree_write_to_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10930 SWIGINTERN PyObject *_wrap_codetree_write_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10931   PyObject *resultobj = 0;
10932   codetree_t *arg1 = (codetree_t *) 0 ;
10933   char *arg2 = (char *) 0 ;
10934   void *argp1 = 0 ;
10935   int res1 = 0 ;
10936   int res2 ;
10937   char *buf2 = 0 ;
10938   int alloc2 = 0 ;
10939   PyObject *swig_obj[2] ;
10940   int result;
10941 
10942   if (!SWIG_Python_UnpackTuple(args, "codetree_write_to_file", 2, 2, swig_obj)) SWIG_fail;
10943   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10944   if (!SWIG_IsOK(res1)) {
10945     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_write_to_file" "', argument " "1"" of type '" "codetree_t *""'");
10946   }
10947   arg1 = (codetree_t *)(argp1);
10948   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
10949   if (!SWIG_IsOK(res2)) {
10950     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "codetree_write_to_file" "', argument " "2"" of type '" "char const *""'");
10951   }
10952   arg2 = (char *)(buf2);
10953   result = (int)codetree_write_to_file(arg1,(char const *)arg2);
10954   resultobj = SWIG_From_int((int)(result));
10955   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10956   return resultobj;
10957 fail:
10958   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10959   return NULL;
10960 }
10961 
10962 
_wrap_codetree_write_to_file_flipped(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10963 SWIGINTERN PyObject *_wrap_codetree_write_to_file_flipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10964   PyObject *resultobj = 0;
10965   codetree_t *arg1 = (codetree_t *) 0 ;
10966   char *arg2 = (char *) 0 ;
10967   void *argp1 = 0 ;
10968   int res1 = 0 ;
10969   int res2 ;
10970   char *buf2 = 0 ;
10971   int alloc2 = 0 ;
10972   PyObject *swig_obj[2] ;
10973   int result;
10974 
10975   if (!SWIG_Python_UnpackTuple(args, "codetree_write_to_file_flipped", 2, 2, swig_obj)) SWIG_fail;
10976   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_codetree_t, 0 |  0 );
10977   if (!SWIG_IsOK(res1)) {
10978     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codetree_write_to_file_flipped" "', argument " "1"" of type '" "codetree_t *""'");
10979   }
10980   arg1 = (codetree_t *)(argp1);
10981   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
10982   if (!SWIG_IsOK(res2)) {
10983     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "codetree_write_to_file_flipped" "', argument " "2"" of type '" "char const *""'");
10984   }
10985   arg2 = (char *)(buf2);
10986   result = (int)codetree_write_to_file_flipped(arg1,(char const *)arg2);
10987   resultobj = SWIG_From_int((int)(result));
10988   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10989   return resultobj;
10990 fail:
10991   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10992   return NULL;
10993 }
10994 
10995 
_wrap_startree_t_tree_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10996 SWIGINTERN PyObject *_wrap_startree_t_tree_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10997   PyObject *resultobj = 0;
10998   startree_t *arg1 = (startree_t *) 0 ;
10999   kdtree_t *arg2 = (kdtree_t *) 0 ;
11000   void *argp1 = 0 ;
11001   int res1 = 0 ;
11002   void *argp2 = 0 ;
11003   int res2 = 0 ;
11004   PyObject *swig_obj[2] ;
11005 
11006   if (!SWIG_Python_UnpackTuple(args, "startree_t_tree_set", 2, 2, swig_obj)) SWIG_fail;
11007   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11008   if (!SWIG_IsOK(res1)) {
11009     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_tree_set" "', argument " "1"" of type '" "startree_t *""'");
11010   }
11011   arg1 = (startree_t *)(argp1);
11012   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_kdtree_t, SWIG_POINTER_DISOWN |  0 );
11013   if (!SWIG_IsOK(res2)) {
11014     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_t_tree_set" "', argument " "2"" of type '" "kdtree_t *""'");
11015   }
11016   arg2 = (kdtree_t *)(argp2);
11017   if (arg1) (arg1)->tree = arg2;
11018   resultobj = SWIG_Py_Void();
11019   return resultobj;
11020 fail:
11021   return NULL;
11022 }
11023 
11024 
_wrap_startree_t_tree_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11025 SWIGINTERN PyObject *_wrap_startree_t_tree_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11026   PyObject *resultobj = 0;
11027   startree_t *arg1 = (startree_t *) 0 ;
11028   void *argp1 = 0 ;
11029   int res1 = 0 ;
11030   PyObject *swig_obj[1] ;
11031   kdtree_t *result = 0 ;
11032 
11033   if (!args) SWIG_fail;
11034   swig_obj[0] = args;
11035   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11036   if (!SWIG_IsOK(res1)) {
11037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_tree_get" "', argument " "1"" of type '" "startree_t *""'");
11038   }
11039   arg1 = (startree_t *)(argp1);
11040   result = (kdtree_t *) ((arg1)->tree);
11041   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_kdtree_t, 0 |  0 );
11042   return resultobj;
11043 fail:
11044   return NULL;
11045 }
11046 
11047 
_wrap_startree_t_header_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11048 SWIGINTERN PyObject *_wrap_startree_t_header_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11049   PyObject *resultobj = 0;
11050   startree_t *arg1 = (startree_t *) 0 ;
11051   qfits_header *arg2 = (qfits_header *) 0 ;
11052   void *argp1 = 0 ;
11053   int res1 = 0 ;
11054   void *argp2 = 0 ;
11055   int res2 = 0 ;
11056   PyObject *swig_obj[2] ;
11057 
11058   if (!SWIG_Python_UnpackTuple(args, "startree_t_header_set", 2, 2, swig_obj)) SWIG_fail;
11059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11060   if (!SWIG_IsOK(res1)) {
11061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_header_set" "', argument " "1"" of type '" "startree_t *""'");
11062   }
11063   arg1 = (startree_t *)(argp1);
11064   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, SWIG_POINTER_DISOWN |  0 );
11065   if (!SWIG_IsOK(res2)) {
11066     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_t_header_set" "', argument " "2"" of type '" "qfits_header *""'");
11067   }
11068   arg2 = (qfits_header *)(argp2);
11069   if (arg1) (arg1)->header = arg2;
11070   resultobj = SWIG_Py_Void();
11071   return resultobj;
11072 fail:
11073   return NULL;
11074 }
11075 
11076 
_wrap_startree_t_header_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11077 SWIGINTERN PyObject *_wrap_startree_t_header_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11078   PyObject *resultobj = 0;
11079   startree_t *arg1 = (startree_t *) 0 ;
11080   void *argp1 = 0 ;
11081   int res1 = 0 ;
11082   PyObject *swig_obj[1] ;
11083   qfits_header *result = 0 ;
11084 
11085   if (!args) SWIG_fail;
11086   swig_obj[0] = args;
11087   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11088   if (!SWIG_IsOK(res1)) {
11089     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_header_get" "', argument " "1"" of type '" "startree_t *""'");
11090   }
11091   arg1 = (startree_t *)(argp1);
11092   result = (qfits_header *) ((arg1)->header);
11093   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
11094   return resultobj;
11095 fail:
11096   return NULL;
11097 }
11098 
11099 
_wrap_startree_t_inverse_perm_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11100 SWIGINTERN PyObject *_wrap_startree_t_inverse_perm_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11101   PyObject *resultobj = 0;
11102   startree_t *arg1 = (startree_t *) 0 ;
11103   int *arg2 = (int *) 0 ;
11104   void *argp1 = 0 ;
11105   int res1 = 0 ;
11106   void *argp2 = 0 ;
11107   int res2 = 0 ;
11108   PyObject *swig_obj[2] ;
11109 
11110   if (!SWIG_Python_UnpackTuple(args, "startree_t_inverse_perm_set", 2, 2, swig_obj)) SWIG_fail;
11111   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11112   if (!SWIG_IsOK(res1)) {
11113     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_inverse_perm_set" "', argument " "1"" of type '" "startree_t *""'");
11114   }
11115   arg1 = (startree_t *)(argp1);
11116   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN |  0 );
11117   if (!SWIG_IsOK(res2)) {
11118     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_t_inverse_perm_set" "', argument " "2"" of type '" "int *""'");
11119   }
11120   arg2 = (int *)(argp2);
11121   if (arg1) (arg1)->inverse_perm = arg2;
11122   resultobj = SWIG_Py_Void();
11123   return resultobj;
11124 fail:
11125   return NULL;
11126 }
11127 
11128 
_wrap_startree_t_inverse_perm_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11129 SWIGINTERN PyObject *_wrap_startree_t_inverse_perm_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11130   PyObject *resultobj = 0;
11131   startree_t *arg1 = (startree_t *) 0 ;
11132   void *argp1 = 0 ;
11133   int res1 = 0 ;
11134   PyObject *swig_obj[1] ;
11135   int *result = 0 ;
11136 
11137   if (!args) SWIG_fail;
11138   swig_obj[0] = args;
11139   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11140   if (!SWIG_IsOK(res1)) {
11141     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_inverse_perm_get" "', argument " "1"" of type '" "startree_t *""'");
11142   }
11143   arg1 = (startree_t *)(argp1);
11144   result = (int *) ((arg1)->inverse_perm);
11145   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
11146   return resultobj;
11147 fail:
11148   return NULL;
11149 }
11150 
11151 
_wrap_startree_t_sweep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11152 SWIGINTERN PyObject *_wrap_startree_t_sweep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11153   PyObject *resultobj = 0;
11154   startree_t *arg1 = (startree_t *) 0 ;
11155   uint8_t *arg2 = (uint8_t *) 0 ;
11156   void *argp1 = 0 ;
11157   int res1 = 0 ;
11158   void *argp2 = 0 ;
11159   int res2 = 0 ;
11160   PyObject *swig_obj[2] ;
11161 
11162   if (!SWIG_Python_UnpackTuple(args, "startree_t_sweep_set", 2, 2, swig_obj)) SWIG_fail;
11163   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11164   if (!SWIG_IsOK(res1)) {
11165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_sweep_set" "', argument " "1"" of type '" "startree_t *""'");
11166   }
11167   arg1 = (startree_t *)(argp1);
11168   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_uint8_t, SWIG_POINTER_DISOWN |  0 );
11169   if (!SWIG_IsOK(res2)) {
11170     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_t_sweep_set" "', argument " "2"" of type '" "uint8_t *""'");
11171   }
11172   arg2 = (uint8_t *)(argp2);
11173   if (arg1) (arg1)->sweep = arg2;
11174   resultobj = SWIG_Py_Void();
11175   return resultobj;
11176 fail:
11177   return NULL;
11178 }
11179 
11180 
_wrap_startree_t_sweep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11181 SWIGINTERN PyObject *_wrap_startree_t_sweep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11182   PyObject *resultobj = 0;
11183   startree_t *arg1 = (startree_t *) 0 ;
11184   void *argp1 = 0 ;
11185   int res1 = 0 ;
11186   PyObject *swig_obj[1] ;
11187   uint8_t *result = 0 ;
11188 
11189   if (!args) SWIG_fail;
11190   swig_obj[0] = args;
11191   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11192   if (!SWIG_IsOK(res1)) {
11193     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_sweep_get" "', argument " "1"" of type '" "startree_t *""'");
11194   }
11195   arg1 = (startree_t *)(argp1);
11196   result = (uint8_t *) ((arg1)->sweep);
11197   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint8_t, 0 |  0 );
11198   return resultobj;
11199 fail:
11200   return NULL;
11201 }
11202 
11203 
_wrap_startree_t_writing_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11204 SWIGINTERN PyObject *_wrap_startree_t_writing_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11205   PyObject *resultobj = 0;
11206   startree_t *arg1 = (startree_t *) 0 ;
11207   int arg2 ;
11208   void *argp1 = 0 ;
11209   int res1 = 0 ;
11210   int val2 ;
11211   int ecode2 = 0 ;
11212   PyObject *swig_obj[2] ;
11213 
11214   if (!SWIG_Python_UnpackTuple(args, "startree_t_writing_set", 2, 2, swig_obj)) SWIG_fail;
11215   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11216   if (!SWIG_IsOK(res1)) {
11217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_writing_set" "', argument " "1"" of type '" "startree_t *""'");
11218   }
11219   arg1 = (startree_t *)(argp1);
11220   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11221   if (!SWIG_IsOK(ecode2)) {
11222     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_t_writing_set" "', argument " "2"" of type '" "int""'");
11223   }
11224   arg2 = (int)(val2);
11225   if (arg1) (arg1)->writing = arg2;
11226   resultobj = SWIG_Py_Void();
11227   return resultobj;
11228 fail:
11229   return NULL;
11230 }
11231 
11232 
_wrap_startree_t_writing_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11233 SWIGINTERN PyObject *_wrap_startree_t_writing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11234   PyObject *resultobj = 0;
11235   startree_t *arg1 = (startree_t *) 0 ;
11236   void *argp1 = 0 ;
11237   int res1 = 0 ;
11238   PyObject *swig_obj[1] ;
11239   int result;
11240 
11241   if (!args) SWIG_fail;
11242   swig_obj[0] = args;
11243   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11244   if (!SWIG_IsOK(res1)) {
11245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_writing_get" "', argument " "1"" of type '" "startree_t *""'");
11246   }
11247   arg1 = (startree_t *)(argp1);
11248   result = (int) ((arg1)->writing);
11249   resultobj = SWIG_From_int((int)(result));
11250   return resultobj;
11251 fail:
11252   return NULL;
11253 }
11254 
11255 
_wrap_startree_t_tagalong_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11256 SWIGINTERN PyObject *_wrap_startree_t_tagalong_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11257   PyObject *resultobj = 0;
11258   startree_t *arg1 = (startree_t *) 0 ;
11259   fitstable_t *arg2 = (fitstable_t *) 0 ;
11260   void *argp1 = 0 ;
11261   int res1 = 0 ;
11262   void *argp2 = 0 ;
11263   int res2 = 0 ;
11264   PyObject *swig_obj[2] ;
11265 
11266   if (!SWIG_Python_UnpackTuple(args, "startree_t_tagalong_set", 2, 2, swig_obj)) SWIG_fail;
11267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11268   if (!SWIG_IsOK(res1)) {
11269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_tagalong_set" "', argument " "1"" of type '" "startree_t *""'");
11270   }
11271   arg1 = (startree_t *)(argp1);
11272   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_fitstable_t, SWIG_POINTER_DISOWN |  0 );
11273   if (!SWIG_IsOK(res2)) {
11274     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_t_tagalong_set" "', argument " "2"" of type '" "fitstable_t *""'");
11275   }
11276   arg2 = (fitstable_t *)(argp2);
11277   if (arg1) (arg1)->tagalong = arg2;
11278   resultobj = SWIG_Py_Void();
11279   return resultobj;
11280 fail:
11281   return NULL;
11282 }
11283 
11284 
_wrap_startree_t_tagalong_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11285 SWIGINTERN PyObject *_wrap_startree_t_tagalong_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11286   PyObject *resultobj = 0;
11287   startree_t *arg1 = (startree_t *) 0 ;
11288   void *argp1 = 0 ;
11289   int res1 = 0 ;
11290   PyObject *swig_obj[1] ;
11291   fitstable_t *result = 0 ;
11292 
11293   if (!args) SWIG_fail;
11294   swig_obj[0] = args;
11295   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11296   if (!SWIG_IsOK(res1)) {
11297     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_t_tagalong_get" "', argument " "1"" of type '" "startree_t *""'");
11298   }
11299   arg1 = (startree_t *)(argp1);
11300   result = (fitstable_t *) ((arg1)->tagalong);
11301   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fitstable_t, 0 |  0 );
11302   return resultobj;
11303 fail:
11304   return NULL;
11305 }
11306 
11307 
_wrap_new_startree_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11308 SWIGINTERN PyObject *_wrap_new_startree_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11309   PyObject *resultobj = 0;
11310   startree_t *result = 0 ;
11311 
11312   if (!SWIG_Python_UnpackTuple(args, "new_startree_t", 0, 0, 0)) SWIG_fail;
11313   result = (startree_t *)calloc(1, sizeof(startree_t));
11314   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_startree_t, SWIG_POINTER_NEW |  0 );
11315   return resultobj;
11316 fail:
11317   return NULL;
11318 }
11319 
11320 
_wrap_delete_startree_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11321 SWIGINTERN PyObject *_wrap_delete_startree_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11322   PyObject *resultobj = 0;
11323   startree_t *arg1 = (startree_t *) 0 ;
11324   void *argp1 = 0 ;
11325   int res1 = 0 ;
11326   PyObject *swig_obj[1] ;
11327 
11328   if (!args) SWIG_fail;
11329   swig_obj[0] = args;
11330   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, SWIG_POINTER_DISOWN |  0 );
11331   if (!SWIG_IsOK(res1)) {
11332     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_startree_t" "', argument " "1"" of type '" "startree_t *""'");
11333   }
11334   arg1 = (startree_t *)(argp1);
11335   free((char *) arg1);
11336   resultobj = SWIG_Py_Void();
11337   return resultobj;
11338 fail:
11339   return NULL;
11340 }
11341 
11342 
startree_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11343 SWIGINTERN PyObject *startree_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11344   PyObject *obj;
11345   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
11346   SWIG_TypeNewClientData(SWIGTYPE_p_startree_t, SWIG_NewClientData(obj));
11347   return SWIG_Py_Void();
11348 }
11349 
startree_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11350 SWIGINTERN PyObject *startree_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11351   return SWIG_Python_InitShadowInstance(args);
11352 }
11353 
_wrap_startree_open(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11354 SWIGINTERN PyObject *_wrap_startree_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11355   PyObject *resultobj = 0;
11356   char *arg1 = (char *) 0 ;
11357   int res1 ;
11358   char *buf1 = 0 ;
11359   int alloc1 = 0 ;
11360   PyObject *swig_obj[1] ;
11361   startree_t *result = 0 ;
11362 
11363   if (!args) SWIG_fail;
11364   swig_obj[0] = args;
11365   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
11366   if (!SWIG_IsOK(res1)) {
11367     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_open" "', argument " "1"" of type '" "char const *""'");
11368   }
11369   arg1 = (char *)(buf1);
11370   result = (startree_t *)startree_open((char const *)arg1);
11371   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_startree_t, 0 |  0 );
11372   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
11373   return resultobj;
11374 fail:
11375   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
11376   return NULL;
11377 }
11378 
11379 
_wrap_startree_open_fits(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11380 SWIGINTERN PyObject *_wrap_startree_open_fits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11381   PyObject *resultobj = 0;
11382   anqfits_t *arg1 = (anqfits_t *) 0 ;
11383   void *argp1 = 0 ;
11384   int res1 = 0 ;
11385   PyObject *swig_obj[1] ;
11386   startree_t *result = 0 ;
11387 
11388   if (!args) SWIG_fail;
11389   swig_obj[0] = args;
11390   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anqfits_t, 0 |  0 );
11391   if (!SWIG_IsOK(res1)) {
11392     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_open_fits" "', argument " "1"" of type '" "anqfits_t *""'");
11393   }
11394   arg1 = (anqfits_t *)(argp1);
11395   result = (startree_t *)startree_open_fits(arg1);
11396   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_startree_t, 0 |  0 );
11397   return resultobj;
11398 fail:
11399   return NULL;
11400 }
11401 
11402 
_wrap_startree_search_for(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11403 SWIGINTERN PyObject *_wrap_startree_search_for(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11404   PyObject *resultobj = 0;
11405   startree_t *arg1 = (startree_t *) 0 ;
11406   double *arg2 = (double *) 0 ;
11407   double arg3 ;
11408   double **arg4 = (double **) 0 ;
11409   double **arg5 = (double **) 0 ;
11410   int **arg6 = (int **) 0 ;
11411   int *arg7 = (int *) 0 ;
11412   void *argp1 = 0 ;
11413   int res1 = 0 ;
11414   void *argp2 = 0 ;
11415   int res2 = 0 ;
11416   double val3 ;
11417   int ecode3 = 0 ;
11418   void *argp4 = 0 ;
11419   int res4 = 0 ;
11420   void *argp5 = 0 ;
11421   int res5 = 0 ;
11422   void *argp6 = 0 ;
11423   int res6 = 0 ;
11424   void *argp7 = 0 ;
11425   int res7 = 0 ;
11426   PyObject *swig_obj[7] ;
11427 
11428   if (!SWIG_Python_UnpackTuple(args, "startree_search_for", 7, 7, swig_obj)) SWIG_fail;
11429   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11430   if (!SWIG_IsOK(res1)) {
11431     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_search_for" "', argument " "1"" of type '" "startree_t const *""'");
11432   }
11433   arg1 = (startree_t *)(argp1);
11434   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
11435   if (!SWIG_IsOK(res2)) {
11436     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_search_for" "', argument " "2"" of type '" "double const *""'");
11437   }
11438   arg2 = (double *)(argp2);
11439   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
11440   if (!SWIG_IsOK(ecode3)) {
11441     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "startree_search_for" "', argument " "3"" of type '" "double""'");
11442   }
11443   arg3 = (double)(val3);
11444   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_p_double, 0 |  0 );
11445   if (!SWIG_IsOK(res4)) {
11446     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "startree_search_for" "', argument " "4"" of type '" "double **""'");
11447   }
11448   arg4 = (double **)(argp4);
11449   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_p_double, 0 |  0 );
11450   if (!SWIG_IsOK(res5)) {
11451     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "startree_search_for" "', argument " "5"" of type '" "double **""'");
11452   }
11453   arg5 = (double **)(argp5);
11454   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_p_int, 0 |  0 );
11455   if (!SWIG_IsOK(res6)) {
11456     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "startree_search_for" "', argument " "6"" of type '" "int **""'");
11457   }
11458   arg6 = (int **)(argp6);
11459   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_int, 0 |  0 );
11460   if (!SWIG_IsOK(res7)) {
11461     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "startree_search_for" "', argument " "7"" of type '" "int *""'");
11462   }
11463   arg7 = (int *)(argp7);
11464   startree_search_for((startree_t const *)arg1,(double const *)arg2,arg3,arg4,arg5,arg6,arg7);
11465   resultobj = SWIG_Py_Void();
11466   return resultobj;
11467 fail:
11468   return NULL;
11469 }
11470 
11471 
_wrap_startree_search_for_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11472 SWIGINTERN PyObject *_wrap_startree_search_for_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11473   PyObject *resultobj = 0;
11474   startree_t *arg1 = (startree_t *) 0 ;
11475   double arg2 ;
11476   double arg3 ;
11477   double arg4 ;
11478   double **arg5 = (double **) 0 ;
11479   double **arg6 = (double **) 0 ;
11480   int **arg7 = (int **) 0 ;
11481   int *arg8 = (int *) 0 ;
11482   void *argp1 = 0 ;
11483   int res1 = 0 ;
11484   double val2 ;
11485   int ecode2 = 0 ;
11486   double val3 ;
11487   int ecode3 = 0 ;
11488   double val4 ;
11489   int ecode4 = 0 ;
11490   void *argp5 = 0 ;
11491   int res5 = 0 ;
11492   void *argp6 = 0 ;
11493   int res6 = 0 ;
11494   void *argp7 = 0 ;
11495   int res7 = 0 ;
11496   void *argp8 = 0 ;
11497   int res8 = 0 ;
11498   PyObject *swig_obj[8] ;
11499 
11500   if (!SWIG_Python_UnpackTuple(args, "startree_search_for_radec", 8, 8, swig_obj)) SWIG_fail;
11501   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11502   if (!SWIG_IsOK(res1)) {
11503     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_search_for_radec" "', argument " "1"" of type '" "startree_t const *""'");
11504   }
11505   arg1 = (startree_t *)(argp1);
11506   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
11507   if (!SWIG_IsOK(ecode2)) {
11508     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_search_for_radec" "', argument " "2"" of type '" "double""'");
11509   }
11510   arg2 = (double)(val2);
11511   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
11512   if (!SWIG_IsOK(ecode3)) {
11513     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "startree_search_for_radec" "', argument " "3"" of type '" "double""'");
11514   }
11515   arg3 = (double)(val3);
11516   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
11517   if (!SWIG_IsOK(ecode4)) {
11518     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "startree_search_for_radec" "', argument " "4"" of type '" "double""'");
11519   }
11520   arg4 = (double)(val4);
11521   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_p_double, 0 |  0 );
11522   if (!SWIG_IsOK(res5)) {
11523     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "startree_search_for_radec" "', argument " "5"" of type '" "double **""'");
11524   }
11525   arg5 = (double **)(argp5);
11526   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_p_double, 0 |  0 );
11527   if (!SWIG_IsOK(res6)) {
11528     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "startree_search_for_radec" "', argument " "6"" of type '" "double **""'");
11529   }
11530   arg6 = (double **)(argp6);
11531   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_p_int, 0 |  0 );
11532   if (!SWIG_IsOK(res7)) {
11533     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "startree_search_for_radec" "', argument " "7"" of type '" "int **""'");
11534   }
11535   arg7 = (int **)(argp7);
11536   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_int, 0 |  0 );
11537   if (!SWIG_IsOK(res8)) {
11538     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "startree_search_for_radec" "', argument " "8"" of type '" "int *""'");
11539   }
11540   arg8 = (int *)(argp8);
11541   startree_search_for_radec((startree_t const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
11542   resultobj = SWIG_Py_Void();
11543   return resultobj;
11544 fail:
11545   return NULL;
11546 }
11547 
11548 
_wrap_startree_search(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11549 SWIGINTERN PyObject *_wrap_startree_search(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550   PyObject *resultobj = 0;
11551   startree_t *arg1 = (startree_t *) 0 ;
11552   double *arg2 = (double *) 0 ;
11553   double arg3 ;
11554   double **arg4 = (double **) 0 ;
11555   double **arg5 = (double **) 0 ;
11556   int *arg6 = (int *) 0 ;
11557   void *argp1 = 0 ;
11558   int res1 = 0 ;
11559   void *argp2 = 0 ;
11560   int res2 = 0 ;
11561   double val3 ;
11562   int ecode3 = 0 ;
11563   void *argp4 = 0 ;
11564   int res4 = 0 ;
11565   void *argp5 = 0 ;
11566   int res5 = 0 ;
11567   void *argp6 = 0 ;
11568   int res6 = 0 ;
11569   PyObject *swig_obj[6] ;
11570 
11571   if (!SWIG_Python_UnpackTuple(args, "startree_search", 6, 6, swig_obj)) SWIG_fail;
11572   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11573   if (!SWIG_IsOK(res1)) {
11574     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_search" "', argument " "1"" of type '" "startree_t const *""'");
11575   }
11576   arg1 = (startree_t *)(argp1);
11577   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
11578   if (!SWIG_IsOK(res2)) {
11579     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_search" "', argument " "2"" of type '" "double const *""'");
11580   }
11581   arg2 = (double *)(argp2);
11582   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
11583   if (!SWIG_IsOK(ecode3)) {
11584     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "startree_search" "', argument " "3"" of type '" "double""'");
11585   }
11586   arg3 = (double)(val3);
11587   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_p_double, 0 |  0 );
11588   if (!SWIG_IsOK(res4)) {
11589     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "startree_search" "', argument " "4"" of type '" "double **""'");
11590   }
11591   arg4 = (double **)(argp4);
11592   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_p_double, 0 |  0 );
11593   if (!SWIG_IsOK(res5)) {
11594     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "startree_search" "', argument " "5"" of type '" "double **""'");
11595   }
11596   arg5 = (double **)(argp5);
11597   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 |  0 );
11598   if (!SWIG_IsOK(res6)) {
11599     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "startree_search" "', argument " "6"" of type '" "int *""'");
11600   }
11601   arg6 = (int *)(argp6);
11602   startree_search((startree_t const *)arg1,(double const *)arg2,arg3,arg4,arg5,arg6);
11603   resultobj = SWIG_Py_Void();
11604   return resultobj;
11605 fail:
11606   return NULL;
11607 }
11608 
11609 
_wrap_startree_get_data_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11610 SWIGINTERN PyObject *_wrap_startree_get_data_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11611   PyObject *resultobj = 0;
11612   startree_t *arg1 = (startree_t *) 0 ;
11613   char *arg2 = (char *) 0 ;
11614   int *arg3 = (int *) 0 ;
11615   int arg4 ;
11616   void *argp1 = 0 ;
11617   int res1 = 0 ;
11618   int res2 ;
11619   char *buf2 = 0 ;
11620   int alloc2 = 0 ;
11621   void *argp3 = 0 ;
11622   int res3 = 0 ;
11623   int val4 ;
11624   int ecode4 = 0 ;
11625   PyObject *swig_obj[4] ;
11626   double *result = 0 ;
11627 
11628   if (!SWIG_Python_UnpackTuple(args, "startree_get_data_column", 4, 4, swig_obj)) SWIG_fail;
11629   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11630   if (!SWIG_IsOK(res1)) {
11631     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_data_column" "', argument " "1"" of type '" "startree_t *""'");
11632   }
11633   arg1 = (startree_t *)(argp1);
11634   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11635   if (!SWIG_IsOK(res2)) {
11636     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_get_data_column" "', argument " "2"" of type '" "char const *""'");
11637   }
11638   arg2 = (char *)(buf2);
11639   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
11640   if (!SWIG_IsOK(res3)) {
11641     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "startree_get_data_column" "', argument " "3"" of type '" "int const *""'");
11642   }
11643   arg3 = (int *)(argp3);
11644   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
11645   if (!SWIG_IsOK(ecode4)) {
11646     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "startree_get_data_column" "', argument " "4"" of type '" "int""'");
11647   }
11648   arg4 = (int)(val4);
11649   result = (double *)startree_get_data_column(arg1,(char const *)arg2,(int const *)arg3,arg4);
11650   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
11651   {
11652     int i;
11653     int N;
11654     if (!result) {
11655       goto fail;
11656     }
11657     N = arg4;
11658     resultobj = PyList_New(N);
11659     for (i = 0; i < N; i++) {
11660       PyObject *o = PyFloat_FromDouble(result[i]);
11661       PyList_SetItem(resultobj, i, o);
11662     }
11663     free(result);
11664   }
11665   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11666   return resultobj;
11667 fail:
11668   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11669   return NULL;
11670 }
11671 
11672 
_wrap_startree_get_data_column_int64(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11673 SWIGINTERN PyObject *_wrap_startree_get_data_column_int64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11674   PyObject *resultobj = 0;
11675   startree_t *arg1 = (startree_t *) 0 ;
11676   char *arg2 = (char *) 0 ;
11677   int *arg3 = (int *) 0 ;
11678   int arg4 ;
11679   void *argp1 = 0 ;
11680   int res1 = 0 ;
11681   int res2 ;
11682   char *buf2 = 0 ;
11683   int alloc2 = 0 ;
11684   void *argp3 = 0 ;
11685   int res3 = 0 ;
11686   int val4 ;
11687   int ecode4 = 0 ;
11688   PyObject *swig_obj[4] ;
11689   int64_t *result = 0 ;
11690 
11691   if (!SWIG_Python_UnpackTuple(args, "startree_get_data_column_int64", 4, 4, swig_obj)) SWIG_fail;
11692   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11693   if (!SWIG_IsOK(res1)) {
11694     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_data_column_int64" "', argument " "1"" of type '" "startree_t *""'");
11695   }
11696   arg1 = (startree_t *)(argp1);
11697   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11698   if (!SWIG_IsOK(res2)) {
11699     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_get_data_column_int64" "', argument " "2"" of type '" "char const *""'");
11700   }
11701   arg2 = (char *)(buf2);
11702   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
11703   if (!SWIG_IsOK(res3)) {
11704     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "startree_get_data_column_int64" "', argument " "3"" of type '" "int const *""'");
11705   }
11706   arg3 = (int *)(argp3);
11707   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
11708   if (!SWIG_IsOK(ecode4)) {
11709     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "startree_get_data_column_int64" "', argument " "4"" of type '" "int""'");
11710   }
11711   arg4 = (int)(val4);
11712   result = (int64_t *)startree_get_data_column_int64(arg1,(char const *)arg2,(int const *)arg3,arg4);
11713   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int64_t, 0 |  0 );
11714   {
11715     int i;
11716     int N;
11717     if (!result) {
11718       goto fail;
11719     }
11720     N = arg4;
11721     resultobj = PyList_New(N);
11722     for (i = 0; i < N; i++) {
11723       PyObject *o = PyFloat_FromDouble(result[i]);
11724       PyList_SetItem(resultobj, i, o);
11725     }
11726     free(result);
11727   }
11728   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11729   return resultobj;
11730 fail:
11731   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11732   return NULL;
11733 }
11734 
11735 
_wrap_startree_get_data_column_array(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11736 SWIGINTERN PyObject *_wrap_startree_get_data_column_array(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11737   PyObject *resultobj = 0;
11738   startree_t *arg1 = (startree_t *) 0 ;
11739   char *arg2 = (char *) 0 ;
11740   int *arg3 = (int *) 0 ;
11741   int arg4 ;
11742   int *arg5 = (int *) 0 ;
11743   void *argp1 = 0 ;
11744   int res1 = 0 ;
11745   int res2 ;
11746   char *buf2 = 0 ;
11747   int alloc2 = 0 ;
11748   void *argp3 = 0 ;
11749   int res3 = 0 ;
11750   int val4 ;
11751   int ecode4 = 0 ;
11752   void *argp5 = 0 ;
11753   int res5 = 0 ;
11754   PyObject *swig_obj[5] ;
11755   double *result = 0 ;
11756 
11757   if (!SWIG_Python_UnpackTuple(args, "startree_get_data_column_array", 5, 5, swig_obj)) SWIG_fail;
11758   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11759   if (!SWIG_IsOK(res1)) {
11760     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_data_column_array" "', argument " "1"" of type '" "startree_t *""'");
11761   }
11762   arg1 = (startree_t *)(argp1);
11763   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11764   if (!SWIG_IsOK(res2)) {
11765     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_get_data_column_array" "', argument " "2"" of type '" "char const *""'");
11766   }
11767   arg2 = (char *)(buf2);
11768   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
11769   if (!SWIG_IsOK(res3)) {
11770     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "startree_get_data_column_array" "', argument " "3"" of type '" "int const *""'");
11771   }
11772   arg3 = (int *)(argp3);
11773   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
11774   if (!SWIG_IsOK(ecode4)) {
11775     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "startree_get_data_column_array" "', argument " "4"" of type '" "int""'");
11776   }
11777   arg4 = (int)(val4);
11778   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
11779   if (!SWIG_IsOK(res5)) {
11780     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "startree_get_data_column_array" "', argument " "5"" of type '" "int *""'");
11781   }
11782   arg5 = (int *)(argp5);
11783   result = (double *)startree_get_data_column_array(arg1,(char const *)arg2,(int const *)arg3,arg4,arg5);
11784   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
11785   {
11786     int i;
11787     int N;
11788     if (!result) {
11789       goto fail;
11790     }
11791     N = arg4;
11792     resultobj = PyList_New(N);
11793     for (i = 0; i < N; i++) {
11794       PyObject *o = PyFloat_FromDouble(result[i]);
11795       PyList_SetItem(resultobj, i, o);
11796     }
11797     free(result);
11798   }
11799   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11800   return resultobj;
11801 fail:
11802   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11803   return NULL;
11804 }
11805 
11806 
_wrap_startree_free_data_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11807 SWIGINTERN PyObject *_wrap_startree_free_data_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11808   PyObject *resultobj = 0;
11809   startree_t *arg1 = (startree_t *) 0 ;
11810   double *arg2 = (double *) 0 ;
11811   void *argp1 = 0 ;
11812   int res1 = 0 ;
11813   void *argp2 = 0 ;
11814   int res2 = 0 ;
11815   PyObject *swig_obj[2] ;
11816 
11817   if (!SWIG_Python_UnpackTuple(args, "startree_free_data_column", 2, 2, swig_obj)) SWIG_fail;
11818   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11819   if (!SWIG_IsOK(res1)) {
11820     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_free_data_column" "', argument " "1"" of type '" "startree_t *""'");
11821   }
11822   arg1 = (startree_t *)(argp1);
11823   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
11824   if (!SWIG_IsOK(res2)) {
11825     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_free_data_column" "', argument " "2"" of type '" "double *""'");
11826   }
11827   arg2 = (double *)(argp2);
11828   startree_free_data_column(arg1,arg2);
11829   resultobj = SWIG_Py_Void();
11830   return resultobj;
11831 fail:
11832   return NULL;
11833 }
11834 
11835 
_wrap_startree_has_tagalong(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11836 SWIGINTERN PyObject *_wrap_startree_has_tagalong(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11837   PyObject *resultobj = 0;
11838   startree_t *arg1 = (startree_t *) 0 ;
11839   void *argp1 = 0 ;
11840   int res1 = 0 ;
11841   PyObject *swig_obj[1] ;
11842   anbool result;
11843 
11844   if (!args) SWIG_fail;
11845   swig_obj[0] = args;
11846   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11847   if (!SWIG_IsOK(res1)) {
11848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_has_tagalong" "', argument " "1"" of type '" "startree_t *""'");
11849   }
11850   arg1 = (startree_t *)(argp1);
11851   result = (anbool)startree_has_tagalong(arg1);
11852   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
11853   return resultobj;
11854 fail:
11855   return NULL;
11856 }
11857 
11858 
_wrap_startree_get_tagalong(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11859 SWIGINTERN PyObject *_wrap_startree_get_tagalong(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11860   PyObject *resultobj = 0;
11861   startree_t *arg1 = (startree_t *) 0 ;
11862   void *argp1 = 0 ;
11863   int res1 = 0 ;
11864   PyObject *swig_obj[1] ;
11865   fitstable_t *result = 0 ;
11866 
11867   if (!args) SWIG_fail;
11868   swig_obj[0] = args;
11869   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11870   if (!SWIG_IsOK(res1)) {
11871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_tagalong" "', argument " "1"" of type '" "startree_t *""'");
11872   }
11873   arg1 = (startree_t *)(argp1);
11874   result = (fitstable_t *)startree_get_tagalong(arg1);
11875   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fitstable_t, 0 |  0 );
11876   return resultobj;
11877 fail:
11878   return NULL;
11879 }
11880 
11881 
_wrap_startree_get_tagalong_column_names(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11882 SWIGINTERN PyObject *_wrap_startree_get_tagalong_column_names(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11883   PyObject *resultobj = 0;
11884   startree_t *arg1 = (startree_t *) 0 ;
11885   sl *arg2 = (sl *) 0 ;
11886   void *argp1 = 0 ;
11887   int res1 = 0 ;
11888   void *argp2 = 0 ;
11889   int res2 = 0 ;
11890   PyObject *swig_obj[2] ;
11891   sl *result = 0 ;
11892 
11893   if (!SWIG_Python_UnpackTuple(args, "startree_get_tagalong_column_names", 2, 2, swig_obj)) SWIG_fail;
11894   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11895   if (!SWIG_IsOK(res1)) {
11896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_tagalong_column_names" "', argument " "1"" of type '" "startree_t *""'");
11897   }
11898   arg1 = (startree_t *)(argp1);
11899   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sl, 0 |  0 );
11900   if (!SWIG_IsOK(res2)) {
11901     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_get_tagalong_column_names" "', argument " "2"" of type '" "sl *""'");
11902   }
11903   arg2 = (sl *)(argp2);
11904   result = (sl *)startree_get_tagalong_column_names(arg1,arg2);
11905   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sl, 0 |  0 );
11906   return resultobj;
11907 fail:
11908   return NULL;
11909 }
11910 
11911 
_wrap_startree_get_tagalong_N_columns(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11912 SWIGINTERN PyObject *_wrap_startree_get_tagalong_N_columns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11913   PyObject *resultobj = 0;
11914   startree_t *arg1 = (startree_t *) 0 ;
11915   void *argp1 = 0 ;
11916   int res1 = 0 ;
11917   PyObject *swig_obj[1] ;
11918   int result;
11919 
11920   if (!args) SWIG_fail;
11921   swig_obj[0] = args;
11922   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11923   if (!SWIG_IsOK(res1)) {
11924     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_tagalong_N_columns" "', argument " "1"" of type '" "startree_t *""'");
11925   }
11926   arg1 = (startree_t *)(argp1);
11927   result = (int)startree_get_tagalong_N_columns(arg1);
11928   resultobj = SWIG_From_int((int)(result));
11929   return resultobj;
11930 fail:
11931   return NULL;
11932 }
11933 
11934 
_wrap_startree_get_tagalong_column_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11935 SWIGINTERN PyObject *_wrap_startree_get_tagalong_column_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11936   PyObject *resultobj = 0;
11937   startree_t *arg1 = (startree_t *) 0 ;
11938   int arg2 ;
11939   void *argp1 = 0 ;
11940   int res1 = 0 ;
11941   int val2 ;
11942   int ecode2 = 0 ;
11943   PyObject *swig_obj[2] ;
11944   char *result = 0 ;
11945 
11946   if (!SWIG_Python_UnpackTuple(args, "startree_get_tagalong_column_name", 2, 2, swig_obj)) SWIG_fail;
11947   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11948   if (!SWIG_IsOK(res1)) {
11949     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_tagalong_column_name" "', argument " "1"" of type '" "startree_t *""'");
11950   }
11951   arg1 = (startree_t *)(argp1);
11952   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11953   if (!SWIG_IsOK(ecode2)) {
11954     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_get_tagalong_column_name" "', argument " "2"" of type '" "int""'");
11955   }
11956   arg2 = (int)(val2);
11957   result = (char *)startree_get_tagalong_column_name(arg1,arg2);
11958   resultobj = SWIG_FromCharPtr((const char *)result);
11959   return resultobj;
11960 fail:
11961   return NULL;
11962 }
11963 
11964 
_wrap_startree_get_tagalong_column_fits_type(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11965 SWIGINTERN PyObject *_wrap_startree_get_tagalong_column_fits_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11966   PyObject *resultobj = 0;
11967   startree_t *arg1 = (startree_t *) 0 ;
11968   int arg2 ;
11969   void *argp1 = 0 ;
11970   int res1 = 0 ;
11971   int val2 ;
11972   int ecode2 = 0 ;
11973   PyObject *swig_obj[2] ;
11974   tfits_type result;
11975 
11976   if (!SWIG_Python_UnpackTuple(args, "startree_get_tagalong_column_fits_type", 2, 2, swig_obj)) SWIG_fail;
11977   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
11978   if (!SWIG_IsOK(res1)) {
11979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_tagalong_column_fits_type" "', argument " "1"" of type '" "startree_t *""'");
11980   }
11981   arg1 = (startree_t *)(argp1);
11982   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11983   if (!SWIG_IsOK(ecode2)) {
11984     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_get_tagalong_column_fits_type" "', argument " "2"" of type '" "int""'");
11985   }
11986   arg2 = (int)(val2);
11987   result = startree_get_tagalong_column_fits_type(arg1,arg2);
11988   resultobj = SWIG_NewPointerObj((tfits_type *)memcpy((tfits_type *)calloc(1,sizeof(tfits_type)),&result,sizeof(tfits_type)), SWIGTYPE_p_tfits_type, SWIG_POINTER_OWN |  0 );
11989   return resultobj;
11990 fail:
11991   return NULL;
11992 }
11993 
11994 
_wrap_startree_get_tagalong_column_array_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11995 SWIGINTERN PyObject *_wrap_startree_get_tagalong_column_array_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11996   PyObject *resultobj = 0;
11997   startree_t *arg1 = (startree_t *) 0 ;
11998   int arg2 ;
11999   void *argp1 = 0 ;
12000   int res1 = 0 ;
12001   int val2 ;
12002   int ecode2 = 0 ;
12003   PyObject *swig_obj[2] ;
12004   int result;
12005 
12006   if (!SWIG_Python_UnpackTuple(args, "startree_get_tagalong_column_array_size", 2, 2, swig_obj)) SWIG_fail;
12007   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12008   if (!SWIG_IsOK(res1)) {
12009     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_tagalong_column_array_size" "', argument " "1"" of type '" "startree_t *""'");
12010   }
12011   arg1 = (startree_t *)(argp1);
12012   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12013   if (!SWIG_IsOK(ecode2)) {
12014     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_get_tagalong_column_array_size" "', argument " "2"" of type '" "int""'");
12015   }
12016   arg2 = (int)(val2);
12017   result = (int)startree_get_tagalong_column_array_size(arg1,arg2);
12018   resultobj = SWIG_From_int((int)(result));
12019   return resultobj;
12020 fail:
12021   return NULL;
12022 }
12023 
12024 
_wrap_startree_get_cut_nside(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12025 SWIGINTERN PyObject *_wrap_startree_get_cut_nside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12026   PyObject *resultobj = 0;
12027   startree_t *arg1 = (startree_t *) 0 ;
12028   void *argp1 = 0 ;
12029   int res1 = 0 ;
12030   PyObject *swig_obj[1] ;
12031   int result;
12032 
12033   if (!args) SWIG_fail;
12034   swig_obj[0] = args;
12035   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12036   if (!SWIG_IsOK(res1)) {
12037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_cut_nside" "', argument " "1"" of type '" "startree_t const *""'");
12038   }
12039   arg1 = (startree_t *)(argp1);
12040   result = (int)startree_get_cut_nside((startree_t const *)arg1);
12041   resultobj = SWIG_From_int((int)(result));
12042   return resultobj;
12043 fail:
12044   return NULL;
12045 }
12046 
12047 
_wrap_startree_get_cut_nsweeps(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12048 SWIGINTERN PyObject *_wrap_startree_get_cut_nsweeps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12049   PyObject *resultobj = 0;
12050   startree_t *arg1 = (startree_t *) 0 ;
12051   void *argp1 = 0 ;
12052   int res1 = 0 ;
12053   PyObject *swig_obj[1] ;
12054   int result;
12055 
12056   if (!args) SWIG_fail;
12057   swig_obj[0] = args;
12058   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12059   if (!SWIG_IsOK(res1)) {
12060     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_cut_nsweeps" "', argument " "1"" of type '" "startree_t const *""'");
12061   }
12062   arg1 = (startree_t *)(argp1);
12063   result = (int)startree_get_cut_nsweeps((startree_t const *)arg1);
12064   resultobj = SWIG_From_int((int)(result));
12065   return resultobj;
12066 fail:
12067   return NULL;
12068 }
12069 
12070 
_wrap_startree_get_cut_dedup(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12071 SWIGINTERN PyObject *_wrap_startree_get_cut_dedup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12072   PyObject *resultobj = 0;
12073   startree_t *arg1 = (startree_t *) 0 ;
12074   void *argp1 = 0 ;
12075   int res1 = 0 ;
12076   PyObject *swig_obj[1] ;
12077   double result;
12078 
12079   if (!args) SWIG_fail;
12080   swig_obj[0] = args;
12081   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12082   if (!SWIG_IsOK(res1)) {
12083     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_cut_dedup" "', argument " "1"" of type '" "startree_t const *""'");
12084   }
12085   arg1 = (startree_t *)(argp1);
12086   result = (double)startree_get_cut_dedup((startree_t const *)arg1);
12087   resultobj = SWIG_From_double((double)(result));
12088   return resultobj;
12089 fail:
12090   return NULL;
12091 }
12092 
12093 
_wrap_startree_get_cut_band(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12094 SWIGINTERN PyObject *_wrap_startree_get_cut_band(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12095   PyObject *resultobj = 0;
12096   startree_t *arg1 = (startree_t *) 0 ;
12097   void *argp1 = 0 ;
12098   int res1 = 0 ;
12099   PyObject *swig_obj[1] ;
12100   char *result = 0 ;
12101 
12102   if (!args) SWIG_fail;
12103   swig_obj[0] = args;
12104   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12105   if (!SWIG_IsOK(res1)) {
12106     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_cut_band" "', argument " "1"" of type '" "startree_t const *""'");
12107   }
12108   arg1 = (startree_t *)(argp1);
12109   result = (char *)startree_get_cut_band((startree_t const *)arg1);
12110   resultobj = SWIG_FromCharPtr((const char *)result);
12111   return resultobj;
12112 fail:
12113   return NULL;
12114 }
12115 
12116 
_wrap_startree_get_cut_margin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12117 SWIGINTERN PyObject *_wrap_startree_get_cut_margin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12118   PyObject *resultobj = 0;
12119   startree_t *arg1 = (startree_t *) 0 ;
12120   void *argp1 = 0 ;
12121   int res1 = 0 ;
12122   PyObject *swig_obj[1] ;
12123   int result;
12124 
12125   if (!args) SWIG_fail;
12126   swig_obj[0] = args;
12127   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12128   if (!SWIG_IsOK(res1)) {
12129     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_cut_margin" "', argument " "1"" of type '" "startree_t const *""'");
12130   }
12131   arg1 = (startree_t *)(argp1);
12132   result = (int)startree_get_cut_margin((startree_t const *)arg1);
12133   resultobj = SWIG_From_int((int)(result));
12134   return resultobj;
12135 fail:
12136   return NULL;
12137 }
12138 
12139 
_wrap_startree_get_jitter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12140 SWIGINTERN PyObject *_wrap_startree_get_jitter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12141   PyObject *resultobj = 0;
12142   startree_t *arg1 = (startree_t *) 0 ;
12143   void *argp1 = 0 ;
12144   int res1 = 0 ;
12145   PyObject *swig_obj[1] ;
12146   double result;
12147 
12148   if (!args) SWIG_fail;
12149   swig_obj[0] = args;
12150   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12151   if (!SWIG_IsOK(res1)) {
12152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_jitter" "', argument " "1"" of type '" "startree_t const *""'");
12153   }
12154   arg1 = (startree_t *)(argp1);
12155   result = (double)startree_get_jitter((startree_t const *)arg1);
12156   resultobj = SWIG_From_double((double)(result));
12157   return resultobj;
12158 fail:
12159   return NULL;
12160 }
12161 
12162 
_wrap_startree_set_jitter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12163 SWIGINTERN PyObject *_wrap_startree_set_jitter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164   PyObject *resultobj = 0;
12165   startree_t *arg1 = (startree_t *) 0 ;
12166   double arg2 ;
12167   void *argp1 = 0 ;
12168   int res1 = 0 ;
12169   double val2 ;
12170   int ecode2 = 0 ;
12171   PyObject *swig_obj[2] ;
12172 
12173   if (!SWIG_Python_UnpackTuple(args, "startree_set_jitter", 2, 2, swig_obj)) SWIG_fail;
12174   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12175   if (!SWIG_IsOK(res1)) {
12176     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_set_jitter" "', argument " "1"" of type '" "startree_t *""'");
12177   }
12178   arg1 = (startree_t *)(argp1);
12179   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
12180   if (!SWIG_IsOK(ecode2)) {
12181     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_set_jitter" "', argument " "2"" of type '" "double""'");
12182   }
12183   arg2 = (double)(val2);
12184   startree_set_jitter(arg1,arg2);
12185   resultobj = SWIG_Py_Void();
12186   return resultobj;
12187 fail:
12188   return NULL;
12189 }
12190 
12191 
_wrap_startree_get_sweep(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12192 SWIGINTERN PyObject *_wrap_startree_get_sweep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12193   PyObject *resultobj = 0;
12194   startree_t *arg1 = (startree_t *) 0 ;
12195   int arg2 ;
12196   void *argp1 = 0 ;
12197   int res1 = 0 ;
12198   int val2 ;
12199   int ecode2 = 0 ;
12200   PyObject *swig_obj[2] ;
12201   int result;
12202 
12203   if (!SWIG_Python_UnpackTuple(args, "startree_get_sweep", 2, 2, swig_obj)) SWIG_fail;
12204   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12205   if (!SWIG_IsOK(res1)) {
12206     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_sweep" "', argument " "1"" of type '" "startree_t const *""'");
12207   }
12208   arg1 = (startree_t *)(argp1);
12209   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12210   if (!SWIG_IsOK(ecode2)) {
12211     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_get_sweep" "', argument " "2"" of type '" "int""'");
12212   }
12213   arg2 = (int)(val2);
12214   result = (int)startree_get_sweep((startree_t const *)arg1,arg2);
12215   resultobj = SWIG_From_int((int)(result));
12216   return resultobj;
12217 fail:
12218   return NULL;
12219 }
12220 
12221 
_wrap_startree_N(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12222 SWIGINTERN PyObject *_wrap_startree_N(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223   PyObject *resultobj = 0;
12224   startree_t *arg1 = (startree_t *) 0 ;
12225   void *argp1 = 0 ;
12226   int res1 = 0 ;
12227   PyObject *swig_obj[1] ;
12228   int result;
12229 
12230   if (!args) SWIG_fail;
12231   swig_obj[0] = args;
12232   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12233   if (!SWIG_IsOK(res1)) {
12234     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_N" "', argument " "1"" of type '" "startree_t const *""'");
12235   }
12236   arg1 = (startree_t *)(argp1);
12237   result = (int)startree_N((startree_t const *)arg1);
12238   resultobj = SWIG_From_int((int)(result));
12239   return resultobj;
12240 fail:
12241   return NULL;
12242 }
12243 
12244 
_wrap_startree_nodes(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12245 SWIGINTERN PyObject *_wrap_startree_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12246   PyObject *resultobj = 0;
12247   startree_t *arg1 = (startree_t *) 0 ;
12248   void *argp1 = 0 ;
12249   int res1 = 0 ;
12250   PyObject *swig_obj[1] ;
12251   int result;
12252 
12253   if (!args) SWIG_fail;
12254   swig_obj[0] = args;
12255   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12256   if (!SWIG_IsOK(res1)) {
12257     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_nodes" "', argument " "1"" of type '" "startree_t const *""'");
12258   }
12259   arg1 = (startree_t *)(argp1);
12260   result = (int)startree_nodes((startree_t const *)arg1);
12261   resultobj = SWIG_From_int((int)(result));
12262   return resultobj;
12263 fail:
12264   return NULL;
12265 }
12266 
12267 
_wrap_startree_D(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12268 SWIGINTERN PyObject *_wrap_startree_D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12269   PyObject *resultobj = 0;
12270   startree_t *arg1 = (startree_t *) 0 ;
12271   void *argp1 = 0 ;
12272   int res1 = 0 ;
12273   PyObject *swig_obj[1] ;
12274   int result;
12275 
12276   if (!args) SWIG_fail;
12277   swig_obj[0] = args;
12278   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12279   if (!SWIG_IsOK(res1)) {
12280     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_D" "', argument " "1"" of type '" "startree_t const *""'");
12281   }
12282   arg1 = (startree_t *)(argp1);
12283   result = (int)startree_D((startree_t const *)arg1);
12284   resultobj = SWIG_From_int((int)(result));
12285   return resultobj;
12286 fail:
12287   return NULL;
12288 }
12289 
12290 
_wrap_startree_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12291 SWIGINTERN PyObject *_wrap_startree_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12292   PyObject *resultobj = 0;
12293   startree_t *arg1 = (startree_t *) 0 ;
12294   void *argp1 = 0 ;
12295   int res1 = 0 ;
12296   PyObject *swig_obj[1] ;
12297   qfits_header *result = 0 ;
12298 
12299   if (!args) SWIG_fail;
12300   swig_obj[0] = args;
12301   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12302   if (!SWIG_IsOK(res1)) {
12303     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_header" "', argument " "1"" of type '" "startree_t const *""'");
12304   }
12305   arg1 = (startree_t *)(argp1);
12306   result = (qfits_header *)startree_header((startree_t const *)arg1);
12307   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
12308   return resultobj;
12309 fail:
12310   return NULL;
12311 }
12312 
12313 
_wrap_startree_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12314 SWIGINTERN PyObject *_wrap_startree_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12315   PyObject *resultobj = 0;
12316   startree_t *arg1 = (startree_t *) 0 ;
12317   int arg2 ;
12318   double *arg3 = (double *) 0 ;
12319   void *argp1 = 0 ;
12320   int res1 = 0 ;
12321   int val2 ;
12322   int ecode2 = 0 ;
12323   void *argp3 = 0 ;
12324   int res3 = 0 ;
12325   PyObject *swig_obj[3] ;
12326   int result;
12327 
12328   if (!SWIG_Python_UnpackTuple(args, "startree_get", 3, 3, swig_obj)) SWIG_fail;
12329   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12330   if (!SWIG_IsOK(res1)) {
12331     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get" "', argument " "1"" of type '" "startree_t *""'");
12332   }
12333   arg1 = (startree_t *)(argp1);
12334   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12335   if (!SWIG_IsOK(ecode2)) {
12336     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_get" "', argument " "2"" of type '" "int""'");
12337   }
12338   arg2 = (int)(val2);
12339   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
12340   if (!SWIG_IsOK(res3)) {
12341     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "startree_get" "', argument " "3"" of type '" "double *""'");
12342   }
12343   arg3 = (double *)(argp3);
12344   result = (int)startree_get(arg1,arg2,arg3);
12345   resultobj = SWIG_From_int((int)(result));
12346   return resultobj;
12347 fail:
12348   return NULL;
12349 }
12350 
12351 
_wrap_startree_get_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12352 SWIGINTERN PyObject *_wrap_startree_get_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12353   PyObject *resultobj = 0;
12354   startree_t *arg1 = (startree_t *) 0 ;
12355   int arg2 ;
12356   double *arg3 = (double *) 0 ;
12357   double *arg4 = (double *) 0 ;
12358   void *argp1 = 0 ;
12359   int res1 = 0 ;
12360   int val2 ;
12361   int ecode2 = 0 ;
12362   void *argp3 = 0 ;
12363   int res3 = 0 ;
12364   void *argp4 = 0 ;
12365   int res4 = 0 ;
12366   PyObject *swig_obj[4] ;
12367   int result;
12368 
12369   if (!SWIG_Python_UnpackTuple(args, "startree_get_radec", 4, 4, swig_obj)) SWIG_fail;
12370   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12371   if (!SWIG_IsOK(res1)) {
12372     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_get_radec" "', argument " "1"" of type '" "startree_t *""'");
12373   }
12374   arg1 = (startree_t *)(argp1);
12375   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12376   if (!SWIG_IsOK(ecode2)) {
12377     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "startree_get_radec" "', argument " "2"" of type '" "int""'");
12378   }
12379   arg2 = (int)(val2);
12380   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
12381   if (!SWIG_IsOK(res3)) {
12382     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "startree_get_radec" "', argument " "3"" of type '" "double *""'");
12383   }
12384   arg3 = (double *)(argp3);
12385   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
12386   if (!SWIG_IsOK(res4)) {
12387     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "startree_get_radec" "', argument " "4"" of type '" "double *""'");
12388   }
12389   arg4 = (double *)(argp4);
12390   result = (int)startree_get_radec(arg1,arg2,arg3,arg4);
12391   resultobj = SWIG_From_int((int)(result));
12392   return resultobj;
12393 fail:
12394   return NULL;
12395 }
12396 
12397 
_wrap_startree_close(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12398 SWIGINTERN PyObject *_wrap_startree_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12399   PyObject *resultobj = 0;
12400   startree_t *arg1 = (startree_t *) 0 ;
12401   void *argp1 = 0 ;
12402   int res1 = 0 ;
12403   PyObject *swig_obj[1] ;
12404   int result;
12405 
12406   if (!args) SWIG_fail;
12407   swig_obj[0] = args;
12408   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12409   if (!SWIG_IsOK(res1)) {
12410     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_close" "', argument " "1"" of type '" "startree_t *""'");
12411   }
12412   arg1 = (startree_t *)(argp1);
12413   result = (int)startree_close(arg1);
12414   resultobj = SWIG_From_int((int)(result));
12415   return resultobj;
12416 fail:
12417   return NULL;
12418 }
12419 
12420 
_wrap_startree_compute_inverse_perm(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12421 SWIGINTERN PyObject *_wrap_startree_compute_inverse_perm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12422   PyObject *resultobj = 0;
12423   startree_t *arg1 = (startree_t *) 0 ;
12424   void *argp1 = 0 ;
12425   int res1 = 0 ;
12426   PyObject *swig_obj[1] ;
12427 
12428   if (!args) SWIG_fail;
12429   swig_obj[0] = args;
12430   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12431   if (!SWIG_IsOK(res1)) {
12432     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_compute_inverse_perm" "', argument " "1"" of type '" "startree_t *""'");
12433   }
12434   arg1 = (startree_t *)(argp1);
12435   startree_compute_inverse_perm(arg1);
12436   resultobj = SWIG_Py_Void();
12437   return resultobj;
12438 fail:
12439   return NULL;
12440 }
12441 
12442 
_wrap_startree_check_inverse_perm(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12443 SWIGINTERN PyObject *_wrap_startree_check_inverse_perm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12444   PyObject *resultobj = 0;
12445   startree_t *arg1 = (startree_t *) 0 ;
12446   void *argp1 = 0 ;
12447   int res1 = 0 ;
12448   PyObject *swig_obj[1] ;
12449   int result;
12450 
12451   if (!args) SWIG_fail;
12452   swig_obj[0] = args;
12453   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12454   if (!SWIG_IsOK(res1)) {
12455     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_check_inverse_perm" "', argument " "1"" of type '" "startree_t *""'");
12456   }
12457   arg1 = (startree_t *)(argp1);
12458   result = (int)startree_check_inverse_perm(arg1);
12459   resultobj = SWIG_From_int((int)(result));
12460   return resultobj;
12461 fail:
12462   return NULL;
12463 }
12464 
12465 
_wrap_startree_new(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12466 SWIGINTERN PyObject *_wrap_startree_new(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12467   PyObject *resultobj = 0;
12468   startree_t *result = 0 ;
12469 
12470   if (!SWIG_Python_UnpackTuple(args, "startree_new", 0, 0, 0)) SWIG_fail;
12471   result = (startree_t *)startree_new();
12472   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_startree_t, 0 |  0 );
12473   return resultobj;
12474 fail:
12475   return NULL;
12476 }
12477 
12478 
_wrap_startree_write_to_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12479 SWIGINTERN PyObject *_wrap_startree_write_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12480   PyObject *resultobj = 0;
12481   startree_t *arg1 = (startree_t *) 0 ;
12482   char *arg2 = (char *) 0 ;
12483   void *argp1 = 0 ;
12484   int res1 = 0 ;
12485   int res2 ;
12486   char *buf2 = 0 ;
12487   int alloc2 = 0 ;
12488   PyObject *swig_obj[2] ;
12489   int result;
12490 
12491   if (!SWIG_Python_UnpackTuple(args, "startree_write_to_file", 2, 2, swig_obj)) SWIG_fail;
12492   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12493   if (!SWIG_IsOK(res1)) {
12494     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_write_to_file" "', argument " "1"" of type '" "startree_t *""'");
12495   }
12496   arg1 = (startree_t *)(argp1);
12497   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
12498   if (!SWIG_IsOK(res2)) {
12499     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_write_to_file" "', argument " "2"" of type '" "char const *""'");
12500   }
12501   arg2 = (char *)(buf2);
12502   result = (int)startree_write_to_file(arg1,(char const *)arg2);
12503   resultobj = SWIG_From_int((int)(result));
12504   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12505   return resultobj;
12506 fail:
12507   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12508   return NULL;
12509 }
12510 
12511 
_wrap_startree_write_to_file_flipped(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12512 SWIGINTERN PyObject *_wrap_startree_write_to_file_flipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12513   PyObject *resultobj = 0;
12514   startree_t *arg1 = (startree_t *) 0 ;
12515   char *arg2 = (char *) 0 ;
12516   void *argp1 = 0 ;
12517   int res1 = 0 ;
12518   int res2 ;
12519   char *buf2 = 0 ;
12520   int alloc2 = 0 ;
12521   PyObject *swig_obj[2] ;
12522   int result;
12523 
12524   if (!SWIG_Python_UnpackTuple(args, "startree_write_to_file_flipped", 2, 2, swig_obj)) SWIG_fail;
12525   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12526   if (!SWIG_IsOK(res1)) {
12527     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_write_to_file_flipped" "', argument " "1"" of type '" "startree_t *""'");
12528   }
12529   arg1 = (startree_t *)(argp1);
12530   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
12531   if (!SWIG_IsOK(res2)) {
12532     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_write_to_file_flipped" "', argument " "2"" of type '" "char const *""'");
12533   }
12534   arg2 = (char *)(buf2);
12535   result = (int)startree_write_to_file_flipped(arg1,(char const *)arg2);
12536   resultobj = SWIG_From_int((int)(result));
12537   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12538   return resultobj;
12539 fail:
12540   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12541   return NULL;
12542 }
12543 
12544 
_wrap_startree_append_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12545 SWIGINTERN PyObject *_wrap_startree_append_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12546   PyObject *resultobj = 0;
12547   startree_t *arg1 = (startree_t *) 0 ;
12548   FILE *arg2 = (FILE *) 0 ;
12549   void *argp1 = 0 ;
12550   int res1 = 0 ;
12551   void *argp2 = 0 ;
12552   int res2 = 0 ;
12553   PyObject *swig_obj[2] ;
12554   int result;
12555 
12556   if (!SWIG_Python_UnpackTuple(args, "startree_append_to", 2, 2, swig_obj)) SWIG_fail;
12557   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_startree_t, 0 |  0 );
12558   if (!SWIG_IsOK(res1)) {
12559     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "startree_append_to" "', argument " "1"" of type '" "startree_t *""'");
12560   }
12561   arg1 = (startree_t *)(argp1);
12562   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
12563   if (!SWIG_IsOK(res2)) {
12564     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "startree_append_to" "', argument " "2"" of type '" "FILE *""'");
12565   }
12566   arg2 = (FILE *)(argp2);
12567   result = (int)startree_append_to(arg1,arg2);
12568   resultobj = SWIG_From_int((int)(result));
12569   return resultobj;
12570 fail:
12571   return NULL;
12572 }
12573 
12574 
_wrap_code_alloc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12575 SWIGINTERN PyObject *_wrap_code_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12576   PyObject *resultobj = 0;
12577   int arg1 ;
12578   int val1 ;
12579   int ecode1 = 0 ;
12580   PyObject *swig_obj[1] ;
12581   double *result = 0 ;
12582 
12583   if (!args) SWIG_fail;
12584   swig_obj[0] = args;
12585   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12586   if (!SWIG_IsOK(ecode1)) {
12587     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "code_alloc" "', argument " "1"" of type '" "int""'");
12588   }
12589   arg1 = (int)(val1);
12590   result = (double *)code_alloc(arg1);
12591   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
12592   return resultobj;
12593 fail:
12594   return NULL;
12595 }
12596 
12597 
_wrap_code_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12598 SWIGINTERN PyObject *_wrap_code_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12599   PyObject *resultobj = 0;
12600   double *arg1 = (double *) 0 ;
12601   void *argp1 = 0 ;
12602   int res1 = 0 ;
12603   PyObject *swig_obj[1] ;
12604 
12605   if (!args) SWIG_fail;
12606   swig_obj[0] = args;
12607   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
12608   if (!SWIG_IsOK(res1)) {
12609     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "code_free" "', argument " "1"" of type '" "double *""'");
12610   }
12611   arg1 = (double *)(argp1);
12612   code_free(arg1);
12613   resultobj = SWIG_Py_Void();
12614   return resultobj;
12615 fail:
12616   return NULL;
12617 }
12618 
12619 
_wrap_code_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12620 SWIGINTERN PyObject *_wrap_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12621   PyObject *resultobj = 0;
12622   double *arg1 = (double *) 0 ;
12623   int arg2 ;
12624   void *argp1 = 0 ;
12625   int res1 = 0 ;
12626   int val2 ;
12627   int ecode2 = 0 ;
12628   PyObject *swig_obj[2] ;
12629   double result;
12630 
12631   if (!SWIG_Python_UnpackTuple(args, "code_get", 2, 2, swig_obj)) SWIG_fail;
12632   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
12633   if (!SWIG_IsOK(res1)) {
12634     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "code_get" "', argument " "1"" of type '" "double *""'");
12635   }
12636   arg1 = (double *)(argp1);
12637   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12638   if (!SWIG_IsOK(ecode2)) {
12639     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "code_get" "', argument " "2"" of type '" "int""'");
12640   }
12641   arg2 = (int)(val2);
12642   result = (double)code_get(arg1,arg2);
12643   resultobj = SWIG_From_double((double)(result));
12644   return resultobj;
12645 fail:
12646   return NULL;
12647 }
12648 
12649 
_wrap_codekd_addr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12650 SWIGINTERN PyObject *_wrap_codekd_addr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12651   PyObject *resultobj = 0;
12652   index_t *arg1 = (index_t *) 0 ;
12653   void *argp1 = 0 ;
12654   int res1 = 0 ;
12655   PyObject *swig_obj[1] ;
12656   long result;
12657 
12658   if (!args) SWIG_fail;
12659   swig_obj[0] = args;
12660   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
12661   if (!SWIG_IsOK(res1)) {
12662     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "codekd_addr" "', argument " "1"" of type '" "index_t *""'");
12663   }
12664   arg1 = (index_t *)(argp1);
12665   result = (long)codekd_addr(arg1);
12666   resultobj = SWIG_From_long((long)(result));
12667   return resultobj;
12668 fail:
12669   return NULL;
12670 }
12671 
12672 
_wrap_starkd_addr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12673 SWIGINTERN PyObject *_wrap_starkd_addr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12674   PyObject *resultobj = 0;
12675   index_t *arg1 = (index_t *) 0 ;
12676   void *argp1 = 0 ;
12677   int res1 = 0 ;
12678   PyObject *swig_obj[1] ;
12679   long result;
12680 
12681   if (!args) SWIG_fail;
12682   swig_obj[0] = args;
12683   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
12684   if (!SWIG_IsOK(res1)) {
12685     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "starkd_addr" "', argument " "1"" of type '" "index_t *""'");
12686   }
12687   arg1 = (index_t *)(argp1);
12688   result = (long)starkd_addr(arg1);
12689   resultobj = SWIG_From_long((long)(result));
12690   return resultobj;
12691 fail:
12692   return NULL;
12693 }
12694 
12695 
_wrap_quadfile_addr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12696 SWIGINTERN PyObject *_wrap_quadfile_addr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12697   PyObject *resultobj = 0;
12698   index_t *arg1 = (index_t *) 0 ;
12699   void *argp1 = 0 ;
12700   int res1 = 0 ;
12701   PyObject *swig_obj[1] ;
12702   long result;
12703 
12704   if (!args) SWIG_fail;
12705   swig_obj[0] = args;
12706   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_index_t, 0 |  0 );
12707   if (!SWIG_IsOK(res1)) {
12708     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "quadfile_addr" "', argument " "1"" of type '" "index_t *""'");
12709   }
12710   arg1 = (index_t *)(argp1);
12711   result = (long)quadfile_addr(arg1);
12712   resultobj = SWIG_From_long((long)(result));
12713   return resultobj;
12714 fail:
12715   return NULL;
12716 }
12717 
12718 
_wrap_healpix_xy_to_ring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12719 SWIGINTERN PyObject *_wrap_healpix_xy_to_ring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12720   PyObject *resultobj = 0;
12721   int arg1 ;
12722   int arg2 ;
12723   int val1 ;
12724   int ecode1 = 0 ;
12725   int val2 ;
12726   int ecode2 = 0 ;
12727   PyObject *swig_obj[2] ;
12728   int result;
12729 
12730   if (!SWIG_Python_UnpackTuple(args, "healpix_xy_to_ring", 2, 2, swig_obj)) SWIG_fail;
12731   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12732   if (!SWIG_IsOK(ecode1)) {
12733     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_xy_to_ring" "', argument " "1"" of type '" "int""'");
12734   }
12735   arg1 = (int)(val1);
12736   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12737   if (!SWIG_IsOK(ecode2)) {
12738     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_xy_to_ring" "', argument " "2"" of type '" "int""'");
12739   }
12740   arg2 = (int)(val2);
12741   result = (int)healpix_xy_to_ring(arg1,arg2);
12742   resultobj = SWIG_From_int((int)(result));
12743   return resultobj;
12744 fail:
12745   return NULL;
12746 }
12747 
12748 
_wrap_healpix_ring_to_xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12749 SWIGINTERN PyObject *_wrap_healpix_ring_to_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12750   PyObject *resultobj = 0;
12751   int arg1 ;
12752   int arg2 ;
12753   int val1 ;
12754   int ecode1 = 0 ;
12755   int val2 ;
12756   int ecode2 = 0 ;
12757   PyObject *swig_obj[2] ;
12758   int result;
12759 
12760   if (!SWIG_Python_UnpackTuple(args, "healpix_ring_to_xy", 2, 2, swig_obj)) SWIG_fail;
12761   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12762   if (!SWIG_IsOK(ecode1)) {
12763     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_ring_to_xy" "', argument " "1"" of type '" "int""'");
12764   }
12765   arg1 = (int)(val1);
12766   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12767   if (!SWIG_IsOK(ecode2)) {
12768     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_ring_to_xy" "', argument " "2"" of type '" "int""'");
12769   }
12770   arg2 = (int)(val2);
12771   result = (int)healpix_ring_to_xy(arg1,arg2);
12772   resultobj = SWIG_From_int((int)(result));
12773   return resultobj;
12774 fail:
12775   return NULL;
12776 }
12777 
12778 
_wrap_healpix_xy_to_nested(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12779 SWIGINTERN PyObject *_wrap_healpix_xy_to_nested(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12780   PyObject *resultobj = 0;
12781   int arg1 ;
12782   int arg2 ;
12783   int val1 ;
12784   int ecode1 = 0 ;
12785   int val2 ;
12786   int ecode2 = 0 ;
12787   PyObject *swig_obj[2] ;
12788   int result;
12789 
12790   if (!SWIG_Python_UnpackTuple(args, "healpix_xy_to_nested", 2, 2, swig_obj)) SWIG_fail;
12791   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12792   if (!SWIG_IsOK(ecode1)) {
12793     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_xy_to_nested" "', argument " "1"" of type '" "int""'");
12794   }
12795   arg1 = (int)(val1);
12796   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12797   if (!SWIG_IsOK(ecode2)) {
12798     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_xy_to_nested" "', argument " "2"" of type '" "int""'");
12799   }
12800   arg2 = (int)(val2);
12801   result = (int)healpix_xy_to_nested(arg1,arg2);
12802   resultobj = SWIG_From_int((int)(result));
12803   return resultobj;
12804 fail:
12805   return NULL;
12806 }
12807 
12808 
_wrap_healpix_nested_to_xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12809 SWIGINTERN PyObject *_wrap_healpix_nested_to_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12810   PyObject *resultobj = 0;
12811   int arg1 ;
12812   int arg2 ;
12813   int val1 ;
12814   int ecode1 = 0 ;
12815   int val2 ;
12816   int ecode2 = 0 ;
12817   PyObject *swig_obj[2] ;
12818   int result;
12819 
12820   if (!SWIG_Python_UnpackTuple(args, "healpix_nested_to_xy", 2, 2, swig_obj)) SWIG_fail;
12821   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12822   if (!SWIG_IsOK(ecode1)) {
12823     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_nested_to_xy" "', argument " "1"" of type '" "int""'");
12824   }
12825   arg1 = (int)(val1);
12826   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12827   if (!SWIG_IsOK(ecode2)) {
12828     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_nested_to_xy" "', argument " "2"" of type '" "int""'");
12829   }
12830   arg2 = (int)(val2);
12831   result = (int)healpix_nested_to_xy(arg1,arg2);
12832   resultobj = SWIG_From_int((int)(result));
12833   return resultobj;
12834 fail:
12835   return NULL;
12836 }
12837 
12838 
_wrap_healpix_decompose_ring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12839 SWIGINTERN PyObject *_wrap_healpix_decompose_ring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12840   PyObject *resultobj = 0;
12841   int arg1 ;
12842   int arg2 ;
12843   int *arg3 = (int *) 0 ;
12844   int *arg4 = (int *) 0 ;
12845   int val1 ;
12846   int ecode1 = 0 ;
12847   int val2 ;
12848   int ecode2 = 0 ;
12849   void *argp3 = 0 ;
12850   int res3 = 0 ;
12851   void *argp4 = 0 ;
12852   int res4 = 0 ;
12853   PyObject *swig_obj[4] ;
12854 
12855   if (!SWIG_Python_UnpackTuple(args, "healpix_decompose_ring", 4, 4, swig_obj)) SWIG_fail;
12856   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12857   if (!SWIG_IsOK(ecode1)) {
12858     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_decompose_ring" "', argument " "1"" of type '" "int""'");
12859   }
12860   arg1 = (int)(val1);
12861   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12862   if (!SWIG_IsOK(ecode2)) {
12863     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_decompose_ring" "', argument " "2"" of type '" "int""'");
12864   }
12865   arg2 = (int)(val2);
12866   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
12867   if (!SWIG_IsOK(res3)) {
12868     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "healpix_decompose_ring" "', argument " "3"" of type '" "int *""'");
12869   }
12870   arg3 = (int *)(argp3);
12871   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
12872   if (!SWIG_IsOK(res4)) {
12873     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_decompose_ring" "', argument " "4"" of type '" "int *""'");
12874   }
12875   arg4 = (int *)(argp4);
12876   healpix_decompose_ring(arg1,arg2,arg3,arg4);
12877   resultobj = SWIG_Py_Void();
12878   return resultobj;
12879 fail:
12880   return NULL;
12881 }
12882 
12883 
_wrap_healpix_compose_ring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12884 SWIGINTERN PyObject *_wrap_healpix_compose_ring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12885   PyObject *resultobj = 0;
12886   int arg1 ;
12887   int arg2 ;
12888   int arg3 ;
12889   int val1 ;
12890   int ecode1 = 0 ;
12891   int val2 ;
12892   int ecode2 = 0 ;
12893   int val3 ;
12894   int ecode3 = 0 ;
12895   PyObject *swig_obj[3] ;
12896   int result;
12897 
12898   if (!SWIG_Python_UnpackTuple(args, "healpix_compose_ring", 3, 3, swig_obj)) SWIG_fail;
12899   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12900   if (!SWIG_IsOK(ecode1)) {
12901     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_compose_ring" "', argument " "1"" of type '" "int""'");
12902   }
12903   arg1 = (int)(val1);
12904   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12905   if (!SWIG_IsOK(ecode2)) {
12906     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_compose_ring" "', argument " "2"" of type '" "int""'");
12907   }
12908   arg2 = (int)(val2);
12909   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12910   if (!SWIG_IsOK(ecode3)) {
12911     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_compose_ring" "', argument " "3"" of type '" "int""'");
12912   }
12913   arg3 = (int)(val3);
12914   result = (int)healpix_compose_ring(arg1,arg2,arg3);
12915   resultobj = SWIG_From_int((int)(result));
12916   return resultobj;
12917 fail:
12918   return NULL;
12919 }
12920 
12921 
_wrap_healpix_decompose_xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12922 SWIGINTERN PyObject *_wrap_healpix_decompose_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12923   PyObject *resultobj = 0;
12924   int arg1 ;
12925   int *arg2 = (int *) 0 ;
12926   int *arg3 = (int *) 0 ;
12927   int *arg4 = (int *) 0 ;
12928   int arg5 ;
12929   int val1 ;
12930   int ecode1 = 0 ;
12931   void *argp2 = 0 ;
12932   int res2 = 0 ;
12933   void *argp3 = 0 ;
12934   int res3 = 0 ;
12935   void *argp4 = 0 ;
12936   int res4 = 0 ;
12937   int val5 ;
12938   int ecode5 = 0 ;
12939   PyObject *swig_obj[5] ;
12940 
12941   if (!SWIG_Python_UnpackTuple(args, "healpix_decompose_xy", 5, 5, swig_obj)) SWIG_fail;
12942   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
12943   if (!SWIG_IsOK(ecode1)) {
12944     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_decompose_xy" "', argument " "1"" of type '" "int""'");
12945   }
12946   arg1 = (int)(val1);
12947   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
12948   if (!SWIG_IsOK(res2)) {
12949     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "healpix_decompose_xy" "', argument " "2"" of type '" "int *""'");
12950   }
12951   arg2 = (int *)(argp2);
12952   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
12953   if (!SWIG_IsOK(res3)) {
12954     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "healpix_decompose_xy" "', argument " "3"" of type '" "int *""'");
12955   }
12956   arg3 = (int *)(argp3);
12957   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
12958   if (!SWIG_IsOK(res4)) {
12959     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_decompose_xy" "', argument " "4"" of type '" "int *""'");
12960   }
12961   arg4 = (int *)(argp4);
12962   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
12963   if (!SWIG_IsOK(ecode5)) {
12964     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "healpix_decompose_xy" "', argument " "5"" of type '" "int""'");
12965   }
12966   arg5 = (int)(val5);
12967   healpix_decompose_xy(arg1,arg2,arg3,arg4,arg5);
12968   resultobj = SWIG_Py_Void();
12969   return resultobj;
12970 fail:
12971   return NULL;
12972 }
12973 
12974 
_wrap_healpix_decompose_xyl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12975 SWIGINTERN PyObject *_wrap_healpix_decompose_xyl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12976   PyObject *resultobj = 0;
12977   int64_t arg1 ;
12978   int *arg2 = (int *) 0 ;
12979   int *arg3 = (int *) 0 ;
12980   int *arg4 = (int *) 0 ;
12981   int arg5 ;
12982   void *argp1 ;
12983   int res1 = 0 ;
12984   void *argp2 = 0 ;
12985   int res2 = 0 ;
12986   void *argp3 = 0 ;
12987   int res3 = 0 ;
12988   void *argp4 = 0 ;
12989   int res4 = 0 ;
12990   int val5 ;
12991   int ecode5 = 0 ;
12992   PyObject *swig_obj[5] ;
12993 
12994   if (!SWIG_Python_UnpackTuple(args, "healpix_decompose_xyl", 5, 5, swig_obj)) SWIG_fail;
12995   {
12996     res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int64_t,  0 );
12997     if (!SWIG_IsOK(res1)) {
12998       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "healpix_decompose_xyl" "', argument " "1"" of type '" "int64_t""'");
12999     }
13000     if (!argp1) {
13001       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "healpix_decompose_xyl" "', argument " "1"" of type '" "int64_t""'");
13002     } else {
13003       arg1 = *((int64_t *)(argp1));
13004     }
13005   }
13006   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
13007   if (!SWIG_IsOK(res2)) {
13008     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "healpix_decompose_xyl" "', argument " "2"" of type '" "int *""'");
13009   }
13010   arg2 = (int *)(argp2);
13011   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
13012   if (!SWIG_IsOK(res3)) {
13013     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "healpix_decompose_xyl" "', argument " "3"" of type '" "int *""'");
13014   }
13015   arg3 = (int *)(argp3);
13016   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
13017   if (!SWIG_IsOK(res4)) {
13018     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_decompose_xyl" "', argument " "4"" of type '" "int *""'");
13019   }
13020   arg4 = (int *)(argp4);
13021   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
13022   if (!SWIG_IsOK(ecode5)) {
13023     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "healpix_decompose_xyl" "', argument " "5"" of type '" "int""'");
13024   }
13025   arg5 = (int)(val5);
13026   healpix_decompose_xyl(arg1,arg2,arg3,arg4,arg5);
13027   resultobj = SWIG_Py_Void();
13028   return resultobj;
13029 fail:
13030   return NULL;
13031 }
13032 
13033 
_wrap_healpix_compose_xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13034 SWIGINTERN PyObject *_wrap_healpix_compose_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13035   PyObject *resultobj = 0;
13036   int arg1 ;
13037   int arg2 ;
13038   int arg3 ;
13039   int arg4 ;
13040   int val1 ;
13041   int ecode1 = 0 ;
13042   int val2 ;
13043   int ecode2 = 0 ;
13044   int val3 ;
13045   int ecode3 = 0 ;
13046   int val4 ;
13047   int ecode4 = 0 ;
13048   PyObject *swig_obj[4] ;
13049   int result;
13050 
13051   if (!SWIG_Python_UnpackTuple(args, "healpix_compose_xy", 4, 4, swig_obj)) SWIG_fail;
13052   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
13053   if (!SWIG_IsOK(ecode1)) {
13054     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_compose_xy" "', argument " "1"" of type '" "int""'");
13055   }
13056   arg1 = (int)(val1);
13057   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13058   if (!SWIG_IsOK(ecode2)) {
13059     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_compose_xy" "', argument " "2"" of type '" "int""'");
13060   }
13061   arg2 = (int)(val2);
13062   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13063   if (!SWIG_IsOK(ecode3)) {
13064     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_compose_xy" "', argument " "3"" of type '" "int""'");
13065   }
13066   arg3 = (int)(val3);
13067   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13068   if (!SWIG_IsOK(ecode4)) {
13069     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_compose_xy" "', argument " "4"" of type '" "int""'");
13070   }
13071   arg4 = (int)(val4);
13072   result = (int)healpix_compose_xy(arg1,arg2,arg3,arg4);
13073   resultobj = SWIG_From_int((int)(result));
13074   return resultobj;
13075 fail:
13076   return NULL;
13077 }
13078 
13079 
_wrap_healpix_compose_xyl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13080 SWIGINTERN PyObject *_wrap_healpix_compose_xyl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13081   PyObject *resultobj = 0;
13082   int arg1 ;
13083   int arg2 ;
13084   int arg3 ;
13085   int arg4 ;
13086   int val1 ;
13087   int ecode1 = 0 ;
13088   int val2 ;
13089   int ecode2 = 0 ;
13090   int val3 ;
13091   int ecode3 = 0 ;
13092   int val4 ;
13093   int ecode4 = 0 ;
13094   PyObject *swig_obj[4] ;
13095   int64_t result;
13096 
13097   if (!SWIG_Python_UnpackTuple(args, "healpix_compose_xyl", 4, 4, swig_obj)) SWIG_fail;
13098   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
13099   if (!SWIG_IsOK(ecode1)) {
13100     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_compose_xyl" "', argument " "1"" of type '" "int""'");
13101   }
13102   arg1 = (int)(val1);
13103   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13104   if (!SWIG_IsOK(ecode2)) {
13105     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_compose_xyl" "', argument " "2"" of type '" "int""'");
13106   }
13107   arg2 = (int)(val2);
13108   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13109   if (!SWIG_IsOK(ecode3)) {
13110     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_compose_xyl" "', argument " "3"" of type '" "int""'");
13111   }
13112   arg3 = (int)(val3);
13113   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13114   if (!SWIG_IsOK(ecode4)) {
13115     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_compose_xyl" "', argument " "4"" of type '" "int""'");
13116   }
13117   arg4 = (int)(val4);
13118   result = healpix_compose_xyl(arg1,arg2,arg3,arg4);
13119   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13120   return resultobj;
13121 fail:
13122   return NULL;
13123 }
13124 
13125 
_wrap_healpix_convert_xy_nside(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13126 SWIGINTERN PyObject *_wrap_healpix_convert_xy_nside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13127   PyObject *resultobj = 0;
13128   int arg1 ;
13129   int arg2 ;
13130   int arg3 ;
13131   int arg4 ;
13132   int *arg5 = (int *) 0 ;
13133   int *arg6 = (int *) 0 ;
13134   int val1 ;
13135   int ecode1 = 0 ;
13136   int val2 ;
13137   int ecode2 = 0 ;
13138   int val3 ;
13139   int ecode3 = 0 ;
13140   int val4 ;
13141   int ecode4 = 0 ;
13142   void *argp5 = 0 ;
13143   int res5 = 0 ;
13144   void *argp6 = 0 ;
13145   int res6 = 0 ;
13146   PyObject *swig_obj[6] ;
13147 
13148   if (!SWIG_Python_UnpackTuple(args, "healpix_convert_xy_nside", 6, 6, swig_obj)) SWIG_fail;
13149   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
13150   if (!SWIG_IsOK(ecode1)) {
13151     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_convert_xy_nside" "', argument " "1"" of type '" "int""'");
13152   }
13153   arg1 = (int)(val1);
13154   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13155   if (!SWIG_IsOK(ecode2)) {
13156     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_convert_xy_nside" "', argument " "2"" of type '" "int""'");
13157   }
13158   arg2 = (int)(val2);
13159   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13160   if (!SWIG_IsOK(ecode3)) {
13161     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_convert_xy_nside" "', argument " "3"" of type '" "int""'");
13162   }
13163   arg3 = (int)(val3);
13164   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13165   if (!SWIG_IsOK(ecode4)) {
13166     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_convert_xy_nside" "', argument " "4"" of type '" "int""'");
13167   }
13168   arg4 = (int)(val4);
13169   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
13170   if (!SWIG_IsOK(res5)) {
13171     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "healpix_convert_xy_nside" "', argument " "5"" of type '" "int *""'");
13172   }
13173   arg5 = (int *)(argp5);
13174   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 |  0 );
13175   if (!SWIG_IsOK(res6)) {
13176     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "healpix_convert_xy_nside" "', argument " "6"" of type '" "int *""'");
13177   }
13178   arg6 = (int *)(argp6);
13179   healpix_convert_xy_nside(arg1,arg2,arg3,arg4,arg5,arg6);
13180   resultobj = SWIG_Py_Void();
13181   return resultobj;
13182 fail:
13183   return NULL;
13184 }
13185 
13186 
_wrap_healpix_convert_nside(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13187 SWIGINTERN PyObject *_wrap_healpix_convert_nside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13188   PyObject *resultobj = 0;
13189   int arg1 ;
13190   int arg2 ;
13191   int arg3 ;
13192   int *arg4 = (int *) 0 ;
13193   int val1 ;
13194   int ecode1 = 0 ;
13195   int val2 ;
13196   int ecode2 = 0 ;
13197   int val3 ;
13198   int ecode3 = 0 ;
13199   void *argp4 = 0 ;
13200   int res4 = 0 ;
13201   PyObject *swig_obj[4] ;
13202 
13203   if (!SWIG_Python_UnpackTuple(args, "healpix_convert_nside", 4, 4, swig_obj)) SWIG_fail;
13204   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
13205   if (!SWIG_IsOK(ecode1)) {
13206     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_convert_nside" "', argument " "1"" of type '" "int""'");
13207   }
13208   arg1 = (int)(val1);
13209   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13210   if (!SWIG_IsOK(ecode2)) {
13211     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_convert_nside" "', argument " "2"" of type '" "int""'");
13212   }
13213   arg2 = (int)(val2);
13214   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13215   if (!SWIG_IsOK(ecode3)) {
13216     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_convert_nside" "', argument " "3"" of type '" "int""'");
13217   }
13218   arg3 = (int)(val3);
13219   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
13220   if (!SWIG_IsOK(res4)) {
13221     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_convert_nside" "', argument " "4"" of type '" "int *""'");
13222   }
13223   arg4 = (int *)(argp4);
13224   healpix_convert_nside(arg1,arg2,arg3,arg4);
13225   resultobj = SWIG_Py_Void();
13226   return resultobj;
13227 fail:
13228   return NULL;
13229 }
13230 
13231 
_wrap_radectohealpix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13232 SWIGINTERN PyObject *_wrap_radectohealpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13233   PyObject *resultobj = 0;
13234   double arg1 ;
13235   double arg2 ;
13236   int arg3 ;
13237   double val1 ;
13238   int ecode1 = 0 ;
13239   double val2 ;
13240   int ecode2 = 0 ;
13241   int val3 ;
13242   int ecode3 = 0 ;
13243   PyObject *swig_obj[3] ;
13244   int result;
13245 
13246   if (!SWIG_Python_UnpackTuple(args, "radectohealpix", 3, 3, swig_obj)) SWIG_fail;
13247   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13248   if (!SWIG_IsOK(ecode1)) {
13249     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radectohealpix" "', argument " "1"" of type '" "double""'");
13250   }
13251   arg1 = (double)(val1);
13252   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13253   if (!SWIG_IsOK(ecode2)) {
13254     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radectohealpix" "', argument " "2"" of type '" "double""'");
13255   }
13256   arg2 = (double)(val2);
13257   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13258   if (!SWIG_IsOK(ecode3)) {
13259     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radectohealpix" "', argument " "3"" of type '" "int""'");
13260   }
13261   arg3 = (int)(val3);
13262   result = (int)radectohealpix(arg1,arg2,arg3);
13263   resultobj = SWIG_From_int((int)(result));
13264   return resultobj;
13265 fail:
13266   return NULL;
13267 }
13268 
13269 
_wrap_radectohealpixf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13270 SWIGINTERN PyObject *_wrap_radectohealpixf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13271   PyObject *resultobj = 0;
13272   double arg1 ;
13273   double arg2 ;
13274   int arg3 ;
13275   double *arg4 = (double *) 0 ;
13276   double *arg5 = (double *) 0 ;
13277   double val1 ;
13278   int ecode1 = 0 ;
13279   double val2 ;
13280   int ecode2 = 0 ;
13281   int val3 ;
13282   int ecode3 = 0 ;
13283   double temp4 ;
13284   int res4 = SWIG_TMPOBJ ;
13285   double temp5 ;
13286   int res5 = SWIG_TMPOBJ ;
13287   PyObject *swig_obj[3] ;
13288   int result;
13289 
13290   arg4 = &temp4;
13291   arg5 = &temp5;
13292   if (!SWIG_Python_UnpackTuple(args, "radectohealpixf", 3, 3, swig_obj)) SWIG_fail;
13293   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13294   if (!SWIG_IsOK(ecode1)) {
13295     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radectohealpixf" "', argument " "1"" of type '" "double""'");
13296   }
13297   arg1 = (double)(val1);
13298   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13299   if (!SWIG_IsOK(ecode2)) {
13300     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radectohealpixf" "', argument " "2"" of type '" "double""'");
13301   }
13302   arg2 = (double)(val2);
13303   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13304   if (!SWIG_IsOK(ecode3)) {
13305     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radectohealpixf" "', argument " "3"" of type '" "int""'");
13306   }
13307   arg3 = (int)(val3);
13308   result = (int)radectohealpixf(arg1,arg2,arg3,arg4,arg5);
13309   resultobj = SWIG_From_int((int)(result));
13310   if (SWIG_IsTmpObj(res4)) {
13311     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
13312   } else {
13313     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13314     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
13315   }
13316   if (SWIG_IsTmpObj(res5)) {
13317     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
13318   } else {
13319     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13320     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
13321   }
13322   return resultobj;
13323 fail:
13324   return NULL;
13325 }
13326 
13327 
_wrap_radectohealpixl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13328 SWIGINTERN PyObject *_wrap_radectohealpixl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13329   PyObject *resultobj = 0;
13330   double arg1 ;
13331   double arg2 ;
13332   int arg3 ;
13333   double val1 ;
13334   int ecode1 = 0 ;
13335   double val2 ;
13336   int ecode2 = 0 ;
13337   int val3 ;
13338   int ecode3 = 0 ;
13339   PyObject *swig_obj[3] ;
13340   int64_t result;
13341 
13342   if (!SWIG_Python_UnpackTuple(args, "radectohealpixl", 3, 3, swig_obj)) SWIG_fail;
13343   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13344   if (!SWIG_IsOK(ecode1)) {
13345     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radectohealpixl" "', argument " "1"" of type '" "double""'");
13346   }
13347   arg1 = (double)(val1);
13348   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13349   if (!SWIG_IsOK(ecode2)) {
13350     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radectohealpixl" "', argument " "2"" of type '" "double""'");
13351   }
13352   arg2 = (double)(val2);
13353   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13354   if (!SWIG_IsOK(ecode3)) {
13355     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radectohealpixl" "', argument " "3"" of type '" "int""'");
13356   }
13357   arg3 = (int)(val3);
13358   result = radectohealpixl(arg1,arg2,arg3);
13359   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13360   return resultobj;
13361 fail:
13362   return NULL;
13363 }
13364 
13365 
_wrap_radectohealpixlf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13366 SWIGINTERN PyObject *_wrap_radectohealpixlf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13367   PyObject *resultobj = 0;
13368   double arg1 ;
13369   double arg2 ;
13370   int arg3 ;
13371   double *arg4 = (double *) 0 ;
13372   double *arg5 = (double *) 0 ;
13373   double val1 ;
13374   int ecode1 = 0 ;
13375   double val2 ;
13376   int ecode2 = 0 ;
13377   int val3 ;
13378   int ecode3 = 0 ;
13379   double temp4 ;
13380   int res4 = SWIG_TMPOBJ ;
13381   double temp5 ;
13382   int res5 = SWIG_TMPOBJ ;
13383   PyObject *swig_obj[3] ;
13384   int64_t result;
13385 
13386   arg4 = &temp4;
13387   arg5 = &temp5;
13388   if (!SWIG_Python_UnpackTuple(args, "radectohealpixlf", 3, 3, swig_obj)) SWIG_fail;
13389   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13390   if (!SWIG_IsOK(ecode1)) {
13391     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radectohealpixlf" "', argument " "1"" of type '" "double""'");
13392   }
13393   arg1 = (double)(val1);
13394   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13395   if (!SWIG_IsOK(ecode2)) {
13396     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radectohealpixlf" "', argument " "2"" of type '" "double""'");
13397   }
13398   arg2 = (double)(val2);
13399   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13400   if (!SWIG_IsOK(ecode3)) {
13401     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radectohealpixlf" "', argument " "3"" of type '" "int""'");
13402   }
13403   arg3 = (int)(val3);
13404   result = radectohealpixlf(arg1,arg2,arg3,arg4,arg5);
13405   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13406   if (SWIG_IsTmpObj(res4)) {
13407     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
13408   } else {
13409     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13410     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
13411   }
13412   if (SWIG_IsTmpObj(res5)) {
13413     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
13414   } else {
13415     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13416     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
13417   }
13418   return resultobj;
13419 fail:
13420   return NULL;
13421 }
13422 
13423 
_wrap_radecdegtohealpix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13424 SWIGINTERN PyObject *_wrap_radecdegtohealpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425   PyObject *resultobj = 0;
13426   double arg1 ;
13427   double arg2 ;
13428   int arg3 ;
13429   double val1 ;
13430   int ecode1 = 0 ;
13431   double val2 ;
13432   int ecode2 = 0 ;
13433   int val3 ;
13434   int ecode3 = 0 ;
13435   PyObject *swig_obj[3] ;
13436   int result;
13437 
13438   if (!SWIG_Python_UnpackTuple(args, "radecdegtohealpix", 3, 3, swig_obj)) SWIG_fail;
13439   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13440   if (!SWIG_IsOK(ecode1)) {
13441     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecdegtohealpix" "', argument " "1"" of type '" "double""'");
13442   }
13443   arg1 = (double)(val1);
13444   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13445   if (!SWIG_IsOK(ecode2)) {
13446     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecdegtohealpix" "', argument " "2"" of type '" "double""'");
13447   }
13448   arg2 = (double)(val2);
13449   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13450   if (!SWIG_IsOK(ecode3)) {
13451     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radecdegtohealpix" "', argument " "3"" of type '" "int""'");
13452   }
13453   arg3 = (int)(val3);
13454   result = (int)radecdegtohealpix(arg1,arg2,arg3);
13455   resultobj = SWIG_From_int((int)(result));
13456   return resultobj;
13457 fail:
13458   return NULL;
13459 }
13460 
13461 
_wrap_radecdegtohealpixf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13462 SWIGINTERN PyObject *_wrap_radecdegtohealpixf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13463   PyObject *resultobj = 0;
13464   double arg1 ;
13465   double arg2 ;
13466   int arg3 ;
13467   double *arg4 = (double *) 0 ;
13468   double *arg5 = (double *) 0 ;
13469   double val1 ;
13470   int ecode1 = 0 ;
13471   double val2 ;
13472   int ecode2 = 0 ;
13473   int val3 ;
13474   int ecode3 = 0 ;
13475   double temp4 ;
13476   int res4 = SWIG_TMPOBJ ;
13477   double temp5 ;
13478   int res5 = SWIG_TMPOBJ ;
13479   PyObject *swig_obj[3] ;
13480   int result;
13481 
13482   arg4 = &temp4;
13483   arg5 = &temp5;
13484   if (!SWIG_Python_UnpackTuple(args, "radecdegtohealpixf", 3, 3, swig_obj)) SWIG_fail;
13485   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13486   if (!SWIG_IsOK(ecode1)) {
13487     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecdegtohealpixf" "', argument " "1"" of type '" "double""'");
13488   }
13489   arg1 = (double)(val1);
13490   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13491   if (!SWIG_IsOK(ecode2)) {
13492     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecdegtohealpixf" "', argument " "2"" of type '" "double""'");
13493   }
13494   arg2 = (double)(val2);
13495   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13496   if (!SWIG_IsOK(ecode3)) {
13497     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radecdegtohealpixf" "', argument " "3"" of type '" "int""'");
13498   }
13499   arg3 = (int)(val3);
13500   result = (int)radecdegtohealpixf(arg1,arg2,arg3,arg4,arg5);
13501   resultobj = SWIG_From_int((int)(result));
13502   if (SWIG_IsTmpObj(res4)) {
13503     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
13504   } else {
13505     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13506     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
13507   }
13508   if (SWIG_IsTmpObj(res5)) {
13509     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
13510   } else {
13511     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13512     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
13513   }
13514   return resultobj;
13515 fail:
13516   return NULL;
13517 }
13518 
13519 
_wrap_radecdegtohealpixl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13520 SWIGINTERN PyObject *_wrap_radecdegtohealpixl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13521   PyObject *resultobj = 0;
13522   double arg1 ;
13523   double arg2 ;
13524   int arg3 ;
13525   double val1 ;
13526   int ecode1 = 0 ;
13527   double val2 ;
13528   int ecode2 = 0 ;
13529   int val3 ;
13530   int ecode3 = 0 ;
13531   PyObject *swig_obj[3] ;
13532   int64_t result;
13533 
13534   if (!SWIG_Python_UnpackTuple(args, "radecdegtohealpixl", 3, 3, swig_obj)) SWIG_fail;
13535   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13536   if (!SWIG_IsOK(ecode1)) {
13537     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecdegtohealpixl" "', argument " "1"" of type '" "double""'");
13538   }
13539   arg1 = (double)(val1);
13540   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13541   if (!SWIG_IsOK(ecode2)) {
13542     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecdegtohealpixl" "', argument " "2"" of type '" "double""'");
13543   }
13544   arg2 = (double)(val2);
13545   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13546   if (!SWIG_IsOK(ecode3)) {
13547     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radecdegtohealpixl" "', argument " "3"" of type '" "int""'");
13548   }
13549   arg3 = (int)(val3);
13550   result = radecdegtohealpixl(arg1,arg2,arg3);
13551   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13552   return resultobj;
13553 fail:
13554   return NULL;
13555 }
13556 
13557 
_wrap_radecdegtohealpixlf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13558 SWIGINTERN PyObject *_wrap_radecdegtohealpixlf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13559   PyObject *resultobj = 0;
13560   double arg1 ;
13561   double arg2 ;
13562   int arg3 ;
13563   double *arg4 = (double *) 0 ;
13564   double *arg5 = (double *) 0 ;
13565   double val1 ;
13566   int ecode1 = 0 ;
13567   double val2 ;
13568   int ecode2 = 0 ;
13569   int val3 ;
13570   int ecode3 = 0 ;
13571   double temp4 ;
13572   int res4 = SWIG_TMPOBJ ;
13573   double temp5 ;
13574   int res5 = SWIG_TMPOBJ ;
13575   PyObject *swig_obj[3] ;
13576   int64_t result;
13577 
13578   arg4 = &temp4;
13579   arg5 = &temp5;
13580   if (!SWIG_Python_UnpackTuple(args, "radecdegtohealpixlf", 3, 3, swig_obj)) SWIG_fail;
13581   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13582   if (!SWIG_IsOK(ecode1)) {
13583     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecdegtohealpixlf" "', argument " "1"" of type '" "double""'");
13584   }
13585   arg1 = (double)(val1);
13586   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13587   if (!SWIG_IsOK(ecode2)) {
13588     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecdegtohealpixlf" "', argument " "2"" of type '" "double""'");
13589   }
13590   arg2 = (double)(val2);
13591   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13592   if (!SWIG_IsOK(ecode3)) {
13593     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radecdegtohealpixlf" "', argument " "3"" of type '" "int""'");
13594   }
13595   arg3 = (int)(val3);
13596   result = radecdegtohealpixlf(arg1,arg2,arg3,arg4,arg5);
13597   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13598   if (SWIG_IsTmpObj(res4)) {
13599     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
13600   } else {
13601     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13602     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
13603   }
13604   if (SWIG_IsTmpObj(res5)) {
13605     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
13606   } else {
13607     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13608     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
13609   }
13610   return resultobj;
13611 fail:
13612   return NULL;
13613 }
13614 
13615 
_wrap_xyztohealpix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13616 SWIGINTERN PyObject *_wrap_xyztohealpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13617   PyObject *resultobj = 0;
13618   double arg1 ;
13619   double arg2 ;
13620   double arg3 ;
13621   int arg4 ;
13622   double val1 ;
13623   int ecode1 = 0 ;
13624   double val2 ;
13625   int ecode2 = 0 ;
13626   double val3 ;
13627   int ecode3 = 0 ;
13628   int val4 ;
13629   int ecode4 = 0 ;
13630   PyObject *swig_obj[4] ;
13631   int result;
13632 
13633   if (!SWIG_Python_UnpackTuple(args, "xyztohealpix", 4, 4, swig_obj)) SWIG_fail;
13634   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13635   if (!SWIG_IsOK(ecode1)) {
13636     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "xyztohealpix" "', argument " "1"" of type '" "double""'");
13637   }
13638   arg1 = (double)(val1);
13639   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13640   if (!SWIG_IsOK(ecode2)) {
13641     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyztohealpix" "', argument " "2"" of type '" "double""'");
13642   }
13643   arg2 = (double)(val2);
13644   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
13645   if (!SWIG_IsOK(ecode3)) {
13646     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "xyztohealpix" "', argument " "3"" of type '" "double""'");
13647   }
13648   arg3 = (double)(val3);
13649   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13650   if (!SWIG_IsOK(ecode4)) {
13651     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "xyztohealpix" "', argument " "4"" of type '" "int""'");
13652   }
13653   arg4 = (int)(val4);
13654   result = (int)xyztohealpix(arg1,arg2,arg3,arg4);
13655   resultobj = SWIG_From_int((int)(result));
13656   return resultobj;
13657 fail:
13658   return NULL;
13659 }
13660 
13661 
_wrap_xyztohealpixl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13662 SWIGINTERN PyObject *_wrap_xyztohealpixl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13663   PyObject *resultobj = 0;
13664   double arg1 ;
13665   double arg2 ;
13666   double arg3 ;
13667   int arg4 ;
13668   double val1 ;
13669   int ecode1 = 0 ;
13670   double val2 ;
13671   int ecode2 = 0 ;
13672   double val3 ;
13673   int ecode3 = 0 ;
13674   int val4 ;
13675   int ecode4 = 0 ;
13676   PyObject *swig_obj[4] ;
13677   int64_t result;
13678 
13679   if (!SWIG_Python_UnpackTuple(args, "xyztohealpixl", 4, 4, swig_obj)) SWIG_fail;
13680   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13681   if (!SWIG_IsOK(ecode1)) {
13682     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "xyztohealpixl" "', argument " "1"" of type '" "double""'");
13683   }
13684   arg1 = (double)(val1);
13685   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13686   if (!SWIG_IsOK(ecode2)) {
13687     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyztohealpixl" "', argument " "2"" of type '" "double""'");
13688   }
13689   arg2 = (double)(val2);
13690   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
13691   if (!SWIG_IsOK(ecode3)) {
13692     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "xyztohealpixl" "', argument " "3"" of type '" "double""'");
13693   }
13694   arg3 = (double)(val3);
13695   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13696   if (!SWIG_IsOK(ecode4)) {
13697     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "xyztohealpixl" "', argument " "4"" of type '" "int""'");
13698   }
13699   arg4 = (int)(val4);
13700   result = xyztohealpixl(arg1,arg2,arg3,arg4);
13701   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13702   return resultobj;
13703 fail:
13704   return NULL;
13705 }
13706 
13707 
_wrap_xyztohealpixf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13708 SWIGINTERN PyObject *_wrap_xyztohealpixf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13709   PyObject *resultobj = 0;
13710   double arg1 ;
13711   double arg2 ;
13712   double arg3 ;
13713   int arg4 ;
13714   double *arg5 = (double *) 0 ;
13715   double *arg6 = (double *) 0 ;
13716   double val1 ;
13717   int ecode1 = 0 ;
13718   double val2 ;
13719   int ecode2 = 0 ;
13720   double val3 ;
13721   int ecode3 = 0 ;
13722   int val4 ;
13723   int ecode4 = 0 ;
13724   double temp5 ;
13725   int res5 = SWIG_TMPOBJ ;
13726   double temp6 ;
13727   int res6 = SWIG_TMPOBJ ;
13728   PyObject *swig_obj[4] ;
13729   int result;
13730 
13731   arg5 = &temp5;
13732   arg6 = &temp6;
13733   if (!SWIG_Python_UnpackTuple(args, "xyztohealpixf", 4, 4, swig_obj)) SWIG_fail;
13734   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13735   if (!SWIG_IsOK(ecode1)) {
13736     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "xyztohealpixf" "', argument " "1"" of type '" "double""'");
13737   }
13738   arg1 = (double)(val1);
13739   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13740   if (!SWIG_IsOK(ecode2)) {
13741     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyztohealpixf" "', argument " "2"" of type '" "double""'");
13742   }
13743   arg2 = (double)(val2);
13744   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
13745   if (!SWIG_IsOK(ecode3)) {
13746     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "xyztohealpixf" "', argument " "3"" of type '" "double""'");
13747   }
13748   arg3 = (double)(val3);
13749   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13750   if (!SWIG_IsOK(ecode4)) {
13751     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "xyztohealpixf" "', argument " "4"" of type '" "int""'");
13752   }
13753   arg4 = (int)(val4);
13754   result = (int)xyztohealpixf(arg1,arg2,arg3,arg4,arg5,arg6);
13755   resultobj = SWIG_From_int((int)(result));
13756   if (SWIG_IsTmpObj(res5)) {
13757     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
13758   } else {
13759     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13760     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
13761   }
13762   if (SWIG_IsTmpObj(res6)) {
13763     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
13764   } else {
13765     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13766     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
13767   }
13768   return resultobj;
13769 fail:
13770   return NULL;
13771 }
13772 
13773 
_wrap_xyztohealpixlf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13774 SWIGINTERN PyObject *_wrap_xyztohealpixlf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13775   PyObject *resultobj = 0;
13776   double arg1 ;
13777   double arg2 ;
13778   double arg3 ;
13779   int arg4 ;
13780   double *arg5 = (double *) 0 ;
13781   double *arg6 = (double *) 0 ;
13782   double val1 ;
13783   int ecode1 = 0 ;
13784   double val2 ;
13785   int ecode2 = 0 ;
13786   double val3 ;
13787   int ecode3 = 0 ;
13788   int val4 ;
13789   int ecode4 = 0 ;
13790   double temp5 ;
13791   int res5 = SWIG_TMPOBJ ;
13792   double temp6 ;
13793   int res6 = SWIG_TMPOBJ ;
13794   PyObject *swig_obj[4] ;
13795   int64_t result;
13796 
13797   arg5 = &temp5;
13798   arg6 = &temp6;
13799   if (!SWIG_Python_UnpackTuple(args, "xyztohealpixlf", 4, 4, swig_obj)) SWIG_fail;
13800   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
13801   if (!SWIG_IsOK(ecode1)) {
13802     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "xyztohealpixlf" "', argument " "1"" of type '" "double""'");
13803   }
13804   arg1 = (double)(val1);
13805   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13806   if (!SWIG_IsOK(ecode2)) {
13807     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyztohealpixlf" "', argument " "2"" of type '" "double""'");
13808   }
13809   arg2 = (double)(val2);
13810   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
13811   if (!SWIG_IsOK(ecode3)) {
13812     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "xyztohealpixlf" "', argument " "3"" of type '" "double""'");
13813   }
13814   arg3 = (double)(val3);
13815   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
13816   if (!SWIG_IsOK(ecode4)) {
13817     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "xyztohealpixlf" "', argument " "4"" of type '" "int""'");
13818   }
13819   arg4 = (int)(val4);
13820   result = xyztohealpixlf(arg1,arg2,arg3,arg4,arg5,arg6);
13821   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13822   if (SWIG_IsTmpObj(res5)) {
13823     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
13824   } else {
13825     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13826     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
13827   }
13828   if (SWIG_IsTmpObj(res6)) {
13829     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
13830   } else {
13831     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13832     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
13833   }
13834   return resultobj;
13835 fail:
13836   return NULL;
13837 }
13838 
13839 
_wrap_xyzarrtohealpix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13840 SWIGINTERN PyObject *_wrap_xyzarrtohealpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13841   PyObject *resultobj = 0;
13842   double *arg1 = (double *) 0 ;
13843   int arg2 ;
13844   void *argp1 = 0 ;
13845   int res1 = 0 ;
13846   int val2 ;
13847   int ecode2 = 0 ;
13848   PyObject *swig_obj[2] ;
13849   int result;
13850 
13851   if (!SWIG_Python_UnpackTuple(args, "xyzarrtohealpix", 2, 2, swig_obj)) SWIG_fail;
13852   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
13853   if (!SWIG_IsOK(res1)) {
13854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarrtohealpix" "', argument " "1"" of type '" "double const *""'");
13855   }
13856   arg1 = (double *)(argp1);
13857   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13858   if (!SWIG_IsOK(ecode2)) {
13859     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyzarrtohealpix" "', argument " "2"" of type '" "int""'");
13860   }
13861   arg2 = (int)(val2);
13862   result = (int)xyzarrtohealpix((double const *)arg1,arg2);
13863   resultobj = SWIG_From_int((int)(result));
13864   return resultobj;
13865 fail:
13866   return NULL;
13867 }
13868 
13869 
_wrap_xyzarrtohealpixl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13870 SWIGINTERN PyObject *_wrap_xyzarrtohealpixl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13871   PyObject *resultobj = 0;
13872   double *arg1 = (double *) 0 ;
13873   int arg2 ;
13874   void *argp1 = 0 ;
13875   int res1 = 0 ;
13876   int val2 ;
13877   int ecode2 = 0 ;
13878   PyObject *swig_obj[2] ;
13879   int64_t result;
13880 
13881   if (!SWIG_Python_UnpackTuple(args, "xyzarrtohealpixl", 2, 2, swig_obj)) SWIG_fail;
13882   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
13883   if (!SWIG_IsOK(res1)) {
13884     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarrtohealpixl" "', argument " "1"" of type '" "double const *""'");
13885   }
13886   arg1 = (double *)(argp1);
13887   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13888   if (!SWIG_IsOK(ecode2)) {
13889     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyzarrtohealpixl" "', argument " "2"" of type '" "int""'");
13890   }
13891   arg2 = (int)(val2);
13892   result = xyzarrtohealpixl((double const *)arg1,arg2);
13893   resultobj = SWIG_NewPointerObj((int64_t *)memcpy((int64_t *)calloc(1,sizeof(int64_t)),&result,sizeof(int64_t)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
13894   return resultobj;
13895 fail:
13896   return NULL;
13897 }
13898 
13899 
_wrap_xyzarrtohealpixf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13900 SWIGINTERN PyObject *_wrap_xyzarrtohealpixf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13901   PyObject *resultobj = 0;
13902   double *arg1 = (double *) 0 ;
13903   int arg2 ;
13904   double *arg3 = (double *) 0 ;
13905   double *arg4 = (double *) 0 ;
13906   void *argp1 = 0 ;
13907   int res1 = 0 ;
13908   int val2 ;
13909   int ecode2 = 0 ;
13910   double temp3 ;
13911   int res3 = SWIG_TMPOBJ ;
13912   double temp4 ;
13913   int res4 = SWIG_TMPOBJ ;
13914   PyObject *swig_obj[2] ;
13915   int result;
13916 
13917   arg3 = &temp3;
13918   arg4 = &temp4;
13919   if (!SWIG_Python_UnpackTuple(args, "xyzarrtohealpixf", 2, 2, swig_obj)) SWIG_fail;
13920   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
13921   if (!SWIG_IsOK(res1)) {
13922     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarrtohealpixf" "', argument " "1"" of type '" "double const *""'");
13923   }
13924   arg1 = (double *)(argp1);
13925   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13926   if (!SWIG_IsOK(ecode2)) {
13927     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyzarrtohealpixf" "', argument " "2"" of type '" "int""'");
13928   }
13929   arg2 = (int)(val2);
13930   result = (int)xyzarrtohealpixf((double const *)arg1,arg2,arg3,arg4);
13931   resultobj = SWIG_From_int((int)(result));
13932   if (SWIG_IsTmpObj(res3)) {
13933     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
13934   } else {
13935     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13936     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
13937   }
13938   if (SWIG_IsTmpObj(res4)) {
13939     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
13940   } else {
13941     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
13942     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
13943   }
13944   return resultobj;
13945 fail:
13946   return NULL;
13947 }
13948 
13949 
_wrap_healpix_to_xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13950 SWIGINTERN PyObject *_wrap_healpix_to_xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13951   PyObject *resultobj = 0;
13952   int arg1 ;
13953   int arg2 ;
13954   double arg3 ;
13955   double arg4 ;
13956   double *arg5 = (double *) 0 ;
13957   double *arg6 = (double *) 0 ;
13958   double *arg7 = (double *) 0 ;
13959   int val1 ;
13960   int ecode1 = 0 ;
13961   int val2 ;
13962   int ecode2 = 0 ;
13963   double val3 ;
13964   int ecode3 = 0 ;
13965   double val4 ;
13966   int ecode4 = 0 ;
13967   double temp5 ;
13968   int res5 = SWIG_TMPOBJ ;
13969   double temp6 ;
13970   int res6 = SWIG_TMPOBJ ;
13971   double temp7 ;
13972   int res7 = SWIG_TMPOBJ ;
13973   PyObject *swig_obj[4] ;
13974 
13975   arg5 = &temp5;
13976   arg6 = &temp6;
13977   arg7 = &temp7;
13978   if (!SWIG_Python_UnpackTuple(args, "healpix_to_xyz", 4, 4, swig_obj)) SWIG_fail;
13979   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
13980   if (!SWIG_IsOK(ecode1)) {
13981     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_to_xyz" "', argument " "1"" of type '" "int""'");
13982   }
13983   arg1 = (int)(val1);
13984   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13985   if (!SWIG_IsOK(ecode2)) {
13986     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_to_xyz" "', argument " "2"" of type '" "int""'");
13987   }
13988   arg2 = (int)(val2);
13989   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
13990   if (!SWIG_IsOK(ecode3)) {
13991     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_to_xyz" "', argument " "3"" of type '" "double""'");
13992   }
13993   arg3 = (double)(val3);
13994   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
13995   if (!SWIG_IsOK(ecode4)) {
13996     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_to_xyz" "', argument " "4"" of type '" "double""'");
13997   }
13998   arg4 = (double)(val4);
13999   healpix_to_xyz(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
14000   resultobj = SWIG_Py_Void();
14001   if (SWIG_IsTmpObj(res5)) {
14002     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
14003   } else {
14004     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14005     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
14006   }
14007   if (SWIG_IsTmpObj(res6)) {
14008     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
14009   } else {
14010     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14011     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
14012   }
14013   if (SWIG_IsTmpObj(res7)) {
14014     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
14015   } else {
14016     int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14017     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
14018   }
14019   return resultobj;
14020 fail:
14021   return NULL;
14022 }
14023 
14024 
_wrap_healpix_to_xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14025 SWIGINTERN PyObject *_wrap_healpix_to_xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14026   PyObject *resultobj = 0;
14027   int arg1 ;
14028   int arg2 ;
14029   double arg3 ;
14030   double arg4 ;
14031   double *arg5 = (double *) 0 ;
14032   int val1 ;
14033   int ecode1 = 0 ;
14034   int val2 ;
14035   int ecode2 = 0 ;
14036   double val3 ;
14037   int ecode3 = 0 ;
14038   double val4 ;
14039   int ecode4 = 0 ;
14040   void *argp5 = 0 ;
14041   int res5 = 0 ;
14042   PyObject *swig_obj[5] ;
14043 
14044   if (!SWIG_Python_UnpackTuple(args, "healpix_to_xyzarr", 5, 5, swig_obj)) SWIG_fail;
14045   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14046   if (!SWIG_IsOK(ecode1)) {
14047     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_to_xyzarr" "', argument " "1"" of type '" "int""'");
14048   }
14049   arg1 = (int)(val1);
14050   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14051   if (!SWIG_IsOK(ecode2)) {
14052     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_to_xyzarr" "', argument " "2"" of type '" "int""'");
14053   }
14054   arg2 = (int)(val2);
14055   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14056   if (!SWIG_IsOK(ecode3)) {
14057     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_to_xyzarr" "', argument " "3"" of type '" "double""'");
14058   }
14059   arg3 = (double)(val3);
14060   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14061   if (!SWIG_IsOK(ecode4)) {
14062     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_to_xyzarr" "', argument " "4"" of type '" "double""'");
14063   }
14064   arg4 = (double)(val4);
14065   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
14066   if (!SWIG_IsOK(res5)) {
14067     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "healpix_to_xyzarr" "', argument " "5"" of type '" "double *""'");
14068   }
14069   arg5 = (double *)(argp5);
14070   healpix_to_xyzarr(arg1,arg2,arg3,arg4,arg5);
14071   resultobj = SWIG_Py_Void();
14072   return resultobj;
14073 fail:
14074   return NULL;
14075 }
14076 
14077 
_wrap_healpix_to_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14078 SWIGINTERN PyObject *_wrap_healpix_to_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14079   PyObject *resultobj = 0;
14080   int arg1 ;
14081   int arg2 ;
14082   double arg3 ;
14083   double arg4 ;
14084   double *arg5 = (double *) 0 ;
14085   double *arg6 = (double *) 0 ;
14086   int val1 ;
14087   int ecode1 = 0 ;
14088   int val2 ;
14089   int ecode2 = 0 ;
14090   double val3 ;
14091   int ecode3 = 0 ;
14092   double val4 ;
14093   int ecode4 = 0 ;
14094   double temp5 ;
14095   int res5 = SWIG_TMPOBJ ;
14096   double temp6 ;
14097   int res6 = SWIG_TMPOBJ ;
14098   PyObject *swig_obj[4] ;
14099 
14100   arg5 = &temp5;
14101   arg6 = &temp6;
14102   if (!SWIG_Python_UnpackTuple(args, "healpix_to_radec", 4, 4, swig_obj)) SWIG_fail;
14103   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14104   if (!SWIG_IsOK(ecode1)) {
14105     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_to_radec" "', argument " "1"" of type '" "int""'");
14106   }
14107   arg1 = (int)(val1);
14108   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14109   if (!SWIG_IsOK(ecode2)) {
14110     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_to_radec" "', argument " "2"" of type '" "int""'");
14111   }
14112   arg2 = (int)(val2);
14113   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14114   if (!SWIG_IsOK(ecode3)) {
14115     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_to_radec" "', argument " "3"" of type '" "double""'");
14116   }
14117   arg3 = (double)(val3);
14118   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14119   if (!SWIG_IsOK(ecode4)) {
14120     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_to_radec" "', argument " "4"" of type '" "double""'");
14121   }
14122   arg4 = (double)(val4);
14123   healpix_to_radec(arg1,arg2,arg3,arg4,arg5,arg6);
14124   resultobj = SWIG_Py_Void();
14125   if (SWIG_IsTmpObj(res5)) {
14126     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
14127   } else {
14128     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14129     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
14130   }
14131   if (SWIG_IsTmpObj(res6)) {
14132     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
14133   } else {
14134     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14135     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
14136   }
14137   return resultobj;
14138 fail:
14139   return NULL;
14140 }
14141 
14142 
_wrap_healpix_to_radecdeg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14143 SWIGINTERN PyObject *_wrap_healpix_to_radecdeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14144   PyObject *resultobj = 0;
14145   int arg1 ;
14146   int arg2 ;
14147   double arg3 ;
14148   double arg4 ;
14149   double *arg5 = (double *) 0 ;
14150   double *arg6 = (double *) 0 ;
14151   int val1 ;
14152   int ecode1 = 0 ;
14153   int val2 ;
14154   int ecode2 = 0 ;
14155   double val3 ;
14156   int ecode3 = 0 ;
14157   double val4 ;
14158   int ecode4 = 0 ;
14159   double temp5 ;
14160   int res5 = SWIG_TMPOBJ ;
14161   double temp6 ;
14162   int res6 = SWIG_TMPOBJ ;
14163   PyObject *swig_obj[4] ;
14164 
14165   arg5 = &temp5;
14166   arg6 = &temp6;
14167   if (!SWIG_Python_UnpackTuple(args, "healpix_to_radecdeg", 4, 4, swig_obj)) SWIG_fail;
14168   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14169   if (!SWIG_IsOK(ecode1)) {
14170     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_to_radecdeg" "', argument " "1"" of type '" "int""'");
14171   }
14172   arg1 = (int)(val1);
14173   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14174   if (!SWIG_IsOK(ecode2)) {
14175     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_to_radecdeg" "', argument " "2"" of type '" "int""'");
14176   }
14177   arg2 = (int)(val2);
14178   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14179   if (!SWIG_IsOK(ecode3)) {
14180     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_to_radecdeg" "', argument " "3"" of type '" "double""'");
14181   }
14182   arg3 = (double)(val3);
14183   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14184   if (!SWIG_IsOK(ecode4)) {
14185     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_to_radecdeg" "', argument " "4"" of type '" "double""'");
14186   }
14187   arg4 = (double)(val4);
14188   healpix_to_radecdeg(arg1,arg2,arg3,arg4,arg5,arg6);
14189   resultobj = SWIG_Py_Void();
14190   if (SWIG_IsTmpObj(res5)) {
14191     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
14192   } else {
14193     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14194     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
14195   }
14196   if (SWIG_IsTmpObj(res6)) {
14197     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
14198   } else {
14199     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14200     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
14201   }
14202   return resultobj;
14203 fail:
14204   return NULL;
14205 }
14206 
14207 
_wrap_healpixl_to_radecdeg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14208 SWIGINTERN PyObject *_wrap_healpixl_to_radecdeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14209   PyObject *resultobj = 0;
14210   int64_t arg1 ;
14211   int arg2 ;
14212   double arg3 ;
14213   double arg4 ;
14214   double *arg5 = (double *) 0 ;
14215   double *arg6 = (double *) 0 ;
14216   void *argp1 ;
14217   int res1 = 0 ;
14218   int val2 ;
14219   int ecode2 = 0 ;
14220   double val3 ;
14221   int ecode3 = 0 ;
14222   double val4 ;
14223   int ecode4 = 0 ;
14224   double temp5 ;
14225   int res5 = SWIG_TMPOBJ ;
14226   double temp6 ;
14227   int res6 = SWIG_TMPOBJ ;
14228   PyObject *swig_obj[4] ;
14229 
14230   arg5 = &temp5;
14231   arg6 = &temp6;
14232   if (!SWIG_Python_UnpackTuple(args, "healpixl_to_radecdeg", 4, 4, swig_obj)) SWIG_fail;
14233   {
14234     res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int64_t,  0 );
14235     if (!SWIG_IsOK(res1)) {
14236       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "healpixl_to_radecdeg" "', argument " "1"" of type '" "int64_t""'");
14237     }
14238     if (!argp1) {
14239       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "healpixl_to_radecdeg" "', argument " "1"" of type '" "int64_t""'");
14240     } else {
14241       arg1 = *((int64_t *)(argp1));
14242     }
14243   }
14244   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14245   if (!SWIG_IsOK(ecode2)) {
14246     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpixl_to_radecdeg" "', argument " "2"" of type '" "int""'");
14247   }
14248   arg2 = (int)(val2);
14249   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14250   if (!SWIG_IsOK(ecode3)) {
14251     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpixl_to_radecdeg" "', argument " "3"" of type '" "double""'");
14252   }
14253   arg3 = (double)(val3);
14254   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14255   if (!SWIG_IsOK(ecode4)) {
14256     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpixl_to_radecdeg" "', argument " "4"" of type '" "double""'");
14257   }
14258   arg4 = (double)(val4);
14259   healpixl_to_radecdeg(arg1,arg2,arg3,arg4,arg5,arg6);
14260   resultobj = SWIG_Py_Void();
14261   if (SWIG_IsTmpObj(res5)) {
14262     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
14263   } else {
14264     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14265     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
14266   }
14267   if (SWIG_IsTmpObj(res6)) {
14268     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
14269   } else {
14270     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14271     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
14272   }
14273   return resultobj;
14274 fail:
14275   return NULL;
14276 }
14277 
14278 
_wrap_healpix_to_radecarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14279 SWIGINTERN PyObject *_wrap_healpix_to_radecarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14280   PyObject *resultobj = 0;
14281   int arg1 ;
14282   int arg2 ;
14283   double arg3 ;
14284   double arg4 ;
14285   double *arg5 = (double *) 0 ;
14286   int val1 ;
14287   int ecode1 = 0 ;
14288   int val2 ;
14289   int ecode2 = 0 ;
14290   double val3 ;
14291   int ecode3 = 0 ;
14292   double val4 ;
14293   int ecode4 = 0 ;
14294   void *argp5 = 0 ;
14295   int res5 = 0 ;
14296   PyObject *swig_obj[5] ;
14297 
14298   if (!SWIG_Python_UnpackTuple(args, "healpix_to_radecarr", 5, 5, swig_obj)) SWIG_fail;
14299   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14300   if (!SWIG_IsOK(ecode1)) {
14301     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_to_radecarr" "', argument " "1"" of type '" "int""'");
14302   }
14303   arg1 = (int)(val1);
14304   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14305   if (!SWIG_IsOK(ecode2)) {
14306     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_to_radecarr" "', argument " "2"" of type '" "int""'");
14307   }
14308   arg2 = (int)(val2);
14309   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14310   if (!SWIG_IsOK(ecode3)) {
14311     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_to_radecarr" "', argument " "3"" of type '" "double""'");
14312   }
14313   arg3 = (double)(val3);
14314   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14315   if (!SWIG_IsOK(ecode4)) {
14316     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_to_radecarr" "', argument " "4"" of type '" "double""'");
14317   }
14318   arg4 = (double)(val4);
14319   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
14320   if (!SWIG_IsOK(res5)) {
14321     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "healpix_to_radecarr" "', argument " "5"" of type '" "double *""'");
14322   }
14323   arg5 = (double *)(argp5);
14324   healpix_to_radecarr(arg1,arg2,arg3,arg4,arg5);
14325   resultobj = SWIG_Py_Void();
14326   return resultobj;
14327 fail:
14328   return NULL;
14329 }
14330 
14331 
_wrap_healpix_to_radecdegarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14332 SWIGINTERN PyObject *_wrap_healpix_to_radecdegarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14333   PyObject *resultobj = 0;
14334   int arg1 ;
14335   int arg2 ;
14336   double arg3 ;
14337   double arg4 ;
14338   double *arg5 = (double *) 0 ;
14339   int val1 ;
14340   int ecode1 = 0 ;
14341   int val2 ;
14342   int ecode2 = 0 ;
14343   double val3 ;
14344   int ecode3 = 0 ;
14345   double val4 ;
14346   int ecode4 = 0 ;
14347   void *argp5 = 0 ;
14348   int res5 = 0 ;
14349   PyObject *swig_obj[5] ;
14350 
14351   if (!SWIG_Python_UnpackTuple(args, "healpix_to_radecdegarr", 5, 5, swig_obj)) SWIG_fail;
14352   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14353   if (!SWIG_IsOK(ecode1)) {
14354     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_to_radecdegarr" "', argument " "1"" of type '" "int""'");
14355   }
14356   arg1 = (int)(val1);
14357   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14358   if (!SWIG_IsOK(ecode2)) {
14359     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_to_radecdegarr" "', argument " "2"" of type '" "int""'");
14360   }
14361   arg2 = (int)(val2);
14362   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14363   if (!SWIG_IsOK(ecode3)) {
14364     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_to_radecdegarr" "', argument " "3"" of type '" "double""'");
14365   }
14366   arg3 = (double)(val3);
14367   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14368   if (!SWIG_IsOK(ecode4)) {
14369     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_to_radecdegarr" "', argument " "4"" of type '" "double""'");
14370   }
14371   arg4 = (double)(val4);
14372   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
14373   if (!SWIG_IsOK(res5)) {
14374     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "healpix_to_radecdegarr" "', argument " "5"" of type '" "double *""'");
14375   }
14376   arg5 = (double *)(argp5);
14377   healpix_to_radecdegarr(arg1,arg2,arg3,arg4,arg5);
14378   resultobj = SWIG_Py_Void();
14379   return resultobj;
14380 fail:
14381   return NULL;
14382 }
14383 
14384 
_wrap_healpix_side_length_arcmin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14385 SWIGINTERN PyObject *_wrap_healpix_side_length_arcmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14386   PyObject *resultobj = 0;
14387   int arg1 ;
14388   int val1 ;
14389   int ecode1 = 0 ;
14390   PyObject *swig_obj[1] ;
14391   double result;
14392 
14393   if (!args) SWIG_fail;
14394   swig_obj[0] = args;
14395   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14396   if (!SWIG_IsOK(ecode1)) {
14397     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_side_length_arcmin" "', argument " "1"" of type '" "int""'");
14398   }
14399   arg1 = (int)(val1);
14400   result = (double)healpix_side_length_arcmin(arg1);
14401   resultobj = SWIG_From_double((double)(result));
14402   return resultobj;
14403 fail:
14404   return NULL;
14405 }
14406 
14407 
_wrap_healpix_nside_for_side_length_arcmin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14408 SWIGINTERN PyObject *_wrap_healpix_nside_for_side_length_arcmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14409   PyObject *resultobj = 0;
14410   double arg1 ;
14411   double val1 ;
14412   int ecode1 = 0 ;
14413   PyObject *swig_obj[1] ;
14414   double result;
14415 
14416   if (!args) SWIG_fail;
14417   swig_obj[0] = args;
14418   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
14419   if (!SWIG_IsOK(ecode1)) {
14420     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_nside_for_side_length_arcmin" "', argument " "1"" of type '" "double""'");
14421   }
14422   arg1 = (double)(val1);
14423   result = (double)healpix_nside_for_side_length_arcmin(arg1);
14424   resultobj = SWIG_From_double((double)(result));
14425   return resultobj;
14426 fail:
14427   return NULL;
14428 }
14429 
14430 
_wrap_healpix_get_neighbours(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14431 SWIGINTERN PyObject *_wrap_healpix_get_neighbours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14432   PyObject *resultobj = 0;
14433   int arg1 ;
14434   int *arg2 = (int *) 0 ;
14435   int arg3 ;
14436   int val1 ;
14437   int ecode1 = 0 ;
14438   int tempneigh2[8] ;
14439   int val3 ;
14440   int ecode3 = 0 ;
14441   PyObject *swig_obj[2] ;
14442   int result;
14443 
14444   {
14445     arg2 = tempneigh2;
14446   }
14447   if (!SWIG_Python_UnpackTuple(args, "healpix_get_neighbours", 2, 2, swig_obj)) SWIG_fail;
14448   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14449   if (!SWIG_IsOK(ecode1)) {
14450     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_get_neighbours" "', argument " "1"" of type '" "int""'");
14451   }
14452   arg1 = (int)(val1);
14453   ecode3 = SWIG_AsVal_int(swig_obj[1], &val3);
14454   if (!SWIG_IsOK(ecode3)) {
14455     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_get_neighbours" "', argument " "3"" of type '" "int""'");
14456   }
14457   arg3 = (int)(val3);
14458   result = (int)healpix_get_neighbours(arg1,arg2,arg3);
14459   resultobj = SWIG_From_int((int)(result));
14460   {
14461     int i;
14462     int nn;
14463     // convert resultobj to nn
14464     //nn = (int)PyInt_AsLong(resultobj);
14465     nn = result;
14466     resultobj = PyList_New(nn);
14467     for (i = 0; i < nn; i++) {
14468       PyObject *o = PyInt_FromLong(arg2[i]);
14469       PyList_SetItem(resultobj, i, o);
14470     }
14471   }
14472   return resultobj;
14473 fail:
14474   return NULL;
14475 }
14476 
14477 
_wrap_healpix_get_neighboursl(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14478 SWIGINTERN PyObject *_wrap_healpix_get_neighboursl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14479   PyObject *resultobj = 0;
14480   int64_t arg1 ;
14481   int64_t *arg2 = (int64_t *) 0 ;
14482   int arg3 ;
14483   void *argp1 ;
14484   int res1 = 0 ;
14485   void *argp2 = 0 ;
14486   int res2 = 0 ;
14487   int val3 ;
14488   int ecode3 = 0 ;
14489   PyObject *swig_obj[3] ;
14490   int result;
14491 
14492   if (!SWIG_Python_UnpackTuple(args, "healpix_get_neighboursl", 3, 3, swig_obj)) SWIG_fail;
14493   {
14494     res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int64_t,  0 );
14495     if (!SWIG_IsOK(res1)) {
14496       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "healpix_get_neighboursl" "', argument " "1"" of type '" "int64_t""'");
14497     }
14498     if (!argp1) {
14499       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "healpix_get_neighboursl" "', argument " "1"" of type '" "int64_t""'");
14500     } else {
14501       arg1 = *((int64_t *)(argp1));
14502     }
14503   }
14504   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int64_t, 0 |  0 );
14505   if (!SWIG_IsOK(res2)) {
14506     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "healpix_get_neighboursl" "', argument " "2"" of type '" "int64_t *""'");
14507   }
14508   arg2 = (int64_t *)(argp2);
14509   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14510   if (!SWIG_IsOK(ecode3)) {
14511     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_get_neighboursl" "', argument " "3"" of type '" "int""'");
14512   }
14513   arg3 = (int)(val3);
14514   result = (int)healpix_get_neighboursl(arg1,arg2,arg3);
14515   resultobj = SWIG_From_int((int)(result));
14516   return resultobj;
14517 fail:
14518   return NULL;
14519 }
14520 
14521 
_wrap_healpix_get_neighbours_within_range(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14522 SWIGINTERN PyObject *_wrap_healpix_get_neighbours_within_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14523   PyObject *resultobj = 0;
14524   double *arg1 = (double *) 0 ;
14525   double arg2 ;
14526   int *arg3 = (int *) 0 ;
14527   int arg4 ;
14528   void *argp1 = 0 ;
14529   int res1 = 0 ;
14530   double val2 ;
14531   int ecode2 = 0 ;
14532   void *argp3 = 0 ;
14533   int res3 = 0 ;
14534   int val4 ;
14535   int ecode4 = 0 ;
14536   PyObject *swig_obj[4] ;
14537   int result;
14538 
14539   if (!SWIG_Python_UnpackTuple(args, "healpix_get_neighbours_within_range", 4, 4, swig_obj)) SWIG_fail;
14540   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
14541   if (!SWIG_IsOK(res1)) {
14542     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "healpix_get_neighbours_within_range" "', argument " "1"" of type '" "double *""'");
14543   }
14544   arg1 = (double *)(argp1);
14545   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14546   if (!SWIG_IsOK(ecode2)) {
14547     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_get_neighbours_within_range" "', argument " "2"" of type '" "double""'");
14548   }
14549   arg2 = (double)(val2);
14550   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
14551   if (!SWIG_IsOK(res3)) {
14552     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "healpix_get_neighbours_within_range" "', argument " "3"" of type '" "int *""'");
14553   }
14554   arg3 = (int *)(argp3);
14555   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
14556   if (!SWIG_IsOK(ecode4)) {
14557     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_get_neighbours_within_range" "', argument " "4"" of type '" "int""'");
14558   }
14559   arg4 = (int)(val4);
14560   result = (int)healpix_get_neighbours_within_range(arg1,arg2,arg3,arg4);
14561   resultobj = SWIG_From_int((int)(result));
14562   return resultobj;
14563 fail:
14564   return NULL;
14565 }
14566 
14567 
_wrap_healpix_get_neighbours_within_range_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14568 SWIGINTERN PyObject *_wrap_healpix_get_neighbours_within_range_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14569   PyObject *resultobj = 0;
14570   double arg1 ;
14571   double arg2 ;
14572   double arg3 ;
14573   int *arg4 = (int *) 0 ;
14574   int arg5 ;
14575   double val1 ;
14576   int ecode1 = 0 ;
14577   double val2 ;
14578   int ecode2 = 0 ;
14579   double val3 ;
14580   int ecode3 = 0 ;
14581   void *argp4 = 0 ;
14582   int res4 = 0 ;
14583   int val5 ;
14584   int ecode5 = 0 ;
14585   PyObject *swig_obj[5] ;
14586   int result;
14587 
14588   if (!SWIG_Python_UnpackTuple(args, "healpix_get_neighbours_within_range_radec", 5, 5, swig_obj)) SWIG_fail;
14589   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
14590   if (!SWIG_IsOK(ecode1)) {
14591     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_get_neighbours_within_range_radec" "', argument " "1"" of type '" "double""'");
14592   }
14593   arg1 = (double)(val1);
14594   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14595   if (!SWIG_IsOK(ecode2)) {
14596     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_get_neighbours_within_range_radec" "', argument " "2"" of type '" "double""'");
14597   }
14598   arg2 = (double)(val2);
14599   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14600   if (!SWIG_IsOK(ecode3)) {
14601     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_get_neighbours_within_range_radec" "', argument " "3"" of type '" "double""'");
14602   }
14603   arg3 = (double)(val3);
14604   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
14605   if (!SWIG_IsOK(res4)) {
14606     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_get_neighbours_within_range_radec" "', argument " "4"" of type '" "int *""'");
14607   }
14608   arg4 = (int *)(argp4);
14609   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
14610   if (!SWIG_IsOK(ecode5)) {
14611     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "healpix_get_neighbours_within_range_radec" "', argument " "5"" of type '" "int""'");
14612   }
14613   arg5 = (int)(val5);
14614   result = (int)healpix_get_neighbours_within_range_radec(arg1,arg2,arg3,arg4,arg5);
14615   resultobj = SWIG_From_int((int)(result));
14616   return resultobj;
14617 fail:
14618   return NULL;
14619 }
14620 
14621 
_wrap_healpix_distance_to_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14622 SWIGINTERN PyObject *_wrap_healpix_distance_to_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14623   PyObject *resultobj = 0;
14624   int arg1 ;
14625   int arg2 ;
14626   double arg3 ;
14627   double arg4 ;
14628   double *arg5 = (double *) 0 ;
14629   int val1 ;
14630   int ecode1 = 0 ;
14631   int val2 ;
14632   int ecode2 = 0 ;
14633   double val3 ;
14634   int ecode3 = 0 ;
14635   double val4 ;
14636   int ecode4 = 0 ;
14637   void *argp5 = 0 ;
14638   int res5 = 0 ;
14639   PyObject *swig_obj[5] ;
14640   double result;
14641 
14642   if (!SWIG_Python_UnpackTuple(args, "healpix_distance_to_radec", 5, 5, swig_obj)) SWIG_fail;
14643   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14644   if (!SWIG_IsOK(ecode1)) {
14645     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_distance_to_radec" "', argument " "1"" of type '" "int""'");
14646   }
14647   arg1 = (int)(val1);
14648   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14649   if (!SWIG_IsOK(ecode2)) {
14650     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_distance_to_radec" "', argument " "2"" of type '" "int""'");
14651   }
14652   arg2 = (int)(val2);
14653   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14654   if (!SWIG_IsOK(ecode3)) {
14655     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_distance_to_radec" "', argument " "3"" of type '" "double""'");
14656   }
14657   arg3 = (double)(val3);
14658   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14659   if (!SWIG_IsOK(ecode4)) {
14660     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_distance_to_radec" "', argument " "4"" of type '" "double""'");
14661   }
14662   arg4 = (double)(val4);
14663   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
14664   if (!SWIG_IsOK(res5)) {
14665     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "healpix_distance_to_radec" "', argument " "5"" of type '" "double *""'");
14666   }
14667   arg5 = (double *)(argp5);
14668   result = (double)healpix_distance_to_radec(arg1,arg2,arg3,arg4,arg5);
14669   resultobj = SWIG_From_double((double)(result));
14670   return resultobj;
14671 fail:
14672   return NULL;
14673 }
14674 
14675 
_wrap_healpix_distance_to_xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14676 SWIGINTERN PyObject *_wrap_healpix_distance_to_xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14677   PyObject *resultobj = 0;
14678   int arg1 ;
14679   int arg2 ;
14680   double *arg3 = (double *) 0 ;
14681   double *arg4 = (double *) 0 ;
14682   int val1 ;
14683   int ecode1 = 0 ;
14684   int val2 ;
14685   int ecode2 = 0 ;
14686   void *argp3 = 0 ;
14687   int res3 = 0 ;
14688   void *argp4 = 0 ;
14689   int res4 = 0 ;
14690   PyObject *swig_obj[4] ;
14691   double result;
14692 
14693   if (!SWIG_Python_UnpackTuple(args, "healpix_distance_to_xyz", 4, 4, swig_obj)) SWIG_fail;
14694   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14695   if (!SWIG_IsOK(ecode1)) {
14696     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_distance_to_xyz" "', argument " "1"" of type '" "int""'");
14697   }
14698   arg1 = (int)(val1);
14699   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14700   if (!SWIG_IsOK(ecode2)) {
14701     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_distance_to_xyz" "', argument " "2"" of type '" "int""'");
14702   }
14703   arg2 = (int)(val2);
14704   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
14705   if (!SWIG_IsOK(res3)) {
14706     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "healpix_distance_to_xyz" "', argument " "3"" of type '" "double const *""'");
14707   }
14708   arg3 = (double *)(argp3);
14709   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
14710   if (!SWIG_IsOK(res4)) {
14711     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_distance_to_xyz" "', argument " "4"" of type '" "double *""'");
14712   }
14713   arg4 = (double *)(argp4);
14714   result = (double)healpix_distance_to_xyz(arg1,arg2,(double const *)arg3,arg4);
14715   resultobj = SWIG_From_double((double)(result));
14716   return resultobj;
14717 fail:
14718   return NULL;
14719 }
14720 
14721 
_wrap_healpix_within_range_of_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14722 SWIGINTERN PyObject *_wrap_healpix_within_range_of_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14723   PyObject *resultobj = 0;
14724   int arg1 ;
14725   int arg2 ;
14726   double arg3 ;
14727   double arg4 ;
14728   double arg5 ;
14729   int val1 ;
14730   int ecode1 = 0 ;
14731   int val2 ;
14732   int ecode2 = 0 ;
14733   double val3 ;
14734   int ecode3 = 0 ;
14735   double val4 ;
14736   int ecode4 = 0 ;
14737   double val5 ;
14738   int ecode5 = 0 ;
14739   PyObject *swig_obj[5] ;
14740   int result;
14741 
14742   if (!SWIG_Python_UnpackTuple(args, "healpix_within_range_of_radec", 5, 5, swig_obj)) SWIG_fail;
14743   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14744   if (!SWIG_IsOK(ecode1)) {
14745     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_within_range_of_radec" "', argument " "1"" of type '" "int""'");
14746   }
14747   arg1 = (int)(val1);
14748   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14749   if (!SWIG_IsOK(ecode2)) {
14750     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_within_range_of_radec" "', argument " "2"" of type '" "int""'");
14751   }
14752   arg2 = (int)(val2);
14753   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14754   if (!SWIG_IsOK(ecode3)) {
14755     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_within_range_of_radec" "', argument " "3"" of type '" "double""'");
14756   }
14757   arg3 = (double)(val3);
14758   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14759   if (!SWIG_IsOK(ecode4)) {
14760     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_within_range_of_radec" "', argument " "4"" of type '" "double""'");
14761   }
14762   arg4 = (double)(val4);
14763   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
14764   if (!SWIG_IsOK(ecode5)) {
14765     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "healpix_within_range_of_radec" "', argument " "5"" of type '" "double""'");
14766   }
14767   arg5 = (double)(val5);
14768   result = (int)healpix_within_range_of_radec(arg1,arg2,arg3,arg4,arg5);
14769   resultobj = SWIG_From_int((int)(result));
14770   return resultobj;
14771 fail:
14772   return NULL;
14773 }
14774 
14775 
_wrap_healpix_within_range_of_xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14776 SWIGINTERN PyObject *_wrap_healpix_within_range_of_xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14777   PyObject *resultobj = 0;
14778   int arg1 ;
14779   int arg2 ;
14780   double *arg3 = (double *) 0 ;
14781   double arg4 ;
14782   int val1 ;
14783   int ecode1 = 0 ;
14784   int val2 ;
14785   int ecode2 = 0 ;
14786   void *argp3 = 0 ;
14787   int res3 = 0 ;
14788   double val4 ;
14789   int ecode4 = 0 ;
14790   PyObject *swig_obj[4] ;
14791   int result;
14792 
14793   if (!SWIG_Python_UnpackTuple(args, "healpix_within_range_of_xyz", 4, 4, swig_obj)) SWIG_fail;
14794   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14795   if (!SWIG_IsOK(ecode1)) {
14796     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_within_range_of_xyz" "', argument " "1"" of type '" "int""'");
14797   }
14798   arg1 = (int)(val1);
14799   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14800   if (!SWIG_IsOK(ecode2)) {
14801     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_within_range_of_xyz" "', argument " "2"" of type '" "int""'");
14802   }
14803   arg2 = (int)(val2);
14804   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
14805   if (!SWIG_IsOK(res3)) {
14806     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "healpix_within_range_of_xyz" "', argument " "3"" of type '" "double const *""'");
14807   }
14808   arg3 = (double *)(argp3);
14809   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14810   if (!SWIG_IsOK(ecode4)) {
14811     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_within_range_of_xyz" "', argument " "4"" of type '" "double""'");
14812   }
14813   arg4 = (double)(val4);
14814   result = (int)healpix_within_range_of_xyz(arg1,arg2,(double const *)arg3,arg4);
14815   resultobj = SWIG_From_int((int)(result));
14816   return resultobj;
14817 fail:
14818   return NULL;
14819 }
14820 
14821 
_wrap_healpix_radec_bounds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14822 SWIGINTERN PyObject *_wrap_healpix_radec_bounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14823   PyObject *resultobj = 0;
14824   int arg1 ;
14825   int arg2 ;
14826   double *arg3 = (double *) 0 ;
14827   double *arg4 = (double *) 0 ;
14828   double *arg5 = (double *) 0 ;
14829   double *arg6 = (double *) 0 ;
14830   int val1 ;
14831   int ecode1 = 0 ;
14832   int val2 ;
14833   int ecode2 = 0 ;
14834   double temp3 ;
14835   int res3 = SWIG_TMPOBJ ;
14836   double temp4 ;
14837   int res4 = SWIG_TMPOBJ ;
14838   double temp5 ;
14839   int res5 = SWIG_TMPOBJ ;
14840   double temp6 ;
14841   int res6 = SWIG_TMPOBJ ;
14842   PyObject *swig_obj[2] ;
14843 
14844   arg3 = &temp3;
14845   arg4 = &temp4;
14846   arg5 = &temp5;
14847   arg6 = &temp6;
14848   if (!SWIG_Python_UnpackTuple(args, "healpix_radec_bounds", 2, 2, swig_obj)) SWIG_fail;
14849   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
14850   if (!SWIG_IsOK(ecode1)) {
14851     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_radec_bounds" "', argument " "1"" of type '" "int""'");
14852   }
14853   arg1 = (int)(val1);
14854   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14855   if (!SWIG_IsOK(ecode2)) {
14856     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_radec_bounds" "', argument " "2"" of type '" "int""'");
14857   }
14858   arg2 = (int)(val2);
14859   healpix_radec_bounds(arg1,arg2,arg3,arg4,arg5,arg6);
14860   resultobj = SWIG_Py_Void();
14861   if (SWIG_IsTmpObj(res3)) {
14862     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
14863   } else {
14864     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14865     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
14866   }
14867   if (SWIG_IsTmpObj(res4)) {
14868     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
14869   } else {
14870     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14871     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
14872   }
14873   if (SWIG_IsTmpObj(res5)) {
14874     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
14875   } else {
14876     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14877     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
14878   }
14879   if (SWIG_IsTmpObj(res6)) {
14880     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
14881   } else {
14882     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14883     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
14884   }
14885   return resultobj;
14886 fail:
14887   return NULL;
14888 }
14889 
14890 
_wrap_healpix_rangesearch_xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14891 SWIGINTERN PyObject *_wrap_healpix_rangesearch_xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14892   PyObject *resultobj = 0;
14893   double *arg1 = (double *) 0 ;
14894   double arg2 ;
14895   int arg3 ;
14896   il *arg4 = (il *) 0 ;
14897   void *argp1 = 0 ;
14898   int res1 = 0 ;
14899   double val2 ;
14900   int ecode2 = 0 ;
14901   int val3 ;
14902   int ecode3 = 0 ;
14903   PyObject *swig_obj[3] ;
14904   il *result = 0 ;
14905 
14906   {
14907     arg4 = NULL;
14908   }
14909   if (!SWIG_Python_UnpackTuple(args, "healpix_rangesearch_xyz", 3, 3, swig_obj)) SWIG_fail;
14910   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
14911   if (!SWIG_IsOK(res1)) {
14912     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "healpix_rangesearch_xyz" "', argument " "1"" of type '" "double const *""'");
14913   }
14914   arg1 = (double *)(argp1);
14915   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14916   if (!SWIG_IsOK(ecode2)) {
14917     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_rangesearch_xyz" "', argument " "2"" of type '" "double""'");
14918   }
14919   arg2 = (double)(val2);
14920   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14921   if (!SWIG_IsOK(ecode3)) {
14922     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_rangesearch_xyz" "', argument " "3"" of type '" "int""'");
14923   }
14924   arg3 = (int)(val3);
14925   result = (il *)healpix_rangesearch_xyz((double const *)arg1,arg2,arg3,arg4);
14926   {
14927     int i;
14928     int N;
14929     N = il_size(result);
14930     resultobj = PyList_New(N);
14931     for (i = 0; i < N; i++) {
14932       PyObject *o = PyInt_FromLong(il_get(result, i));
14933       PyList_SetItem(resultobj, i, o);
14934     }
14935   }
14936   return resultobj;
14937 fail:
14938   return NULL;
14939 }
14940 
14941 
_wrap_healpix_rangesearch_xyz_approx(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14942 SWIGINTERN PyObject *_wrap_healpix_rangesearch_xyz_approx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14943   PyObject *resultobj = 0;
14944   double *arg1 = (double *) 0 ;
14945   double arg2 ;
14946   int arg3 ;
14947   il *arg4 = (il *) 0 ;
14948   void *argp1 = 0 ;
14949   int res1 = 0 ;
14950   double val2 ;
14951   int ecode2 = 0 ;
14952   int val3 ;
14953   int ecode3 = 0 ;
14954   PyObject *swig_obj[3] ;
14955   il *result = 0 ;
14956 
14957   {
14958     arg4 = NULL;
14959   }
14960   if (!SWIG_Python_UnpackTuple(args, "healpix_rangesearch_xyz_approx", 3, 3, swig_obj)) SWIG_fail;
14961   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
14962   if (!SWIG_IsOK(res1)) {
14963     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "healpix_rangesearch_xyz_approx" "', argument " "1"" of type '" "double const *""'");
14964   }
14965   arg1 = (double *)(argp1);
14966   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14967   if (!SWIG_IsOK(ecode2)) {
14968     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_rangesearch_xyz_approx" "', argument " "2"" of type '" "double""'");
14969   }
14970   arg2 = (double)(val2);
14971   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14972   if (!SWIG_IsOK(ecode3)) {
14973     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_rangesearch_xyz_approx" "', argument " "3"" of type '" "int""'");
14974   }
14975   arg3 = (int)(val3);
14976   result = (il *)healpix_rangesearch_xyz_approx((double const *)arg1,arg2,arg3,arg4);
14977   {
14978     int i;
14979     int N;
14980     N = il_size(result);
14981     resultobj = PyList_New(N);
14982     for (i = 0; i < N; i++) {
14983       PyObject *o = PyInt_FromLong(il_get(result, i));
14984       PyList_SetItem(resultobj, i, o);
14985     }
14986   }
14987   return resultobj;
14988 fail:
14989   return NULL;
14990 }
14991 
14992 
_wrap_healpix_rangesearch_radec_approx(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14993 SWIGINTERN PyObject *_wrap_healpix_rangesearch_radec_approx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14994   PyObject *resultobj = 0;
14995   double arg1 ;
14996   double arg2 ;
14997   double arg3 ;
14998   int arg4 ;
14999   il *arg5 = (il *) 0 ;
15000   double val1 ;
15001   int ecode1 = 0 ;
15002   double val2 ;
15003   int ecode2 = 0 ;
15004   double val3 ;
15005   int ecode3 = 0 ;
15006   int val4 ;
15007   int ecode4 = 0 ;
15008   PyObject *swig_obj[4] ;
15009   il *result = 0 ;
15010 
15011   {
15012     arg5 = NULL;
15013   }
15014   if (!SWIG_Python_UnpackTuple(args, "healpix_rangesearch_radec_approx", 4, 4, swig_obj)) SWIG_fail;
15015   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
15016   if (!SWIG_IsOK(ecode1)) {
15017     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_rangesearch_radec_approx" "', argument " "1"" of type '" "double""'");
15018   }
15019   arg1 = (double)(val1);
15020   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15021   if (!SWIG_IsOK(ecode2)) {
15022     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_rangesearch_radec_approx" "', argument " "2"" of type '" "double""'");
15023   }
15024   arg2 = (double)(val2);
15025   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15026   if (!SWIG_IsOK(ecode3)) {
15027     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_rangesearch_radec_approx" "', argument " "3"" of type '" "double""'");
15028   }
15029   arg3 = (double)(val3);
15030   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
15031   if (!SWIG_IsOK(ecode4)) {
15032     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_rangesearch_radec_approx" "', argument " "4"" of type '" "int""'");
15033   }
15034   arg4 = (int)(val4);
15035   result = (il *)healpix_rangesearch_radec_approx(arg1,arg2,arg3,arg4,arg5);
15036   {
15037     int i;
15038     int N;
15039     N = il_size(result);
15040     resultobj = PyList_New(N);
15041     for (i = 0; i < N; i++) {
15042       PyObject *o = PyInt_FromLong(il_get(result, i));
15043       PyList_SetItem(resultobj, i, o);
15044     }
15045   }
15046   return resultobj;
15047 fail:
15048   return NULL;
15049 }
15050 
15051 
_wrap_healpix_rangesearch_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15052 SWIGINTERN PyObject *_wrap_healpix_rangesearch_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15053   PyObject *resultobj = 0;
15054   double arg1 ;
15055   double arg2 ;
15056   double arg3 ;
15057   int arg4 ;
15058   il *arg5 = (il *) 0 ;
15059   double val1 ;
15060   int ecode1 = 0 ;
15061   double val2 ;
15062   int ecode2 = 0 ;
15063   double val3 ;
15064   int ecode3 = 0 ;
15065   int val4 ;
15066   int ecode4 = 0 ;
15067   PyObject *swig_obj[4] ;
15068   il *result = 0 ;
15069 
15070   {
15071     arg5 = NULL;
15072   }
15073   if (!SWIG_Python_UnpackTuple(args, "healpix_rangesearch_radec", 4, 4, swig_obj)) SWIG_fail;
15074   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
15075   if (!SWIG_IsOK(ecode1)) {
15076     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_rangesearch_radec" "', argument " "1"" of type '" "double""'");
15077   }
15078   arg1 = (double)(val1);
15079   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15080   if (!SWIG_IsOK(ecode2)) {
15081     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "healpix_rangesearch_radec" "', argument " "2"" of type '" "double""'");
15082   }
15083   arg2 = (double)(val2);
15084   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15085   if (!SWIG_IsOK(ecode3)) {
15086     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_rangesearch_radec" "', argument " "3"" of type '" "double""'");
15087   }
15088   arg3 = (double)(val3);
15089   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
15090   if (!SWIG_IsOK(ecode4)) {
15091     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "healpix_rangesearch_radec" "', argument " "4"" of type '" "int""'");
15092   }
15093   arg4 = (int)(val4);
15094   result = (il *)healpix_rangesearch_radec(arg1,arg2,arg3,arg4,arg5);
15095   {
15096     int i;
15097     int N;
15098     N = il_size(result);
15099     resultobj = PyList_New(N);
15100     for (i = 0; i < N; i++) {
15101       PyObject *o = PyInt_FromLong(il_get(result, i));
15102       PyList_SetItem(resultobj, i, o);
15103     }
15104   }
15105   return resultobj;
15106 fail:
15107   return NULL;
15108 }
15109 
15110 
_wrap_healpix_region_search(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15111 SWIGINTERN PyObject *_wrap_healpix_region_search(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15112   PyObject *resultobj = 0;
15113   int arg1 ;
15114   il *arg2 = (il *) 0 ;
15115   int arg3 ;
15116   il *arg4 = (il *) 0 ;
15117   il *arg5 = (il *) 0 ;
15118   int (*arg6)(int,void *) = (int (*)(int,void *)) 0 ;
15119   void *arg7 = (void *) 0 ;
15120   int arg8 ;
15121   int val1 ;
15122   int ecode1 = 0 ;
15123   void *argp2 = 0 ;
15124   int res2 = 0 ;
15125   int val3 ;
15126   int ecode3 = 0 ;
15127   void *argp4 = 0 ;
15128   int res4 = 0 ;
15129   void *argp5 = 0 ;
15130   int res5 = 0 ;
15131   int res7 ;
15132   int val8 ;
15133   int ecode8 = 0 ;
15134   PyObject *swig_obj[8] ;
15135   il *result = 0 ;
15136 
15137   if (!SWIG_Python_UnpackTuple(args, "healpix_region_search", 8, 8, swig_obj)) SWIG_fail;
15138   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
15139   if (!SWIG_IsOK(ecode1)) {
15140     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "healpix_region_search" "', argument " "1"" of type '" "int""'");
15141   }
15142   arg1 = (int)(val1);
15143   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_il, 0 |  0 );
15144   if (!SWIG_IsOK(res2)) {
15145     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "healpix_region_search" "', argument " "2"" of type '" "il *""'");
15146   }
15147   arg2 = (il *)(argp2);
15148   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15149   if (!SWIG_IsOK(ecode3)) {
15150     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "healpix_region_search" "', argument " "3"" of type '" "int""'");
15151   }
15152   arg3 = (int)(val3);
15153   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_il, 0 |  0 );
15154   if (!SWIG_IsOK(res4)) {
15155     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "healpix_region_search" "', argument " "4"" of type '" "il *""'");
15156   }
15157   arg4 = (il *)(argp4);
15158   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_il, 0 |  0 );
15159   if (!SWIG_IsOK(res5)) {
15160     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "healpix_region_search" "', argument " "5"" of type '" "il *""'");
15161   }
15162   arg5 = (il *)(argp5);
15163   {
15164     int res = SWIG_ConvertFunctionPtr(swig_obj[5], (void**)(&arg6), SWIGTYPE_p_f_int_p_void__int);
15165     if (!SWIG_IsOK(res)) {
15166       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "healpix_region_search" "', argument " "6"" of type '" "int (*)(int,void *)""'");
15167     }
15168   }
15169   res7 = SWIG_ConvertPtr(swig_obj[6],SWIG_as_voidptrptr(&arg7), 0, 0);
15170   if (!SWIG_IsOK(res7)) {
15171     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "healpix_region_search" "', argument " "7"" of type '" "void *""'");
15172   }
15173   ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
15174   if (!SWIG_IsOK(ecode8)) {
15175     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "healpix_region_search" "', argument " "8"" of type '" "int""'");
15176   }
15177   arg8 = (int)(val8);
15178   result = (il *)healpix_region_search(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
15179   {
15180     int i;
15181     int N;
15182     N = il_size(result);
15183     resultobj = PyList_New(N);
15184     for (i = 0; i < N; i++) {
15185       PyObject *o = PyInt_FromLong(il_get(result, i));
15186       PyList_SetItem(resultobj, i, o);
15187     }
15188   }
15189   return resultobj;
15190 fail:
15191   return NULL;
15192 }
15193 
15194 
_wrap_anwcs_wcslib_to_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15195 SWIGINTERN PyObject *_wrap_anwcs_wcslib_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15196   PyObject *resultobj = 0;
15197   anwcs_t *arg1 = (anwcs_t *) 0 ;
15198   char **arg2 = (char **) 0 ;
15199   int *arg3 = (int *) 0 ;
15200   void *argp1 = 0 ;
15201   int res1 = 0 ;
15202   char *tempstr2 ;
15203   int slen3 ;
15204   PyObject *swig_obj[1] ;
15205   char *result = 0 ;
15206 
15207   {
15208     arg2 = &tempstr2;
15209   }
15210   {
15211     arg3 = &slen3;
15212   }
15213   if (!args) SWIG_fail;
15214   swig_obj[0] = args;
15215   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15216   if (!SWIG_IsOK(res1)) {
15217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_wcslib_to_string" "', argument " "1"" of type '" "anwcs_t const *""'");
15218   }
15219   arg1 = (anwcs_t *)(argp1);
15220   result = (char *)anwcs_wcslib_to_string((struct anwcs_t const *)arg1,arg2,arg3);
15221   resultobj = SWIG_FromCharPtr((const char *)result);
15222   return resultobj;
15223 fail:
15224   return NULL;
15225 }
15226 
15227 
_wrap_anwcs_t_type_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15228 SWIGINTERN PyObject *_wrap_anwcs_t_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15229   PyObject *resultobj = 0;
15230   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15231   int arg2 ;
15232   void *argp1 = 0 ;
15233   int res1 = 0 ;
15234   int val2 ;
15235   int ecode2 = 0 ;
15236   PyObject *swig_obj[2] ;
15237 
15238   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_type_set", 2, 2, swig_obj)) SWIG_fail;
15239   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15240   if (!SWIG_IsOK(res1)) {
15241     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_type_set" "', argument " "1"" of type '" "struct anwcs_t *""'");
15242   }
15243   arg1 = (struct anwcs_t *)(argp1);
15244   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15245   if (!SWIG_IsOK(ecode2)) {
15246     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_t_type_set" "', argument " "2"" of type '" "int""'");
15247   }
15248   arg2 = (int)(val2);
15249   if (arg1) (arg1)->type = arg2;
15250   resultobj = SWIG_Py_Void();
15251   return resultobj;
15252 fail:
15253   return NULL;
15254 }
15255 
15256 
_wrap_anwcs_t_type_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15257 SWIGINTERN PyObject *_wrap_anwcs_t_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15258   PyObject *resultobj = 0;
15259   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15260   void *argp1 = 0 ;
15261   int res1 = 0 ;
15262   PyObject *swig_obj[1] ;
15263   int result;
15264 
15265   if (!args) SWIG_fail;
15266   swig_obj[0] = args;
15267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15268   if (!SWIG_IsOK(res1)) {
15269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_type_get" "', argument " "1"" of type '" "struct anwcs_t *""'");
15270   }
15271   arg1 = (struct anwcs_t *)(argp1);
15272   result = (int) ((arg1)->type);
15273   resultobj = SWIG_From_int((int)(result));
15274   return resultobj;
15275 fail:
15276   return NULL;
15277 }
15278 
15279 
_wrap_anwcs_t_data_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15280 SWIGINTERN PyObject *_wrap_anwcs_t_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15281   PyObject *resultobj = 0;
15282   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15283   void *arg2 = (void *) 0 ;
15284   void *argp1 = 0 ;
15285   int res1 = 0 ;
15286   int res2 ;
15287   PyObject *swig_obj[2] ;
15288 
15289   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_data_set", 2, 2, swig_obj)) SWIG_fail;
15290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15291   if (!SWIG_IsOK(res1)) {
15292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_data_set" "', argument " "1"" of type '" "struct anwcs_t *""'");
15293   }
15294   arg1 = (struct anwcs_t *)(argp1);
15295   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
15296   if (!SWIG_IsOK(res2)) {
15297     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_t_data_set" "', argument " "2"" of type '" "void *""'");
15298   }
15299   if (arg1) (arg1)->data = arg2;
15300   resultobj = SWIG_Py_Void();
15301   return resultobj;
15302 fail:
15303   return NULL;
15304 }
15305 
15306 
_wrap_anwcs_t_data_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15307 SWIGINTERN PyObject *_wrap_anwcs_t_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15308   PyObject *resultobj = 0;
15309   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15310   void *argp1 = 0 ;
15311   int res1 = 0 ;
15312   PyObject *swig_obj[1] ;
15313   void *result = 0 ;
15314 
15315   if (!args) SWIG_fail;
15316   swig_obj[0] = args;
15317   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15318   if (!SWIG_IsOK(res1)) {
15319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_data_get" "', argument " "1"" of type '" "struct anwcs_t *""'");
15320   }
15321   arg1 = (struct anwcs_t *)(argp1);
15322   result = (void *) ((arg1)->data);
15323   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
15324   return resultobj;
15325 fail:
15326   return NULL;
15327 }
15328 
15329 
_wrap_new_anwcs_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15330 SWIGINTERN PyObject *_wrap_new_anwcs_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331   PyObject *resultobj = 0;
15332   char *arg1 = (char *) 0 ;
15333   int arg2 = (int) 0 ;
15334   int arg3 = (int) 0 ;
15335   int res1 ;
15336   char *buf1 = 0 ;
15337   int alloc1 = 0 ;
15338   int val2 ;
15339   int ecode2 = 0 ;
15340   int val3 ;
15341   int ecode3 = 0 ;
15342   PyObject *swig_obj[3] ;
15343   struct anwcs_t *result = 0 ;
15344 
15345   if (!SWIG_Python_UnpackTuple(args, "new_anwcs_t", 1, 3, swig_obj)) SWIG_fail;
15346   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15347   if (!SWIG_IsOK(res1)) {
15348     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_anwcs_t" "', argument " "1"" of type '" "char *""'");
15349   }
15350   arg1 = (char *)(buf1);
15351   if (swig_obj[1]) {
15352     ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15353     if (!SWIG_IsOK(ecode2)) {
15354       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_anwcs_t" "', argument " "2"" of type '" "int""'");
15355     }
15356     arg2 = (int)(val2);
15357   }
15358   if (swig_obj[2]) {
15359     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15360     if (!SWIG_IsOK(ecode3)) {
15361       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_anwcs_t" "', argument " "3"" of type '" "int""'");
15362     }
15363     arg3 = (int)(val3);
15364   }
15365   result = (struct anwcs_t *)new_anwcs_t(arg1,arg2,arg3);
15366   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, SWIG_POINTER_NEW |  0 );
15367   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15368   return resultobj;
15369 fail:
15370   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15371   return NULL;
15372 }
15373 
15374 
_wrap_delete_anwcs_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15375 SWIGINTERN PyObject *_wrap_delete_anwcs_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15376   PyObject *resultobj = 0;
15377   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15378   void *argp1 = 0 ;
15379   int res1 = 0 ;
15380   PyObject *swig_obj[1] ;
15381 
15382   if (!args) SWIG_fail;
15383   swig_obj[0] = args;
15384   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, SWIG_POINTER_DISOWN |  0 );
15385   if (!SWIG_IsOK(res1)) {
15386     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_anwcs_t" "', argument " "1"" of type '" "struct anwcs_t *""'");
15387   }
15388   arg1 = (struct anwcs_t *)(argp1);
15389   delete_anwcs_t(arg1);
15390   resultobj = SWIG_Py_Void();
15391   return resultobj;
15392 fail:
15393   return NULL;
15394 }
15395 
15396 
_wrap_anwcs_t_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15397 SWIGINTERN PyObject *_wrap_anwcs_t_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15398   PyObject *resultobj = 0;
15399   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15400   void *argp1 = 0 ;
15401   int res1 = 0 ;
15402   PyObject *swig_obj[1] ;
15403   double result;
15404 
15405   if (!args) SWIG_fail;
15406   swig_obj[0] = args;
15407   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15408   if (!SWIG_IsOK(res1)) {
15409     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_pixel_scale" "', argument " "1"" of type '" "struct anwcs_t *""'");
15410   }
15411   arg1 = (struct anwcs_t *)(argp1);
15412   result = (double)anwcs_t_pixel_scale(arg1);
15413   resultobj = SWIG_From_double((double)(result));
15414   return resultobj;
15415 fail:
15416   return NULL;
15417 }
15418 
15419 
_wrap_anwcs_t_get_center(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15420 SWIGINTERN PyObject *_wrap_anwcs_t_get_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15421   PyObject *resultobj = 0;
15422   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15423   double *arg2 = (double *) 0 ;
15424   double *arg3 = (double *) 0 ;
15425   void *argp1 = 0 ;
15426   int res1 = 0 ;
15427   double temp2 ;
15428   int res2 = SWIG_TMPOBJ ;
15429   double temp3 ;
15430   int res3 = SWIG_TMPOBJ ;
15431   PyObject *swig_obj[1] ;
15432 
15433   arg2 = &temp2;
15434   arg3 = &temp3;
15435   if (!args) SWIG_fail;
15436   swig_obj[0] = args;
15437   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15438   if (!SWIG_IsOK(res1)) {
15439     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_get_center" "', argument " "1"" of type '" "struct anwcs_t *""'");
15440   }
15441   arg1 = (struct anwcs_t *)(argp1);
15442   anwcs_t_get_center(arg1,arg2,arg3);
15443   resultobj = SWIG_Py_Void();
15444   if (SWIG_IsTmpObj(res2)) {
15445     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
15446   } else {
15447     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15448     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
15449   }
15450   if (SWIG_IsTmpObj(res3)) {
15451     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
15452   } else {
15453     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15454     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
15455   }
15456   return resultobj;
15457 fail:
15458   return NULL;
15459 }
15460 
15461 
_wrap_anwcs_t_get_radius(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15462 SWIGINTERN PyObject *_wrap_anwcs_t_get_radius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15463   PyObject *resultobj = 0;
15464   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15465   double *arg2 = (double *) 0 ;
15466   void *argp1 = 0 ;
15467   int res1 = 0 ;
15468   double temp2 ;
15469   int res2 = SWIG_TMPOBJ ;
15470   PyObject *swig_obj[1] ;
15471 
15472   arg2 = &temp2;
15473   if (!args) SWIG_fail;
15474   swig_obj[0] = args;
15475   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15476   if (!SWIG_IsOK(res1)) {
15477     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_get_radius" "', argument " "1"" of type '" "struct anwcs_t *""'");
15478   }
15479   arg1 = (struct anwcs_t *)(argp1);
15480   anwcs_t_get_radius(arg1,arg2);
15481   resultobj = SWIG_Py_Void();
15482   if (SWIG_IsTmpObj(res2)) {
15483     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
15484   } else {
15485     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15486     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
15487   }
15488   return resultobj;
15489 fail:
15490   return NULL;
15491 }
15492 
15493 
_wrap_anwcs_t_is_inside(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15494 SWIGINTERN PyObject *_wrap_anwcs_t_is_inside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15495   PyObject *resultobj = 0;
15496   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15497   double arg2 ;
15498   double arg3 ;
15499   void *argp1 = 0 ;
15500   int res1 = 0 ;
15501   double val2 ;
15502   int ecode2 = 0 ;
15503   double val3 ;
15504   int ecode3 = 0 ;
15505   PyObject *swig_obj[3] ;
15506   anbool result;
15507 
15508   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_is_inside", 3, 3, swig_obj)) SWIG_fail;
15509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15510   if (!SWIG_IsOK(res1)) {
15511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_is_inside" "', argument " "1"" of type '" "struct anwcs_t *""'");
15512   }
15513   arg1 = (struct anwcs_t *)(argp1);
15514   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15515   if (!SWIG_IsOK(ecode2)) {
15516     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_t_is_inside" "', argument " "2"" of type '" "double""'");
15517   }
15518   arg2 = (double)(val2);
15519   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15520   if (!SWIG_IsOK(ecode3)) {
15521     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_t_is_inside" "', argument " "3"" of type '" "double""'");
15522   }
15523   arg3 = (double)(val3);
15524   result = (anbool)anwcs_t_is_inside(arg1,arg2,arg3);
15525   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
15526   return resultobj;
15527 fail:
15528   return NULL;
15529 }
15530 
15531 
_wrap_anwcs_t_get_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15532 SWIGINTERN PyObject *_wrap_anwcs_t_get_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15533   PyObject *resultobj = 0;
15534   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15535   void *argp1 = 0 ;
15536   int res1 = 0 ;
15537   PyObject *swig_obj[1] ;
15538   double result;
15539 
15540   if (!args) SWIG_fail;
15541   swig_obj[0] = args;
15542   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15543   if (!SWIG_IsOK(res1)) {
15544     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_get_width" "', argument " "1"" of type '" "struct anwcs_t *""'");
15545   }
15546   arg1 = (struct anwcs_t *)(argp1);
15547   result = (double)anwcs_t_get_width(arg1);
15548   resultobj = SWIG_From_double((double)(result));
15549   return resultobj;
15550 fail:
15551   return NULL;
15552 }
15553 
15554 
_wrap_anwcs_t_get_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15555 SWIGINTERN PyObject *_wrap_anwcs_t_get_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15556   PyObject *resultobj = 0;
15557   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15558   void *argp1 = 0 ;
15559   int res1 = 0 ;
15560   PyObject *swig_obj[1] ;
15561   double result;
15562 
15563   if (!args) SWIG_fail;
15564   swig_obj[0] = args;
15565   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15566   if (!SWIG_IsOK(res1)) {
15567     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_get_height" "', argument " "1"" of type '" "struct anwcs_t *""'");
15568   }
15569   arg1 = (struct anwcs_t *)(argp1);
15570   result = (double)anwcs_t_get_height(arg1);
15571   resultobj = SWIG_From_double((double)(result));
15572   return resultobj;
15573 fail:
15574   return NULL;
15575 }
15576 
15577 
_wrap_anwcs_t_set_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15578 SWIGINTERN PyObject *_wrap_anwcs_t_set_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15579   PyObject *resultobj = 0;
15580   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15581   int arg2 ;
15582   void *argp1 = 0 ;
15583   int res1 = 0 ;
15584   int val2 ;
15585   int ecode2 = 0 ;
15586   PyObject *swig_obj[2] ;
15587 
15588   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_set_width", 2, 2, swig_obj)) SWIG_fail;
15589   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15590   if (!SWIG_IsOK(res1)) {
15591     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_set_width" "', argument " "1"" of type '" "struct anwcs_t *""'");
15592   }
15593   arg1 = (struct anwcs_t *)(argp1);
15594   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15595   if (!SWIG_IsOK(ecode2)) {
15596     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_t_set_width" "', argument " "2"" of type '" "int""'");
15597   }
15598   arg2 = (int)(val2);
15599   anwcs_t_set_width(arg1,arg2);
15600   resultobj = SWIG_Py_Void();
15601   return resultobj;
15602 fail:
15603   return NULL;
15604 }
15605 
15606 
_wrap_anwcs_t_set_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15607 SWIGINTERN PyObject *_wrap_anwcs_t_set_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15608   PyObject *resultobj = 0;
15609   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15610   int arg2 ;
15611   void *argp1 = 0 ;
15612   int res1 = 0 ;
15613   int val2 ;
15614   int ecode2 = 0 ;
15615   PyObject *swig_obj[2] ;
15616 
15617   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_set_height", 2, 2, swig_obj)) SWIG_fail;
15618   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15619   if (!SWIG_IsOK(res1)) {
15620     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_set_height" "', argument " "1"" of type '" "struct anwcs_t *""'");
15621   }
15622   arg1 = (struct anwcs_t *)(argp1);
15623   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15624   if (!SWIG_IsOK(ecode2)) {
15625     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_t_set_height" "', argument " "2"" of type '" "int""'");
15626   }
15627   arg2 = (int)(val2);
15628   anwcs_t_set_height(arg1,arg2);
15629   resultobj = SWIG_Py_Void();
15630   return resultobj;
15631 fail:
15632   return NULL;
15633 }
15634 
15635 
_wrap_anwcs_t_pixelxy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15636 SWIGINTERN PyObject *_wrap_anwcs_t_pixelxy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15637   PyObject *resultobj = 0;
15638   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15639   double arg2 ;
15640   double arg3 ;
15641   double *arg4 = (double *) 0 ;
15642   double *arg5 = (double *) 0 ;
15643   void *argp1 = 0 ;
15644   int res1 = 0 ;
15645   double val2 ;
15646   int ecode2 = 0 ;
15647   double val3 ;
15648   int ecode3 = 0 ;
15649   double temp4 ;
15650   int res4 = SWIG_TMPOBJ ;
15651   double temp5 ;
15652   int res5 = SWIG_TMPOBJ ;
15653   PyObject *swig_obj[3] ;
15654 
15655   arg4 = &temp4;
15656   arg5 = &temp5;
15657   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_pixelxy2radec", 3, 3, swig_obj)) SWIG_fail;
15658   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15659   if (!SWIG_IsOK(res1)) {
15660     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_pixelxy2radec" "', argument " "1"" of type '" "struct anwcs_t *""'");
15661   }
15662   arg1 = (struct anwcs_t *)(argp1);
15663   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15664   if (!SWIG_IsOK(ecode2)) {
15665     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_t_pixelxy2radec" "', argument " "2"" of type '" "double""'");
15666   }
15667   arg2 = (double)(val2);
15668   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15669   if (!SWIG_IsOK(ecode3)) {
15670     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_t_pixelxy2radec" "', argument " "3"" of type '" "double""'");
15671   }
15672   arg3 = (double)(val3);
15673   anwcs_t_pixelxy2radec(arg1,arg2,arg3,arg4,arg5);
15674   resultobj = SWIG_Py_Void();
15675   if (SWIG_IsTmpObj(res4)) {
15676     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
15677   } else {
15678     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15679     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
15680   }
15681   if (SWIG_IsTmpObj(res5)) {
15682     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
15683   } else {
15684     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15685     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
15686   }
15687   return resultobj;
15688 fail:
15689   return NULL;
15690 }
15691 
15692 
_wrap_anwcs_t_radec2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15693 SWIGINTERN PyObject *_wrap_anwcs_t_radec2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694   PyObject *resultobj = 0;
15695   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15696   double arg2 ;
15697   double arg3 ;
15698   double *arg4 = (double *) 0 ;
15699   double *arg5 = (double *) 0 ;
15700   void *argp1 = 0 ;
15701   int res1 = 0 ;
15702   double val2 ;
15703   int ecode2 = 0 ;
15704   double val3 ;
15705   int ecode3 = 0 ;
15706   double temp4 ;
15707   int res4 = SWIG_TMPOBJ ;
15708   double temp5 ;
15709   int res5 = SWIG_TMPOBJ ;
15710   PyObject *swig_obj[3] ;
15711   int result;
15712 
15713   arg4 = &temp4;
15714   arg5 = &temp5;
15715   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_radec2pixelxy", 3, 3, swig_obj)) SWIG_fail;
15716   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15717   if (!SWIG_IsOK(res1)) {
15718     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_radec2pixelxy" "', argument " "1"" of type '" "struct anwcs_t *""'");
15719   }
15720   arg1 = (struct anwcs_t *)(argp1);
15721   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15722   if (!SWIG_IsOK(ecode2)) {
15723     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_t_radec2pixelxy" "', argument " "2"" of type '" "double""'");
15724   }
15725   arg2 = (double)(val2);
15726   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15727   if (!SWIG_IsOK(ecode3)) {
15728     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_t_radec2pixelxy" "', argument " "3"" of type '" "double""'");
15729   }
15730   arg3 = (double)(val3);
15731   result = (int)anwcs_t_radec2pixelxy(arg1,arg2,arg3,arg4,arg5);
15732   resultobj = SWIG_From_int((int)(result));
15733   if (SWIG_IsTmpObj(res4)) {
15734     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
15735   } else {
15736     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15737     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
15738   }
15739   if (SWIG_IsTmpObj(res5)) {
15740     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
15741   } else {
15742     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
15743     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
15744   }
15745   return resultobj;
15746 fail:
15747   return NULL;
15748 }
15749 
15750 
_wrap_anwcs_t_write_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15751 SWIGINTERN PyObject *_wrap_anwcs_t_write_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15752   PyObject *resultobj = 0;
15753   struct anwcs_t *arg1 = (struct anwcs_t *) 0 ;
15754   char *arg2 = (char *) 0 ;
15755   void *argp1 = 0 ;
15756   int res1 = 0 ;
15757   int res2 ;
15758   char *buf2 = 0 ;
15759   int alloc2 = 0 ;
15760   PyObject *swig_obj[2] ;
15761   int result;
15762 
15763   if (!SWIG_Python_UnpackTuple(args, "anwcs_t_write_to", 2, 2, swig_obj)) SWIG_fail;
15764   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15765   if (!SWIG_IsOK(res1)) {
15766     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_t_write_to" "', argument " "1"" of type '" "struct anwcs_t *""'");
15767   }
15768   arg1 = (struct anwcs_t *)(argp1);
15769   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15770   if (!SWIG_IsOK(res2)) {
15771     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_t_write_to" "', argument " "2"" of type '" "char const *""'");
15772   }
15773   arg2 = (char *)(buf2);
15774   result = (int)anwcs_t_write_to(arg1,(char const *)arg2);
15775   resultobj = SWIG_From_int((int)(result));
15776   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15777   return resultobj;
15778 fail:
15779   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15780   return NULL;
15781 }
15782 
15783 
anwcs_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15784 SWIGINTERN PyObject *anwcs_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15785   PyObject *obj;
15786   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
15787   SWIG_TypeNewClientData(SWIGTYPE_p_anwcs_t, SWIG_NewClientData(obj));
15788   return SWIG_Py_Void();
15789 }
15790 
anwcs_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15791 SWIGINTERN PyObject *anwcs_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15792   return SWIG_Python_InitShadowInstance(args);
15793 }
15794 
_wrap_anwcs_walk_outline(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15795 SWIGINTERN PyObject *_wrap_anwcs_walk_outline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15796   PyObject *resultobj = 0;
15797   anwcs_t *arg1 = (anwcs_t *) 0 ;
15798   dl *arg2 = (dl *) 0 ;
15799   int arg3 ;
15800   void *argp1 = 0 ;
15801   int res1 = 0 ;
15802   void *argp2 = 0 ;
15803   int res2 = 0 ;
15804   int val3 ;
15805   int ecode3 = 0 ;
15806   PyObject *swig_obj[3] ;
15807   pl *result = 0 ;
15808 
15809   if (!SWIG_Python_UnpackTuple(args, "anwcs_walk_outline", 3, 3, swig_obj)) SWIG_fail;
15810   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
15811   if (!SWIG_IsOK(res1)) {
15812     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_walk_outline" "', argument " "1"" of type '" "anwcs_t const *""'");
15813   }
15814   arg1 = (anwcs_t *)(argp1);
15815   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_dl, 0 |  0 );
15816   if (!SWIG_IsOK(res2)) {
15817     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_walk_outline" "', argument " "2"" of type '" "dl const *""'");
15818   }
15819   arg2 = (dl *)(argp2);
15820   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15821   if (!SWIG_IsOK(ecode3)) {
15822     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_walk_outline" "', argument " "3"" of type '" "int""'");
15823   }
15824   arg3 = (int)(val3);
15825   result = (pl *)anwcs_walk_outline((struct anwcs_t const *)arg1,(dl const *)arg2,arg3);
15826   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pl, 0 |  0 );
15827   return resultobj;
15828 fail:
15829   return NULL;
15830 }
15831 
15832 
_wrap_anwcs_wcslib_from_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15833 SWIGINTERN PyObject *_wrap_anwcs_wcslib_from_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15834   PyObject *resultobj = 0;
15835   char *arg1 = (char *) 0 ;
15836   int arg2 ;
15837   int res1 ;
15838   char *buf1 = 0 ;
15839   int alloc1 = 0 ;
15840   int val2 ;
15841   int ecode2 = 0 ;
15842   PyObject *swig_obj[2] ;
15843   anwcs_t *result = 0 ;
15844 
15845   if (!SWIG_Python_UnpackTuple(args, "anwcs_wcslib_from_string", 2, 2, swig_obj)) SWIG_fail;
15846   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15847   if (!SWIG_IsOK(res1)) {
15848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_wcslib_from_string" "', argument " "1"" of type '" "char const *""'");
15849   }
15850   arg1 = (char *)(buf1);
15851   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15852   if (!SWIG_IsOK(ecode2)) {
15853     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_wcslib_from_string" "', argument " "2"" of type '" "int""'");
15854   }
15855   arg2 = (int)(val2);
15856   result = (anwcs_t *)anwcs_wcslib_from_string((char const *)arg1,arg2);
15857   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
15858   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15859   return resultobj;
15860 fail:
15861   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15862   return NULL;
15863 }
15864 
15865 
_wrap_anwcs_open(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15866 SWIGINTERN PyObject *_wrap_anwcs_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15867   PyObject *resultobj = 0;
15868   char *arg1 = (char *) 0 ;
15869   int arg2 ;
15870   int res1 ;
15871   char *buf1 = 0 ;
15872   int alloc1 = 0 ;
15873   int val2 ;
15874   int ecode2 = 0 ;
15875   PyObject *swig_obj[2] ;
15876   anwcs_t *result = 0 ;
15877 
15878   if (!SWIG_Python_UnpackTuple(args, "anwcs_open", 2, 2, swig_obj)) SWIG_fail;
15879   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15880   if (!SWIG_IsOK(res1)) {
15881     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_open" "', argument " "1"" of type '" "char const *""'");
15882   }
15883   arg1 = (char *)(buf1);
15884   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15885   if (!SWIG_IsOK(ecode2)) {
15886     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_open" "', argument " "2"" of type '" "int""'");
15887   }
15888   arg2 = (int)(val2);
15889   result = (anwcs_t *)anwcs_open((char const *)arg1,arg2);
15890   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
15891   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15892   return resultobj;
15893 fail:
15894   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15895   return NULL;
15896 }
15897 
15898 
_wrap_anwcs_open_wcslib(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15899 SWIGINTERN PyObject *_wrap_anwcs_open_wcslib(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15900   PyObject *resultobj = 0;
15901   char *arg1 = (char *) 0 ;
15902   int arg2 ;
15903   int res1 ;
15904   char *buf1 = 0 ;
15905   int alloc1 = 0 ;
15906   int val2 ;
15907   int ecode2 = 0 ;
15908   PyObject *swig_obj[2] ;
15909   anwcs_t *result = 0 ;
15910 
15911   if (!SWIG_Python_UnpackTuple(args, "anwcs_open_wcslib", 2, 2, swig_obj)) SWIG_fail;
15912   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15913   if (!SWIG_IsOK(res1)) {
15914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_open_wcslib" "', argument " "1"" of type '" "char const *""'");
15915   }
15916   arg1 = (char *)(buf1);
15917   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15918   if (!SWIG_IsOK(ecode2)) {
15919     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_open_wcslib" "', argument " "2"" of type '" "int""'");
15920   }
15921   arg2 = (int)(val2);
15922   result = (anwcs_t *)anwcs_open_wcslib((char const *)arg1,arg2);
15923   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
15924   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15925   return resultobj;
15926 fail:
15927   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15928   return NULL;
15929 }
15930 
15931 
_wrap_anwcs_open_wcstools(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15932 SWIGINTERN PyObject *_wrap_anwcs_open_wcstools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15933   PyObject *resultobj = 0;
15934   char *arg1 = (char *) 0 ;
15935   int arg2 ;
15936   int res1 ;
15937   char *buf1 = 0 ;
15938   int alloc1 = 0 ;
15939   int val2 ;
15940   int ecode2 = 0 ;
15941   PyObject *swig_obj[2] ;
15942   anwcs_t *result = 0 ;
15943 
15944   if (!SWIG_Python_UnpackTuple(args, "anwcs_open_wcstools", 2, 2, swig_obj)) SWIG_fail;
15945   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15946   if (!SWIG_IsOK(res1)) {
15947     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_open_wcstools" "', argument " "1"" of type '" "char const *""'");
15948   }
15949   arg1 = (char *)(buf1);
15950   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15951   if (!SWIG_IsOK(ecode2)) {
15952     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_open_wcstools" "', argument " "2"" of type '" "int""'");
15953   }
15954   arg2 = (int)(val2);
15955   result = (anwcs_t *)anwcs_open_wcstools((char const *)arg1,arg2);
15956   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
15957   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15958   return resultobj;
15959 fail:
15960   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15961   return NULL;
15962 }
15963 
15964 
_wrap_anwcs_wcstools_from_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15965 SWIGINTERN PyObject *_wrap_anwcs_wcstools_from_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15966   PyObject *resultobj = 0;
15967   char *arg1 = (char *) 0 ;
15968   int arg2 ;
15969   int res1 ;
15970   char *buf1 = 0 ;
15971   int alloc1 = 0 ;
15972   int val2 ;
15973   int ecode2 = 0 ;
15974   PyObject *swig_obj[2] ;
15975   anwcs_t *result = 0 ;
15976 
15977   if (!SWIG_Python_UnpackTuple(args, "anwcs_wcstools_from_string", 2, 2, swig_obj)) SWIG_fail;
15978   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15979   if (!SWIG_IsOK(res1)) {
15980     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_wcstools_from_string" "', argument " "1"" of type '" "char const *""'");
15981   }
15982   arg1 = (char *)(buf1);
15983   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15984   if (!SWIG_IsOK(ecode2)) {
15985     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_wcstools_from_string" "', argument " "2"" of type '" "int""'");
15986   }
15987   arg2 = (int)(val2);
15988   result = (anwcs_t *)anwcs_wcstools_from_string((char const *)arg1,arg2);
15989   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
15990   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15991   return resultobj;
15992 fail:
15993   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15994   return NULL;
15995 }
15996 
15997 
_wrap_anwcs_open_sip(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15998 SWIGINTERN PyObject *_wrap_anwcs_open_sip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15999   PyObject *resultobj = 0;
16000   char *arg1 = (char *) 0 ;
16001   int arg2 ;
16002   int res1 ;
16003   char *buf1 = 0 ;
16004   int alloc1 = 0 ;
16005   int val2 ;
16006   int ecode2 = 0 ;
16007   PyObject *swig_obj[2] ;
16008   anwcs_t *result = 0 ;
16009 
16010   if (!SWIG_Python_UnpackTuple(args, "anwcs_open_sip", 2, 2, swig_obj)) SWIG_fail;
16011   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
16012   if (!SWIG_IsOK(res1)) {
16013     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_open_sip" "', argument " "1"" of type '" "char const *""'");
16014   }
16015   arg1 = (char *)(buf1);
16016   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16017   if (!SWIG_IsOK(ecode2)) {
16018     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_open_sip" "', argument " "2"" of type '" "int""'");
16019   }
16020   arg2 = (int)(val2);
16021   result = (anwcs_t *)anwcs_open_sip((char const *)arg1,arg2);
16022   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16023   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16024   return resultobj;
16025 fail:
16026   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16027   return NULL;
16028 }
16029 
16030 
_wrap_anwcs_open_tan(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16031 SWIGINTERN PyObject *_wrap_anwcs_open_tan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16032   PyObject *resultobj = 0;
16033   char *arg1 = (char *) 0 ;
16034   int arg2 ;
16035   int res1 ;
16036   char *buf1 = 0 ;
16037   int alloc1 = 0 ;
16038   int val2 ;
16039   int ecode2 = 0 ;
16040   PyObject *swig_obj[2] ;
16041   anwcs_t *result = 0 ;
16042 
16043   if (!SWIG_Python_UnpackTuple(args, "anwcs_open_tan", 2, 2, swig_obj)) SWIG_fail;
16044   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
16045   if (!SWIG_IsOK(res1)) {
16046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_open_tan" "', argument " "1"" of type '" "char const *""'");
16047   }
16048   arg1 = (char *)(buf1);
16049   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16050   if (!SWIG_IsOK(ecode2)) {
16051     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_open_tan" "', argument " "2"" of type '" "int""'");
16052   }
16053   arg2 = (int)(val2);
16054   result = (anwcs_t *)anwcs_open_tan((char const *)arg1,arg2);
16055   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16056   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16057   return resultobj;
16058 fail:
16059   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16060   return NULL;
16061 }
16062 
16063 
_wrap_anwcs_new_sip(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16064 SWIGINTERN PyObject *_wrap_anwcs_new_sip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065   PyObject *resultobj = 0;
16066   sip_t *arg1 = (sip_t *) 0 ;
16067   void *argp1 = 0 ;
16068   int res1 = 0 ;
16069   PyObject *swig_obj[1] ;
16070   anwcs_t *result = 0 ;
16071 
16072   if (!args) SWIG_fail;
16073   swig_obj[0] = args;
16074   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
16075   if (!SWIG_IsOK(res1)) {
16076     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_new_sip" "', argument " "1"" of type '" "sip_t const *""'");
16077   }
16078   arg1 = (sip_t *)(argp1);
16079   result = (anwcs_t *)anwcs_new_sip((sip_t const *)arg1);
16080   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16081   return resultobj;
16082 fail:
16083   return NULL;
16084 }
16085 
16086 
_wrap_anwcs_new_tan(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16087 SWIGINTERN PyObject *_wrap_anwcs_new_tan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16088   PyObject *resultobj = 0;
16089   tan_t *arg1 = (tan_t *) 0 ;
16090   void *argp1 = 0 ;
16091   int res1 = 0 ;
16092   PyObject *swig_obj[1] ;
16093   anwcs_t *result = 0 ;
16094 
16095   if (!args) SWIG_fail;
16096   swig_obj[0] = args;
16097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
16098   if (!SWIG_IsOK(res1)) {
16099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_new_tan" "', argument " "1"" of type '" "tan_t const *""'");
16100   }
16101   arg1 = (tan_t *)(argp1);
16102   result = (anwcs_t *)anwcs_new_tan((tan_t const *)arg1);
16103   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16104   return resultobj;
16105 fail:
16106   return NULL;
16107 }
16108 
16109 
_wrap_anwcs_create_box(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16110 SWIGINTERN PyObject *_wrap_anwcs_create_box(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16111   PyObject *resultobj = 0;
16112   double arg1 ;
16113   double arg2 ;
16114   double arg3 ;
16115   int arg4 ;
16116   int arg5 ;
16117   double val1 ;
16118   int ecode1 = 0 ;
16119   double val2 ;
16120   int ecode2 = 0 ;
16121   double val3 ;
16122   int ecode3 = 0 ;
16123   int val4 ;
16124   int ecode4 = 0 ;
16125   int val5 ;
16126   int ecode5 = 0 ;
16127   PyObject *swig_obj[5] ;
16128   anwcs_t *result = 0 ;
16129 
16130   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_box", 5, 5, swig_obj)) SWIG_fail;
16131   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16132   if (!SWIG_IsOK(ecode1)) {
16133     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_box" "', argument " "1"" of type '" "double""'");
16134   }
16135   arg1 = (double)(val1);
16136   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16137   if (!SWIG_IsOK(ecode2)) {
16138     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_box" "', argument " "2"" of type '" "double""'");
16139   }
16140   arg2 = (double)(val2);
16141   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16142   if (!SWIG_IsOK(ecode3)) {
16143     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_box" "', argument " "3"" of type '" "double""'");
16144   }
16145   arg3 = (double)(val3);
16146   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16147   if (!SWIG_IsOK(ecode4)) {
16148     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_box" "', argument " "4"" of type '" "int""'");
16149   }
16150   arg4 = (int)(val4);
16151   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
16152   if (!SWIG_IsOK(ecode5)) {
16153     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_box" "', argument " "5"" of type '" "int""'");
16154   }
16155   arg5 = (int)(val5);
16156   result = (anwcs_t *)anwcs_create_box(arg1,arg2,arg3,arg4,arg5);
16157   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16158   return resultobj;
16159 fail:
16160   return NULL;
16161 }
16162 
16163 
_wrap_anwcs_create_box_upsidedown(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16164 SWIGINTERN PyObject *_wrap_anwcs_create_box_upsidedown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16165   PyObject *resultobj = 0;
16166   double arg1 ;
16167   double arg2 ;
16168   double arg3 ;
16169   int arg4 ;
16170   int arg5 ;
16171   double val1 ;
16172   int ecode1 = 0 ;
16173   double val2 ;
16174   int ecode2 = 0 ;
16175   double val3 ;
16176   int ecode3 = 0 ;
16177   int val4 ;
16178   int ecode4 = 0 ;
16179   int val5 ;
16180   int ecode5 = 0 ;
16181   PyObject *swig_obj[5] ;
16182   anwcs_t *result = 0 ;
16183 
16184   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_box_upsidedown", 5, 5, swig_obj)) SWIG_fail;
16185   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16186   if (!SWIG_IsOK(ecode1)) {
16187     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_box_upsidedown" "', argument " "1"" of type '" "double""'");
16188   }
16189   arg1 = (double)(val1);
16190   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16191   if (!SWIG_IsOK(ecode2)) {
16192     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_box_upsidedown" "', argument " "2"" of type '" "double""'");
16193   }
16194   arg2 = (double)(val2);
16195   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16196   if (!SWIG_IsOK(ecode3)) {
16197     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_box_upsidedown" "', argument " "3"" of type '" "double""'");
16198   }
16199   arg3 = (double)(val3);
16200   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16201   if (!SWIG_IsOK(ecode4)) {
16202     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_box_upsidedown" "', argument " "4"" of type '" "int""'");
16203   }
16204   arg4 = (int)(val4);
16205   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
16206   if (!SWIG_IsOK(ecode5)) {
16207     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_box_upsidedown" "', argument " "5"" of type '" "int""'");
16208   }
16209   arg5 = (int)(val5);
16210   result = (anwcs_t *)anwcs_create_box_upsidedown(arg1,arg2,arg3,arg4,arg5);
16211   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16212   return resultobj;
16213 fail:
16214   return NULL;
16215 }
16216 
16217 
_wrap_anwcs_create_mercator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16218 SWIGINTERN PyObject *_wrap_anwcs_create_mercator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16219   PyObject *resultobj = 0;
16220   double arg1 ;
16221   double arg2 ;
16222   double arg3 ;
16223   int arg4 ;
16224   int arg5 ;
16225   anbool arg6 ;
16226   double val1 ;
16227   int ecode1 = 0 ;
16228   double val2 ;
16229   int ecode2 = 0 ;
16230   double val3 ;
16231   int ecode3 = 0 ;
16232   int val4 ;
16233   int ecode4 = 0 ;
16234   int val5 ;
16235   int ecode5 = 0 ;
16236   unsigned char val6 ;
16237   int ecode6 = 0 ;
16238   PyObject *swig_obj[6] ;
16239   anwcs_t *result = 0 ;
16240 
16241   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_mercator", 6, 6, swig_obj)) SWIG_fail;
16242   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16243   if (!SWIG_IsOK(ecode1)) {
16244     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_mercator" "', argument " "1"" of type '" "double""'");
16245   }
16246   arg1 = (double)(val1);
16247   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16248   if (!SWIG_IsOK(ecode2)) {
16249     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_mercator" "', argument " "2"" of type '" "double""'");
16250   }
16251   arg2 = (double)(val2);
16252   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16253   if (!SWIG_IsOK(ecode3)) {
16254     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_mercator" "', argument " "3"" of type '" "double""'");
16255   }
16256   arg3 = (double)(val3);
16257   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16258   if (!SWIG_IsOK(ecode4)) {
16259     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_mercator" "', argument " "4"" of type '" "int""'");
16260   }
16261   arg4 = (int)(val4);
16262   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
16263   if (!SWIG_IsOK(ecode5)) {
16264     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_mercator" "', argument " "5"" of type '" "int""'");
16265   }
16266   arg5 = (int)(val5);
16267   ecode6 = SWIG_AsVal_unsigned_SS_char(swig_obj[5], &val6);
16268   if (!SWIG_IsOK(ecode6)) {
16269     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "anwcs_create_mercator" "', argument " "6"" of type '" "anbool""'");
16270   }
16271   arg6 = (anbool)(val6);
16272   result = (anwcs_t *)anwcs_create_mercator(arg1,arg2,arg3,arg4,arg5,arg6);
16273   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16274   return resultobj;
16275 fail:
16276   return NULL;
16277 }
16278 
16279 
_wrap_anwcs_create_mercator_2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16280 SWIGINTERN PyObject *_wrap_anwcs_create_mercator_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16281   PyObject *resultobj = 0;
16282   double arg1 ;
16283   double arg2 ;
16284   double arg3 ;
16285   double arg4 ;
16286   double arg5 ;
16287   int arg6 ;
16288   int arg7 ;
16289   anbool arg8 ;
16290   double val1 ;
16291   int ecode1 = 0 ;
16292   double val2 ;
16293   int ecode2 = 0 ;
16294   double val3 ;
16295   int ecode3 = 0 ;
16296   double val4 ;
16297   int ecode4 = 0 ;
16298   double val5 ;
16299   int ecode5 = 0 ;
16300   int val6 ;
16301   int ecode6 = 0 ;
16302   int val7 ;
16303   int ecode7 = 0 ;
16304   unsigned char val8 ;
16305   int ecode8 = 0 ;
16306   PyObject *swig_obj[8] ;
16307   anwcs_t *result = 0 ;
16308 
16309   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_mercator_2", 8, 8, swig_obj)) SWIG_fail;
16310   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16311   if (!SWIG_IsOK(ecode1)) {
16312     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_mercator_2" "', argument " "1"" of type '" "double""'");
16313   }
16314   arg1 = (double)(val1);
16315   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16316   if (!SWIG_IsOK(ecode2)) {
16317     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_mercator_2" "', argument " "2"" of type '" "double""'");
16318   }
16319   arg2 = (double)(val2);
16320   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16321   if (!SWIG_IsOK(ecode3)) {
16322     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_mercator_2" "', argument " "3"" of type '" "double""'");
16323   }
16324   arg3 = (double)(val3);
16325   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
16326   if (!SWIG_IsOK(ecode4)) {
16327     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_mercator_2" "', argument " "4"" of type '" "double""'");
16328   }
16329   arg4 = (double)(val4);
16330   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
16331   if (!SWIG_IsOK(ecode5)) {
16332     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_mercator_2" "', argument " "5"" of type '" "double""'");
16333   }
16334   arg5 = (double)(val5);
16335   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
16336   if (!SWIG_IsOK(ecode6)) {
16337     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "anwcs_create_mercator_2" "', argument " "6"" of type '" "int""'");
16338   }
16339   arg6 = (int)(val6);
16340   ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
16341   if (!SWIG_IsOK(ecode7)) {
16342     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "anwcs_create_mercator_2" "', argument " "7"" of type '" "int""'");
16343   }
16344   arg7 = (int)(val7);
16345   ecode8 = SWIG_AsVal_unsigned_SS_char(swig_obj[7], &val8);
16346   if (!SWIG_IsOK(ecode8)) {
16347     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "anwcs_create_mercator_2" "', argument " "8"" of type '" "anbool""'");
16348   }
16349   arg8 = (anbool)(val8);
16350   result = (anwcs_t *)anwcs_create_mercator_2(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
16351   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16352   return resultobj;
16353 fail:
16354   return NULL;
16355 }
16356 
16357 
_wrap_anwcs_create_mollweide(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16358 SWIGINTERN PyObject *_wrap_anwcs_create_mollweide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16359   PyObject *resultobj = 0;
16360   double arg1 ;
16361   double arg2 ;
16362   double arg3 ;
16363   int arg4 ;
16364   int arg5 ;
16365   anbool arg6 ;
16366   double val1 ;
16367   int ecode1 = 0 ;
16368   double val2 ;
16369   int ecode2 = 0 ;
16370   double val3 ;
16371   int ecode3 = 0 ;
16372   int val4 ;
16373   int ecode4 = 0 ;
16374   int val5 ;
16375   int ecode5 = 0 ;
16376   unsigned char val6 ;
16377   int ecode6 = 0 ;
16378   PyObject *swig_obj[6] ;
16379   anwcs_t *result = 0 ;
16380 
16381   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_mollweide", 6, 6, swig_obj)) SWIG_fail;
16382   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16383   if (!SWIG_IsOK(ecode1)) {
16384     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_mollweide" "', argument " "1"" of type '" "double""'");
16385   }
16386   arg1 = (double)(val1);
16387   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16388   if (!SWIG_IsOK(ecode2)) {
16389     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_mollweide" "', argument " "2"" of type '" "double""'");
16390   }
16391   arg2 = (double)(val2);
16392   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16393   if (!SWIG_IsOK(ecode3)) {
16394     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_mollweide" "', argument " "3"" of type '" "double""'");
16395   }
16396   arg3 = (double)(val3);
16397   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16398   if (!SWIG_IsOK(ecode4)) {
16399     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_mollweide" "', argument " "4"" of type '" "int""'");
16400   }
16401   arg4 = (int)(val4);
16402   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
16403   if (!SWIG_IsOK(ecode5)) {
16404     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_mollweide" "', argument " "5"" of type '" "int""'");
16405   }
16406   arg5 = (int)(val5);
16407   ecode6 = SWIG_AsVal_unsigned_SS_char(swig_obj[5], &val6);
16408   if (!SWIG_IsOK(ecode6)) {
16409     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "anwcs_create_mollweide" "', argument " "6"" of type '" "anbool""'");
16410   }
16411   arg6 = (anbool)(val6);
16412   result = (anwcs_t *)anwcs_create_mollweide(arg1,arg2,arg3,arg4,arg5,arg6);
16413   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16414   return resultobj;
16415 fail:
16416   return NULL;
16417 }
16418 
16419 
_wrap_anwcs_create_cea_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16420 SWIGINTERN PyObject *_wrap_anwcs_create_cea_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16421   PyObject *resultobj = 0;
16422   double arg1 ;
16423   double arg2 ;
16424   double arg3 ;
16425   double arg4 ;
16426   double arg5 ;
16427   int arg6 ;
16428   int arg7 ;
16429   anbool arg8 ;
16430   double val1 ;
16431   int ecode1 = 0 ;
16432   double val2 ;
16433   int ecode2 = 0 ;
16434   double val3 ;
16435   int ecode3 = 0 ;
16436   double val4 ;
16437   int ecode4 = 0 ;
16438   double val5 ;
16439   int ecode5 = 0 ;
16440   int val6 ;
16441   int ecode6 = 0 ;
16442   int val7 ;
16443   int ecode7 = 0 ;
16444   unsigned char val8 ;
16445   int ecode8 = 0 ;
16446   PyObject *swig_obj[8] ;
16447   anwcs_t *result = 0 ;
16448 
16449   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_cea_wcs", 8, 8, swig_obj)) SWIG_fail;
16450   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16451   if (!SWIG_IsOK(ecode1)) {
16452     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_cea_wcs" "', argument " "1"" of type '" "double""'");
16453   }
16454   arg1 = (double)(val1);
16455   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16456   if (!SWIG_IsOK(ecode2)) {
16457     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_cea_wcs" "', argument " "2"" of type '" "double""'");
16458   }
16459   arg2 = (double)(val2);
16460   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16461   if (!SWIG_IsOK(ecode3)) {
16462     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_cea_wcs" "', argument " "3"" of type '" "double""'");
16463   }
16464   arg3 = (double)(val3);
16465   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
16466   if (!SWIG_IsOK(ecode4)) {
16467     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_cea_wcs" "', argument " "4"" of type '" "double""'");
16468   }
16469   arg4 = (double)(val4);
16470   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
16471   if (!SWIG_IsOK(ecode5)) {
16472     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_cea_wcs" "', argument " "5"" of type '" "double""'");
16473   }
16474   arg5 = (double)(val5);
16475   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
16476   if (!SWIG_IsOK(ecode6)) {
16477     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "anwcs_create_cea_wcs" "', argument " "6"" of type '" "int""'");
16478   }
16479   arg6 = (int)(val6);
16480   ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
16481   if (!SWIG_IsOK(ecode7)) {
16482     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "anwcs_create_cea_wcs" "', argument " "7"" of type '" "int""'");
16483   }
16484   arg7 = (int)(val7);
16485   ecode8 = SWIG_AsVal_unsigned_SS_char(swig_obj[7], &val8);
16486   if (!SWIG_IsOK(ecode8)) {
16487     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "anwcs_create_cea_wcs" "', argument " "8"" of type '" "anbool""'");
16488   }
16489   arg8 = (anbool)(val8);
16490   result = (anwcs_t *)anwcs_create_cea_wcs(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
16491   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16492   return resultobj;
16493 fail:
16494   return NULL;
16495 }
16496 
16497 
_wrap_anwcs_create_hammer_aitoff(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16498 SWIGINTERN PyObject *_wrap_anwcs_create_hammer_aitoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16499   PyObject *resultobj = 0;
16500   double arg1 ;
16501   double arg2 ;
16502   double arg3 ;
16503   int arg4 ;
16504   int arg5 ;
16505   anbool arg6 ;
16506   double val1 ;
16507   int ecode1 = 0 ;
16508   double val2 ;
16509   int ecode2 = 0 ;
16510   double val3 ;
16511   int ecode3 = 0 ;
16512   int val4 ;
16513   int ecode4 = 0 ;
16514   int val5 ;
16515   int ecode5 = 0 ;
16516   unsigned char val6 ;
16517   int ecode6 = 0 ;
16518   PyObject *swig_obj[6] ;
16519   anwcs_t *result = 0 ;
16520 
16521   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_hammer_aitoff", 6, 6, swig_obj)) SWIG_fail;
16522   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16523   if (!SWIG_IsOK(ecode1)) {
16524     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_hammer_aitoff" "', argument " "1"" of type '" "double""'");
16525   }
16526   arg1 = (double)(val1);
16527   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16528   if (!SWIG_IsOK(ecode2)) {
16529     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_hammer_aitoff" "', argument " "2"" of type '" "double""'");
16530   }
16531   arg2 = (double)(val2);
16532   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16533   if (!SWIG_IsOK(ecode3)) {
16534     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_hammer_aitoff" "', argument " "3"" of type '" "double""'");
16535   }
16536   arg3 = (double)(val3);
16537   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16538   if (!SWIG_IsOK(ecode4)) {
16539     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_hammer_aitoff" "', argument " "4"" of type '" "int""'");
16540   }
16541   arg4 = (int)(val4);
16542   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
16543   if (!SWIG_IsOK(ecode5)) {
16544     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_create_hammer_aitoff" "', argument " "5"" of type '" "int""'");
16545   }
16546   arg5 = (int)(val5);
16547   ecode6 = SWIG_AsVal_unsigned_SS_char(swig_obj[5], &val6);
16548   if (!SWIG_IsOK(ecode6)) {
16549     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "anwcs_create_hammer_aitoff" "', argument " "6"" of type '" "anbool""'");
16550   }
16551   arg6 = (anbool)(val6);
16552   result = (anwcs_t *)anwcs_create_hammer_aitoff(arg1,arg2,arg3,arg4,arg5,arg6);
16553   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16554   return resultobj;
16555 fail:
16556   return NULL;
16557 }
16558 
16559 
_wrap_anwcs_create_allsky_hammer_aitoff(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16560 SWIGINTERN PyObject *_wrap_anwcs_create_allsky_hammer_aitoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16561   PyObject *resultobj = 0;
16562   double arg1 ;
16563   double arg2 ;
16564   int arg3 ;
16565   int arg4 ;
16566   double val1 ;
16567   int ecode1 = 0 ;
16568   double val2 ;
16569   int ecode2 = 0 ;
16570   int val3 ;
16571   int ecode3 = 0 ;
16572   int val4 ;
16573   int ecode4 = 0 ;
16574   PyObject *swig_obj[4] ;
16575   anwcs_t *result = 0 ;
16576 
16577   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_allsky_hammer_aitoff", 4, 4, swig_obj)) SWIG_fail;
16578   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16579   if (!SWIG_IsOK(ecode1)) {
16580     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_allsky_hammer_aitoff" "', argument " "1"" of type '" "double""'");
16581   }
16582   arg1 = (double)(val1);
16583   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16584   if (!SWIG_IsOK(ecode2)) {
16585     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_allsky_hammer_aitoff" "', argument " "2"" of type '" "double""'");
16586   }
16587   arg2 = (double)(val2);
16588   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
16589   if (!SWIG_IsOK(ecode3)) {
16590     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_allsky_hammer_aitoff" "', argument " "3"" of type '" "int""'");
16591   }
16592   arg3 = (int)(val3);
16593   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16594   if (!SWIG_IsOK(ecode4)) {
16595     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_allsky_hammer_aitoff" "', argument " "4"" of type '" "int""'");
16596   }
16597   arg4 = (int)(val4);
16598   result = (anwcs_t *)anwcs_create_allsky_hammer_aitoff(arg1,arg2,arg3,arg4);
16599   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16600   return resultobj;
16601 fail:
16602   return NULL;
16603 }
16604 
16605 
_wrap_anwcs_create_allsky_hammer_aitoff2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16606 SWIGINTERN PyObject *_wrap_anwcs_create_allsky_hammer_aitoff2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16607   PyObject *resultobj = 0;
16608   double arg1 ;
16609   double arg2 ;
16610   int arg3 ;
16611   int arg4 ;
16612   double val1 ;
16613   int ecode1 = 0 ;
16614   double val2 ;
16615   int ecode2 = 0 ;
16616   int val3 ;
16617   int ecode3 = 0 ;
16618   int val4 ;
16619   int ecode4 = 0 ;
16620   PyObject *swig_obj[4] ;
16621   anwcs_t *result = 0 ;
16622 
16623   if (!SWIG_Python_UnpackTuple(args, "anwcs_create_allsky_hammer_aitoff2", 4, 4, swig_obj)) SWIG_fail;
16624   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
16625   if (!SWIG_IsOK(ecode1)) {
16626     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "anwcs_create_allsky_hammer_aitoff2" "', argument " "1"" of type '" "double""'");
16627   }
16628   arg1 = (double)(val1);
16629   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16630   if (!SWIG_IsOK(ecode2)) {
16631     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_create_allsky_hammer_aitoff2" "', argument " "2"" of type '" "double""'");
16632   }
16633   arg2 = (double)(val2);
16634   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
16635   if (!SWIG_IsOK(ecode3)) {
16636     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_create_allsky_hammer_aitoff2" "', argument " "3"" of type '" "int""'");
16637   }
16638   arg3 = (int)(val3);
16639   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
16640   if (!SWIG_IsOK(ecode4)) {
16641     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_create_allsky_hammer_aitoff2" "', argument " "4"" of type '" "int""'");
16642   }
16643   arg4 = (int)(val4);
16644   result = (anwcs_t *)anwcs_create_allsky_hammer_aitoff2(arg1,arg2,arg3,arg4);
16645   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
16646   return resultobj;
16647 fail:
16648   return NULL;
16649 }
16650 
16651 
_wrap_anwcs_write(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16652 SWIGINTERN PyObject *_wrap_anwcs_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16653   PyObject *resultobj = 0;
16654   anwcs_t *arg1 = (anwcs_t *) 0 ;
16655   char *arg2 = (char *) 0 ;
16656   void *argp1 = 0 ;
16657   int res1 = 0 ;
16658   int res2 ;
16659   char *buf2 = 0 ;
16660   int alloc2 = 0 ;
16661   PyObject *swig_obj[2] ;
16662   int result;
16663 
16664   if (!SWIG_Python_UnpackTuple(args, "anwcs_write", 2, 2, swig_obj)) SWIG_fail;
16665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16666   if (!SWIG_IsOK(res1)) {
16667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_write" "', argument " "1"" of type '" "anwcs_t const *""'");
16668   }
16669   arg1 = (anwcs_t *)(argp1);
16670   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16671   if (!SWIG_IsOK(res2)) {
16672     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_write" "', argument " "2"" of type '" "char const *""'");
16673   }
16674   arg2 = (char *)(buf2);
16675   result = (int)anwcs_write((struct anwcs_t const *)arg1,(char const *)arg2);
16676   resultobj = SWIG_From_int((int)(result));
16677   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16678   return resultobj;
16679 fail:
16680   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16681   return NULL;
16682 }
16683 
16684 
_wrap_anwcs_write_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16685 SWIGINTERN PyObject *_wrap_anwcs_write_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16686   PyObject *resultobj = 0;
16687   anwcs_t *arg1 = (anwcs_t *) 0 ;
16688   FILE *arg2 = (FILE *) 0 ;
16689   void *argp1 = 0 ;
16690   int res1 = 0 ;
16691   void *argp2 = 0 ;
16692   int res2 = 0 ;
16693   PyObject *swig_obj[2] ;
16694   int result;
16695 
16696   if (!SWIG_Python_UnpackTuple(args, "anwcs_write_to", 2, 2, swig_obj)) SWIG_fail;
16697   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16698   if (!SWIG_IsOK(res1)) {
16699     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_write_to" "', argument " "1"" of type '" "anwcs_t const *""'");
16700   }
16701   arg1 = (anwcs_t *)(argp1);
16702   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
16703   if (!SWIG_IsOK(res2)) {
16704     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_write_to" "', argument " "2"" of type '" "FILE *""'");
16705   }
16706   arg2 = (FILE *)(argp2);
16707   result = (int)anwcs_write_to((struct anwcs_t const *)arg1,arg2);
16708   resultobj = SWIG_From_int((int)(result));
16709   return resultobj;
16710 fail:
16711   return NULL;
16712 }
16713 
16714 
_wrap_anwcs_add_to_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16715 SWIGINTERN PyObject *_wrap_anwcs_add_to_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16716   PyObject *resultobj = 0;
16717   anwcs_t *arg1 = (anwcs_t *) 0 ;
16718   qfits_header *arg2 = (qfits_header *) 0 ;
16719   void *argp1 = 0 ;
16720   int res1 = 0 ;
16721   void *argp2 = 0 ;
16722   int res2 = 0 ;
16723   PyObject *swig_obj[2] ;
16724   int result;
16725 
16726   if (!SWIG_Python_UnpackTuple(args, "anwcs_add_to_header", 2, 2, swig_obj)) SWIG_fail;
16727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16728   if (!SWIG_IsOK(res1)) {
16729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_add_to_header" "', argument " "1"" of type '" "anwcs_t const *""'");
16730   }
16731   arg1 = (anwcs_t *)(argp1);
16732   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, 0 |  0 );
16733   if (!SWIG_IsOK(res2)) {
16734     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_add_to_header" "', argument " "2"" of type '" "qfits_header *""'");
16735   }
16736   arg2 = (qfits_header *)(argp2);
16737   result = (int)anwcs_add_to_header((struct anwcs_t const *)arg1,arg2);
16738   resultobj = SWIG_From_int((int)(result));
16739   return resultobj;
16740 fail:
16741   return NULL;
16742 }
16743 
16744 
_wrap_anwcs_radec2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16745 SWIGINTERN PyObject *_wrap_anwcs_radec2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16746   PyObject *resultobj = 0;
16747   anwcs_t *arg1 = (anwcs_t *) 0 ;
16748   double arg2 ;
16749   double arg3 ;
16750   double *arg4 = (double *) 0 ;
16751   double *arg5 = (double *) 0 ;
16752   void *argp1 = 0 ;
16753   int res1 = 0 ;
16754   double val2 ;
16755   int ecode2 = 0 ;
16756   double val3 ;
16757   int ecode3 = 0 ;
16758   double temp4 ;
16759   int res4 = SWIG_TMPOBJ ;
16760   double temp5 ;
16761   int res5 = SWIG_TMPOBJ ;
16762   PyObject *swig_obj[3] ;
16763   int result;
16764 
16765   arg4 = &temp4;
16766   arg5 = &temp5;
16767   if (!SWIG_Python_UnpackTuple(args, "anwcs_radec2pixelxy", 3, 3, swig_obj)) SWIG_fail;
16768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16769   if (!SWIG_IsOK(res1)) {
16770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_radec2pixelxy" "', argument " "1"" of type '" "anwcs_t const *""'");
16771   }
16772   arg1 = (anwcs_t *)(argp1);
16773   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16774   if (!SWIG_IsOK(ecode2)) {
16775     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_radec2pixelxy" "', argument " "2"" of type '" "double""'");
16776   }
16777   arg2 = (double)(val2);
16778   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16779   if (!SWIG_IsOK(ecode3)) {
16780     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_radec2pixelxy" "', argument " "3"" of type '" "double""'");
16781   }
16782   arg3 = (double)(val3);
16783   result = (int)anwcs_radec2pixelxy((struct anwcs_t const *)arg1,arg2,arg3,arg4,arg5);
16784   resultobj = SWIG_From_int((int)(result));
16785   if (SWIG_IsTmpObj(res4)) {
16786     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
16787   } else {
16788     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
16789     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
16790   }
16791   if (SWIG_IsTmpObj(res5)) {
16792     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
16793   } else {
16794     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
16795     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
16796   }
16797   return resultobj;
16798 fail:
16799   return NULL;
16800 }
16801 
16802 
_wrap_anwcs_pixelxy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16803 SWIGINTERN PyObject *_wrap_anwcs_pixelxy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16804   PyObject *resultobj = 0;
16805   anwcs_t *arg1 = (anwcs_t *) 0 ;
16806   double arg2 ;
16807   double arg3 ;
16808   double *arg4 = (double *) 0 ;
16809   double *arg5 = (double *) 0 ;
16810   void *argp1 = 0 ;
16811   int res1 = 0 ;
16812   double val2 ;
16813   int ecode2 = 0 ;
16814   double val3 ;
16815   int ecode3 = 0 ;
16816   double temp4 ;
16817   int res4 = SWIG_TMPOBJ ;
16818   double temp5 ;
16819   int res5 = SWIG_TMPOBJ ;
16820   PyObject *swig_obj[3] ;
16821   int result;
16822 
16823   arg4 = &temp4;
16824   arg5 = &temp5;
16825   if (!SWIG_Python_UnpackTuple(args, "anwcs_pixelxy2radec", 3, 3, swig_obj)) SWIG_fail;
16826   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16827   if (!SWIG_IsOK(res1)) {
16828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_pixelxy2radec" "', argument " "1"" of type '" "anwcs_t const *""'");
16829   }
16830   arg1 = (anwcs_t *)(argp1);
16831   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16832   if (!SWIG_IsOK(ecode2)) {
16833     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_pixelxy2radec" "', argument " "2"" of type '" "double""'");
16834   }
16835   arg2 = (double)(val2);
16836   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16837   if (!SWIG_IsOK(ecode3)) {
16838     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_pixelxy2radec" "', argument " "3"" of type '" "double""'");
16839   }
16840   arg3 = (double)(val3);
16841   result = (int)anwcs_pixelxy2radec((struct anwcs_t const *)arg1,arg2,arg3,arg4,arg5);
16842   resultobj = SWIG_From_int((int)(result));
16843   if (SWIG_IsTmpObj(res4)) {
16844     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
16845   } else {
16846     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
16847     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
16848   }
16849   if (SWIG_IsTmpObj(res5)) {
16850     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
16851   } else {
16852     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
16853     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
16854   }
16855   return resultobj;
16856 fail:
16857   return NULL;
16858 }
16859 
16860 
_wrap_anwcs_pixelxy2xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16861 SWIGINTERN PyObject *_wrap_anwcs_pixelxy2xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16862   PyObject *resultobj = 0;
16863   anwcs_t *arg1 = (anwcs_t *) 0 ;
16864   double arg2 ;
16865   double arg3 ;
16866   double *arg4 = (double *) 0 ;
16867   void *argp1 = 0 ;
16868   int res1 = 0 ;
16869   double val2 ;
16870   int ecode2 = 0 ;
16871   double val3 ;
16872   int ecode3 = 0 ;
16873   double tempxyz4[3] ;
16874   PyObject *swig_obj[3] ;
16875   int result;
16876 
16877   {
16878     arg4 = tempxyz4;
16879   }
16880   if (!SWIG_Python_UnpackTuple(args, "anwcs_pixelxy2xyz", 3, 3, swig_obj)) SWIG_fail;
16881   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16882   if (!SWIG_IsOK(res1)) {
16883     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_pixelxy2xyz" "', argument " "1"" of type '" "anwcs_t const *""'");
16884   }
16885   arg1 = (anwcs_t *)(argp1);
16886   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16887   if (!SWIG_IsOK(ecode2)) {
16888     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_pixelxy2xyz" "', argument " "2"" of type '" "double""'");
16889   }
16890   arg2 = (double)(val2);
16891   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16892   if (!SWIG_IsOK(ecode3)) {
16893     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_pixelxy2xyz" "', argument " "3"" of type '" "double""'");
16894   }
16895   arg3 = (double)(val3);
16896   result = (int)anwcs_pixelxy2xyz((struct anwcs_t const *)arg1,arg2,arg3,arg4);
16897   resultobj = SWIG_From_int((int)(result));
16898   {
16899     resultobj = Py_BuildValue("(ddd)", arg4[0], arg4[1], arg4[2]);
16900   }
16901   return resultobj;
16902 fail:
16903   return NULL;
16904 }
16905 
16906 
_wrap_anwcs_xyz2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16907 SWIGINTERN PyObject *_wrap_anwcs_xyz2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16908   PyObject *resultobj = 0;
16909   anwcs_t *arg1 = (anwcs_t *) 0 ;
16910   double *arg2 = (double *) 0 ;
16911   double *arg3 = (double *) 0 ;
16912   double *arg4 = (double *) 0 ;
16913   void *argp1 = 0 ;
16914   int res1 = 0 ;
16915   void *argp2 = 0 ;
16916   int res2 = 0 ;
16917   void *argp3 = 0 ;
16918   int res3 = 0 ;
16919   void *argp4 = 0 ;
16920   int res4 = 0 ;
16921   PyObject *swig_obj[4] ;
16922   int result;
16923 
16924   if (!SWIG_Python_UnpackTuple(args, "anwcs_xyz2pixelxy", 4, 4, swig_obj)) SWIG_fail;
16925   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16926   if (!SWIG_IsOK(res1)) {
16927     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_xyz2pixelxy" "', argument " "1"" of type '" "anwcs_t const *""'");
16928   }
16929   arg1 = (anwcs_t *)(argp1);
16930   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
16931   if (!SWIG_IsOK(res2)) {
16932     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_xyz2pixelxy" "', argument " "2"" of type '" "double const *""'");
16933   }
16934   arg2 = (double *)(argp2);
16935   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
16936   if (!SWIG_IsOK(res3)) {
16937     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "anwcs_xyz2pixelxy" "', argument " "3"" of type '" "double *""'");
16938   }
16939   arg3 = (double *)(argp3);
16940   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
16941   if (!SWIG_IsOK(res4)) {
16942     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "anwcs_xyz2pixelxy" "', argument " "4"" of type '" "double *""'");
16943   }
16944   arg4 = (double *)(argp4);
16945   result = (int)anwcs_xyz2pixelxy((struct anwcs_t const *)arg1,(double const *)arg2,arg3,arg4);
16946   resultobj = SWIG_From_int((int)(result));
16947   return resultobj;
16948 fail:
16949   return NULL;
16950 }
16951 
16952 
_wrap_anwcs_radec_is_inside_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16953 SWIGINTERN PyObject *_wrap_anwcs_radec_is_inside_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16954   PyObject *resultobj = 0;
16955   anwcs_t *arg1 = (anwcs_t *) 0 ;
16956   double arg2 ;
16957   double arg3 ;
16958   void *argp1 = 0 ;
16959   int res1 = 0 ;
16960   double val2 ;
16961   int ecode2 = 0 ;
16962   double val3 ;
16963   int ecode3 = 0 ;
16964   PyObject *swig_obj[3] ;
16965   anbool result;
16966 
16967   if (!SWIG_Python_UnpackTuple(args, "anwcs_radec_is_inside_image", 3, 3, swig_obj)) SWIG_fail;
16968   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
16969   if (!SWIG_IsOK(res1)) {
16970     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_radec_is_inside_image" "', argument " "1"" of type '" "anwcs_t const *""'");
16971   }
16972   arg1 = (anwcs_t *)(argp1);
16973   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16974   if (!SWIG_IsOK(ecode2)) {
16975     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_radec_is_inside_image" "', argument " "2"" of type '" "double""'");
16976   }
16977   arg2 = (double)(val2);
16978   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16979   if (!SWIG_IsOK(ecode3)) {
16980     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_radec_is_inside_image" "', argument " "3"" of type '" "double""'");
16981   }
16982   arg3 = (double)(val3);
16983   result = (anbool)anwcs_radec_is_inside_image((struct anwcs_t const *)arg1,arg2,arg3);
16984   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
16985   return resultobj;
16986 fail:
16987   return NULL;
16988 }
16989 
16990 
_wrap_anwcs_get_cd_matrix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16991 SWIGINTERN PyObject *_wrap_anwcs_get_cd_matrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16992   PyObject *resultobj = 0;
16993   anwcs_t *arg1 = (anwcs_t *) 0 ;
16994   double *arg2 = (double *) 0 ;
16995   void *argp1 = 0 ;
16996   int res1 = 0 ;
16997   double tempcd2[4] ;
16998   PyObject *swig_obj[1] ;
16999 
17000   {
17001     arg2 = tempcd2;
17002   }
17003   if (!args) SWIG_fail;
17004   swig_obj[0] = args;
17005   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17006   if (!SWIG_IsOK(res1)) {
17007     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_get_cd_matrix" "', argument " "1"" of type '" "anwcs_t const *""'");
17008   }
17009   arg1 = (anwcs_t *)(argp1);
17010   anwcs_get_cd_matrix((struct anwcs_t const *)arg1,arg2);
17011   resultobj = SWIG_Py_Void();
17012   {
17013     resultobj = Py_BuildValue("(dddd)", arg2[0], arg2[1], arg2[2], arg2[3]);
17014   }
17015   return resultobj;
17016 fail:
17017   return NULL;
17018 }
17019 
17020 
_wrap_anwcs_get_radec_bounds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17021 SWIGINTERN PyObject *_wrap_anwcs_get_radec_bounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17022   PyObject *resultobj = 0;
17023   anwcs_t *arg1 = (anwcs_t *) 0 ;
17024   int arg2 ;
17025   double *arg3 = (double *) 0 ;
17026   double *arg4 = (double *) 0 ;
17027   double *arg5 = (double *) 0 ;
17028   double *arg6 = (double *) 0 ;
17029   void *argp1 = 0 ;
17030   int res1 = 0 ;
17031   int val2 ;
17032   int ecode2 = 0 ;
17033   double temp3 ;
17034   int res3 = SWIG_TMPOBJ ;
17035   double temp4 ;
17036   int res4 = SWIG_TMPOBJ ;
17037   double temp5 ;
17038   int res5 = SWIG_TMPOBJ ;
17039   double temp6 ;
17040   int res6 = SWIG_TMPOBJ ;
17041   PyObject *swig_obj[2] ;
17042 
17043   arg3 = &temp3;
17044   arg4 = &temp4;
17045   arg5 = &temp5;
17046   arg6 = &temp6;
17047   if (!SWIG_Python_UnpackTuple(args, "anwcs_get_radec_bounds", 2, 2, swig_obj)) SWIG_fail;
17048   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17049   if (!SWIG_IsOK(res1)) {
17050     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_get_radec_bounds" "', argument " "1"" of type '" "anwcs_t const *""'");
17051   }
17052   arg1 = (anwcs_t *)(argp1);
17053   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
17054   if (!SWIG_IsOK(ecode2)) {
17055     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_get_radec_bounds" "', argument " "2"" of type '" "int""'");
17056   }
17057   arg2 = (int)(val2);
17058   anwcs_get_radec_bounds((struct anwcs_t const *)arg1,arg2,arg3,arg4,arg5,arg6);
17059   resultobj = SWIG_Py_Void();
17060   if (SWIG_IsTmpObj(res3)) {
17061     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
17062   } else {
17063     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17064     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
17065   }
17066   if (SWIG_IsTmpObj(res4)) {
17067     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
17068   } else {
17069     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17070     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
17071   }
17072   if (SWIG_IsTmpObj(res5)) {
17073     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
17074   } else {
17075     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17076     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
17077   }
17078   if (SWIG_IsTmpObj(res6)) {
17079     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
17080   } else {
17081     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17082     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
17083   }
17084   return resultobj;
17085 fail:
17086   return NULL;
17087 }
17088 
17089 
_wrap_anwcs_print(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17090 SWIGINTERN PyObject *_wrap_anwcs_print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17091   PyObject *resultobj = 0;
17092   anwcs_t *arg1 = (anwcs_t *) 0 ;
17093   FILE *arg2 = (FILE *) 0 ;
17094   void *argp1 = 0 ;
17095   int res1 = 0 ;
17096   void *argp2 = 0 ;
17097   int res2 = 0 ;
17098   PyObject *swig_obj[2] ;
17099 
17100   if (!SWIG_Python_UnpackTuple(args, "anwcs_print", 2, 2, swig_obj)) SWIG_fail;
17101   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17102   if (!SWIG_IsOK(res1)) {
17103     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_print" "', argument " "1"" of type '" "anwcs_t const *""'");
17104   }
17105   arg1 = (anwcs_t *)(argp1);
17106   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
17107   if (!SWIG_IsOK(res2)) {
17108     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_print" "', argument " "2"" of type '" "FILE *""'");
17109   }
17110   arg2 = (FILE *)(argp2);
17111   anwcs_print((struct anwcs_t const *)arg1,arg2);
17112   resultobj = SWIG_Py_Void();
17113   return resultobj;
17114 fail:
17115   return NULL;
17116 }
17117 
17118 
_wrap_anwcs_print_stdout(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17119 SWIGINTERN PyObject *_wrap_anwcs_print_stdout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17120   PyObject *resultobj = 0;
17121   anwcs_t *arg1 = (anwcs_t *) 0 ;
17122   void *argp1 = 0 ;
17123   int res1 = 0 ;
17124   PyObject *swig_obj[1] ;
17125 
17126   if (!args) SWIG_fail;
17127   swig_obj[0] = args;
17128   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17129   if (!SWIG_IsOK(res1)) {
17130     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_print_stdout" "', argument " "1"" of type '" "anwcs_t const *""'");
17131   }
17132   arg1 = (anwcs_t *)(argp1);
17133   anwcs_print_stdout((struct anwcs_t const *)arg1);
17134   resultobj = SWIG_Py_Void();
17135   return resultobj;
17136 fail:
17137   return NULL;
17138 }
17139 
17140 
_wrap_anwcs_get_radec_center_and_radius(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17141 SWIGINTERN PyObject *_wrap_anwcs_get_radec_center_and_radius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17142   PyObject *resultobj = 0;
17143   anwcs_t *arg1 = (anwcs_t *) 0 ;
17144   double *arg2 = (double *) 0 ;
17145   double *arg3 = (double *) 0 ;
17146   double *arg4 = (double *) 0 ;
17147   void *argp1 = 0 ;
17148   int res1 = 0 ;
17149   double temp2 ;
17150   int res2 = SWIG_TMPOBJ ;
17151   double temp3 ;
17152   int res3 = SWIG_TMPOBJ ;
17153   double temp4 ;
17154   int res4 = SWIG_TMPOBJ ;
17155   PyObject *swig_obj[1] ;
17156   int result;
17157 
17158   arg2 = &temp2;
17159   arg3 = &temp3;
17160   arg4 = &temp4;
17161   if (!args) SWIG_fail;
17162   swig_obj[0] = args;
17163   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17164   if (!SWIG_IsOK(res1)) {
17165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_get_radec_center_and_radius" "', argument " "1"" of type '" "anwcs_t const *""'");
17166   }
17167   arg1 = (anwcs_t *)(argp1);
17168   result = (int)anwcs_get_radec_center_and_radius((struct anwcs_t const *)arg1,arg2,arg3,arg4);
17169   resultobj = SWIG_From_int((int)(result));
17170   if (SWIG_IsTmpObj(res2)) {
17171     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
17172   } else {
17173     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17174     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
17175   }
17176   if (SWIG_IsTmpObj(res3)) {
17177     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
17178   } else {
17179     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17180     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
17181   }
17182   if (SWIG_IsTmpObj(res4)) {
17183     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
17184   } else {
17185     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
17186     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
17187   }
17188   return resultobj;
17189 fail:
17190   return NULL;
17191 }
17192 
17193 
_wrap_anwcs_walk_image_boundary(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17194 SWIGINTERN PyObject *_wrap_anwcs_walk_image_boundary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17195   PyObject *resultobj = 0;
17196   anwcs_t *arg1 = (anwcs_t *) 0 ;
17197   double arg2 ;
17198   void (*arg3)(anwcs_t const *,double,double,double,double,void *) = (void (*)(anwcs_t const *,double,double,double,double,void *)) 0 ;
17199   void *arg4 = (void *) 0 ;
17200   void *argp1 = 0 ;
17201   int res1 = 0 ;
17202   double val2 ;
17203   int ecode2 = 0 ;
17204   int res4 ;
17205   PyObject *swig_obj[4] ;
17206 
17207   if (!SWIG_Python_UnpackTuple(args, "anwcs_walk_image_boundary", 4, 4, swig_obj)) SWIG_fail;
17208   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17209   if (!SWIG_IsOK(res1)) {
17210     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_walk_image_boundary" "', argument " "1"" of type '" "anwcs_t const *""'");
17211   }
17212   arg1 = (anwcs_t *)(argp1);
17213   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
17214   if (!SWIG_IsOK(ecode2)) {
17215     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_walk_image_boundary" "', argument " "2"" of type '" "double""'");
17216   }
17217   arg2 = (double)(val2);
17218   {
17219     int res = SWIG_ConvertFunctionPtr(swig_obj[2], (void**)(&arg3), SWIGTYPE_p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void);
17220     if (!SWIG_IsOK(res)) {
17221       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "anwcs_walk_image_boundary" "', argument " "3"" of type '" "void (*)(anwcs_t const *,double,double,double,double,void *)""'");
17222     }
17223   }
17224   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
17225   if (!SWIG_IsOK(res4)) {
17226     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "anwcs_walk_image_boundary" "', argument " "4"" of type '" "void *""'");
17227   }
17228   anwcs_walk_image_boundary((struct anwcs_t const *)arg1,arg2,arg3,arg4);
17229   resultobj = SWIG_Py_Void();
17230   return resultobj;
17231 fail:
17232   return NULL;
17233 }
17234 
17235 
_wrap_anwcs_find_discontinuity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17236 SWIGINTERN PyObject *_wrap_anwcs_find_discontinuity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17237   PyObject *resultobj = 0;
17238   anwcs_t *arg1 = (anwcs_t *) 0 ;
17239   double arg2 ;
17240   double arg3 ;
17241   double arg4 ;
17242   double arg5 ;
17243   double *arg6 = (double *) 0 ;
17244   double *arg7 = (double *) 0 ;
17245   double *arg8 = (double *) 0 ;
17246   double *arg9 = (double *) 0 ;
17247   void *argp1 = 0 ;
17248   int res1 = 0 ;
17249   double val2 ;
17250   int ecode2 = 0 ;
17251   double val3 ;
17252   int ecode3 = 0 ;
17253   double val4 ;
17254   int ecode4 = 0 ;
17255   double val5 ;
17256   int ecode5 = 0 ;
17257   void *argp6 = 0 ;
17258   int res6 = 0 ;
17259   void *argp7 = 0 ;
17260   int res7 = 0 ;
17261   void *argp8 = 0 ;
17262   int res8 = 0 ;
17263   void *argp9 = 0 ;
17264   int res9 = 0 ;
17265   PyObject *swig_obj[9] ;
17266   anbool result;
17267 
17268   if (!SWIG_Python_UnpackTuple(args, "anwcs_find_discontinuity", 9, 9, swig_obj)) SWIG_fail;
17269   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17270   if (!SWIG_IsOK(res1)) {
17271     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_find_discontinuity" "', argument " "1"" of type '" "anwcs_t const *""'");
17272   }
17273   arg1 = (anwcs_t *)(argp1);
17274   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
17275   if (!SWIG_IsOK(ecode2)) {
17276     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_find_discontinuity" "', argument " "2"" of type '" "double""'");
17277   }
17278   arg2 = (double)(val2);
17279   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
17280   if (!SWIG_IsOK(ecode3)) {
17281     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_find_discontinuity" "', argument " "3"" of type '" "double""'");
17282   }
17283   arg3 = (double)(val3);
17284   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
17285   if (!SWIG_IsOK(ecode4)) {
17286     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_find_discontinuity" "', argument " "4"" of type '" "double""'");
17287   }
17288   arg4 = (double)(val4);
17289   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
17290   if (!SWIG_IsOK(ecode5)) {
17291     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_find_discontinuity" "', argument " "5"" of type '" "double""'");
17292   }
17293   arg5 = (double)(val5);
17294   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_double, 0 |  0 );
17295   if (!SWIG_IsOK(res6)) {
17296     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "anwcs_find_discontinuity" "', argument " "6"" of type '" "double *""'");
17297   }
17298   arg6 = (double *)(argp6);
17299   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_double, 0 |  0 );
17300   if (!SWIG_IsOK(res7)) {
17301     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "anwcs_find_discontinuity" "', argument " "7"" of type '" "double *""'");
17302   }
17303   arg7 = (double *)(argp7);
17304   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_double, 0 |  0 );
17305   if (!SWIG_IsOK(res8)) {
17306     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "anwcs_find_discontinuity" "', argument " "8"" of type '" "double *""'");
17307   }
17308   arg8 = (double *)(argp8);
17309   res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_double, 0 |  0 );
17310   if (!SWIG_IsOK(res9)) {
17311     SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "anwcs_find_discontinuity" "', argument " "9"" of type '" "double *""'");
17312   }
17313   arg9 = (double *)(argp9);
17314   result = (anbool)anwcs_find_discontinuity((struct anwcs_t const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
17315   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17316   return resultobj;
17317 fail:
17318   return NULL;
17319 }
17320 
17321 
_wrap_anwcs_is_discontinuous(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17322 SWIGINTERN PyObject *_wrap_anwcs_is_discontinuous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17323   PyObject *resultobj = 0;
17324   anwcs_t *arg1 = (anwcs_t *) 0 ;
17325   double arg2 ;
17326   double arg3 ;
17327   double arg4 ;
17328   double arg5 ;
17329   void *argp1 = 0 ;
17330   int res1 = 0 ;
17331   double val2 ;
17332   int ecode2 = 0 ;
17333   double val3 ;
17334   int ecode3 = 0 ;
17335   double val4 ;
17336   int ecode4 = 0 ;
17337   double val5 ;
17338   int ecode5 = 0 ;
17339   PyObject *swig_obj[5] ;
17340   anbool result;
17341 
17342   if (!SWIG_Python_UnpackTuple(args, "anwcs_is_discontinuous", 5, 5, swig_obj)) SWIG_fail;
17343   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17344   if (!SWIG_IsOK(res1)) {
17345     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_is_discontinuous" "', argument " "1"" of type '" "anwcs_t const *""'");
17346   }
17347   arg1 = (anwcs_t *)(argp1);
17348   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
17349   if (!SWIG_IsOK(ecode2)) {
17350     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_is_discontinuous" "', argument " "2"" of type '" "double""'");
17351   }
17352   arg2 = (double)(val2);
17353   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
17354   if (!SWIG_IsOK(ecode3)) {
17355     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_is_discontinuous" "', argument " "3"" of type '" "double""'");
17356   }
17357   arg3 = (double)(val3);
17358   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
17359   if (!SWIG_IsOK(ecode4)) {
17360     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_is_discontinuous" "', argument " "4"" of type '" "double""'");
17361   }
17362   arg4 = (double)(val4);
17363   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
17364   if (!SWIG_IsOK(ecode5)) {
17365     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_is_discontinuous" "', argument " "5"" of type '" "double""'");
17366   }
17367   arg5 = (double)(val5);
17368   result = (anbool)anwcs_is_discontinuous((struct anwcs_t const *)arg1,arg2,arg3,arg4,arg5);
17369   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17370   return resultobj;
17371 fail:
17372   return NULL;
17373 }
17374 
17375 
_wrap_anwcs_walk_discontinuity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17376 SWIGINTERN PyObject *_wrap_anwcs_walk_discontinuity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17377   PyObject *resultobj = 0;
17378   anwcs_t *arg1 = (anwcs_t *) 0 ;
17379   double arg2 ;
17380   double arg3 ;
17381   double arg4 ;
17382   double arg5 ;
17383   double arg6 ;
17384   double arg7 ;
17385   double arg8 ;
17386   double arg9 ;
17387   double arg10 ;
17388   dl *arg11 = (dl *) 0 ;
17389   void *argp1 = 0 ;
17390   int res1 = 0 ;
17391   double val2 ;
17392   int ecode2 = 0 ;
17393   double val3 ;
17394   int ecode3 = 0 ;
17395   double val4 ;
17396   int ecode4 = 0 ;
17397   double val5 ;
17398   int ecode5 = 0 ;
17399   double val6 ;
17400   int ecode6 = 0 ;
17401   double val7 ;
17402   int ecode7 = 0 ;
17403   double val8 ;
17404   int ecode8 = 0 ;
17405   double val9 ;
17406   int ecode9 = 0 ;
17407   double val10 ;
17408   int ecode10 = 0 ;
17409   void *argp11 = 0 ;
17410   int res11 = 0 ;
17411   PyObject *swig_obj[11] ;
17412   dl *result = 0 ;
17413 
17414   if (!SWIG_Python_UnpackTuple(args, "anwcs_walk_discontinuity", 11, 11, swig_obj)) SWIG_fail;
17415   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17416   if (!SWIG_IsOK(res1)) {
17417     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_walk_discontinuity" "', argument " "1"" of type '" "anwcs_t const *""'");
17418   }
17419   arg1 = (anwcs_t *)(argp1);
17420   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
17421   if (!SWIG_IsOK(ecode2)) {
17422     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_walk_discontinuity" "', argument " "2"" of type '" "double""'");
17423   }
17424   arg2 = (double)(val2);
17425   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
17426   if (!SWIG_IsOK(ecode3)) {
17427     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_walk_discontinuity" "', argument " "3"" of type '" "double""'");
17428   }
17429   arg3 = (double)(val3);
17430   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
17431   if (!SWIG_IsOK(ecode4)) {
17432     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "anwcs_walk_discontinuity" "', argument " "4"" of type '" "double""'");
17433   }
17434   arg4 = (double)(val4);
17435   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
17436   if (!SWIG_IsOK(ecode5)) {
17437     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "anwcs_walk_discontinuity" "', argument " "5"" of type '" "double""'");
17438   }
17439   arg5 = (double)(val5);
17440   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
17441   if (!SWIG_IsOK(ecode6)) {
17442     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "anwcs_walk_discontinuity" "', argument " "6"" of type '" "double""'");
17443   }
17444   arg6 = (double)(val6);
17445   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
17446   if (!SWIG_IsOK(ecode7)) {
17447     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "anwcs_walk_discontinuity" "', argument " "7"" of type '" "double""'");
17448   }
17449   arg7 = (double)(val7);
17450   ecode8 = SWIG_AsVal_double(swig_obj[7], &val8);
17451   if (!SWIG_IsOK(ecode8)) {
17452     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "anwcs_walk_discontinuity" "', argument " "8"" of type '" "double""'");
17453   }
17454   arg8 = (double)(val8);
17455   ecode9 = SWIG_AsVal_double(swig_obj[8], &val9);
17456   if (!SWIG_IsOK(ecode9)) {
17457     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "anwcs_walk_discontinuity" "', argument " "9"" of type '" "double""'");
17458   }
17459   arg9 = (double)(val9);
17460   ecode10 = SWIG_AsVal_double(swig_obj[9], &val10);
17461   if (!SWIG_IsOK(ecode10)) {
17462     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "anwcs_walk_discontinuity" "', argument " "10"" of type '" "double""'");
17463   }
17464   arg10 = (double)(val10);
17465   res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_dl, 0 |  0 );
17466   if (!SWIG_IsOK(res11)) {
17467     SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "anwcs_walk_discontinuity" "', argument " "11"" of type '" "dl *""'");
17468   }
17469   arg11 = (dl *)(argp11);
17470   result = (dl *)anwcs_walk_discontinuity((struct anwcs_t const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
17471   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dl, 0 |  0 );
17472   return resultobj;
17473 fail:
17474   return NULL;
17475 }
17476 
17477 
_wrap_anwcs_overlaps(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17478 SWIGINTERN PyObject *_wrap_anwcs_overlaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17479   PyObject *resultobj = 0;
17480   anwcs_t *arg1 = (anwcs_t *) 0 ;
17481   anwcs_t *arg2 = (anwcs_t *) 0 ;
17482   int arg3 ;
17483   void *argp1 = 0 ;
17484   int res1 = 0 ;
17485   void *argp2 = 0 ;
17486   int res2 = 0 ;
17487   int val3 ;
17488   int ecode3 = 0 ;
17489   PyObject *swig_obj[3] ;
17490   anbool result;
17491 
17492   if (!SWIG_Python_UnpackTuple(args, "anwcs_overlaps", 3, 3, swig_obj)) SWIG_fail;
17493   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17494   if (!SWIG_IsOK(res1)) {
17495     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_overlaps" "', argument " "1"" of type '" "anwcs_t const *""'");
17496   }
17497   arg1 = (anwcs_t *)(argp1);
17498   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, 0 |  0 );
17499   if (!SWIG_IsOK(res2)) {
17500     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "anwcs_overlaps" "', argument " "2"" of type '" "anwcs_t const *""'");
17501   }
17502   arg2 = (anwcs_t *)(argp2);
17503   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
17504   if (!SWIG_IsOK(ecode3)) {
17505     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_overlaps" "', argument " "3"" of type '" "int""'");
17506   }
17507   arg3 = (int)(val3);
17508   result = (anbool)anwcs_overlaps((struct anwcs_t const *)arg1,(struct anwcs_t const *)arg2,arg3);
17509   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17510   return resultobj;
17511 fail:
17512   return NULL;
17513 }
17514 
17515 
_wrap_anwcs_imagew(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17516 SWIGINTERN PyObject *_wrap_anwcs_imagew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17517   PyObject *resultobj = 0;
17518   anwcs_t *arg1 = (anwcs_t *) 0 ;
17519   void *argp1 = 0 ;
17520   int res1 = 0 ;
17521   PyObject *swig_obj[1] ;
17522   double result;
17523 
17524   if (!args) SWIG_fail;
17525   swig_obj[0] = args;
17526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17527   if (!SWIG_IsOK(res1)) {
17528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_imagew" "', argument " "1"" of type '" "anwcs_t const *""'");
17529   }
17530   arg1 = (anwcs_t *)(argp1);
17531   result = (double)anwcs_imagew((struct anwcs_t const *)arg1);
17532   resultobj = SWIG_From_double((double)(result));
17533   return resultobj;
17534 fail:
17535   return NULL;
17536 }
17537 
17538 
_wrap_anwcs_imageh(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17539 SWIGINTERN PyObject *_wrap_anwcs_imageh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17540   PyObject *resultobj = 0;
17541   anwcs_t *arg1 = (anwcs_t *) 0 ;
17542   void *argp1 = 0 ;
17543   int res1 = 0 ;
17544   PyObject *swig_obj[1] ;
17545   double result;
17546 
17547   if (!args) SWIG_fail;
17548   swig_obj[0] = args;
17549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17550   if (!SWIG_IsOK(res1)) {
17551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_imageh" "', argument " "1"" of type '" "anwcs_t const *""'");
17552   }
17553   arg1 = (anwcs_t *)(argp1);
17554   result = (double)anwcs_imageh((struct anwcs_t const *)arg1);
17555   resultobj = SWIG_From_double((double)(result));
17556   return resultobj;
17557 fail:
17558   return NULL;
17559 }
17560 
17561 
_wrap_anwcs_set_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17562 SWIGINTERN PyObject *_wrap_anwcs_set_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17563   PyObject *resultobj = 0;
17564   anwcs_t *arg1 = (anwcs_t *) 0 ;
17565   int arg2 ;
17566   int arg3 ;
17567   void *argp1 = 0 ;
17568   int res1 = 0 ;
17569   int val2 ;
17570   int ecode2 = 0 ;
17571   int val3 ;
17572   int ecode3 = 0 ;
17573   PyObject *swig_obj[3] ;
17574 
17575   if (!SWIG_Python_UnpackTuple(args, "anwcs_set_size", 3, 3, swig_obj)) SWIG_fail;
17576   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17577   if (!SWIG_IsOK(res1)) {
17578     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_set_size" "', argument " "1"" of type '" "anwcs_t *""'");
17579   }
17580   arg1 = (anwcs_t *)(argp1);
17581   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
17582   if (!SWIG_IsOK(ecode2)) {
17583     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_set_size" "', argument " "2"" of type '" "int""'");
17584   }
17585   arg2 = (int)(val2);
17586   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
17587   if (!SWIG_IsOK(ecode3)) {
17588     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "anwcs_set_size" "', argument " "3"" of type '" "int""'");
17589   }
17590   arg3 = (int)(val3);
17591   anwcs_set_size(arg1,arg2,arg3);
17592   resultobj = SWIG_Py_Void();
17593   return resultobj;
17594 fail:
17595   return NULL;
17596 }
17597 
17598 
_wrap_anwcs_scale_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17599 SWIGINTERN PyObject *_wrap_anwcs_scale_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17600   PyObject *resultobj = 0;
17601   anwcs_t *arg1 = (anwcs_t *) 0 ;
17602   double arg2 ;
17603   void *argp1 = 0 ;
17604   int res1 = 0 ;
17605   double val2 ;
17606   int ecode2 = 0 ;
17607   PyObject *swig_obj[2] ;
17608   int result;
17609 
17610   if (!SWIG_Python_UnpackTuple(args, "anwcs_scale_wcs", 2, 2, swig_obj)) SWIG_fail;
17611   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17612   if (!SWIG_IsOK(res1)) {
17613     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_scale_wcs" "', argument " "1"" of type '" "anwcs_t *""'");
17614   }
17615   arg1 = (anwcs_t *)(argp1);
17616   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
17617   if (!SWIG_IsOK(ecode2)) {
17618     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_scale_wcs" "', argument " "2"" of type '" "double""'");
17619   }
17620   arg2 = (double)(val2);
17621   result = (int)anwcs_scale_wcs(arg1,arg2);
17622   resultobj = SWIG_From_int((int)(result));
17623   return resultobj;
17624 fail:
17625   return NULL;
17626 }
17627 
17628 
_wrap_anwcs_rotate_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17629 SWIGINTERN PyObject *_wrap_anwcs_rotate_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17630   PyObject *resultobj = 0;
17631   anwcs_t *arg1 = (anwcs_t *) 0 ;
17632   double arg2 ;
17633   void *argp1 = 0 ;
17634   int res1 = 0 ;
17635   double val2 ;
17636   int ecode2 = 0 ;
17637   PyObject *swig_obj[2] ;
17638   int result;
17639 
17640   if (!SWIG_Python_UnpackTuple(args, "anwcs_rotate_wcs", 2, 2, swig_obj)) SWIG_fail;
17641   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17642   if (!SWIG_IsOK(res1)) {
17643     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_rotate_wcs" "', argument " "1"" of type '" "anwcs_t *""'");
17644   }
17645   arg1 = (anwcs_t *)(argp1);
17646   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
17647   if (!SWIG_IsOK(ecode2)) {
17648     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "anwcs_rotate_wcs" "', argument " "2"" of type '" "double""'");
17649   }
17650   arg2 = (double)(val2);
17651   result = (int)anwcs_rotate_wcs(arg1,arg2);
17652   resultobj = SWIG_From_int((int)(result));
17653   return resultobj;
17654 fail:
17655   return NULL;
17656 }
17657 
17658 
_wrap_anwcs_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17659 SWIGINTERN PyObject *_wrap_anwcs_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17660   PyObject *resultobj = 0;
17661   anwcs_t *arg1 = (anwcs_t *) 0 ;
17662   void *argp1 = 0 ;
17663   int res1 = 0 ;
17664   PyObject *swig_obj[1] ;
17665   double result;
17666 
17667   if (!args) SWIG_fail;
17668   swig_obj[0] = args;
17669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17670   if (!SWIG_IsOK(res1)) {
17671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_pixel_scale" "', argument " "1"" of type '" "anwcs_t const *""'");
17672   }
17673   arg1 = (anwcs_t *)(argp1);
17674   result = (double)anwcs_pixel_scale((struct anwcs_t const *)arg1);
17675   resultobj = SWIG_From_double((double)(result));
17676   return resultobj;
17677 fail:
17678   return NULL;
17679 }
17680 
17681 
_wrap_anwcs_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17682 SWIGINTERN PyObject *_wrap_anwcs_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17683   PyObject *resultobj = 0;
17684   anwcs_t *arg1 = (anwcs_t *) 0 ;
17685   void *argp1 = 0 ;
17686   int res1 = 0 ;
17687   PyObject *swig_obj[1] ;
17688 
17689   if (!args) SWIG_fail;
17690   swig_obj[0] = args;
17691   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17692   if (!SWIG_IsOK(res1)) {
17693     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_free" "', argument " "1"" of type '" "anwcs_t *""'");
17694   }
17695   arg1 = (anwcs_t *)(argp1);
17696   anwcs_free(arg1);
17697   resultobj = SWIG_Py_Void();
17698   return resultobj;
17699 fail:
17700   return NULL;
17701 }
17702 
17703 
_wrap_anwcs_get_sip(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17704 SWIGINTERN PyObject *_wrap_anwcs_get_sip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17705   PyObject *resultobj = 0;
17706   anwcs_t *arg1 = (anwcs_t *) 0 ;
17707   void *argp1 = 0 ;
17708   int res1 = 0 ;
17709   PyObject *swig_obj[1] ;
17710   sip_t *result = 0 ;
17711 
17712   if (!args) SWIG_fail;
17713   swig_obj[0] = args;
17714   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
17715   if (!SWIG_IsOK(res1)) {
17716     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_get_sip" "', argument " "1"" of type '" "anwcs_t const *""'");
17717   }
17718   arg1 = (anwcs_t *)(argp1);
17719   result = (sip_t *)anwcs_get_sip((struct anwcs_t const *)arg1);
17720   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
17721   return resultobj;
17722 fail:
17723   return NULL;
17724 }
17725 
17726 
_wrap_dimquad2dimcode(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17727 SWIGINTERN PyObject *_wrap_dimquad2dimcode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17728   PyObject *resultobj = 0;
17729   int arg1 ;
17730   int val1 ;
17731   int ecode1 = 0 ;
17732   PyObject *swig_obj[1] ;
17733   int result;
17734 
17735   if (!args) SWIG_fail;
17736   swig_obj[0] = args;
17737   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
17738   if (!SWIG_IsOK(ecode1)) {
17739     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dimquad2dimcode" "', argument " "1"" of type '" "int""'");
17740   }
17741   arg1 = (int)(val1);
17742   result = (int)dimquad2dimcode(arg1);
17743   resultobj = SWIG_From_int((int)(result));
17744   return resultobj;
17745 fail:
17746   return NULL;
17747 }
17748 
17749 
_wrap_rad2deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17750 SWIGINTERN PyObject *_wrap_rad2deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17751   PyObject *resultobj = 0;
17752   double arg1 ;
17753   double val1 ;
17754   int ecode1 = 0 ;
17755   PyObject *swig_obj[1] ;
17756   double result;
17757 
17758   if (!args) SWIG_fail;
17759   swig_obj[0] = args;
17760   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17761   if (!SWIG_IsOK(ecode1)) {
17762     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rad2deg" "', argument " "1"" of type '" "double""'");
17763   }
17764   arg1 = (double)(val1);
17765   result = (double)rad2deg(arg1);
17766   resultobj = SWIG_From_double((double)(result));
17767   return resultobj;
17768 fail:
17769   return NULL;
17770 }
17771 
17772 
_wrap_rad2arcmin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17773 SWIGINTERN PyObject *_wrap_rad2arcmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17774   PyObject *resultobj = 0;
17775   double arg1 ;
17776   double val1 ;
17777   int ecode1 = 0 ;
17778   PyObject *swig_obj[1] ;
17779   double result;
17780 
17781   if (!args) SWIG_fail;
17782   swig_obj[0] = args;
17783   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17784   if (!SWIG_IsOK(ecode1)) {
17785     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rad2arcmin" "', argument " "1"" of type '" "double""'");
17786   }
17787   arg1 = (double)(val1);
17788   result = (double)rad2arcmin(arg1);
17789   resultobj = SWIG_From_double((double)(result));
17790   return resultobj;
17791 fail:
17792   return NULL;
17793 }
17794 
17795 
_wrap_rad2arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17796 SWIGINTERN PyObject *_wrap_rad2arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17797   PyObject *resultobj = 0;
17798   double arg1 ;
17799   double val1 ;
17800   int ecode1 = 0 ;
17801   PyObject *swig_obj[1] ;
17802   double result;
17803 
17804   if (!args) SWIG_fail;
17805   swig_obj[0] = args;
17806   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17807   if (!SWIG_IsOK(ecode1)) {
17808     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rad2arcsec" "', argument " "1"" of type '" "double""'");
17809   }
17810   arg1 = (double)(val1);
17811   result = (double)rad2arcsec(arg1);
17812   resultobj = SWIG_From_double((double)(result));
17813   return resultobj;
17814 fail:
17815   return NULL;
17816 }
17817 
17818 
_wrap_deg2rad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17819 SWIGINTERN PyObject *_wrap_deg2rad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17820   PyObject *resultobj = 0;
17821   double arg1 ;
17822   double val1 ;
17823   int ecode1 = 0 ;
17824   PyObject *swig_obj[1] ;
17825   double result;
17826 
17827   if (!args) SWIG_fail;
17828   swig_obj[0] = args;
17829   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17830   if (!SWIG_IsOK(ecode1)) {
17831     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "deg2rad" "', argument " "1"" of type '" "double""'");
17832   }
17833   arg1 = (double)(val1);
17834   result = (double)deg2rad(arg1);
17835   resultobj = SWIG_From_double((double)(result));
17836   return resultobj;
17837 fail:
17838   return NULL;
17839 }
17840 
17841 
_wrap_deg2arcmin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17842 SWIGINTERN PyObject *_wrap_deg2arcmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17843   PyObject *resultobj = 0;
17844   double arg1 ;
17845   double val1 ;
17846   int ecode1 = 0 ;
17847   PyObject *swig_obj[1] ;
17848   double result;
17849 
17850   if (!args) SWIG_fail;
17851   swig_obj[0] = args;
17852   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17853   if (!SWIG_IsOK(ecode1)) {
17854     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "deg2arcmin" "', argument " "1"" of type '" "double""'");
17855   }
17856   arg1 = (double)(val1);
17857   result = (double)deg2arcmin(arg1);
17858   resultobj = SWIG_From_double((double)(result));
17859   return resultobj;
17860 fail:
17861   return NULL;
17862 }
17863 
17864 
_wrap_deg2arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17865 SWIGINTERN PyObject *_wrap_deg2arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17866   PyObject *resultobj = 0;
17867   double arg1 ;
17868   double val1 ;
17869   int ecode1 = 0 ;
17870   PyObject *swig_obj[1] ;
17871   double result;
17872 
17873   if (!args) SWIG_fail;
17874   swig_obj[0] = args;
17875   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17876   if (!SWIG_IsOK(ecode1)) {
17877     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "deg2arcsec" "', argument " "1"" of type '" "double""'");
17878   }
17879   arg1 = (double)(val1);
17880   result = (double)deg2arcsec(arg1);
17881   resultobj = SWIG_From_double((double)(result));
17882   return resultobj;
17883 fail:
17884   return NULL;
17885 }
17886 
17887 
_wrap_arcmin2rad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17888 SWIGINTERN PyObject *_wrap_arcmin2rad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17889   PyObject *resultobj = 0;
17890   double arg1 ;
17891   double val1 ;
17892   int ecode1 = 0 ;
17893   PyObject *swig_obj[1] ;
17894   double result;
17895 
17896   if (!args) SWIG_fail;
17897   swig_obj[0] = args;
17898   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17899   if (!SWIG_IsOK(ecode1)) {
17900     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcmin2rad" "', argument " "1"" of type '" "double""'");
17901   }
17902   arg1 = (double)(val1);
17903   result = (double)arcmin2rad(arg1);
17904   resultobj = SWIG_From_double((double)(result));
17905   return resultobj;
17906 fail:
17907   return NULL;
17908 }
17909 
17910 
_wrap_arcmin2deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17911 SWIGINTERN PyObject *_wrap_arcmin2deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17912   PyObject *resultobj = 0;
17913   double arg1 ;
17914   double val1 ;
17915   int ecode1 = 0 ;
17916   PyObject *swig_obj[1] ;
17917   double result;
17918 
17919   if (!args) SWIG_fail;
17920   swig_obj[0] = args;
17921   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17922   if (!SWIG_IsOK(ecode1)) {
17923     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcmin2deg" "', argument " "1"" of type '" "double""'");
17924   }
17925   arg1 = (double)(val1);
17926   result = (double)arcmin2deg(arg1);
17927   resultobj = SWIG_From_double((double)(result));
17928   return resultobj;
17929 fail:
17930   return NULL;
17931 }
17932 
17933 
_wrap_arcmin2arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17934 SWIGINTERN PyObject *_wrap_arcmin2arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17935   PyObject *resultobj = 0;
17936   double arg1 ;
17937   double val1 ;
17938   int ecode1 = 0 ;
17939   PyObject *swig_obj[1] ;
17940   double result;
17941 
17942   if (!args) SWIG_fail;
17943   swig_obj[0] = args;
17944   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17945   if (!SWIG_IsOK(ecode1)) {
17946     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcmin2arcsec" "', argument " "1"" of type '" "double""'");
17947   }
17948   arg1 = (double)(val1);
17949   result = (double)arcmin2arcsec(arg1);
17950   resultobj = SWIG_From_double((double)(result));
17951   return resultobj;
17952 fail:
17953   return NULL;
17954 }
17955 
17956 
_wrap_arcsec2rad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17957 SWIGINTERN PyObject *_wrap_arcsec2rad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17958   PyObject *resultobj = 0;
17959   double arg1 ;
17960   double val1 ;
17961   int ecode1 = 0 ;
17962   PyObject *swig_obj[1] ;
17963   double result;
17964 
17965   if (!args) SWIG_fail;
17966   swig_obj[0] = args;
17967   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17968   if (!SWIG_IsOK(ecode1)) {
17969     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcsec2rad" "', argument " "1"" of type '" "double""'");
17970   }
17971   arg1 = (double)(val1);
17972   result = (double)arcsec2rad(arg1);
17973   resultobj = SWIG_From_double((double)(result));
17974   return resultobj;
17975 fail:
17976   return NULL;
17977 }
17978 
17979 
_wrap_arcsec2deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17980 SWIGINTERN PyObject *_wrap_arcsec2deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17981   PyObject *resultobj = 0;
17982   double arg1 ;
17983   double val1 ;
17984   int ecode1 = 0 ;
17985   PyObject *swig_obj[1] ;
17986   double result;
17987 
17988   if (!args) SWIG_fail;
17989   swig_obj[0] = args;
17990   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
17991   if (!SWIG_IsOK(ecode1)) {
17992     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcsec2deg" "', argument " "1"" of type '" "double""'");
17993   }
17994   arg1 = (double)(val1);
17995   result = (double)arcsec2deg(arg1);
17996   resultobj = SWIG_From_double((double)(result));
17997   return resultobj;
17998 fail:
17999   return NULL;
18000 }
18001 
18002 
_wrap_arcsec2arcmin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18003 SWIGINTERN PyObject *_wrap_arcsec2arcmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18004   PyObject *resultobj = 0;
18005   double arg1 ;
18006   double val1 ;
18007   int ecode1 = 0 ;
18008   PyObject *swig_obj[1] ;
18009   double result;
18010 
18011   if (!args) SWIG_fail;
18012   swig_obj[0] = args;
18013   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18014   if (!SWIG_IsOK(ecode1)) {
18015     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcsec2arcmin" "', argument " "1"" of type '" "double""'");
18016   }
18017   arg1 = (double)(val1);
18018   result = (double)arcsec2arcmin(arg1);
18019   resultobj = SWIG_From_double((double)(result));
18020   return resultobj;
18021 fail:
18022   return NULL;
18023 }
18024 
18025 
_wrap_mjdtojd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18026 SWIGINTERN PyObject *_wrap_mjdtojd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18027   PyObject *resultobj = 0;
18028   double arg1 ;
18029   double val1 ;
18030   int ecode1 = 0 ;
18031   PyObject *swig_obj[1] ;
18032   double result;
18033 
18034   if (!args) SWIG_fail;
18035   swig_obj[0] = args;
18036   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18037   if (!SWIG_IsOK(ecode1)) {
18038     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "mjdtojd" "', argument " "1"" of type '" "double""'");
18039   }
18040   arg1 = (double)(val1);
18041   result = (double)mjdtojd(arg1);
18042   resultobj = SWIG_From_double((double)(result));
18043   return resultobj;
18044 fail:
18045   return NULL;
18046 }
18047 
18048 
_wrap_jdtomjd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18049 SWIGINTERN PyObject *_wrap_jdtomjd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18050   PyObject *resultobj = 0;
18051   double arg1 ;
18052   double val1 ;
18053   int ecode1 = 0 ;
18054   PyObject *swig_obj[1] ;
18055   double result;
18056 
18057   if (!args) SWIG_fail;
18058   swig_obj[0] = args;
18059   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18060   if (!SWIG_IsOK(ecode1)) {
18061     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "jdtomjd" "', argument " "1"" of type '" "double""'");
18062   }
18063   arg1 = (double)(val1);
18064   result = (double)jdtomjd(arg1);
18065   resultobj = SWIG_From_double((double)(result));
18066   return resultobj;
18067 fail:
18068   return NULL;
18069 }
18070 
18071 
_wrap_xy2ra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18072 SWIGINTERN PyObject *_wrap_xy2ra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18073   PyObject *resultobj = 0;
18074   double arg1 ;
18075   double arg2 ;
18076   double val1 ;
18077   int ecode1 = 0 ;
18078   double val2 ;
18079   int ecode2 = 0 ;
18080   PyObject *swig_obj[2] ;
18081   double result;
18082 
18083   if (!SWIG_Python_UnpackTuple(args, "xy2ra", 2, 2, swig_obj)) SWIG_fail;
18084   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18085   if (!SWIG_IsOK(ecode1)) {
18086     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "xy2ra" "', argument " "1"" of type '" "double""'");
18087   }
18088   arg1 = (double)(val1);
18089   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18090   if (!SWIG_IsOK(ecode2)) {
18091     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xy2ra" "', argument " "2"" of type '" "double""'");
18092   }
18093   arg2 = (double)(val2);
18094   result = (double)xy2ra(arg1,arg2);
18095   resultobj = SWIG_From_double((double)(result));
18096   return resultobj;
18097 fail:
18098   return NULL;
18099 }
18100 
18101 
_wrap_z2dec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18102 SWIGINTERN PyObject *_wrap_z2dec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18103   PyObject *resultobj = 0;
18104   double arg1 ;
18105   double val1 ;
18106   int ecode1 = 0 ;
18107   PyObject *swig_obj[1] ;
18108   double result;
18109 
18110   if (!args) SWIG_fail;
18111   swig_obj[0] = args;
18112   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18113   if (!SWIG_IsOK(ecode1)) {
18114     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "z2dec" "', argument " "1"" of type '" "double""'");
18115   }
18116   arg1 = (double)(val1);
18117   result = (double)z2dec(arg1);
18118   resultobj = SWIG_From_double((double)(result));
18119   return resultobj;
18120 fail:
18121   return NULL;
18122 }
18123 
18124 
_wrap_atora(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18125 SWIGINTERN PyObject *_wrap_atora(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18126   PyObject *resultobj = 0;
18127   char *arg1 = (char *) 0 ;
18128   int res1 ;
18129   char *buf1 = 0 ;
18130   int alloc1 = 0 ;
18131   PyObject *swig_obj[1] ;
18132   double result;
18133 
18134   if (!args) SWIG_fail;
18135   swig_obj[0] = args;
18136   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
18137   if (!SWIG_IsOK(res1)) {
18138     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "atora" "', argument " "1"" of type '" "char const *""'");
18139   }
18140   arg1 = (char *)(buf1);
18141   result = (double)atora((char const *)arg1);
18142   resultobj = SWIG_From_double((double)(result));
18143   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18144   return resultobj;
18145 fail:
18146   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18147   return NULL;
18148 }
18149 
18150 
_wrap_atodec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18151 SWIGINTERN PyObject *_wrap_atodec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18152   PyObject *resultobj = 0;
18153   char *arg1 = (char *) 0 ;
18154   int res1 ;
18155   char *buf1 = 0 ;
18156   int alloc1 = 0 ;
18157   PyObject *swig_obj[1] ;
18158   double result;
18159 
18160   if (!args) SWIG_fail;
18161   swig_obj[0] = args;
18162   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
18163   if (!SWIG_IsOK(res1)) {
18164     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "atodec" "', argument " "1"" of type '" "char const *""'");
18165   }
18166   arg1 = (char *)(buf1);
18167   result = (double)atodec((char const *)arg1);
18168   resultobj = SWIG_From_double((double)(result));
18169   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18170   return resultobj;
18171 fail:
18172   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18173   return NULL;
18174 }
18175 
18176 
_wrap_mag2flux(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18177 SWIGINTERN PyObject *_wrap_mag2flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18178   PyObject *resultobj = 0;
18179   double arg1 ;
18180   double val1 ;
18181   int ecode1 = 0 ;
18182   PyObject *swig_obj[1] ;
18183   double result;
18184 
18185   if (!args) SWIG_fail;
18186   swig_obj[0] = args;
18187   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18188   if (!SWIG_IsOK(ecode1)) {
18189     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "mag2flux" "', argument " "1"" of type '" "double""'");
18190   }
18191   arg1 = (double)(val1);
18192   result = (double)mag2flux(arg1);
18193   resultobj = SWIG_From_double((double)(result));
18194   return resultobj;
18195 fail:
18196   return NULL;
18197 }
18198 
18199 
_wrap_radecrange2xyzrange(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18200 SWIGINTERN PyObject *_wrap_radecrange2xyzrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18201   PyObject *resultobj = 0;
18202   double arg1 ;
18203   double arg2 ;
18204   double arg3 ;
18205   double arg4 ;
18206   double *arg5 = (double *) 0 ;
18207   double *arg6 = (double *) 0 ;
18208   double val1 ;
18209   int ecode1 = 0 ;
18210   double val2 ;
18211   int ecode2 = 0 ;
18212   double val3 ;
18213   int ecode3 = 0 ;
18214   double val4 ;
18215   int ecode4 = 0 ;
18216   void *argp5 = 0 ;
18217   int res5 = 0 ;
18218   void *argp6 = 0 ;
18219   int res6 = 0 ;
18220   PyObject *swig_obj[6] ;
18221 
18222   if (!SWIG_Python_UnpackTuple(args, "radecrange2xyzrange", 6, 6, swig_obj)) SWIG_fail;
18223   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18224   if (!SWIG_IsOK(ecode1)) {
18225     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecrange2xyzrange" "', argument " "1"" of type '" "double""'");
18226   }
18227   arg1 = (double)(val1);
18228   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18229   if (!SWIG_IsOK(ecode2)) {
18230     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecrange2xyzrange" "', argument " "2"" of type '" "double""'");
18231   }
18232   arg2 = (double)(val2);
18233   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18234   if (!SWIG_IsOK(ecode3)) {
18235     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "radecrange2xyzrange" "', argument " "3"" of type '" "double""'");
18236   }
18237   arg3 = (double)(val3);
18238   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
18239   if (!SWIG_IsOK(ecode4)) {
18240     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "radecrange2xyzrange" "', argument " "4"" of type '" "double""'");
18241   }
18242   arg4 = (double)(val4);
18243   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
18244   if (!SWIG_IsOK(res5)) {
18245     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "radecrange2xyzrange" "', argument " "5"" of type '" "double *""'");
18246   }
18247   arg5 = (double *)(argp5);
18248   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_double, 0 |  0 );
18249   if (!SWIG_IsOK(res6)) {
18250     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "radecrange2xyzrange" "', argument " "6"" of type '" "double *""'");
18251   }
18252   arg6 = (double *)(argp6);
18253   radecrange2xyzrange(arg1,arg2,arg3,arg4,arg5,arg6);
18254   resultobj = SWIG_Py_Void();
18255   return resultobj;
18256 fail:
18257   return NULL;
18258 }
18259 
18260 
_wrap_radec2xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18261 SWIGINTERN PyObject *_wrap_radec2xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18262   PyObject *resultobj = 0;
18263   double arg1 ;
18264   double arg2 ;
18265   double *arg3 = (double *) 0 ;
18266   double *arg4 = (double *) 0 ;
18267   double *arg5 = (double *) 0 ;
18268   double val1 ;
18269   int ecode1 = 0 ;
18270   double val2 ;
18271   int ecode2 = 0 ;
18272   void *argp3 = 0 ;
18273   int res3 = 0 ;
18274   void *argp4 = 0 ;
18275   int res4 = 0 ;
18276   void *argp5 = 0 ;
18277   int res5 = 0 ;
18278   PyObject *swig_obj[5] ;
18279 
18280   if (!SWIG_Python_UnpackTuple(args, "radec2xyz", 5, 5, swig_obj)) SWIG_fail;
18281   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18282   if (!SWIG_IsOK(ecode1)) {
18283     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radec2xyz" "', argument " "1"" of type '" "double""'");
18284   }
18285   arg1 = (double)(val1);
18286   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18287   if (!SWIG_IsOK(ecode2)) {
18288     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radec2xyz" "', argument " "2"" of type '" "double""'");
18289   }
18290   arg2 = (double)(val2);
18291   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
18292   if (!SWIG_IsOK(res3)) {
18293     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "radec2xyz" "', argument " "3"" of type '" "double *""'");
18294   }
18295   arg3 = (double *)(argp3);
18296   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
18297   if (!SWIG_IsOK(res4)) {
18298     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "radec2xyz" "', argument " "4"" of type '" "double *""'");
18299   }
18300   arg4 = (double *)(argp4);
18301   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
18302   if (!SWIG_IsOK(res5)) {
18303     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "radec2xyz" "', argument " "5"" of type '" "double *""'");
18304   }
18305   arg5 = (double *)(argp5);
18306   radec2xyz(arg1,arg2,arg3,arg4,arg5);
18307   resultobj = SWIG_Py_Void();
18308   return resultobj;
18309 fail:
18310   return NULL;
18311 }
18312 
18313 
_wrap_xyz2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18314 SWIGINTERN PyObject *_wrap_xyz2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18315   PyObject *resultobj = 0;
18316   double arg1 ;
18317   double arg2 ;
18318   double arg3 ;
18319   double *arg4 = (double *) 0 ;
18320   double *arg5 = (double *) 0 ;
18321   double val1 ;
18322   int ecode1 = 0 ;
18323   double val2 ;
18324   int ecode2 = 0 ;
18325   double val3 ;
18326   int ecode3 = 0 ;
18327   double temp4 ;
18328   int res4 = SWIG_TMPOBJ ;
18329   double temp5 ;
18330   int res5 = SWIG_TMPOBJ ;
18331   PyObject *swig_obj[3] ;
18332 
18333   arg4 = &temp4;
18334   arg5 = &temp5;
18335   if (!SWIG_Python_UnpackTuple(args, "xyz2radec", 3, 3, swig_obj)) SWIG_fail;
18336   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18337   if (!SWIG_IsOK(ecode1)) {
18338     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "xyz2radec" "', argument " "1"" of type '" "double""'");
18339   }
18340   arg1 = (double)(val1);
18341   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18342   if (!SWIG_IsOK(ecode2)) {
18343     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xyz2radec" "', argument " "2"" of type '" "double""'");
18344   }
18345   arg2 = (double)(val2);
18346   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18347   if (!SWIG_IsOK(ecode3)) {
18348     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "xyz2radec" "', argument " "3"" of type '" "double""'");
18349   }
18350   arg3 = (double)(val3);
18351   xyz2radec(arg1,arg2,arg3,arg4,arg5);
18352   resultobj = SWIG_Py_Void();
18353   if (SWIG_IsTmpObj(res4)) {
18354     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
18355   } else {
18356     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18357     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
18358   }
18359   if (SWIG_IsTmpObj(res5)) {
18360     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
18361   } else {
18362     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18363     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
18364   }
18365   return resultobj;
18366 fail:
18367   return NULL;
18368 }
18369 
18370 
_wrap_xyzarr2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18371 SWIGINTERN PyObject *_wrap_xyzarr2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18372   PyObject *resultobj = 0;
18373   double *arg1 = (double *) 0 ;
18374   double *arg2 = (double *) 0 ;
18375   double *arg3 = (double *) 0 ;
18376   void *argp1 = 0 ;
18377   int res1 = 0 ;
18378   double temp2 ;
18379   int res2 = SWIG_TMPOBJ ;
18380   double temp3 ;
18381   int res3 = SWIG_TMPOBJ ;
18382   PyObject *swig_obj[1] ;
18383 
18384   arg2 = &temp2;
18385   arg3 = &temp3;
18386   if (!args) SWIG_fail;
18387   swig_obj[0] = args;
18388   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
18389   if (!SWIG_IsOK(res1)) {
18390     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarr2radec" "', argument " "1"" of type '" "double const *""'");
18391   }
18392   arg1 = (double *)(argp1);
18393   xyzarr2radec((double const *)arg1,arg2,arg3);
18394   resultobj = SWIG_Py_Void();
18395   if (SWIG_IsTmpObj(res2)) {
18396     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
18397   } else {
18398     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18399     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
18400   }
18401   if (SWIG_IsTmpObj(res3)) {
18402     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
18403   } else {
18404     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18405     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
18406   }
18407   return resultobj;
18408 fail:
18409   return NULL;
18410 }
18411 
18412 
_wrap_xyzarr2radecarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18413 SWIGINTERN PyObject *_wrap_xyzarr2radecarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18414   PyObject *resultobj = 0;
18415   double *arg1 = (double *) 0 ;
18416   double *arg2 = (double *) 0 ;
18417   void *argp1 = 0 ;
18418   int res1 = 0 ;
18419   void *argp2 = 0 ;
18420   int res2 = 0 ;
18421   PyObject *swig_obj[2] ;
18422 
18423   if (!SWIG_Python_UnpackTuple(args, "xyzarr2radecarr", 2, 2, swig_obj)) SWIG_fail;
18424   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
18425   if (!SWIG_IsOK(res1)) {
18426     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarr2radecarr" "', argument " "1"" of type '" "double const *""'");
18427   }
18428   arg1 = (double *)(argp1);
18429   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
18430   if (!SWIG_IsOK(res2)) {
18431     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xyzarr2radecarr" "', argument " "2"" of type '" "double *""'");
18432   }
18433   arg2 = (double *)(argp2);
18434   xyzarr2radecarr((double const *)arg1,arg2);
18435   resultobj = SWIG_Py_Void();
18436   return resultobj;
18437 fail:
18438   return NULL;
18439 }
18440 
18441 
_wrap_radec2xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18442 SWIGINTERN PyObject *_wrap_radec2xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18443   PyObject *resultobj = 0;
18444   double arg1 ;
18445   double arg2 ;
18446   double *arg3 = (double *) 0 ;
18447   double val1 ;
18448   int ecode1 = 0 ;
18449   double val2 ;
18450   int ecode2 = 0 ;
18451   double tempxyz3[3] ;
18452   PyObject *swig_obj[2] ;
18453 
18454   {
18455     arg3 = tempxyz3;
18456   }
18457   if (!SWIG_Python_UnpackTuple(args, "radec2xyzarr", 2, 2, swig_obj)) SWIG_fail;
18458   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18459   if (!SWIG_IsOK(ecode1)) {
18460     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radec2xyzarr" "', argument " "1"" of type '" "double""'");
18461   }
18462   arg1 = (double)(val1);
18463   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18464   if (!SWIG_IsOK(ecode2)) {
18465     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radec2xyzarr" "', argument " "2"" of type '" "double""'");
18466   }
18467   arg2 = (double)(val2);
18468   radec2xyzarr(arg1,arg2,arg3);
18469   resultobj = SWIG_Py_Void();
18470   {
18471     resultobj = Py_BuildValue("(ddd)", arg3[0], arg3[1], arg3[2]);
18472   }
18473   return resultobj;
18474 fail:
18475   return NULL;
18476 }
18477 
18478 
_wrap_radec2xyzarrmany(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18479 SWIGINTERN PyObject *_wrap_radec2xyzarrmany(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18480   PyObject *resultobj = 0;
18481   double *arg1 = (double *) 0 ;
18482   double *arg2 = (double *) 0 ;
18483   double *arg3 = (double *) 0 ;
18484   int arg4 ;
18485   double temp1 ;
18486   int res1 = SWIG_TMPOBJ ;
18487   double temp2 ;
18488   int res2 = SWIG_TMPOBJ ;
18489   void *argp3 = 0 ;
18490   int res3 = 0 ;
18491   int val4 ;
18492   int ecode4 = 0 ;
18493   PyObject *swig_obj[2] ;
18494 
18495   arg1 = &temp1;
18496   arg2 = &temp2;
18497   if (!SWIG_Python_UnpackTuple(args, "radec2xyzarrmany", 2, 2, swig_obj)) SWIG_fail;
18498   res3 = SWIG_ConvertPtr(swig_obj[0], &argp3,SWIGTYPE_p_double, 0 |  0 );
18499   if (!SWIG_IsOK(res3)) {
18500     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "radec2xyzarrmany" "', argument " "3"" of type '" "double *""'");
18501   }
18502   arg3 = (double *)(argp3);
18503   ecode4 = SWIG_AsVal_int(swig_obj[1], &val4);
18504   if (!SWIG_IsOK(ecode4)) {
18505     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "radec2xyzarrmany" "', argument " "4"" of type '" "int""'");
18506   }
18507   arg4 = (int)(val4);
18508   radec2xyzarrmany(arg1,arg2,arg3,arg4);
18509   resultobj = SWIG_Py_Void();
18510   if (SWIG_IsTmpObj(res1)) {
18511     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg1)));
18512   } else {
18513     int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18514     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_double, new_flags));
18515   }
18516   if (SWIG_IsTmpObj(res2)) {
18517     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
18518   } else {
18519     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18520     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
18521   }
18522   return resultobj;
18523 fail:
18524   return NULL;
18525 }
18526 
18527 
_wrap_radecdeg2xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18528 SWIGINTERN PyObject *_wrap_radecdeg2xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18529   PyObject *resultobj = 0;
18530   double arg1 ;
18531   double arg2 ;
18532   double *arg3 = (double *) 0 ;
18533   double *arg4 = (double *) 0 ;
18534   double *arg5 = (double *) 0 ;
18535   double val1 ;
18536   int ecode1 = 0 ;
18537   double val2 ;
18538   int ecode2 = 0 ;
18539   void *argp3 = 0 ;
18540   int res3 = 0 ;
18541   void *argp4 = 0 ;
18542   int res4 = 0 ;
18543   void *argp5 = 0 ;
18544   int res5 = 0 ;
18545   PyObject *swig_obj[5] ;
18546 
18547   if (!SWIG_Python_UnpackTuple(args, "radecdeg2xyz", 5, 5, swig_obj)) SWIG_fail;
18548   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18549   if (!SWIG_IsOK(ecode1)) {
18550     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecdeg2xyz" "', argument " "1"" of type '" "double""'");
18551   }
18552   arg1 = (double)(val1);
18553   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18554   if (!SWIG_IsOK(ecode2)) {
18555     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecdeg2xyz" "', argument " "2"" of type '" "double""'");
18556   }
18557   arg2 = (double)(val2);
18558   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
18559   if (!SWIG_IsOK(res3)) {
18560     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "radecdeg2xyz" "', argument " "3"" of type '" "double *""'");
18561   }
18562   arg3 = (double *)(argp3);
18563   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
18564   if (!SWIG_IsOK(res4)) {
18565     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "radecdeg2xyz" "', argument " "4"" of type '" "double *""'");
18566   }
18567   arg4 = (double *)(argp4);
18568   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
18569   if (!SWIG_IsOK(res5)) {
18570     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "radecdeg2xyz" "', argument " "5"" of type '" "double *""'");
18571   }
18572   arg5 = (double *)(argp5);
18573   radecdeg2xyz(arg1,arg2,arg3,arg4,arg5);
18574   resultobj = SWIG_Py_Void();
18575   return resultobj;
18576 fail:
18577   return NULL;
18578 }
18579 
18580 
_wrap_xyzarr2radecdeg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18581 SWIGINTERN PyObject *_wrap_xyzarr2radecdeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18582   PyObject *resultobj = 0;
18583   double *arg1 = (double *) 0 ;
18584   double *arg2 = (double *) 0 ;
18585   double *arg3 = (double *) 0 ;
18586   void *argp1 = 0 ;
18587   int res1 = 0 ;
18588   double temp2 ;
18589   int res2 = SWIG_TMPOBJ ;
18590   double temp3 ;
18591   int res3 = SWIG_TMPOBJ ;
18592   PyObject *swig_obj[1] ;
18593 
18594   arg2 = &temp2;
18595   arg3 = &temp3;
18596   if (!args) SWIG_fail;
18597   swig_obj[0] = args;
18598   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
18599   if (!SWIG_IsOK(res1)) {
18600     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarr2radecdeg" "', argument " "1"" of type '" "double const *""'");
18601   }
18602   arg1 = (double *)(argp1);
18603   xyzarr2radecdeg((double const *)arg1,arg2,arg3);
18604   resultobj = SWIG_Py_Void();
18605   if (SWIG_IsTmpObj(res2)) {
18606     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
18607   } else {
18608     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18609     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
18610   }
18611   if (SWIG_IsTmpObj(res3)) {
18612     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
18613   } else {
18614     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18615     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
18616   }
18617   return resultobj;
18618 fail:
18619   return NULL;
18620 }
18621 
18622 
_wrap_xyzarr2radecdegarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18623 SWIGINTERN PyObject *_wrap_xyzarr2radecdegarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18624   PyObject *resultobj = 0;
18625   double *arg1 = (double *) 0 ;
18626   double *arg2 = (double *) 0 ;
18627   void *argp1 = 0 ;
18628   int res1 = 0 ;
18629   void *argp2 = 0 ;
18630   int res2 = 0 ;
18631   PyObject *swig_obj[2] ;
18632 
18633   if (!SWIG_Python_UnpackTuple(args, "xyzarr2radecdegarr", 2, 2, swig_obj)) SWIG_fail;
18634   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
18635   if (!SWIG_IsOK(res1)) {
18636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xyzarr2radecdegarr" "', argument " "1"" of type '" "double *""'");
18637   }
18638   arg1 = (double *)(argp1);
18639   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
18640   if (!SWIG_IsOK(res2)) {
18641     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xyzarr2radecdegarr" "', argument " "2"" of type '" "double *""'");
18642   }
18643   arg2 = (double *)(argp2);
18644   xyzarr2radecdegarr(arg1,arg2);
18645   resultobj = SWIG_Py_Void();
18646   return resultobj;
18647 fail:
18648   return NULL;
18649 }
18650 
18651 
_wrap_radecdeg2xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18652 SWIGINTERN PyObject *_wrap_radecdeg2xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18653   PyObject *resultobj = 0;
18654   double arg1 ;
18655   double arg2 ;
18656   double *arg3 = (double *) 0 ;
18657   double val1 ;
18658   int ecode1 = 0 ;
18659   double val2 ;
18660   int ecode2 = 0 ;
18661   double tempxyz3[3] ;
18662   PyObject *swig_obj[2] ;
18663 
18664   {
18665     arg3 = tempxyz3;
18666   }
18667   if (!SWIG_Python_UnpackTuple(args, "radecdeg2xyzarr", 2, 2, swig_obj)) SWIG_fail;
18668   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18669   if (!SWIG_IsOK(ecode1)) {
18670     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radecdeg2xyzarr" "', argument " "1"" of type '" "double""'");
18671   }
18672   arg1 = (double)(val1);
18673   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18674   if (!SWIG_IsOK(ecode2)) {
18675     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radecdeg2xyzarr" "', argument " "2"" of type '" "double""'");
18676   }
18677   arg2 = (double)(val2);
18678   radecdeg2xyzarr(arg1,arg2,arg3);
18679   resultobj = SWIG_Py_Void();
18680   {
18681     resultobj = Py_BuildValue("(ddd)", arg3[0], arg3[1], arg3[2]);
18682   }
18683   return resultobj;
18684 fail:
18685   return NULL;
18686 }
18687 
18688 
_wrap_radecdegarr2xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18689 SWIGINTERN PyObject *_wrap_radecdegarr2xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18690   PyObject *resultobj = 0;
18691   double *arg1 = (double *) 0 ;
18692   double *arg2 = (double *) 0 ;
18693   void *argp1 = 0 ;
18694   int res1 = 0 ;
18695   void *argp2 = 0 ;
18696   int res2 = 0 ;
18697   PyObject *swig_obj[2] ;
18698 
18699   if (!SWIG_Python_UnpackTuple(args, "radecdegarr2xyzarr", 2, 2, swig_obj)) SWIG_fail;
18700   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
18701   if (!SWIG_IsOK(res1)) {
18702     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "radecdegarr2xyzarr" "', argument " "1"" of type '" "double *""'");
18703   }
18704   arg1 = (double *)(argp1);
18705   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
18706   if (!SWIG_IsOK(res2)) {
18707     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "radecdegarr2xyzarr" "', argument " "2"" of type '" "double *""'");
18708   }
18709   arg2 = (double *)(argp2);
18710   radecdegarr2xyzarr(arg1,arg2);
18711   resultobj = SWIG_Py_Void();
18712   return resultobj;
18713 fail:
18714   return NULL;
18715 }
18716 
18717 
_wrap_radecdeg2xyzarrmany(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18718 SWIGINTERN PyObject *_wrap_radecdeg2xyzarrmany(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18719   PyObject *resultobj = 0;
18720   double *arg1 = (double *) 0 ;
18721   double *arg2 = (double *) 0 ;
18722   double *arg3 = (double *) 0 ;
18723   int arg4 ;
18724   double temp1 ;
18725   int res1 = SWIG_TMPOBJ ;
18726   double temp2 ;
18727   int res2 = SWIG_TMPOBJ ;
18728   void *argp3 = 0 ;
18729   int res3 = 0 ;
18730   int val4 ;
18731   int ecode4 = 0 ;
18732   PyObject *swig_obj[2] ;
18733 
18734   arg1 = &temp1;
18735   arg2 = &temp2;
18736   if (!SWIG_Python_UnpackTuple(args, "radecdeg2xyzarrmany", 2, 2, swig_obj)) SWIG_fail;
18737   res3 = SWIG_ConvertPtr(swig_obj[0], &argp3,SWIGTYPE_p_double, 0 |  0 );
18738   if (!SWIG_IsOK(res3)) {
18739     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "radecdeg2xyzarrmany" "', argument " "3"" of type '" "double *""'");
18740   }
18741   arg3 = (double *)(argp3);
18742   ecode4 = SWIG_AsVal_int(swig_obj[1], &val4);
18743   if (!SWIG_IsOK(ecode4)) {
18744     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "radecdeg2xyzarrmany" "', argument " "4"" of type '" "int""'");
18745   }
18746   arg4 = (int)(val4);
18747   radecdeg2xyzarrmany(arg1,arg2,arg3,arg4);
18748   resultobj = SWIG_Py_Void();
18749   if (SWIG_IsTmpObj(res1)) {
18750     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg1)));
18751   } else {
18752     int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18753     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_double, new_flags));
18754   }
18755   if (SWIG_IsTmpObj(res2)) {
18756     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
18757   } else {
18758     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
18759     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
18760   }
18761   return resultobj;
18762 fail:
18763   return NULL;
18764 }
18765 
18766 
_wrap_radec_derivatives(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18767 SWIGINTERN PyObject *_wrap_radec_derivatives(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18768   PyObject *resultobj = 0;
18769   double arg1 ;
18770   double arg2 ;
18771   double *arg3 = (double *) 0 ;
18772   double *arg4 = (double *) 0 ;
18773   double val1 ;
18774   int ecode1 = 0 ;
18775   double val2 ;
18776   int ecode2 = 0 ;
18777   void *argp3 = 0 ;
18778   int res3 = 0 ;
18779   void *argp4 = 0 ;
18780   int res4 = 0 ;
18781   PyObject *swig_obj[4] ;
18782 
18783   if (!SWIG_Python_UnpackTuple(args, "radec_derivatives", 4, 4, swig_obj)) SWIG_fail;
18784   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18785   if (!SWIG_IsOK(ecode1)) {
18786     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "radec_derivatives" "', argument " "1"" of type '" "double""'");
18787   }
18788   arg1 = (double)(val1);
18789   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18790   if (!SWIG_IsOK(ecode2)) {
18791     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "radec_derivatives" "', argument " "2"" of type '" "double""'");
18792   }
18793   arg2 = (double)(val2);
18794   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
18795   if (!SWIG_IsOK(res3)) {
18796     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "radec_derivatives" "', argument " "3"" of type '" "double *""'");
18797   }
18798   arg3 = (double *)(argp3);
18799   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
18800   if (!SWIG_IsOK(res4)) {
18801     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "radec_derivatives" "', argument " "4"" of type '" "double *""'");
18802   }
18803   arg4 = (double *)(argp4);
18804   radec_derivatives(arg1,arg2,arg3,arg4);
18805   resultobj = SWIG_Py_Void();
18806   return resultobj;
18807 fail:
18808   return NULL;
18809 }
18810 
18811 
_wrap_distsq_between_radecdeg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18812 SWIGINTERN PyObject *_wrap_distsq_between_radecdeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18813   PyObject *resultobj = 0;
18814   double arg1 ;
18815   double arg2 ;
18816   double arg3 ;
18817   double arg4 ;
18818   double val1 ;
18819   int ecode1 = 0 ;
18820   double val2 ;
18821   int ecode2 = 0 ;
18822   double val3 ;
18823   int ecode3 = 0 ;
18824   double val4 ;
18825   int ecode4 = 0 ;
18826   PyObject *swig_obj[4] ;
18827   double result;
18828 
18829   if (!SWIG_Python_UnpackTuple(args, "distsq_between_radecdeg", 4, 4, swig_obj)) SWIG_fail;
18830   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18831   if (!SWIG_IsOK(ecode1)) {
18832     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "distsq_between_radecdeg" "', argument " "1"" of type '" "double""'");
18833   }
18834   arg1 = (double)(val1);
18835   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18836   if (!SWIG_IsOK(ecode2)) {
18837     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "distsq_between_radecdeg" "', argument " "2"" of type '" "double""'");
18838   }
18839   arg2 = (double)(val2);
18840   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18841   if (!SWIG_IsOK(ecode3)) {
18842     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "distsq_between_radecdeg" "', argument " "3"" of type '" "double""'");
18843   }
18844   arg3 = (double)(val3);
18845   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
18846   if (!SWIG_IsOK(ecode4)) {
18847     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "distsq_between_radecdeg" "', argument " "4"" of type '" "double""'");
18848   }
18849   arg4 = (double)(val4);
18850   result = (double)distsq_between_radecdeg(arg1,arg2,arg3,arg4);
18851   resultobj = SWIG_From_double((double)(result));
18852   return resultobj;
18853 fail:
18854   return NULL;
18855 }
18856 
18857 
_wrap_arcsec_between_radecdeg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18858 SWIGINTERN PyObject *_wrap_arcsec_between_radecdeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18859   PyObject *resultobj = 0;
18860   double arg1 ;
18861   double arg2 ;
18862   double arg3 ;
18863   double arg4 ;
18864   double val1 ;
18865   int ecode1 = 0 ;
18866   double val2 ;
18867   int ecode2 = 0 ;
18868   double val3 ;
18869   int ecode3 = 0 ;
18870   double val4 ;
18871   int ecode4 = 0 ;
18872   PyObject *swig_obj[4] ;
18873   double result;
18874 
18875   if (!SWIG_Python_UnpackTuple(args, "arcsec_between_radecdeg", 4, 4, swig_obj)) SWIG_fail;
18876   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18877   if (!SWIG_IsOK(ecode1)) {
18878     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcsec_between_radecdeg" "', argument " "1"" of type '" "double""'");
18879   }
18880   arg1 = (double)(val1);
18881   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18882   if (!SWIG_IsOK(ecode2)) {
18883     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "arcsec_between_radecdeg" "', argument " "2"" of type '" "double""'");
18884   }
18885   arg2 = (double)(val2);
18886   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18887   if (!SWIG_IsOK(ecode3)) {
18888     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arcsec_between_radecdeg" "', argument " "3"" of type '" "double""'");
18889   }
18890   arg3 = (double)(val3);
18891   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
18892   if (!SWIG_IsOK(ecode4)) {
18893     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arcsec_between_radecdeg" "', argument " "4"" of type '" "double""'");
18894   }
18895   arg4 = (double)(val4);
18896   result = (double)arcsec_between_radecdeg(arg1,arg2,arg3,arg4);
18897   resultobj = SWIG_From_double((double)(result));
18898   return resultobj;
18899 fail:
18900   return NULL;
18901 }
18902 
18903 
_wrap_deg_between_radecdeg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18904 SWIGINTERN PyObject *_wrap_deg_between_radecdeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18905   PyObject *resultobj = 0;
18906   double arg1 ;
18907   double arg2 ;
18908   double arg3 ;
18909   double arg4 ;
18910   double val1 ;
18911   int ecode1 = 0 ;
18912   double val2 ;
18913   int ecode2 = 0 ;
18914   double val3 ;
18915   int ecode3 = 0 ;
18916   double val4 ;
18917   int ecode4 = 0 ;
18918   PyObject *swig_obj[4] ;
18919   double result;
18920 
18921   if (!SWIG_Python_UnpackTuple(args, "deg_between_radecdeg", 4, 4, swig_obj)) SWIG_fail;
18922   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18923   if (!SWIG_IsOK(ecode1)) {
18924     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "deg_between_radecdeg" "', argument " "1"" of type '" "double""'");
18925   }
18926   arg1 = (double)(val1);
18927   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18928   if (!SWIG_IsOK(ecode2)) {
18929     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "deg_between_radecdeg" "', argument " "2"" of type '" "double""'");
18930   }
18931   arg2 = (double)(val2);
18932   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18933   if (!SWIG_IsOK(ecode3)) {
18934     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "deg_between_radecdeg" "', argument " "3"" of type '" "double""'");
18935   }
18936   arg3 = (double)(val3);
18937   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
18938   if (!SWIG_IsOK(ecode4)) {
18939     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "deg_between_radecdeg" "', argument " "4"" of type '" "double""'");
18940   }
18941   arg4 = (double)(val4);
18942   result = (double)deg_between_radecdeg(arg1,arg2,arg3,arg4);
18943   resultobj = SWIG_From_double((double)(result));
18944   return resultobj;
18945 fail:
18946   return NULL;
18947 }
18948 
18949 
_wrap_ra2mercx(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18950 SWIGINTERN PyObject *_wrap_ra2mercx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18951   PyObject *resultobj = 0;
18952   double arg1 ;
18953   double val1 ;
18954   int ecode1 = 0 ;
18955   PyObject *swig_obj[1] ;
18956   double result;
18957 
18958   if (!args) SWIG_fail;
18959   swig_obj[0] = args;
18960   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18961   if (!SWIG_IsOK(ecode1)) {
18962     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ra2mercx" "', argument " "1"" of type '" "double""'");
18963   }
18964   arg1 = (double)(val1);
18965   result = (double)ra2mercx(arg1);
18966   resultobj = SWIG_From_double((double)(result));
18967   return resultobj;
18968 fail:
18969   return NULL;
18970 }
18971 
18972 
_wrap_dec2mercy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18973 SWIGINTERN PyObject *_wrap_dec2mercy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18974   PyObject *resultobj = 0;
18975   double arg1 ;
18976   double val1 ;
18977   int ecode1 = 0 ;
18978   PyObject *swig_obj[1] ;
18979   double result;
18980 
18981   if (!args) SWIG_fail;
18982   swig_obj[0] = args;
18983   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
18984   if (!SWIG_IsOK(ecode1)) {
18985     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dec2mercy" "', argument " "1"" of type '" "double""'");
18986   }
18987   arg1 = (double)(val1);
18988   result = (double)dec2mercy(arg1);
18989   resultobj = SWIG_From_double((double)(result));
18990   return resultobj;
18991 fail:
18992   return NULL;
18993 }
18994 
18995 
_wrap_ra2hms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18996 SWIGINTERN PyObject *_wrap_ra2hms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18997   PyObject *resultobj = 0;
18998   double arg1 ;
18999   int *arg2 = (int *) 0 ;
19000   int *arg3 = (int *) 0 ;
19001   double *arg4 = (double *) 0 ;
19002   double val1 ;
19003   int ecode1 = 0 ;
19004   void *argp2 = 0 ;
19005   int res2 = 0 ;
19006   void *argp3 = 0 ;
19007   int res3 = 0 ;
19008   void *argp4 = 0 ;
19009   int res4 = 0 ;
19010   PyObject *swig_obj[4] ;
19011 
19012   if (!SWIG_Python_UnpackTuple(args, "ra2hms", 4, 4, swig_obj)) SWIG_fail;
19013   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19014   if (!SWIG_IsOK(ecode1)) {
19015     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ra2hms" "', argument " "1"" of type '" "double""'");
19016   }
19017   arg1 = (double)(val1);
19018   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
19019   if (!SWIG_IsOK(res2)) {
19020     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ra2hms" "', argument " "2"" of type '" "int *""'");
19021   }
19022   arg2 = (int *)(argp2);
19023   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
19024   if (!SWIG_IsOK(res3)) {
19025     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ra2hms" "', argument " "3"" of type '" "int *""'");
19026   }
19027   arg3 = (int *)(argp3);
19028   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
19029   if (!SWIG_IsOK(res4)) {
19030     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ra2hms" "', argument " "4"" of type '" "double *""'");
19031   }
19032   arg4 = (double *)(argp4);
19033   ra2hms(arg1,arg2,arg3,arg4);
19034   resultobj = SWIG_Py_Void();
19035   return resultobj;
19036 fail:
19037   return NULL;
19038 }
19039 
19040 
_wrap_dec2dms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19041 SWIGINTERN PyObject *_wrap_dec2dms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19042   PyObject *resultobj = 0;
19043   double arg1 ;
19044   int *arg2 = (int *) 0 ;
19045   int *arg3 = (int *) 0 ;
19046   int *arg4 = (int *) 0 ;
19047   double *arg5 = (double *) 0 ;
19048   double val1 ;
19049   int ecode1 = 0 ;
19050   void *argp2 = 0 ;
19051   int res2 = 0 ;
19052   void *argp3 = 0 ;
19053   int res3 = 0 ;
19054   void *argp4 = 0 ;
19055   int res4 = 0 ;
19056   void *argp5 = 0 ;
19057   int res5 = 0 ;
19058   PyObject *swig_obj[5] ;
19059 
19060   if (!SWIG_Python_UnpackTuple(args, "dec2dms", 5, 5, swig_obj)) SWIG_fail;
19061   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19062   if (!SWIG_IsOK(ecode1)) {
19063     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dec2dms" "', argument " "1"" of type '" "double""'");
19064   }
19065   arg1 = (double)(val1);
19066   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
19067   if (!SWIG_IsOK(res2)) {
19068     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dec2dms" "', argument " "2"" of type '" "int *""'");
19069   }
19070   arg2 = (int *)(argp2);
19071   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
19072   if (!SWIG_IsOK(res3)) {
19073     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dec2dms" "', argument " "3"" of type '" "int *""'");
19074   }
19075   arg3 = (int *)(argp3);
19076   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
19077   if (!SWIG_IsOK(res4)) {
19078     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dec2dms" "', argument " "4"" of type '" "int *""'");
19079   }
19080   arg4 = (int *)(argp4);
19081   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
19082   if (!SWIG_IsOK(res5)) {
19083     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dec2dms" "', argument " "5"" of type '" "double *""'");
19084   }
19085   arg5 = (double *)(argp5);
19086   dec2dms(arg1,arg2,arg3,arg4,arg5);
19087   resultobj = SWIG_Py_Void();
19088   return resultobj;
19089 fail:
19090   return NULL;
19091 }
19092 
19093 
_wrap_hms2ra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19094 SWIGINTERN PyObject *_wrap_hms2ra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19095   PyObject *resultobj = 0;
19096   int arg1 ;
19097   int arg2 ;
19098   double arg3 ;
19099   int val1 ;
19100   int ecode1 = 0 ;
19101   int val2 ;
19102   int ecode2 = 0 ;
19103   double val3 ;
19104   int ecode3 = 0 ;
19105   PyObject *swig_obj[3] ;
19106   double result;
19107 
19108   if (!SWIG_Python_UnpackTuple(args, "hms2ra", 3, 3, swig_obj)) SWIG_fail;
19109   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
19110   if (!SWIG_IsOK(ecode1)) {
19111     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "hms2ra" "', argument " "1"" of type '" "int""'");
19112   }
19113   arg1 = (int)(val1);
19114   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
19115   if (!SWIG_IsOK(ecode2)) {
19116     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hms2ra" "', argument " "2"" of type '" "int""'");
19117   }
19118   arg2 = (int)(val2);
19119   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
19120   if (!SWIG_IsOK(ecode3)) {
19121     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "hms2ra" "', argument " "3"" of type '" "double""'");
19122   }
19123   arg3 = (double)(val3);
19124   result = (double)hms2ra(arg1,arg2,arg3);
19125   resultobj = SWIG_From_double((double)(result));
19126   return resultobj;
19127 fail:
19128   return NULL;
19129 }
19130 
19131 
_wrap_dms2dec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19132 SWIGINTERN PyObject *_wrap_dms2dec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19133   PyObject *resultobj = 0;
19134   int arg1 ;
19135   int arg2 ;
19136   int arg3 ;
19137   double arg4 ;
19138   int val1 ;
19139   int ecode1 = 0 ;
19140   int val2 ;
19141   int ecode2 = 0 ;
19142   int val3 ;
19143   int ecode3 = 0 ;
19144   double val4 ;
19145   int ecode4 = 0 ;
19146   PyObject *swig_obj[4] ;
19147   double result;
19148 
19149   if (!SWIG_Python_UnpackTuple(args, "dms2dec", 4, 4, swig_obj)) SWIG_fail;
19150   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
19151   if (!SWIG_IsOK(ecode1)) {
19152     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dms2dec" "', argument " "1"" of type '" "int""'");
19153   }
19154   arg1 = (int)(val1);
19155   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
19156   if (!SWIG_IsOK(ecode2)) {
19157     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dms2dec" "', argument " "2"" of type '" "int""'");
19158   }
19159   arg2 = (int)(val2);
19160   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
19161   if (!SWIG_IsOK(ecode3)) {
19162     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dms2dec" "', argument " "3"" of type '" "int""'");
19163   }
19164   arg3 = (int)(val3);
19165   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
19166   if (!SWIG_IsOK(ecode4)) {
19167     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dms2dec" "', argument " "4"" of type '" "double""'");
19168   }
19169   arg4 = (double)(val4);
19170   result = (double)dms2dec(arg1,arg2,arg3,arg4);
19171   resultobj = SWIG_From_double((double)(result));
19172   return resultobj;
19173 fail:
19174   return NULL;
19175 }
19176 
19177 
_wrap_ra2hmsstring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19178 SWIGINTERN PyObject *_wrap_ra2hmsstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19179   PyObject *resultobj = 0;
19180   double arg1 ;
19181   char *arg2 = (char *) 0 ;
19182   double val1 ;
19183   int ecode1 = 0 ;
19184   int res2 ;
19185   char *buf2 = 0 ;
19186   int alloc2 = 0 ;
19187   PyObject *swig_obj[2] ;
19188 
19189   if (!SWIG_Python_UnpackTuple(args, "ra2hmsstring", 2, 2, swig_obj)) SWIG_fail;
19190   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19191   if (!SWIG_IsOK(ecode1)) {
19192     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ra2hmsstring" "', argument " "1"" of type '" "double""'");
19193   }
19194   arg1 = (double)(val1);
19195   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
19196   if (!SWIG_IsOK(res2)) {
19197     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ra2hmsstring" "', argument " "2"" of type '" "char *""'");
19198   }
19199   arg2 = (char *)(buf2);
19200   ra2hmsstring(arg1,arg2);
19201   resultobj = SWIG_Py_Void();
19202   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
19203   return resultobj;
19204 fail:
19205   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
19206   return NULL;
19207 }
19208 
19209 
_wrap_dec2dmsstring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19210 SWIGINTERN PyObject *_wrap_dec2dmsstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19211   PyObject *resultobj = 0;
19212   double arg1 ;
19213   char *arg2 = (char *) 0 ;
19214   double val1 ;
19215   int ecode1 = 0 ;
19216   int res2 ;
19217   char *buf2 = 0 ;
19218   int alloc2 = 0 ;
19219   PyObject *swig_obj[2] ;
19220 
19221   if (!SWIG_Python_UnpackTuple(args, "dec2dmsstring", 2, 2, swig_obj)) SWIG_fail;
19222   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19223   if (!SWIG_IsOK(ecode1)) {
19224     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dec2dmsstring" "', argument " "1"" of type '" "double""'");
19225   }
19226   arg1 = (double)(val1);
19227   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
19228   if (!SWIG_IsOK(res2)) {
19229     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dec2dmsstring" "', argument " "2"" of type '" "char *""'");
19230   }
19231   arg2 = (char *)(buf2);
19232   dec2dmsstring(arg1,arg2);
19233   resultobj = SWIG_Py_Void();
19234   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
19235   return resultobj;
19236 fail:
19237   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
19238   return NULL;
19239 }
19240 
19241 
_wrap_project_hammer_aitoff_x(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19242 SWIGINTERN PyObject *_wrap_project_hammer_aitoff_x(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19243   PyObject *resultobj = 0;
19244   double arg1 ;
19245   double arg2 ;
19246   double arg3 ;
19247   double *arg4 = (double *) 0 ;
19248   double *arg5 = (double *) 0 ;
19249   double val1 ;
19250   int ecode1 = 0 ;
19251   double val2 ;
19252   int ecode2 = 0 ;
19253   double val3 ;
19254   int ecode3 = 0 ;
19255   void *argp4 = 0 ;
19256   int res4 = 0 ;
19257   void *argp5 = 0 ;
19258   int res5 = 0 ;
19259   PyObject *swig_obj[5] ;
19260 
19261   if (!SWIG_Python_UnpackTuple(args, "project_hammer_aitoff_x", 5, 5, swig_obj)) SWIG_fail;
19262   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19263   if (!SWIG_IsOK(ecode1)) {
19264     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "project_hammer_aitoff_x" "', argument " "1"" of type '" "double""'");
19265   }
19266   arg1 = (double)(val1);
19267   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
19268   if (!SWIG_IsOK(ecode2)) {
19269     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "project_hammer_aitoff_x" "', argument " "2"" of type '" "double""'");
19270   }
19271   arg2 = (double)(val2);
19272   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
19273   if (!SWIG_IsOK(ecode3)) {
19274     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "project_hammer_aitoff_x" "', argument " "3"" of type '" "double""'");
19275   }
19276   arg3 = (double)(val3);
19277   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
19278   if (!SWIG_IsOK(res4)) {
19279     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "project_hammer_aitoff_x" "', argument " "4"" of type '" "double *""'");
19280   }
19281   arg4 = (double *)(argp4);
19282   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
19283   if (!SWIG_IsOK(res5)) {
19284     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "project_hammer_aitoff_x" "', argument " "5"" of type '" "double *""'");
19285   }
19286   arg5 = (double *)(argp5);
19287   project_hammer_aitoff_x(arg1,arg2,arg3,arg4,arg5);
19288   resultobj = SWIG_Py_Void();
19289   return resultobj;
19290 fail:
19291   return NULL;
19292 }
19293 
19294 
_wrap_project_equal_area(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19295 SWIGINTERN PyObject *_wrap_project_equal_area(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19296   PyObject *resultobj = 0;
19297   double arg1 ;
19298   double arg2 ;
19299   double arg3 ;
19300   double *arg4 = (double *) 0 ;
19301   double *arg5 = (double *) 0 ;
19302   double val1 ;
19303   int ecode1 = 0 ;
19304   double val2 ;
19305   int ecode2 = 0 ;
19306   double val3 ;
19307   int ecode3 = 0 ;
19308   void *argp4 = 0 ;
19309   int res4 = 0 ;
19310   void *argp5 = 0 ;
19311   int res5 = 0 ;
19312   PyObject *swig_obj[5] ;
19313 
19314   if (!SWIG_Python_UnpackTuple(args, "project_equal_area", 5, 5, swig_obj)) SWIG_fail;
19315   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19316   if (!SWIG_IsOK(ecode1)) {
19317     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "project_equal_area" "', argument " "1"" of type '" "double""'");
19318   }
19319   arg1 = (double)(val1);
19320   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
19321   if (!SWIG_IsOK(ecode2)) {
19322     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "project_equal_area" "', argument " "2"" of type '" "double""'");
19323   }
19324   arg2 = (double)(val2);
19325   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
19326   if (!SWIG_IsOK(ecode3)) {
19327     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "project_equal_area" "', argument " "3"" of type '" "double""'");
19328   }
19329   arg3 = (double)(val3);
19330   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
19331   if (!SWIG_IsOK(res4)) {
19332     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "project_equal_area" "', argument " "4"" of type '" "double *""'");
19333   }
19334   arg4 = (double *)(argp4);
19335   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
19336   if (!SWIG_IsOK(res5)) {
19337     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "project_equal_area" "', argument " "5"" of type '" "double *""'");
19338   }
19339   arg5 = (double *)(argp5);
19340   project_equal_area(arg1,arg2,arg3,arg4,arg5);
19341   resultobj = SWIG_Py_Void();
19342   return resultobj;
19343 fail:
19344   return NULL;
19345 }
19346 
19347 
_wrap_distsq2arc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19348 SWIGINTERN PyObject *_wrap_distsq2arc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19349   PyObject *resultobj = 0;
19350   double arg1 ;
19351   double val1 ;
19352   int ecode1 = 0 ;
19353   PyObject *swig_obj[1] ;
19354   double result;
19355 
19356   if (!args) SWIG_fail;
19357   swig_obj[0] = args;
19358   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19359   if (!SWIG_IsOK(ecode1)) {
19360     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "distsq2arc" "', argument " "1"" of type '" "double""'");
19361   }
19362   arg1 = (double)(val1);
19363   result = (double)distsq2arc(arg1);
19364   resultobj = SWIG_From_double((double)(result));
19365   return resultobj;
19366 fail:
19367   return NULL;
19368 }
19369 
19370 
_wrap_distsq2rad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19371 SWIGINTERN PyObject *_wrap_distsq2rad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19372   PyObject *resultobj = 0;
19373   double arg1 ;
19374   double val1 ;
19375   int ecode1 = 0 ;
19376   PyObject *swig_obj[1] ;
19377   double result;
19378 
19379   if (!args) SWIG_fail;
19380   swig_obj[0] = args;
19381   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19382   if (!SWIG_IsOK(ecode1)) {
19383     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "distsq2rad" "', argument " "1"" of type '" "double""'");
19384   }
19385   arg1 = (double)(val1);
19386   result = (double)distsq2rad(arg1);
19387   resultobj = SWIG_From_double((double)(result));
19388   return resultobj;
19389 fail:
19390   return NULL;
19391 }
19392 
19393 
_wrap_distsq2deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19394 SWIGINTERN PyObject *_wrap_distsq2deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19395   PyObject *resultobj = 0;
19396   double arg1 ;
19397   double val1 ;
19398   int ecode1 = 0 ;
19399   PyObject *swig_obj[1] ;
19400   double result;
19401 
19402   if (!args) SWIG_fail;
19403   swig_obj[0] = args;
19404   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19405   if (!SWIG_IsOK(ecode1)) {
19406     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "distsq2deg" "', argument " "1"" of type '" "double""'");
19407   }
19408   arg1 = (double)(val1);
19409   result = (double)distsq2deg(arg1);
19410   resultobj = SWIG_From_double((double)(result));
19411   return resultobj;
19412 fail:
19413   return NULL;
19414 }
19415 
19416 
_wrap_dist2rad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19417 SWIGINTERN PyObject *_wrap_dist2rad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19418   PyObject *resultobj = 0;
19419   double arg1 ;
19420   double val1 ;
19421   int ecode1 = 0 ;
19422   PyObject *swig_obj[1] ;
19423   double result;
19424 
19425   if (!args) SWIG_fail;
19426   swig_obj[0] = args;
19427   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19428   if (!SWIG_IsOK(ecode1)) {
19429     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dist2rad" "', argument " "1"" of type '" "double""'");
19430   }
19431   arg1 = (double)(val1);
19432   result = (double)dist2rad(arg1);
19433   resultobj = SWIG_From_double((double)(result));
19434   return resultobj;
19435 fail:
19436   return NULL;
19437 }
19438 
19439 
_wrap_distsq2arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19440 SWIGINTERN PyObject *_wrap_distsq2arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19441   PyObject *resultobj = 0;
19442   double arg1 ;
19443   double val1 ;
19444   int ecode1 = 0 ;
19445   PyObject *swig_obj[1] ;
19446   double result;
19447 
19448   if (!args) SWIG_fail;
19449   swig_obj[0] = args;
19450   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19451   if (!SWIG_IsOK(ecode1)) {
19452     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "distsq2arcsec" "', argument " "1"" of type '" "double""'");
19453   }
19454   arg1 = (double)(val1);
19455   result = (double)distsq2arcsec(arg1);
19456   resultobj = SWIG_From_double((double)(result));
19457   return resultobj;
19458 fail:
19459   return NULL;
19460 }
19461 
19462 
_wrap_dist2arcsec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19463 SWIGINTERN PyObject *_wrap_dist2arcsec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19464   PyObject *resultobj = 0;
19465   double arg1 ;
19466   double val1 ;
19467   int ecode1 = 0 ;
19468   PyObject *swig_obj[1] ;
19469   double result;
19470 
19471   if (!args) SWIG_fail;
19472   swig_obj[0] = args;
19473   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19474   if (!SWIG_IsOK(ecode1)) {
19475     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dist2arcsec" "', argument " "1"" of type '" "double""'");
19476   }
19477   arg1 = (double)(val1);
19478   result = (double)dist2arcsec(arg1);
19479   resultobj = SWIG_From_double((double)(result));
19480   return resultobj;
19481 fail:
19482   return NULL;
19483 }
19484 
19485 
_wrap_rad2distsq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19486 SWIGINTERN PyObject *_wrap_rad2distsq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19487   PyObject *resultobj = 0;
19488   double arg1 ;
19489   double val1 ;
19490   int ecode1 = 0 ;
19491   PyObject *swig_obj[1] ;
19492   double result;
19493 
19494   if (!args) SWIG_fail;
19495   swig_obj[0] = args;
19496   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19497   if (!SWIG_IsOK(ecode1)) {
19498     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rad2distsq" "', argument " "1"" of type '" "double""'");
19499   }
19500   arg1 = (double)(val1);
19501   result = (double)rad2distsq(arg1);
19502   resultobj = SWIG_From_double((double)(result));
19503   return resultobj;
19504 fail:
19505   return NULL;
19506 }
19507 
19508 
_wrap_rad2dist(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19509 SWIGINTERN PyObject *_wrap_rad2dist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19510   PyObject *resultobj = 0;
19511   double arg1 ;
19512   double val1 ;
19513   int ecode1 = 0 ;
19514   PyObject *swig_obj[1] ;
19515   double result;
19516 
19517   if (!args) SWIG_fail;
19518   swig_obj[0] = args;
19519   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19520   if (!SWIG_IsOK(ecode1)) {
19521     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rad2dist" "', argument " "1"" of type '" "double""'");
19522   }
19523   arg1 = (double)(val1);
19524   result = (double)rad2dist(arg1);
19525   resultobj = SWIG_From_double((double)(result));
19526   return resultobj;
19527 fail:
19528   return NULL;
19529 }
19530 
19531 
_wrap_arcsec2distsq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19532 SWIGINTERN PyObject *_wrap_arcsec2distsq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19533   PyObject *resultobj = 0;
19534   double arg1 ;
19535   double val1 ;
19536   int ecode1 = 0 ;
19537   PyObject *swig_obj[1] ;
19538   double result;
19539 
19540   if (!args) SWIG_fail;
19541   swig_obj[0] = args;
19542   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19543   if (!SWIG_IsOK(ecode1)) {
19544     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcsec2distsq" "', argument " "1"" of type '" "double""'");
19545   }
19546   arg1 = (double)(val1);
19547   result = (double)arcsec2distsq(arg1);
19548   resultobj = SWIG_From_double((double)(result));
19549   return resultobj;
19550 fail:
19551   return NULL;
19552 }
19553 
19554 
_wrap_arcsec2dist(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19555 SWIGINTERN PyObject *_wrap_arcsec2dist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19556   PyObject *resultobj = 0;
19557   double arg1 ;
19558   double val1 ;
19559   int ecode1 = 0 ;
19560   PyObject *swig_obj[1] ;
19561   double result;
19562 
19563   if (!args) SWIG_fail;
19564   swig_obj[0] = args;
19565   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19566   if (!SWIG_IsOK(ecode1)) {
19567     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcsec2dist" "', argument " "1"" of type '" "double""'");
19568   }
19569   arg1 = (double)(val1);
19570   result = (double)arcsec2dist(arg1);
19571   resultobj = SWIG_From_double((double)(result));
19572   return resultobj;
19573 fail:
19574   return NULL;
19575 }
19576 
19577 
_wrap_deg2dist(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19578 SWIGINTERN PyObject *_wrap_deg2dist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19579   PyObject *resultobj = 0;
19580   double arg1 ;
19581   double val1 ;
19582   int ecode1 = 0 ;
19583   PyObject *swig_obj[1] ;
19584   double result;
19585 
19586   if (!args) SWIG_fail;
19587   swig_obj[0] = args;
19588   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19589   if (!SWIG_IsOK(ecode1)) {
19590     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "deg2dist" "', argument " "1"" of type '" "double""'");
19591   }
19592   arg1 = (double)(val1);
19593   result = (double)deg2dist(arg1);
19594   resultobj = SWIG_From_double((double)(result));
19595   return resultobj;
19596 fail:
19597   return NULL;
19598 }
19599 
19600 
_wrap_deg2distsq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19601 SWIGINTERN PyObject *_wrap_deg2distsq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19602   PyObject *resultobj = 0;
19603   double arg1 ;
19604   double val1 ;
19605   int ecode1 = 0 ;
19606   PyObject *swig_obj[1] ;
19607   double result;
19608 
19609   if (!args) SWIG_fail;
19610   swig_obj[0] = args;
19611   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19612   if (!SWIG_IsOK(ecode1)) {
19613     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "deg2distsq" "', argument " "1"" of type '" "double""'");
19614   }
19615   arg1 = (double)(val1);
19616   result = (double)deg2distsq(arg1);
19617   resultobj = SWIG_From_double((double)(result));
19618   return resultobj;
19619 fail:
19620   return NULL;
19621 }
19622 
19623 
_wrap_arcmin2dist(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19624 SWIGINTERN PyObject *_wrap_arcmin2dist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19625   PyObject *resultobj = 0;
19626   double arg1 ;
19627   double val1 ;
19628   int ecode1 = 0 ;
19629   PyObject *swig_obj[1] ;
19630   double result;
19631 
19632   if (!args) SWIG_fail;
19633   swig_obj[0] = args;
19634   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19635   if (!SWIG_IsOK(ecode1)) {
19636     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcmin2dist" "', argument " "1"" of type '" "double""'");
19637   }
19638   arg1 = (double)(val1);
19639   result = (double)arcmin2dist(arg1);
19640   resultobj = SWIG_From_double((double)(result));
19641   return resultobj;
19642 fail:
19643   return NULL;
19644 }
19645 
19646 
_wrap_arcmin2distsq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19647 SWIGINTERN PyObject *_wrap_arcmin2distsq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19648   PyObject *resultobj = 0;
19649   double arg1 ;
19650   double val1 ;
19651   int ecode1 = 0 ;
19652   PyObject *swig_obj[1] ;
19653   double result;
19654 
19655   if (!args) SWIG_fail;
19656   swig_obj[0] = args;
19657   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19658   if (!SWIG_IsOK(ecode1)) {
19659     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "arcmin2distsq" "', argument " "1"" of type '" "double""'");
19660   }
19661   arg1 = (double)(val1);
19662   result = (double)arcmin2distsq(arg1);
19663   resultobj = SWIG_From_double((double)(result));
19664   return resultobj;
19665 fail:
19666   return NULL;
19667 }
19668 
19669 
_wrap_dist2deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19670 SWIGINTERN PyObject *_wrap_dist2deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19671   PyObject *resultobj = 0;
19672   double arg1 ;
19673   double val1 ;
19674   int ecode1 = 0 ;
19675   PyObject *swig_obj[1] ;
19676   double result;
19677 
19678   if (!args) SWIG_fail;
19679   swig_obj[0] = args;
19680   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
19681   if (!SWIG_IsOK(ecode1)) {
19682     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dist2deg" "', argument " "1"" of type '" "double""'");
19683   }
19684   arg1 = (double)(val1);
19685   result = (double)dist2deg(arg1);
19686   resultobj = SWIG_From_double((double)(result));
19687   return resultobj;
19688 fail:
19689   return NULL;
19690 }
19691 
19692 
_wrap_make_rand_star(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19693 SWIGINTERN PyObject *_wrap_make_rand_star(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19694   PyObject *resultobj = 0;
19695   double *arg1 = (double *) 0 ;
19696   double arg2 ;
19697   double arg3 ;
19698   double arg4 ;
19699   double arg5 ;
19700   void *argp1 = 0 ;
19701   int res1 = 0 ;
19702   double val2 ;
19703   int ecode2 = 0 ;
19704   double val3 ;
19705   int ecode3 = 0 ;
19706   double val4 ;
19707   int ecode4 = 0 ;
19708   double val5 ;
19709   int ecode5 = 0 ;
19710   PyObject *swig_obj[5] ;
19711 
19712   if (!SWIG_Python_UnpackTuple(args, "make_rand_star", 5, 5, swig_obj)) SWIG_fail;
19713   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
19714   if (!SWIG_IsOK(res1)) {
19715     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "make_rand_star" "', argument " "1"" of type '" "double *""'");
19716   }
19717   arg1 = (double *)(argp1);
19718   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
19719   if (!SWIG_IsOK(ecode2)) {
19720     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "make_rand_star" "', argument " "2"" of type '" "double""'");
19721   }
19722   arg2 = (double)(val2);
19723   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
19724   if (!SWIG_IsOK(ecode3)) {
19725     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "make_rand_star" "', argument " "3"" of type '" "double""'");
19726   }
19727   arg3 = (double)(val3);
19728   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
19729   if (!SWIG_IsOK(ecode4)) {
19730     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "make_rand_star" "', argument " "4"" of type '" "double""'");
19731   }
19732   arg4 = (double)(val4);
19733   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
19734   if (!SWIG_IsOK(ecode5)) {
19735     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "make_rand_star" "', argument " "5"" of type '" "double""'");
19736   }
19737   arg5 = (double)(val5);
19738   make_rand_star(arg1,arg2,arg3,arg4,arg5);
19739   resultobj = SWIG_Py_Void();
19740   return resultobj;
19741 fail:
19742   return NULL;
19743 }
19744 
19745 
_wrap_star_coords(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19746 SWIGINTERN PyObject *_wrap_star_coords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19747   PyObject *resultobj = 0;
19748   double *arg1 = (double *) 0 ;
19749   double *arg2 = (double *) 0 ;
19750   anbool arg3 ;
19751   double *arg4 = (double *) 0 ;
19752   double *arg5 = (double *) 0 ;
19753   void *argp1 = 0 ;
19754   int res1 = 0 ;
19755   void *argp2 = 0 ;
19756   int res2 = 0 ;
19757   unsigned char val3 ;
19758   int ecode3 = 0 ;
19759   void *argp4 = 0 ;
19760   int res4 = 0 ;
19761   void *argp5 = 0 ;
19762   int res5 = 0 ;
19763   PyObject *swig_obj[5] ;
19764   anbool result;
19765 
19766   if (!SWIG_Python_UnpackTuple(args, "star_coords", 5, 5, swig_obj)) SWIG_fail;
19767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
19768   if (!SWIG_IsOK(res1)) {
19769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "star_coords" "', argument " "1"" of type '" "double const *""'");
19770   }
19771   arg1 = (double *)(argp1);
19772   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
19773   if (!SWIG_IsOK(res2)) {
19774     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "star_coords" "', argument " "2"" of type '" "double const *""'");
19775   }
19776   arg2 = (double *)(argp2);
19777   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
19778   if (!SWIG_IsOK(ecode3)) {
19779     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "star_coords" "', argument " "3"" of type '" "anbool""'");
19780   }
19781   arg3 = (anbool)(val3);
19782   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
19783   if (!SWIG_IsOK(res4)) {
19784     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "star_coords" "', argument " "4"" of type '" "double *""'");
19785   }
19786   arg4 = (double *)(argp4);
19787   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
19788   if (!SWIG_IsOK(res5)) {
19789     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "star_coords" "', argument " "5"" of type '" "double *""'");
19790   }
19791   arg5 = (double *)(argp5);
19792   result = (anbool)star_coords((double const *)arg1,(double const *)arg2,arg3,arg4,arg5);
19793   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
19794   return resultobj;
19795 fail:
19796   return NULL;
19797 }
19798 
19799 
_wrap_star_midpoint(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19800 SWIGINTERN PyObject *_wrap_star_midpoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19801   PyObject *resultobj = 0;
19802   double *arg1 = (double *) 0 ;
19803   double *arg2 = (double *) 0 ;
19804   double *arg3 = (double *) 0 ;
19805   void *argp1 = 0 ;
19806   int res1 = 0 ;
19807   void *argp2 = 0 ;
19808   int res2 = 0 ;
19809   void *argp3 = 0 ;
19810   int res3 = 0 ;
19811   PyObject *swig_obj[3] ;
19812 
19813   if (!SWIG_Python_UnpackTuple(args, "star_midpoint", 3, 3, swig_obj)) SWIG_fail;
19814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
19815   if (!SWIG_IsOK(res1)) {
19816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "star_midpoint" "', argument " "1"" of type '" "double *""'");
19817   }
19818   arg1 = (double *)(argp1);
19819   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
19820   if (!SWIG_IsOK(res2)) {
19821     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "star_midpoint" "', argument " "2"" of type '" "double const *""'");
19822   }
19823   arg2 = (double *)(argp2);
19824   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
19825   if (!SWIG_IsOK(res3)) {
19826     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "star_midpoint" "', argument " "3"" of type '" "double const *""'");
19827   }
19828   arg3 = (double *)(argp3);
19829   star_midpoint(arg1,(double const *)arg2,(double const *)arg3);
19830   resultobj = SWIG_Py_Void();
19831   return resultobj;
19832 fail:
19833   return NULL;
19834 }
19835 
19836 
_wrap_qfits_header_debug_dump(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19837 SWIGINTERN PyObject *_wrap_qfits_header_debug_dump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19838   PyObject *resultobj = 0;
19839   qfits_header *arg1 = (qfits_header *) 0 ;
19840   void *argp1 = 0 ;
19841   int res1 = 0 ;
19842   PyObject *swig_obj[1] ;
19843 
19844   if (!args) SWIG_fail;
19845   swig_obj[0] = args;
19846   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
19847   if (!SWIG_IsOK(res1)) {
19848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_debug_dump" "', argument " "1"" of type '" "qfits_header const *""'");
19849   }
19850   arg1 = (qfits_header *)(argp1);
19851   qfits_header_debug_dump((qfits_header const *)arg1);
19852   resultobj = SWIG_Py_Void();
19853   return resultobj;
19854 fail:
19855   return NULL;
19856 }
19857 
19858 
_wrap_qfits_header_list(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19859 SWIGINTERN PyObject *_wrap_qfits_header_list(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19860   PyObject *resultobj = 0;
19861   qfits_header *arg1 = (qfits_header *) 0 ;
19862   FILE *arg2 = (FILE *) 0 ;
19863   void *argp1 = 0 ;
19864   int res1 = 0 ;
19865   void *argp2 = 0 ;
19866   int res2 = 0 ;
19867   PyObject *swig_obj[2] ;
19868   int result;
19869 
19870   if (!SWIG_Python_UnpackTuple(args, "qfits_header_list", 2, 2, swig_obj)) SWIG_fail;
19871   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
19872   if (!SWIG_IsOK(res1)) {
19873     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_list" "', argument " "1"" of type '" "qfits_header const *""'");
19874   }
19875   arg1 = (qfits_header *)(argp1);
19876   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
19877   if (!SWIG_IsOK(res2)) {
19878     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_list" "', argument " "2"" of type '" "FILE *""'");
19879   }
19880   arg2 = (FILE *)(argp2);
19881   result = (int)qfits_header_list((qfits_header const *)arg1,arg2);
19882   resultobj = SWIG_From_int((int)(result));
19883   return resultobj;
19884 fail:
19885   return NULL;
19886 }
19887 
19888 
_wrap_qfits_header_new(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19889 SWIGINTERN PyObject *_wrap_qfits_header_new(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19890   PyObject *resultobj = 0;
19891   qfits_header *result = 0 ;
19892 
19893   if (!SWIG_Python_UnpackTuple(args, "qfits_header_new", 0, 0, 0)) SWIG_fail;
19894   result = (qfits_header *)qfits_header_new();
19895   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
19896   return resultobj;
19897 fail:
19898   return NULL;
19899 }
19900 
19901 
_wrap_qfits_header_default(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19902 SWIGINTERN PyObject *_wrap_qfits_header_default(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19903   PyObject *resultobj = 0;
19904   qfits_header *result = 0 ;
19905 
19906   if (!SWIG_Python_UnpackTuple(args, "qfits_header_default", 0, 0, 0)) SWIG_fail;
19907   result = (qfits_header *)qfits_header_default();
19908   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
19909   return resultobj;
19910 fail:
19911   return NULL;
19912 }
19913 
19914 
_wrap_qfits_header_n(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19915 SWIGINTERN PyObject *_wrap_qfits_header_n(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19916   PyObject *resultobj = 0;
19917   qfits_header *arg1 = (qfits_header *) 0 ;
19918   void *argp1 = 0 ;
19919   int res1 = 0 ;
19920   PyObject *swig_obj[1] ;
19921   int result;
19922 
19923   if (!args) SWIG_fail;
19924   swig_obj[0] = args;
19925   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
19926   if (!SWIG_IsOK(res1)) {
19927     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_n" "', argument " "1"" of type '" "qfits_header const *""'");
19928   }
19929   arg1 = (qfits_header *)(argp1);
19930   result = (int)qfits_header_n((qfits_header const *)arg1);
19931   resultobj = SWIG_From_int((int)(result));
19932   return resultobj;
19933 fail:
19934   return NULL;
19935 }
19936 
19937 
_wrap_qfits_header_add(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19938 SWIGINTERN PyObject *_wrap_qfits_header_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19939   PyObject *resultobj = 0;
19940   qfits_header *arg1 = (qfits_header *) 0 ;
19941   char *arg2 = (char *) 0 ;
19942   char *arg3 = (char *) 0 ;
19943   char *arg4 = (char *) 0 ;
19944   char *arg5 = (char *) 0 ;
19945   void *argp1 = 0 ;
19946   int res1 = 0 ;
19947   int res2 ;
19948   char *buf2 = 0 ;
19949   int alloc2 = 0 ;
19950   int res3 ;
19951   char *buf3 = 0 ;
19952   int alloc3 = 0 ;
19953   int res4 ;
19954   char *buf4 = 0 ;
19955   int alloc4 = 0 ;
19956   int res5 ;
19957   char *buf5 = 0 ;
19958   int alloc5 = 0 ;
19959   PyObject *swig_obj[5] ;
19960 
19961   if (!SWIG_Python_UnpackTuple(args, "qfits_header_add", 5, 5, swig_obj)) SWIG_fail;
19962   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
19963   if (!SWIG_IsOK(res1)) {
19964     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_add" "', argument " "1"" of type '" "qfits_header *""'");
19965   }
19966   arg1 = (qfits_header *)(argp1);
19967   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
19968   if (!SWIG_IsOK(res2)) {
19969     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_add" "', argument " "2"" of type '" "char const *""'");
19970   }
19971   arg2 = (char *)(buf2);
19972   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
19973   if (!SWIG_IsOK(res3)) {
19974     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_add" "', argument " "3"" of type '" "char const *""'");
19975   }
19976   arg3 = (char *)(buf3);
19977   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
19978   if (!SWIG_IsOK(res4)) {
19979     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_add" "', argument " "4"" of type '" "char const *""'");
19980   }
19981   arg4 = (char *)(buf4);
19982   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
19983   if (!SWIG_IsOK(res5)) {
19984     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qfits_header_add" "', argument " "5"" of type '" "char const *""'");
19985   }
19986   arg5 = (char *)(buf5);
19987   qfits_header_add(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
19988   resultobj = SWIG_Py_Void();
19989   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
19990   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
19991   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
19992   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
19993   return resultobj;
19994 fail:
19995   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
19996   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
19997   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
19998   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
19999   return NULL;
20000 }
20001 
20002 
_wrap_qfits_header_add_after(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20003 SWIGINTERN PyObject *_wrap_qfits_header_add_after(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20004   PyObject *resultobj = 0;
20005   qfits_header *arg1 = (qfits_header *) 0 ;
20006   char *arg2 = (char *) 0 ;
20007   char *arg3 = (char *) 0 ;
20008   char *arg4 = (char *) 0 ;
20009   char *arg5 = (char *) 0 ;
20010   char *arg6 = (char *) 0 ;
20011   void *argp1 = 0 ;
20012   int res1 = 0 ;
20013   int res2 ;
20014   char *buf2 = 0 ;
20015   int alloc2 = 0 ;
20016   int res3 ;
20017   char *buf3 = 0 ;
20018   int alloc3 = 0 ;
20019   int res4 ;
20020   char *buf4 = 0 ;
20021   int alloc4 = 0 ;
20022   int res5 ;
20023   char *buf5 = 0 ;
20024   int alloc5 = 0 ;
20025   int res6 ;
20026   char *buf6 = 0 ;
20027   int alloc6 = 0 ;
20028   PyObject *swig_obj[6] ;
20029 
20030   if (!SWIG_Python_UnpackTuple(args, "qfits_header_add_after", 6, 6, swig_obj)) SWIG_fail;
20031   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20032   if (!SWIG_IsOK(res1)) {
20033     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_add_after" "', argument " "1"" of type '" "qfits_header *""'");
20034   }
20035   arg1 = (qfits_header *)(argp1);
20036   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20037   if (!SWIG_IsOK(res2)) {
20038     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_add_after" "', argument " "2"" of type '" "char const *""'");
20039   }
20040   arg2 = (char *)(buf2);
20041   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20042   if (!SWIG_IsOK(res3)) {
20043     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_add_after" "', argument " "3"" of type '" "char const *""'");
20044   }
20045   arg3 = (char *)(buf3);
20046   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
20047   if (!SWIG_IsOK(res4)) {
20048     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_add_after" "', argument " "4"" of type '" "char const *""'");
20049   }
20050   arg4 = (char *)(buf4);
20051   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
20052   if (!SWIG_IsOK(res5)) {
20053     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qfits_header_add_after" "', argument " "5"" of type '" "char const *""'");
20054   }
20055   arg5 = (char *)(buf5);
20056   res6 = SWIG_AsCharPtrAndSize(swig_obj[5], &buf6, NULL, &alloc6);
20057   if (!SWIG_IsOK(res6)) {
20058     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qfits_header_add_after" "', argument " "6"" of type '" "char const *""'");
20059   }
20060   arg6 = (char *)(buf6);
20061   qfits_header_add_after(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
20062   resultobj = SWIG_Py_Void();
20063   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20064   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20065   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20066   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20067   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
20068   return resultobj;
20069 fail:
20070   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20071   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20072   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20073   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20074   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
20075   return NULL;
20076 }
20077 
20078 
_wrap_qfits_header_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20079 SWIGINTERN PyObject *_wrap_qfits_header_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20080   PyObject *resultobj = 0;
20081   qfits_header *arg1 = (qfits_header *) 0 ;
20082   char *arg2 = (char *) 0 ;
20083   char *arg3 = (char *) 0 ;
20084   char *arg4 = (char *) 0 ;
20085   char *arg5 = (char *) 0 ;
20086   void *argp1 = 0 ;
20087   int res1 = 0 ;
20088   int res2 ;
20089   char *buf2 = 0 ;
20090   int alloc2 = 0 ;
20091   int res3 ;
20092   char *buf3 = 0 ;
20093   int alloc3 = 0 ;
20094   int res4 ;
20095   char *buf4 = 0 ;
20096   int alloc4 = 0 ;
20097   int res5 ;
20098   char *buf5 = 0 ;
20099   int alloc5 = 0 ;
20100   PyObject *swig_obj[5] ;
20101 
20102   if (!SWIG_Python_UnpackTuple(args, "qfits_header_append", 5, 5, swig_obj)) SWIG_fail;
20103   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20104   if (!SWIG_IsOK(res1)) {
20105     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_append" "', argument " "1"" of type '" "qfits_header *""'");
20106   }
20107   arg1 = (qfits_header *)(argp1);
20108   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20109   if (!SWIG_IsOK(res2)) {
20110     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_append" "', argument " "2"" of type '" "char const *""'");
20111   }
20112   arg2 = (char *)(buf2);
20113   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20114   if (!SWIG_IsOK(res3)) {
20115     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_append" "', argument " "3"" of type '" "char const *""'");
20116   }
20117   arg3 = (char *)(buf3);
20118   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
20119   if (!SWIG_IsOK(res4)) {
20120     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_append" "', argument " "4"" of type '" "char const *""'");
20121   }
20122   arg4 = (char *)(buf4);
20123   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
20124   if (!SWIG_IsOK(res5)) {
20125     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qfits_header_append" "', argument " "5"" of type '" "char const *""'");
20126   }
20127   arg5 = (char *)(buf5);
20128   qfits_header_append(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
20129   resultobj = SWIG_Py_Void();
20130   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20131   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20132   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20133   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20134   return resultobj;
20135 fail:
20136   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20137   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20138   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20139   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20140   return NULL;
20141 }
20142 
20143 
_wrap_qfits_header_del(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20144 SWIGINTERN PyObject *_wrap_qfits_header_del(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20145   PyObject *resultobj = 0;
20146   qfits_header *arg1 = (qfits_header *) 0 ;
20147   char *arg2 = (char *) 0 ;
20148   void *argp1 = 0 ;
20149   int res1 = 0 ;
20150   int res2 ;
20151   char *buf2 = 0 ;
20152   int alloc2 = 0 ;
20153   PyObject *swig_obj[2] ;
20154 
20155   if (!SWIG_Python_UnpackTuple(args, "qfits_header_del", 2, 2, swig_obj)) SWIG_fail;
20156   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20157   if (!SWIG_IsOK(res1)) {
20158     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_del" "', argument " "1"" of type '" "qfits_header *""'");
20159   }
20160   arg1 = (qfits_header *)(argp1);
20161   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20162   if (!SWIG_IsOK(res2)) {
20163     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_del" "', argument " "2"" of type '" "char const *""'");
20164   }
20165   arg2 = (char *)(buf2);
20166   qfits_header_del(arg1,(char const *)arg2);
20167   resultobj = SWIG_Py_Void();
20168   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20169   return resultobj;
20170 fail:
20171   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20172   return NULL;
20173 }
20174 
20175 
_wrap_qfits_header_sort(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20176 SWIGINTERN PyObject *_wrap_qfits_header_sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20177   PyObject *resultobj = 0;
20178   qfits_header **arg1 = (qfits_header **) 0 ;
20179   void *argp1 = 0 ;
20180   int res1 = 0 ;
20181   PyObject *swig_obj[1] ;
20182   int result;
20183 
20184   if (!args) SWIG_fail;
20185   swig_obj[0] = args;
20186   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_p_qfits_header, 0 |  0 );
20187   if (!SWIG_IsOK(res1)) {
20188     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_sort" "', argument " "1"" of type '" "qfits_header **""'");
20189   }
20190   arg1 = (qfits_header **)(argp1);
20191   result = (int)qfits_header_sort(arg1);
20192   resultobj = SWIG_From_int((int)(result));
20193   return resultobj;
20194 fail:
20195   return NULL;
20196 }
20197 
20198 
_wrap_qfits_header_copy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20199 SWIGINTERN PyObject *_wrap_qfits_header_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20200   PyObject *resultobj = 0;
20201   qfits_header *arg1 = (qfits_header *) 0 ;
20202   void *argp1 = 0 ;
20203   int res1 = 0 ;
20204   PyObject *swig_obj[1] ;
20205   qfits_header *result = 0 ;
20206 
20207   if (!args) SWIG_fail;
20208   swig_obj[0] = args;
20209   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20210   if (!SWIG_IsOK(res1)) {
20211     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_copy" "', argument " "1"" of type '" "qfits_header const *""'");
20212   }
20213   arg1 = (qfits_header *)(argp1);
20214   result = (qfits_header *)qfits_header_copy((qfits_header const *)arg1);
20215   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
20216   return resultobj;
20217 fail:
20218   return NULL;
20219 }
20220 
20221 
_wrap_qfits_header_mod(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20222 SWIGINTERN PyObject *_wrap_qfits_header_mod(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20223   PyObject *resultobj = 0;
20224   qfits_header *arg1 = (qfits_header *) 0 ;
20225   char *arg2 = (char *) 0 ;
20226   char *arg3 = (char *) 0 ;
20227   char *arg4 = (char *) 0 ;
20228   void *argp1 = 0 ;
20229   int res1 = 0 ;
20230   int res2 ;
20231   char *buf2 = 0 ;
20232   int alloc2 = 0 ;
20233   int res3 ;
20234   char *buf3 = 0 ;
20235   int alloc3 = 0 ;
20236   int res4 ;
20237   char *buf4 = 0 ;
20238   int alloc4 = 0 ;
20239   PyObject *swig_obj[4] ;
20240 
20241   if (!SWIG_Python_UnpackTuple(args, "qfits_header_mod", 4, 4, swig_obj)) SWIG_fail;
20242   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20243   if (!SWIG_IsOK(res1)) {
20244     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_mod" "', argument " "1"" of type '" "qfits_header *""'");
20245   }
20246   arg1 = (qfits_header *)(argp1);
20247   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20248   if (!SWIG_IsOK(res2)) {
20249     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_mod" "', argument " "2"" of type '" "char const *""'");
20250   }
20251   arg2 = (char *)(buf2);
20252   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20253   if (!SWIG_IsOK(res3)) {
20254     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_mod" "', argument " "3"" of type '" "char const *""'");
20255   }
20256   arg3 = (char *)(buf3);
20257   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
20258   if (!SWIG_IsOK(res4)) {
20259     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_mod" "', argument " "4"" of type '" "char const *""'");
20260   }
20261   arg4 = (char *)(buf4);
20262   qfits_header_mod(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
20263   resultobj = SWIG_Py_Void();
20264   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20265   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20266   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20267   return resultobj;
20268 fail:
20269   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20270   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20271   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20272   return NULL;
20273 }
20274 
20275 
_wrap_qfits_header_destroy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20276 SWIGINTERN PyObject *_wrap_qfits_header_destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20277   PyObject *resultobj = 0;
20278   qfits_header *arg1 = (qfits_header *) 0 ;
20279   void *argp1 = 0 ;
20280   int res1 = 0 ;
20281   PyObject *swig_obj[1] ;
20282 
20283   if (!args) SWIG_fail;
20284   swig_obj[0] = args;
20285   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20286   if (!SWIG_IsOK(res1)) {
20287     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_destroy" "', argument " "1"" of type '" "qfits_header *""'");
20288   }
20289   arg1 = (qfits_header *)(argp1);
20290   qfits_header_destroy(arg1);
20291   resultobj = SWIG_Py_Void();
20292   return resultobj;
20293 fail:
20294   return NULL;
20295 }
20296 
20297 
_wrap_qfits_header_getstr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20298 SWIGINTERN PyObject *_wrap_qfits_header_getstr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20299   PyObject *resultobj = 0;
20300   qfits_header *arg1 = (qfits_header *) 0 ;
20301   char *arg2 = (char *) 0 ;
20302   void *argp1 = 0 ;
20303   int res1 = 0 ;
20304   int res2 ;
20305   char *buf2 = 0 ;
20306   int alloc2 = 0 ;
20307   PyObject *swig_obj[2] ;
20308   char *result = 0 ;
20309 
20310   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getstr", 2, 2, swig_obj)) SWIG_fail;
20311   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20312   if (!SWIG_IsOK(res1)) {
20313     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getstr" "', argument " "1"" of type '" "qfits_header const *""'");
20314   }
20315   arg1 = (qfits_header *)(argp1);
20316   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20317   if (!SWIG_IsOK(res2)) {
20318     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_getstr" "', argument " "2"" of type '" "char const *""'");
20319   }
20320   arg2 = (char *)(buf2);
20321   result = (char *)qfits_header_getstr((qfits_header const *)arg1,(char const *)arg2);
20322   resultobj = SWIG_FromCharPtr((const char *)result);
20323   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20324   return resultobj;
20325 fail:
20326   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20327   return NULL;
20328 }
20329 
20330 
_wrap_qfits_header_getstr_pretty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20331 SWIGINTERN PyObject *_wrap_qfits_header_getstr_pretty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20332   PyObject *resultobj = 0;
20333   qfits_header *arg1 = (qfits_header *) 0 ;
20334   char *arg2 = (char *) 0 ;
20335   char *arg3 = (char *) 0 ;
20336   char *arg4 = (char *) 0 ;
20337   void *argp1 = 0 ;
20338   int res1 = 0 ;
20339   int res2 ;
20340   char *buf2 = 0 ;
20341   int alloc2 = 0 ;
20342   int res3 ;
20343   char *buf3 = 0 ;
20344   int alloc3 = 0 ;
20345   int res4 ;
20346   char *buf4 = 0 ;
20347   int alloc4 = 0 ;
20348   PyObject *swig_obj[4] ;
20349   int result;
20350 
20351   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getstr_pretty", 4, 4, swig_obj)) SWIG_fail;
20352   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20353   if (!SWIG_IsOK(res1)) {
20354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getstr_pretty" "', argument " "1"" of type '" "qfits_header const *""'");
20355   }
20356   arg1 = (qfits_header *)(argp1);
20357   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20358   if (!SWIG_IsOK(res2)) {
20359     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_getstr_pretty" "', argument " "2"" of type '" "char const *""'");
20360   }
20361   arg2 = (char *)(buf2);
20362   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20363   if (!SWIG_IsOK(res3)) {
20364     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_getstr_pretty" "', argument " "3"" of type '" "char *""'");
20365   }
20366   arg3 = (char *)(buf3);
20367   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
20368   if (!SWIG_IsOK(res4)) {
20369     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_getstr_pretty" "', argument " "4"" of type '" "char const *""'");
20370   }
20371   arg4 = (char *)(buf4);
20372   result = (int)qfits_header_getstr_pretty((qfits_header const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
20373   resultobj = SWIG_From_int((int)(result));
20374   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20375   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20376   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20377   return resultobj;
20378 fail:
20379   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20380   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20381   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20382   return NULL;
20383 }
20384 
20385 
_wrap_qfits_header_getitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20386 SWIGINTERN PyObject *_wrap_qfits_header_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20387   PyObject *resultobj = 0;
20388   qfits_header *arg1 = (qfits_header *) 0 ;
20389   int arg2 ;
20390   char *arg3 = (char *) 0 ;
20391   char *arg4 = (char *) 0 ;
20392   char *arg5 = (char *) 0 ;
20393   char *arg6 = (char *) 0 ;
20394   void *argp1 = 0 ;
20395   int res1 = 0 ;
20396   int val2 ;
20397   int ecode2 = 0 ;
20398   int res3 ;
20399   char *buf3 = 0 ;
20400   int alloc3 = 0 ;
20401   int res4 ;
20402   char *buf4 = 0 ;
20403   int alloc4 = 0 ;
20404   int res5 ;
20405   char *buf5 = 0 ;
20406   int alloc5 = 0 ;
20407   int res6 ;
20408   char *buf6 = 0 ;
20409   int alloc6 = 0 ;
20410   PyObject *swig_obj[6] ;
20411   int result;
20412 
20413   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getitem", 6, 6, swig_obj)) SWIG_fail;
20414   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20415   if (!SWIG_IsOK(res1)) {
20416     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getitem" "', argument " "1"" of type '" "qfits_header const *""'");
20417   }
20418   arg1 = (qfits_header *)(argp1);
20419   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
20420   if (!SWIG_IsOK(ecode2)) {
20421     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qfits_header_getitem" "', argument " "2"" of type '" "int""'");
20422   }
20423   arg2 = (int)(val2);
20424   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20425   if (!SWIG_IsOK(res3)) {
20426     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_getitem" "', argument " "3"" of type '" "char *""'");
20427   }
20428   arg3 = (char *)(buf3);
20429   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
20430   if (!SWIG_IsOK(res4)) {
20431     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_getitem" "', argument " "4"" of type '" "char *""'");
20432   }
20433   arg4 = (char *)(buf4);
20434   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
20435   if (!SWIG_IsOK(res5)) {
20436     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qfits_header_getitem" "', argument " "5"" of type '" "char *""'");
20437   }
20438   arg5 = (char *)(buf5);
20439   res6 = SWIG_AsCharPtrAndSize(swig_obj[5], &buf6, NULL, &alloc6);
20440   if (!SWIG_IsOK(res6)) {
20441     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qfits_header_getitem" "', argument " "6"" of type '" "char *""'");
20442   }
20443   arg6 = (char *)(buf6);
20444   result = (int)qfits_header_getitem((qfits_header const *)arg1,arg2,arg3,arg4,arg5,arg6);
20445   resultobj = SWIG_From_int((int)(result));
20446   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20447   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20448   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20449   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
20450   return resultobj;
20451 fail:
20452   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20453   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20454   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20455   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
20456   return NULL;
20457 }
20458 
20459 
_wrap_qfits_header_setitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20460 SWIGINTERN PyObject *_wrap_qfits_header_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20461   PyObject *resultobj = 0;
20462   qfits_header *arg1 = (qfits_header *) 0 ;
20463   int arg2 ;
20464   char *arg3 = (char *) 0 ;
20465   char *arg4 = (char *) 0 ;
20466   char *arg5 = (char *) 0 ;
20467   char *arg6 = (char *) 0 ;
20468   void *argp1 = 0 ;
20469   int res1 = 0 ;
20470   int val2 ;
20471   int ecode2 = 0 ;
20472   int res3 ;
20473   char *buf3 = 0 ;
20474   int alloc3 = 0 ;
20475   int res4 ;
20476   char *buf4 = 0 ;
20477   int alloc4 = 0 ;
20478   int res5 ;
20479   char *buf5 = 0 ;
20480   int alloc5 = 0 ;
20481   int res6 ;
20482   char *buf6 = 0 ;
20483   int alloc6 = 0 ;
20484   PyObject *swig_obj[6] ;
20485   int result;
20486 
20487   if (!SWIG_Python_UnpackTuple(args, "qfits_header_setitem", 6, 6, swig_obj)) SWIG_fail;
20488   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20489   if (!SWIG_IsOK(res1)) {
20490     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_setitem" "', argument " "1"" of type '" "qfits_header *""'");
20491   }
20492   arg1 = (qfits_header *)(argp1);
20493   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
20494   if (!SWIG_IsOK(ecode2)) {
20495     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qfits_header_setitem" "', argument " "2"" of type '" "int""'");
20496   }
20497   arg2 = (int)(val2);
20498   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20499   if (!SWIG_IsOK(res3)) {
20500     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_setitem" "', argument " "3"" of type '" "char *""'");
20501   }
20502   arg3 = (char *)(buf3);
20503   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
20504   if (!SWIG_IsOK(res4)) {
20505     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qfits_header_setitem" "', argument " "4"" of type '" "char *""'");
20506   }
20507   arg4 = (char *)(buf4);
20508   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
20509   if (!SWIG_IsOK(res5)) {
20510     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qfits_header_setitem" "', argument " "5"" of type '" "char *""'");
20511   }
20512   arg5 = (char *)(buf5);
20513   res6 = SWIG_AsCharPtrAndSize(swig_obj[5], &buf6, NULL, &alloc6);
20514   if (!SWIG_IsOK(res6)) {
20515     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qfits_header_setitem" "', argument " "6"" of type '" "char *""'");
20516   }
20517   arg6 = (char *)(buf6);
20518   result = (int)qfits_header_setitem(arg1,arg2,arg3,arg4,arg5,arg6);
20519   resultobj = SWIG_From_int((int)(result));
20520   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20521   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20522   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20523   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
20524   return resultobj;
20525 fail:
20526   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20527   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
20528   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
20529   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
20530   return NULL;
20531 }
20532 
20533 
_wrap_qfits_header_getcom(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20534 SWIGINTERN PyObject *_wrap_qfits_header_getcom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20535   PyObject *resultobj = 0;
20536   qfits_header *arg1 = (qfits_header *) 0 ;
20537   char *arg2 = (char *) 0 ;
20538   void *argp1 = 0 ;
20539   int res1 = 0 ;
20540   int res2 ;
20541   char *buf2 = 0 ;
20542   int alloc2 = 0 ;
20543   PyObject *swig_obj[2] ;
20544   char *result = 0 ;
20545 
20546   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getcom", 2, 2, swig_obj)) SWIG_fail;
20547   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20548   if (!SWIG_IsOK(res1)) {
20549     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getcom" "', argument " "1"" of type '" "qfits_header const *""'");
20550   }
20551   arg1 = (qfits_header *)(argp1);
20552   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20553   if (!SWIG_IsOK(res2)) {
20554     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_getcom" "', argument " "2"" of type '" "char const *""'");
20555   }
20556   arg2 = (char *)(buf2);
20557   result = (char *)qfits_header_getcom((qfits_header const *)arg1,(char const *)arg2);
20558   resultobj = SWIG_FromCharPtr((const char *)result);
20559   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20560   return resultobj;
20561 fail:
20562   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20563   return NULL;
20564 }
20565 
20566 
_wrap_qfits_header_getint(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20567 SWIGINTERN PyObject *_wrap_qfits_header_getint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20568   PyObject *resultobj = 0;
20569   qfits_header *arg1 = (qfits_header *) 0 ;
20570   char *arg2 = (char *) 0 ;
20571   int arg3 ;
20572   void *argp1 = 0 ;
20573   int res1 = 0 ;
20574   int res2 ;
20575   char *buf2 = 0 ;
20576   int alloc2 = 0 ;
20577   int val3 ;
20578   int ecode3 = 0 ;
20579   PyObject *swig_obj[3] ;
20580   int result;
20581 
20582   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getint", 3, 3, swig_obj)) SWIG_fail;
20583   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20584   if (!SWIG_IsOK(res1)) {
20585     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getint" "', argument " "1"" of type '" "qfits_header const *""'");
20586   }
20587   arg1 = (qfits_header *)(argp1);
20588   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20589   if (!SWIG_IsOK(res2)) {
20590     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_getint" "', argument " "2"" of type '" "char const *""'");
20591   }
20592   arg2 = (char *)(buf2);
20593   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20594   if (!SWIG_IsOK(ecode3)) {
20595     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qfits_header_getint" "', argument " "3"" of type '" "int""'");
20596   }
20597   arg3 = (int)(val3);
20598   result = (int)qfits_header_getint((qfits_header const *)arg1,(char const *)arg2,arg3);
20599   resultobj = SWIG_From_int((int)(result));
20600   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20601   return resultobj;
20602 fail:
20603   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20604   return NULL;
20605 }
20606 
20607 
_wrap_qfits_header_getdouble(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20608 SWIGINTERN PyObject *_wrap_qfits_header_getdouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20609   PyObject *resultobj = 0;
20610   qfits_header *arg1 = (qfits_header *) 0 ;
20611   char *arg2 = (char *) 0 ;
20612   double arg3 ;
20613   void *argp1 = 0 ;
20614   int res1 = 0 ;
20615   int res2 ;
20616   char *buf2 = 0 ;
20617   int alloc2 = 0 ;
20618   double val3 ;
20619   int ecode3 = 0 ;
20620   PyObject *swig_obj[3] ;
20621   double result;
20622 
20623   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getdouble", 3, 3, swig_obj)) SWIG_fail;
20624   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20625   if (!SWIG_IsOK(res1)) {
20626     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getdouble" "', argument " "1"" of type '" "qfits_header const *""'");
20627   }
20628   arg1 = (qfits_header *)(argp1);
20629   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20630   if (!SWIG_IsOK(res2)) {
20631     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_getdouble" "', argument " "2"" of type '" "char const *""'");
20632   }
20633   arg2 = (char *)(buf2);
20634   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
20635   if (!SWIG_IsOK(ecode3)) {
20636     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qfits_header_getdouble" "', argument " "3"" of type '" "double""'");
20637   }
20638   arg3 = (double)(val3);
20639   result = (double)qfits_header_getdouble((qfits_header const *)arg1,(char const *)arg2,arg3);
20640   resultobj = SWIG_From_double((double)(result));
20641   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20642   return resultobj;
20643 fail:
20644   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20645   return NULL;
20646 }
20647 
20648 
_wrap_qfits_header_getboolean(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20649 SWIGINTERN PyObject *_wrap_qfits_header_getboolean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20650   PyObject *resultobj = 0;
20651   qfits_header *arg1 = (qfits_header *) 0 ;
20652   char *arg2 = (char *) 0 ;
20653   int arg3 ;
20654   void *argp1 = 0 ;
20655   int res1 = 0 ;
20656   int res2 ;
20657   char *buf2 = 0 ;
20658   int alloc2 = 0 ;
20659   int val3 ;
20660   int ecode3 = 0 ;
20661   PyObject *swig_obj[3] ;
20662   int result;
20663 
20664   if (!SWIG_Python_UnpackTuple(args, "qfits_header_getboolean", 3, 3, swig_obj)) SWIG_fail;
20665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20666   if (!SWIG_IsOK(res1)) {
20667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_getboolean" "', argument " "1"" of type '" "qfits_header const *""'");
20668   }
20669   arg1 = (qfits_header *)(argp1);
20670   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20671   if (!SWIG_IsOK(res2)) {
20672     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_getboolean" "', argument " "2"" of type '" "char const *""'");
20673   }
20674   arg2 = (char *)(buf2);
20675   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20676   if (!SWIG_IsOK(ecode3)) {
20677     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qfits_header_getboolean" "', argument " "3"" of type '" "int""'");
20678   }
20679   arg3 = (int)(val3);
20680   result = (int)qfits_header_getboolean((qfits_header const *)arg1,(char const *)arg2,arg3);
20681   resultobj = SWIG_From_int((int)(result));
20682   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20683   return resultobj;
20684 fail:
20685   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20686   return NULL;
20687 }
20688 
20689 
_wrap_qfits_header_dump(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20690 SWIGINTERN PyObject *_wrap_qfits_header_dump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20691   PyObject *resultobj = 0;
20692   qfits_header *arg1 = (qfits_header *) 0 ;
20693   FILE *arg2 = (FILE *) 0 ;
20694   void *argp1 = 0 ;
20695   int res1 = 0 ;
20696   void *argp2 = 0 ;
20697   int res2 = 0 ;
20698   PyObject *swig_obj[2] ;
20699   int result;
20700 
20701   if (!SWIG_Python_UnpackTuple(args, "qfits_header_dump", 2, 2, swig_obj)) SWIG_fail;
20702   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20703   if (!SWIG_IsOK(res1)) {
20704     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_dump" "', argument " "1"" of type '" "qfits_header const *""'");
20705   }
20706   arg1 = (qfits_header *)(argp1);
20707   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
20708   if (!SWIG_IsOK(res2)) {
20709     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_dump" "', argument " "2"" of type '" "FILE *""'");
20710   }
20711   arg2 = (FILE *)(argp2);
20712   result = (int)qfits_header_dump((qfits_header const *)arg1,arg2);
20713   resultobj = SWIG_From_int((int)(result));
20714   return resultobj;
20715 fail:
20716   return NULL;
20717 }
20718 
20719 
_wrap_qfits_header_findmatch(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20720 SWIGINTERN PyObject *_wrap_qfits_header_findmatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20721   PyObject *resultobj = 0;
20722   qfits_header *arg1 = (qfits_header *) 0 ;
20723   char *arg2 = (char *) 0 ;
20724   void *argp1 = 0 ;
20725   int res1 = 0 ;
20726   int res2 ;
20727   char *buf2 = 0 ;
20728   int alloc2 = 0 ;
20729   PyObject *swig_obj[2] ;
20730   char *result = 0 ;
20731 
20732   if (!SWIG_Python_UnpackTuple(args, "qfits_header_findmatch", 2, 2, swig_obj)) SWIG_fail;
20733   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20734   if (!SWIG_IsOK(res1)) {
20735     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_findmatch" "', argument " "1"" of type '" "qfits_header const *""'");
20736   }
20737   arg1 = (qfits_header *)(argp1);
20738   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
20739   if (!SWIG_IsOK(res2)) {
20740     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfits_header_findmatch" "', argument " "2"" of type '" "char const *""'");
20741   }
20742   arg2 = (char *)(buf2);
20743   result = (char *)qfits_header_findmatch((qfits_header const *)arg1,(char const *)arg2);
20744   resultobj = SWIG_FromCharPtr((const char *)result);
20745   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20746   return resultobj;
20747 fail:
20748   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
20749   return NULL;
20750 }
20751 
20752 
_wrap_qfits_header_write_line(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20753 SWIGINTERN PyObject *_wrap_qfits_header_write_line(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754   PyObject *resultobj = 0;
20755   qfits_header *arg1 = (qfits_header *) 0 ;
20756   int arg2 ;
20757   char *arg3 = (char *) 0 ;
20758   void *argp1 = 0 ;
20759   int res1 = 0 ;
20760   int val2 ;
20761   int ecode2 = 0 ;
20762   int res3 ;
20763   char *buf3 = 0 ;
20764   int alloc3 = 0 ;
20765   PyObject *swig_obj[3] ;
20766   int result;
20767 
20768   if (!SWIG_Python_UnpackTuple(args, "qfits_header_write_line", 3, 3, swig_obj)) SWIG_fail;
20769   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20770   if (!SWIG_IsOK(res1)) {
20771     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_write_line" "', argument " "1"" of type '" "qfits_header const *""'");
20772   }
20773   arg1 = (qfits_header *)(argp1);
20774   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
20775   if (!SWIG_IsOK(ecode2)) {
20776     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qfits_header_write_line" "', argument " "2"" of type '" "int""'");
20777   }
20778   arg2 = (int)(val2);
20779   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
20780   if (!SWIG_IsOK(res3)) {
20781     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qfits_header_write_line" "', argument " "3"" of type '" "char *""'");
20782   }
20783   arg3 = (char *)(buf3);
20784   result = (int)qfits_header_write_line((qfits_header const *)arg1,arg2,arg3);
20785   resultobj = SWIG_From_int((int)(result));
20786   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20787   return resultobj;
20788 fail:
20789   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
20790   return NULL;
20791 }
20792 
20793 
_wrap_qfits_header_read_hdr_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20794 SWIGINTERN PyObject *_wrap_qfits_header_read_hdr_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20795   PyObject *resultobj = 0;
20796   unsigned char *arg1 = (unsigned char *) 0 ;
20797   int arg2 ;
20798   int res1 ;
20799   char *buf1 = 0 ;
20800   size_t size1 = 0 ;
20801   int alloc1 = 0 ;
20802   PyObject *swig_obj[1] ;
20803   qfits_header *result = 0 ;
20804 
20805   if (!args) SWIG_fail;
20806   swig_obj[0] = args;
20807   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, &size1, &alloc1);
20808   if (!SWIG_IsOK(res1)) {
20809     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_header_read_hdr_string" "', argument " "1"" of type '" "unsigned char const *""'");
20810   }
20811   arg1 = (unsigned char *)(buf1);
20812   arg2 = (int)(size1 - 1);
20813   result = (qfits_header *)qfits_header_read_hdr_string((unsigned char const *)arg1,arg2);
20814   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
20815   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20816   return resultobj;
20817 fail:
20818   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20819   return NULL;
20820 }
20821 
20822 
_wrap_qfits_zeropad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20823 SWIGINTERN PyObject *_wrap_qfits_zeropad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20824   PyObject *resultobj = 0;
20825   char *arg1 = (char *) 0 ;
20826   int res1 ;
20827   char *buf1 = 0 ;
20828   int alloc1 = 0 ;
20829   PyObject *swig_obj[1] ;
20830 
20831   if (!args) SWIG_fail;
20832   swig_obj[0] = args;
20833   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
20834   if (!SWIG_IsOK(res1)) {
20835     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_zeropad" "', argument " "1"" of type '" "char const *""'");
20836   }
20837   arg1 = (char *)(buf1);
20838   qfits_zeropad((char const *)arg1);
20839   resultobj = SWIG_Py_Void();
20840   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20841   return resultobj;
20842 fail:
20843   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20844   return NULL;
20845 }
20846 
20847 
_wrap_qfits_is_fits(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20848 SWIGINTERN PyObject *_wrap_qfits_is_fits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20849   PyObject *resultobj = 0;
20850   char *arg1 = (char *) 0 ;
20851   int res1 ;
20852   char *buf1 = 0 ;
20853   int alloc1 = 0 ;
20854   PyObject *swig_obj[1] ;
20855   int result;
20856 
20857   if (!args) SWIG_fail;
20858   swig_obj[0] = args;
20859   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
20860   if (!SWIG_IsOK(res1)) {
20861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_is_fits" "', argument " "1"" of type '" "char const *""'");
20862   }
20863   arg1 = (char *)(buf1);
20864   result = (int)qfits_is_fits((char const *)arg1);
20865   resultobj = SWIG_From_int((int)(result));
20866   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20867   return resultobj;
20868 fail:
20869   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20870   return NULL;
20871 }
20872 
20873 
_wrap_is_blank_line(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20874 SWIGINTERN PyObject *_wrap_is_blank_line(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20875   PyObject *resultobj = 0;
20876   char *arg1 = (char *) 0 ;
20877   int res1 ;
20878   char *buf1 = 0 ;
20879   int alloc1 = 0 ;
20880   PyObject *swig_obj[1] ;
20881   int result;
20882 
20883   if (!args) SWIG_fail;
20884   swig_obj[0] = args;
20885   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
20886   if (!SWIG_IsOK(res1)) {
20887     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_blank_line" "', argument " "1"" of type '" "char const *""'");
20888   }
20889   arg1 = (char *)(buf1);
20890   result = (int)is_blank_line((char const *)arg1);
20891   resultobj = SWIG_From_int((int)(result));
20892   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20893   return resultobj;
20894 fail:
20895   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
20896   return NULL;
20897 }
20898 
20899 
_wrap_wcs_pv2sip_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20900 SWIGINTERN PyObject *_wrap_wcs_pv2sip_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20901   PyObject *resultobj = 0;
20902   qfits_header *arg1 = (qfits_header *) 0 ;
20903   double *arg2 = (double *) 0 ;
20904   int arg3 ;
20905   double arg4 ;
20906   double arg5 ;
20907   double arg6 ;
20908   double arg7 ;
20909   double arg8 ;
20910   int arg9 ;
20911   int arg10 ;
20912   int arg11 ;
20913   anbool arg12 ;
20914   int arg13 ;
20915   void *argp1 = 0 ;
20916   int res1 = 0 ;
20917   void *argp2 = 0 ;
20918   int res2 = 0 ;
20919   int val3 ;
20920   int ecode3 = 0 ;
20921   double val4 ;
20922   int ecode4 = 0 ;
20923   double val5 ;
20924   int ecode5 = 0 ;
20925   double val6 ;
20926   int ecode6 = 0 ;
20927   double val7 ;
20928   int ecode7 = 0 ;
20929   double val8 ;
20930   int ecode8 = 0 ;
20931   int val9 ;
20932   int ecode9 = 0 ;
20933   int val10 ;
20934   int ecode10 = 0 ;
20935   int val11 ;
20936   int ecode11 = 0 ;
20937   unsigned char val12 ;
20938   int ecode12 = 0 ;
20939   int val13 ;
20940   int ecode13 = 0 ;
20941   PyObject *swig_obj[13] ;
20942   sip_t *result = 0 ;
20943 
20944   if (!SWIG_Python_UnpackTuple(args, "wcs_pv2sip_header", 13, 13, swig_obj)) SWIG_fail;
20945   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
20946   if (!SWIG_IsOK(res1)) {
20947     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wcs_pv2sip_header" "', argument " "1"" of type '" "qfits_header *""'");
20948   }
20949   arg1 = (qfits_header *)(argp1);
20950   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
20951   if (!SWIG_IsOK(res2)) {
20952     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wcs_pv2sip_header" "', argument " "2"" of type '" "double *""'");
20953   }
20954   arg2 = (double *)(argp2);
20955   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20956   if (!SWIG_IsOK(ecode3)) {
20957     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "wcs_pv2sip_header" "', argument " "3"" of type '" "int""'");
20958   }
20959   arg3 = (int)(val3);
20960   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
20961   if (!SWIG_IsOK(ecode4)) {
20962     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "wcs_pv2sip_header" "', argument " "4"" of type '" "double""'");
20963   }
20964   arg4 = (double)(val4);
20965   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
20966   if (!SWIG_IsOK(ecode5)) {
20967     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "wcs_pv2sip_header" "', argument " "5"" of type '" "double""'");
20968   }
20969   arg5 = (double)(val5);
20970   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
20971   if (!SWIG_IsOK(ecode6)) {
20972     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "wcs_pv2sip_header" "', argument " "6"" of type '" "double""'");
20973   }
20974   arg6 = (double)(val6);
20975   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
20976   if (!SWIG_IsOK(ecode7)) {
20977     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "wcs_pv2sip_header" "', argument " "7"" of type '" "double""'");
20978   }
20979   arg7 = (double)(val7);
20980   ecode8 = SWIG_AsVal_double(swig_obj[7], &val8);
20981   if (!SWIG_IsOK(ecode8)) {
20982     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "wcs_pv2sip_header" "', argument " "8"" of type '" "double""'");
20983   }
20984   arg8 = (double)(val8);
20985   ecode9 = SWIG_AsVal_int(swig_obj[8], &val9);
20986   if (!SWIG_IsOK(ecode9)) {
20987     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "wcs_pv2sip_header" "', argument " "9"" of type '" "int""'");
20988   }
20989   arg9 = (int)(val9);
20990   ecode10 = SWIG_AsVal_int(swig_obj[9], &val10);
20991   if (!SWIG_IsOK(ecode10)) {
20992     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "wcs_pv2sip_header" "', argument " "10"" of type '" "int""'");
20993   }
20994   arg10 = (int)(val10);
20995   ecode11 = SWIG_AsVal_int(swig_obj[10], &val11);
20996   if (!SWIG_IsOK(ecode11)) {
20997     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "wcs_pv2sip_header" "', argument " "11"" of type '" "int""'");
20998   }
20999   arg11 = (int)(val11);
21000   ecode12 = SWIG_AsVal_unsigned_SS_char(swig_obj[11], &val12);
21001   if (!SWIG_IsOK(ecode12)) {
21002     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "wcs_pv2sip_header" "', argument " "12"" of type '" "anbool""'");
21003   }
21004   arg12 = (anbool)(val12);
21005   ecode13 = SWIG_AsVal_int(swig_obj[12], &val13);
21006   if (!SWIG_IsOK(ecode13)) {
21007     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "wcs_pv2sip_header" "', argument " "13"" of type '" "int""'");
21008   }
21009   arg13 = (int)(val13);
21010   result = (sip_t *)wcs_pv2sip_header(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
21011   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
21012   return resultobj;
21013 fail:
21014   return NULL;
21015 }
21016 
21017 
_wrap_wcs_pv2sip(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21018 SWIGINTERN PyObject *_wrap_wcs_pv2sip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21019   PyObject *resultobj = 0;
21020   char *arg1 = (char *) 0 ;
21021   int arg2 ;
21022   char *arg3 = (char *) 0 ;
21023   anbool arg4 ;
21024   double *arg5 = (double *) 0 ;
21025   int arg6 ;
21026   double arg7 ;
21027   double arg8 ;
21028   double arg9 ;
21029   double arg10 ;
21030   double arg11 ;
21031   int arg12 ;
21032   int arg13 ;
21033   int arg14 ;
21034   anbool arg15 ;
21035   int arg16 ;
21036   int res1 ;
21037   char *buf1 = 0 ;
21038   int alloc1 = 0 ;
21039   int val2 ;
21040   int ecode2 = 0 ;
21041   int res3 ;
21042   char *buf3 = 0 ;
21043   int alloc3 = 0 ;
21044   unsigned char val4 ;
21045   int ecode4 = 0 ;
21046   void *argp5 = 0 ;
21047   int res5 = 0 ;
21048   int val6 ;
21049   int ecode6 = 0 ;
21050   double val7 ;
21051   int ecode7 = 0 ;
21052   double val8 ;
21053   int ecode8 = 0 ;
21054   double val9 ;
21055   int ecode9 = 0 ;
21056   double val10 ;
21057   int ecode10 = 0 ;
21058   double val11 ;
21059   int ecode11 = 0 ;
21060   int val12 ;
21061   int ecode12 = 0 ;
21062   int val13 ;
21063   int ecode13 = 0 ;
21064   int val14 ;
21065   int ecode14 = 0 ;
21066   unsigned char val15 ;
21067   int ecode15 = 0 ;
21068   int val16 ;
21069   int ecode16 = 0 ;
21070   PyObject *swig_obj[16] ;
21071   int result;
21072 
21073   if (!SWIG_Python_UnpackTuple(args, "wcs_pv2sip", 16, 16, swig_obj)) SWIG_fail;
21074   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
21075   if (!SWIG_IsOK(res1)) {
21076     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wcs_pv2sip" "', argument " "1"" of type '" "char const *""'");
21077   }
21078   arg1 = (char *)(buf1);
21079   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
21080   if (!SWIG_IsOK(ecode2)) {
21081     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wcs_pv2sip" "', argument " "2"" of type '" "int""'");
21082   }
21083   arg2 = (int)(val2);
21084   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
21085   if (!SWIG_IsOK(res3)) {
21086     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "wcs_pv2sip" "', argument " "3"" of type '" "char const *""'");
21087   }
21088   arg3 = (char *)(buf3);
21089   ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4);
21090   if (!SWIG_IsOK(ecode4)) {
21091     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "wcs_pv2sip" "', argument " "4"" of type '" "anbool""'");
21092   }
21093   arg4 = (anbool)(val4);
21094   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
21095   if (!SWIG_IsOK(res5)) {
21096     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "wcs_pv2sip" "', argument " "5"" of type '" "double *""'");
21097   }
21098   arg5 = (double *)(argp5);
21099   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
21100   if (!SWIG_IsOK(ecode6)) {
21101     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "wcs_pv2sip" "', argument " "6"" of type '" "int""'");
21102   }
21103   arg6 = (int)(val6);
21104   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
21105   if (!SWIG_IsOK(ecode7)) {
21106     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "wcs_pv2sip" "', argument " "7"" of type '" "double""'");
21107   }
21108   arg7 = (double)(val7);
21109   ecode8 = SWIG_AsVal_double(swig_obj[7], &val8);
21110   if (!SWIG_IsOK(ecode8)) {
21111     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "wcs_pv2sip" "', argument " "8"" of type '" "double""'");
21112   }
21113   arg8 = (double)(val8);
21114   ecode9 = SWIG_AsVal_double(swig_obj[8], &val9);
21115   if (!SWIG_IsOK(ecode9)) {
21116     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "wcs_pv2sip" "', argument " "9"" of type '" "double""'");
21117   }
21118   arg9 = (double)(val9);
21119   ecode10 = SWIG_AsVal_double(swig_obj[9], &val10);
21120   if (!SWIG_IsOK(ecode10)) {
21121     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "wcs_pv2sip" "', argument " "10"" of type '" "double""'");
21122   }
21123   arg10 = (double)(val10);
21124   ecode11 = SWIG_AsVal_double(swig_obj[10], &val11);
21125   if (!SWIG_IsOK(ecode11)) {
21126     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "wcs_pv2sip" "', argument " "11"" of type '" "double""'");
21127   }
21128   arg11 = (double)(val11);
21129   ecode12 = SWIG_AsVal_int(swig_obj[11], &val12);
21130   if (!SWIG_IsOK(ecode12)) {
21131     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "wcs_pv2sip" "', argument " "12"" of type '" "int""'");
21132   }
21133   arg12 = (int)(val12);
21134   ecode13 = SWIG_AsVal_int(swig_obj[12], &val13);
21135   if (!SWIG_IsOK(ecode13)) {
21136     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "wcs_pv2sip" "', argument " "13"" of type '" "int""'");
21137   }
21138   arg13 = (int)(val13);
21139   ecode14 = SWIG_AsVal_int(swig_obj[13], &val14);
21140   if (!SWIG_IsOK(ecode14)) {
21141     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "wcs_pv2sip" "', argument " "14"" of type '" "int""'");
21142   }
21143   arg14 = (int)(val14);
21144   ecode15 = SWIG_AsVal_unsigned_SS_char(swig_obj[14], &val15);
21145   if (!SWIG_IsOK(ecode15)) {
21146     SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "wcs_pv2sip" "', argument " "15"" of type '" "anbool""'");
21147   }
21148   arg15 = (anbool)(val15);
21149   ecode16 = SWIG_AsVal_int(swig_obj[15], &val16);
21150   if (!SWIG_IsOK(ecode16)) {
21151     SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "wcs_pv2sip" "', argument " "16"" of type '" "int""'");
21152   }
21153   arg16 = (int)(val16);
21154   result = (int)wcs_pv2sip((char const *)arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16);
21155   resultobj = SWIG_From_int((int)(result));
21156   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
21157   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
21158   return resultobj;
21159 fail:
21160   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
21161   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
21162   return NULL;
21163 }
21164 
21165 
_wrap_tan_t_crval_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21166 SWIGINTERN PyObject *_wrap_tan_t_crval_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21167   PyObject *resultobj = 0;
21168   tan_t *arg1 = (tan_t *) 0 ;
21169   double *arg2 ;
21170   void *argp1 = 0 ;
21171   int res1 = 0 ;
21172   double temp2[2] ;
21173   PyObject *swig_obj[2] ;
21174 
21175   if (!SWIG_Python_UnpackTuple(args, "tan_t_crval_set", 2, 2, swig_obj)) SWIG_fail;
21176   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21177   if (!SWIG_IsOK(res1)) {
21178     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_crval_set" "', argument " "1"" of type '" "tan_t *""'");
21179   }
21180   arg1 = (tan_t *)(argp1);
21181   {
21182     int i;
21183     if (!PySequence_Check(swig_obj[1])) {
21184       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
21185       return NULL;
21186     }
21187     if (PySequence_Length(swig_obj[1]) != 2) {
21188       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
21189       return NULL;
21190     }
21191     for (i = 0; i < 2; i++) {
21192       PyObject *o = PySequence_GetItem(swig_obj[1],i);
21193       if (PyNumber_Check(o)) {
21194         temp2[i] = PyFloat_AsDouble(o);
21195       } else {
21196         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
21197         return NULL;
21198       }
21199     }
21200     arg2 = temp2;
21201   }
21202   {
21203     if (arg2) {
21204       size_t ii = 0;
21205       for (; ii < (size_t)2; ++ii) *(double *)&arg1->crval[ii] = *((double *)arg2 + ii);
21206     } else {
21207       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""crval""' of type '""double [2]""'");
21208     }
21209   }
21210   resultobj = SWIG_Py_Void();
21211   return resultobj;
21212 fail:
21213   return NULL;
21214 }
21215 
21216 
_wrap_tan_t_crval_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21217 SWIGINTERN PyObject *_wrap_tan_t_crval_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21218   PyObject *resultobj = 0;
21219   tan_t *arg1 = (tan_t *) 0 ;
21220   void *argp1 = 0 ;
21221   int res1 = 0 ;
21222   PyObject *swig_obj[1] ;
21223   double *result = 0 ;
21224 
21225   if (!args) SWIG_fail;
21226   swig_obj[0] = args;
21227   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21228   if (!SWIG_IsOK(res1)) {
21229     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_crval_get" "', argument " "1"" of type '" "tan_t *""'");
21230   }
21231   arg1 = (tan_t *)(argp1);
21232   result = (double *)(double *) ((arg1)->crval);
21233   {
21234     int i;
21235     resultobj = PyList_New(2);
21236     for (i = 0; i < 2; i++) {
21237       PyObject *o = PyFloat_FromDouble(result[i]);
21238       PyList_SetItem(resultobj,i,o);
21239     }
21240   }
21241   return resultobj;
21242 fail:
21243   return NULL;
21244 }
21245 
21246 
_wrap_tan_t_crpix_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21247 SWIGINTERN PyObject *_wrap_tan_t_crpix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21248   PyObject *resultobj = 0;
21249   tan_t *arg1 = (tan_t *) 0 ;
21250   double *arg2 ;
21251   void *argp1 = 0 ;
21252   int res1 = 0 ;
21253   double temp2[2] ;
21254   PyObject *swig_obj[2] ;
21255 
21256   if (!SWIG_Python_UnpackTuple(args, "tan_t_crpix_set", 2, 2, swig_obj)) SWIG_fail;
21257   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21258   if (!SWIG_IsOK(res1)) {
21259     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_crpix_set" "', argument " "1"" of type '" "tan_t *""'");
21260   }
21261   arg1 = (tan_t *)(argp1);
21262   {
21263     int i;
21264     if (!PySequence_Check(swig_obj[1])) {
21265       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
21266       return NULL;
21267     }
21268     if (PySequence_Length(swig_obj[1]) != 2) {
21269       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
21270       return NULL;
21271     }
21272     for (i = 0; i < 2; i++) {
21273       PyObject *o = PySequence_GetItem(swig_obj[1],i);
21274       if (PyNumber_Check(o)) {
21275         temp2[i] = PyFloat_AsDouble(o);
21276       } else {
21277         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
21278         return NULL;
21279       }
21280     }
21281     arg2 = temp2;
21282   }
21283   {
21284     if (arg2) {
21285       size_t ii = 0;
21286       for (; ii < (size_t)2; ++ii) *(double *)&arg1->crpix[ii] = *((double *)arg2 + ii);
21287     } else {
21288       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""crpix""' of type '""double [2]""'");
21289     }
21290   }
21291   resultobj = SWIG_Py_Void();
21292   return resultobj;
21293 fail:
21294   return NULL;
21295 }
21296 
21297 
_wrap_tan_t_crpix_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21298 SWIGINTERN PyObject *_wrap_tan_t_crpix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21299   PyObject *resultobj = 0;
21300   tan_t *arg1 = (tan_t *) 0 ;
21301   void *argp1 = 0 ;
21302   int res1 = 0 ;
21303   PyObject *swig_obj[1] ;
21304   double *result = 0 ;
21305 
21306   if (!args) SWIG_fail;
21307   swig_obj[0] = args;
21308   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21309   if (!SWIG_IsOK(res1)) {
21310     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_crpix_get" "', argument " "1"" of type '" "tan_t *""'");
21311   }
21312   arg1 = (tan_t *)(argp1);
21313   result = (double *)(double *) ((arg1)->crpix);
21314   {
21315     int i;
21316     resultobj = PyList_New(2);
21317     for (i = 0; i < 2; i++) {
21318       PyObject *o = PyFloat_FromDouble(result[i]);
21319       PyList_SetItem(resultobj,i,o);
21320     }
21321   }
21322   return resultobj;
21323 fail:
21324   return NULL;
21325 }
21326 
21327 
_wrap_tan_t_cd_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21328 SWIGINTERN PyObject *_wrap_tan_t_cd_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21329   PyObject *resultobj = 0;
21330   tan_t *arg1 = (tan_t *) 0 ;
21331   double (*arg2)[2] ;
21332   void *argp1 = 0 ;
21333   int res1 = 0 ;
21334   double temp2[2][2] ;
21335   PyObject *swig_obj[2] ;
21336 
21337   if (!SWIG_Python_UnpackTuple(args, "tan_t_cd_set", 2, 2, swig_obj)) SWIG_fail;
21338   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21339   if (!SWIG_IsOK(res1)) {
21340     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_cd_set" "', argument " "1"" of type '" "tan_t *""'");
21341   }
21342   arg1 = (tan_t *)(argp1);
21343   {
21344     int i;
21345     if (!PySequence_Check(swig_obj[1])) {
21346       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
21347       return NULL;
21348     }
21349     if (PySequence_Length(swig_obj[1]) != (2 * 2)) {
21350       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2*2 elements");
21351       return NULL;
21352     }
21353     for (i = 0; i < (2*2); i++) {
21354       PyObject *o = PySequence_GetItem(swig_obj[1],i);
21355       if (PyNumber_Check(o)) {
21356         // FIXME -- is it dim0 or dim1?
21357         temp2[i / 2][i % 2] = PyFloat_AsDouble(o);
21358       } else {
21359         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
21360         return NULL;
21361       }
21362     }
21363     arg2 = temp2;
21364   }
21365   {
21366     if (arg2) {
21367       size_t ii = 0;
21368       for (; ii < (size_t)2; ++ii) {
21369         if (arg2[ii]) {
21370           size_t jj = 0;
21371           for (; jj < (size_t)2; ++jj) arg1->cd[ii][jj] = arg2[ii][jj];
21372         } else {
21373           SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""cd""' of type '""double [2][2]""'");
21374         }
21375       }
21376     } else {
21377       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""cd""' of type '""double [2][2]""'");
21378     }
21379   }
21380   resultobj = SWIG_Py_Void();
21381   return resultobj;
21382 fail:
21383   return NULL;
21384 }
21385 
21386 
_wrap_tan_t_cd_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21387 SWIGINTERN PyObject *_wrap_tan_t_cd_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21388   PyObject *resultobj = 0;
21389   tan_t *arg1 = (tan_t *) 0 ;
21390   void *argp1 = 0 ;
21391   int res1 = 0 ;
21392   PyObject *swig_obj[1] ;
21393   double (*result)[2] = 0 ;
21394 
21395   if (!args) SWIG_fail;
21396   swig_obj[0] = args;
21397   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21398   if (!SWIG_IsOK(res1)) {
21399     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_cd_get" "', argument " "1"" of type '" "tan_t *""'");
21400   }
21401   arg1 = (tan_t *)(argp1);
21402   result = (double (*)[2])(double (*)[2]) ((arg1)->cd);
21403   {
21404     int i;
21405     resultobj = PyList_New(2 * 2);
21406     for (i = 0; i < (2)*(2); i++) {
21407       // FIXME -- dim0 or dim1?
21408       PyObject *o = PyFloat_FromDouble(result[i / 2][i % 2]);
21409       PyList_SetItem(resultobj,i,o);
21410     }
21411   }
21412   return resultobj;
21413 fail:
21414   return NULL;
21415 }
21416 
21417 
_wrap_tan_t_imagew_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21418 SWIGINTERN PyObject *_wrap_tan_t_imagew_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21419   PyObject *resultobj = 0;
21420   tan_t *arg1 = (tan_t *) 0 ;
21421   double arg2 ;
21422   void *argp1 = 0 ;
21423   int res1 = 0 ;
21424   double val2 ;
21425   int ecode2 = 0 ;
21426   PyObject *swig_obj[2] ;
21427 
21428   if (!SWIG_Python_UnpackTuple(args, "tan_t_imagew_set", 2, 2, swig_obj)) SWIG_fail;
21429   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21430   if (!SWIG_IsOK(res1)) {
21431     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_imagew_set" "', argument " "1"" of type '" "tan_t *""'");
21432   }
21433   arg1 = (tan_t *)(argp1);
21434   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
21435   if (!SWIG_IsOK(ecode2)) {
21436     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_imagew_set" "', argument " "2"" of type '" "double""'");
21437   }
21438   arg2 = (double)(val2);
21439   if (arg1) (arg1)->imagew = arg2;
21440   resultobj = SWIG_Py_Void();
21441   return resultobj;
21442 fail:
21443   return NULL;
21444 }
21445 
21446 
_wrap_tan_t_imagew_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21447 SWIGINTERN PyObject *_wrap_tan_t_imagew_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21448   PyObject *resultobj = 0;
21449   tan_t *arg1 = (tan_t *) 0 ;
21450   void *argp1 = 0 ;
21451   int res1 = 0 ;
21452   PyObject *swig_obj[1] ;
21453   double result;
21454 
21455   if (!args) SWIG_fail;
21456   swig_obj[0] = args;
21457   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21458   if (!SWIG_IsOK(res1)) {
21459     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_imagew_get" "', argument " "1"" of type '" "tan_t *""'");
21460   }
21461   arg1 = (tan_t *)(argp1);
21462   result = (double) ((arg1)->imagew);
21463   resultobj = SWIG_From_double((double)(result));
21464   return resultobj;
21465 fail:
21466   return NULL;
21467 }
21468 
21469 
_wrap_tan_t_imageh_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21470 SWIGINTERN PyObject *_wrap_tan_t_imageh_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21471   PyObject *resultobj = 0;
21472   tan_t *arg1 = (tan_t *) 0 ;
21473   double arg2 ;
21474   void *argp1 = 0 ;
21475   int res1 = 0 ;
21476   double val2 ;
21477   int ecode2 = 0 ;
21478   PyObject *swig_obj[2] ;
21479 
21480   if (!SWIG_Python_UnpackTuple(args, "tan_t_imageh_set", 2, 2, swig_obj)) SWIG_fail;
21481   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21482   if (!SWIG_IsOK(res1)) {
21483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_imageh_set" "', argument " "1"" of type '" "tan_t *""'");
21484   }
21485   arg1 = (tan_t *)(argp1);
21486   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
21487   if (!SWIG_IsOK(ecode2)) {
21488     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_imageh_set" "', argument " "2"" of type '" "double""'");
21489   }
21490   arg2 = (double)(val2);
21491   if (arg1) (arg1)->imageh = arg2;
21492   resultobj = SWIG_Py_Void();
21493   return resultobj;
21494 fail:
21495   return NULL;
21496 }
21497 
21498 
_wrap_tan_t_imageh_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21499 SWIGINTERN PyObject *_wrap_tan_t_imageh_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21500   PyObject *resultobj = 0;
21501   tan_t *arg1 = (tan_t *) 0 ;
21502   void *argp1 = 0 ;
21503   int res1 = 0 ;
21504   PyObject *swig_obj[1] ;
21505   double result;
21506 
21507   if (!args) SWIG_fail;
21508   swig_obj[0] = args;
21509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21510   if (!SWIG_IsOK(res1)) {
21511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_imageh_get" "', argument " "1"" of type '" "tan_t *""'");
21512   }
21513   arg1 = (tan_t *)(argp1);
21514   result = (double) ((arg1)->imageh);
21515   resultobj = SWIG_From_double((double)(result));
21516   return resultobj;
21517 fail:
21518   return NULL;
21519 }
21520 
21521 
_wrap_tan_t_sin_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21522 SWIGINTERN PyObject *_wrap_tan_t_sin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21523   PyObject *resultobj = 0;
21524   tan_t *arg1 = (tan_t *) 0 ;
21525   anbool arg2 ;
21526   void *argp1 = 0 ;
21527   int res1 = 0 ;
21528   unsigned char val2 ;
21529   int ecode2 = 0 ;
21530   PyObject *swig_obj[2] ;
21531 
21532   if (!SWIG_Python_UnpackTuple(args, "tan_t_sin_set", 2, 2, swig_obj)) SWIG_fail;
21533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21534   if (!SWIG_IsOK(res1)) {
21535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_sin_set" "', argument " "1"" of type '" "tan_t *""'");
21536   }
21537   arg1 = (tan_t *)(argp1);
21538   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
21539   if (!SWIG_IsOK(ecode2)) {
21540     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_sin_set" "', argument " "2"" of type '" "anbool""'");
21541   }
21542   arg2 = (anbool)(val2);
21543   if (arg1) (arg1)->sin = arg2;
21544   resultobj = SWIG_Py_Void();
21545   return resultobj;
21546 fail:
21547   return NULL;
21548 }
21549 
21550 
_wrap_tan_t_sin_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21551 SWIGINTERN PyObject *_wrap_tan_t_sin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21552   PyObject *resultobj = 0;
21553   tan_t *arg1 = (tan_t *) 0 ;
21554   void *argp1 = 0 ;
21555   int res1 = 0 ;
21556   PyObject *swig_obj[1] ;
21557   anbool result;
21558 
21559   if (!args) SWIG_fail;
21560   swig_obj[0] = args;
21561   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21562   if (!SWIG_IsOK(res1)) {
21563     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_sin_get" "', argument " "1"" of type '" "tan_t *""'");
21564   }
21565   arg1 = (tan_t *)(argp1);
21566   result = (anbool) ((arg1)->sin);
21567   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
21568   return resultobj;
21569 fail:
21570   return NULL;
21571 }
21572 
21573 
_wrap_new_tan_t__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21574 SWIGINTERN PyObject *_wrap_new_tan_t__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21575   PyObject *resultobj = 0;
21576   char *arg1 = (char *) NULL ;
21577   int arg2 = (int) 0 ;
21578   int arg3 = (int) 0 ;
21579   int res1 ;
21580   char *buf1 = 0 ;
21581   int alloc1 = 0 ;
21582   int val2 ;
21583   int ecode2 = 0 ;
21584   int val3 ;
21585   int ecode3 = 0 ;
21586   tan_t *result = 0 ;
21587 
21588   if ((nobjs < 0) || (nobjs > 3)) SWIG_fail;
21589   if (swig_obj[0]) {
21590     res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
21591     if (!SWIG_IsOK(res1)) {
21592       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_tan_t" "', argument " "1"" of type '" "char *""'");
21593     }
21594     arg1 = (char *)(buf1);
21595   }
21596   if (swig_obj[1]) {
21597     ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
21598     if (!SWIG_IsOK(ecode2)) {
21599       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_tan_t" "', argument " "2"" of type '" "int""'");
21600     }
21601     arg2 = (int)(val2);
21602   }
21603   if (swig_obj[2]) {
21604     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21605     if (!SWIG_IsOK(ecode3)) {
21606       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_tan_t" "', argument " "3"" of type '" "int""'");
21607     }
21608     arg3 = (int)(val3);
21609   }
21610   result = (tan_t *)new_tan_t__SWIG_0(arg1,arg2,arg3);
21611   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, SWIG_POINTER_NEW |  0 );
21612   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
21613   return resultobj;
21614 fail:
21615   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
21616   return NULL;
21617 }
21618 
21619 
_wrap_new_tan_t__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21620 SWIGINTERN PyObject *_wrap_new_tan_t__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21621   PyObject *resultobj = 0;
21622   double arg1 ;
21623   double arg2 ;
21624   double arg3 ;
21625   double arg4 ;
21626   double arg5 ;
21627   double arg6 ;
21628   double arg7 ;
21629   double arg8 ;
21630   double arg9 ;
21631   double arg10 ;
21632   double val1 ;
21633   int ecode1 = 0 ;
21634   double val2 ;
21635   int ecode2 = 0 ;
21636   double val3 ;
21637   int ecode3 = 0 ;
21638   double val4 ;
21639   int ecode4 = 0 ;
21640   double val5 ;
21641   int ecode5 = 0 ;
21642   double val6 ;
21643   int ecode6 = 0 ;
21644   double val7 ;
21645   int ecode7 = 0 ;
21646   double val8 ;
21647   int ecode8 = 0 ;
21648   double val9 ;
21649   int ecode9 = 0 ;
21650   double val10 ;
21651   int ecode10 = 0 ;
21652   tan_t *result = 0 ;
21653 
21654   if ((nobjs < 10) || (nobjs > 10)) SWIG_fail;
21655   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
21656   if (!SWIG_IsOK(ecode1)) {
21657     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_tan_t" "', argument " "1"" of type '" "double""'");
21658   }
21659   arg1 = (double)(val1);
21660   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
21661   if (!SWIG_IsOK(ecode2)) {
21662     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_tan_t" "', argument " "2"" of type '" "double""'");
21663   }
21664   arg2 = (double)(val2);
21665   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
21666   if (!SWIG_IsOK(ecode3)) {
21667     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_tan_t" "', argument " "3"" of type '" "double""'");
21668   }
21669   arg3 = (double)(val3);
21670   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
21671   if (!SWIG_IsOK(ecode4)) {
21672     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_tan_t" "', argument " "4"" of type '" "double""'");
21673   }
21674   arg4 = (double)(val4);
21675   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
21676   if (!SWIG_IsOK(ecode5)) {
21677     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_tan_t" "', argument " "5"" of type '" "double""'");
21678   }
21679   arg5 = (double)(val5);
21680   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
21681   if (!SWIG_IsOK(ecode6)) {
21682     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_tan_t" "', argument " "6"" of type '" "double""'");
21683   }
21684   arg6 = (double)(val6);
21685   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
21686   if (!SWIG_IsOK(ecode7)) {
21687     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_tan_t" "', argument " "7"" of type '" "double""'");
21688   }
21689   arg7 = (double)(val7);
21690   ecode8 = SWIG_AsVal_double(swig_obj[7], &val8);
21691   if (!SWIG_IsOK(ecode8)) {
21692     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_tan_t" "', argument " "8"" of type '" "double""'");
21693   }
21694   arg8 = (double)(val8);
21695   ecode9 = SWIG_AsVal_double(swig_obj[8], &val9);
21696   if (!SWIG_IsOK(ecode9)) {
21697     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_tan_t" "', argument " "9"" of type '" "double""'");
21698   }
21699   arg9 = (double)(val9);
21700   ecode10 = SWIG_AsVal_double(swig_obj[9], &val10);
21701   if (!SWIG_IsOK(ecode10)) {
21702     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_tan_t" "', argument " "10"" of type '" "double""'");
21703   }
21704   arg10 = (double)(val10);
21705   result = (tan_t *)new_tan_t__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
21706   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, SWIG_POINTER_NEW |  0 );
21707   return resultobj;
21708 fail:
21709   return NULL;
21710 }
21711 
21712 
_wrap_new_tan_t__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21713 SWIGINTERN PyObject *_wrap_new_tan_t__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21714   PyObject *resultobj = 0;
21715   tan_t *arg1 = (tan_t *) 0 ;
21716   void *argp1 = 0 ;
21717   int res1 = 0 ;
21718   tan_t *result = 0 ;
21719 
21720   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21721   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21722   if (!SWIG_IsOK(res1)) {
21723     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_tan_t" "', argument " "1"" of type '" "tan_t const *""'");
21724   }
21725   arg1 = (tan_t *)(argp1);
21726   result = (tan_t *)new_tan_t__SWIG_2((tan_t const *)arg1);
21727   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, SWIG_POINTER_NEW |  0 );
21728   return resultobj;
21729 fail:
21730   return NULL;
21731 }
21732 
21733 
_wrap_new_tan_t__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21734 SWIGINTERN PyObject *_wrap_new_tan_t__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21735   PyObject *resultobj = 0;
21736   qfits_header *arg1 = (qfits_header *) 0 ;
21737   void *argp1 = 0 ;
21738   int res1 = 0 ;
21739   tan_t *result = 0 ;
21740 
21741   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21742   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
21743   if (!SWIG_IsOK(res1)) {
21744     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_tan_t" "', argument " "1"" of type '" "qfits_header const *""'");
21745   }
21746   arg1 = (qfits_header *)(argp1);
21747   result = (tan_t *)new_tan_t__SWIG_3((qfits_header const *)arg1);
21748   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, SWIG_POINTER_NEW |  0 );
21749   return resultobj;
21750 fail:
21751   return NULL;
21752 }
21753 
21754 
_wrap_new_tan_t(PyObject * self,PyObject * args)21755 SWIGINTERN PyObject *_wrap_new_tan_t(PyObject *self, PyObject *args) {
21756   Py_ssize_t argc;
21757   PyObject *argv[11] = {
21758     0
21759   };
21760 
21761   if (!(argc = SWIG_Python_UnpackTuple(args, "new_tan_t", 0, 10, argv))) SWIG_fail;
21762   --argc;
21763   if ((argc >= 0) && (argc <= 3)) {
21764     int _v;
21765     if (argc <= 0) {
21766       return _wrap_new_tan_t__SWIG_0(self, argc, argv);
21767     }
21768     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
21769     _v = SWIG_CheckState(res);
21770     if (_v) {
21771       if (argc <= 1) {
21772         return _wrap_new_tan_t__SWIG_0(self, argc, argv);
21773       }
21774       {
21775         int res = SWIG_AsVal_int(argv[1], NULL);
21776         _v = SWIG_CheckState(res);
21777       }
21778       if (_v) {
21779         if (argc <= 2) {
21780           return _wrap_new_tan_t__SWIG_0(self, argc, argv);
21781         }
21782         {
21783           int res = SWIG_AsVal_int(argv[2], NULL);
21784           _v = SWIG_CheckState(res);
21785         }
21786         if (_v) {
21787           return _wrap_new_tan_t__SWIG_0(self, argc, argv);
21788         }
21789       }
21790     }
21791   }
21792   if (argc == 1) {
21793     int _v;
21794     void *vptr = 0;
21795     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_tan_t, 0);
21796     _v = SWIG_CheckState(res);
21797     if (_v) {
21798       return _wrap_new_tan_t__SWIG_2(self, argc, argv);
21799     }
21800   }
21801   if (argc == 1) {
21802     int _v;
21803     void *vptr = 0;
21804     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_qfits_header, 0);
21805     _v = SWIG_CheckState(res);
21806     if (_v) {
21807       return _wrap_new_tan_t__SWIG_3(self, argc, argv);
21808     }
21809   }
21810   if (argc == 10) {
21811     int _v;
21812     {
21813       int res = SWIG_AsVal_double(argv[0], NULL);
21814       _v = SWIG_CheckState(res);
21815     }
21816     if (_v) {
21817       {
21818         int res = SWIG_AsVal_double(argv[1], NULL);
21819         _v = SWIG_CheckState(res);
21820       }
21821       if (_v) {
21822         {
21823           int res = SWIG_AsVal_double(argv[2], NULL);
21824           _v = SWIG_CheckState(res);
21825         }
21826         if (_v) {
21827           {
21828             int res = SWIG_AsVal_double(argv[3], NULL);
21829             _v = SWIG_CheckState(res);
21830           }
21831           if (_v) {
21832             {
21833               int res = SWIG_AsVal_double(argv[4], NULL);
21834               _v = SWIG_CheckState(res);
21835             }
21836             if (_v) {
21837               {
21838                 int res = SWIG_AsVal_double(argv[5], NULL);
21839                 _v = SWIG_CheckState(res);
21840               }
21841               if (_v) {
21842                 {
21843                   int res = SWIG_AsVal_double(argv[6], NULL);
21844                   _v = SWIG_CheckState(res);
21845                 }
21846                 if (_v) {
21847                   {
21848                     int res = SWIG_AsVal_double(argv[7], NULL);
21849                     _v = SWIG_CheckState(res);
21850                   }
21851                   if (_v) {
21852                     {
21853                       int res = SWIG_AsVal_double(argv[8], NULL);
21854                       _v = SWIG_CheckState(res);
21855                     }
21856                     if (_v) {
21857                       {
21858                         int res = SWIG_AsVal_double(argv[9], NULL);
21859                         _v = SWIG_CheckState(res);
21860                       }
21861                       if (_v) {
21862                         return _wrap_new_tan_t__SWIG_1(self, argc, argv);
21863                       }
21864                     }
21865                   }
21866                 }
21867               }
21868             }
21869           }
21870         }
21871       }
21872     }
21873   }
21874 
21875 fail:
21876   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_tan_t'.\n"
21877     "  Possible C/C++ prototypes are:\n"
21878     "    tan_t::tan_t(char *,int,int)\n"
21879     "    tan_t::tan_t(double,double,double,double,double,double,double,double,double,double)\n"
21880     "    tan_t::tan_t(tan_t const *)\n"
21881     "    tan_t::tan_t(qfits_header const *)\n");
21882   return 0;
21883 }
21884 
21885 
_wrap_delete_tan_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21886 SWIGINTERN PyObject *_wrap_delete_tan_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21887   PyObject *resultobj = 0;
21888   tan_t *arg1 = (tan_t *) 0 ;
21889   void *argp1 = 0 ;
21890   int res1 = 0 ;
21891   PyObject *swig_obj[1] ;
21892 
21893   if (!args) SWIG_fail;
21894   swig_obj[0] = args;
21895   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, SWIG_POINTER_DISOWN |  0 );
21896   if (!SWIG_IsOK(res1)) {
21897     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_tan_t" "', argument " "1"" of type '" "tan_t *""'");
21898   }
21899   arg1 = (tan_t *)(argp1);
21900   delete_tan_t(arg1);
21901   resultobj = SWIG_Py_Void();
21902   return resultobj;
21903 fail:
21904   return NULL;
21905 }
21906 
21907 
_wrap_tan_t_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21908 SWIGINTERN PyObject *_wrap_tan_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21909   PyObject *resultobj = 0;
21910   tan_t *arg1 = (tan_t *) 0 ;
21911   double arg2 ;
21912   double arg3 ;
21913   double arg4 ;
21914   double arg5 ;
21915   double arg6 ;
21916   double arg7 ;
21917   double arg8 ;
21918   double arg9 ;
21919   double arg10 ;
21920   double arg11 ;
21921   void *argp1 = 0 ;
21922   int res1 = 0 ;
21923   double val2 ;
21924   int ecode2 = 0 ;
21925   double val3 ;
21926   int ecode3 = 0 ;
21927   double val4 ;
21928   int ecode4 = 0 ;
21929   double val5 ;
21930   int ecode5 = 0 ;
21931   double val6 ;
21932   int ecode6 = 0 ;
21933   double val7 ;
21934   int ecode7 = 0 ;
21935   double val8 ;
21936   int ecode8 = 0 ;
21937   double val9 ;
21938   int ecode9 = 0 ;
21939   double val10 ;
21940   int ecode10 = 0 ;
21941   double val11 ;
21942   int ecode11 = 0 ;
21943   PyObject *swig_obj[11] ;
21944 
21945   if (!SWIG_Python_UnpackTuple(args, "tan_t_set", 11, 11, swig_obj)) SWIG_fail;
21946   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
21947   if (!SWIG_IsOK(res1)) {
21948     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set" "', argument " "1"" of type '" "tan_t *""'");
21949   }
21950   arg1 = (tan_t *)(argp1);
21951   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
21952   if (!SWIG_IsOK(ecode2)) {
21953     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set" "', argument " "2"" of type '" "double""'");
21954   }
21955   arg2 = (double)(val2);
21956   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
21957   if (!SWIG_IsOK(ecode3)) {
21958     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_set" "', argument " "3"" of type '" "double""'");
21959   }
21960   arg3 = (double)(val3);
21961   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
21962   if (!SWIG_IsOK(ecode4)) {
21963     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "tan_t_set" "', argument " "4"" of type '" "double""'");
21964   }
21965   arg4 = (double)(val4);
21966   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
21967   if (!SWIG_IsOK(ecode5)) {
21968     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "tan_t_set" "', argument " "5"" of type '" "double""'");
21969   }
21970   arg5 = (double)(val5);
21971   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
21972   if (!SWIG_IsOK(ecode6)) {
21973     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "tan_t_set" "', argument " "6"" of type '" "double""'");
21974   }
21975   arg6 = (double)(val6);
21976   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
21977   if (!SWIG_IsOK(ecode7)) {
21978     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "tan_t_set" "', argument " "7"" of type '" "double""'");
21979   }
21980   arg7 = (double)(val7);
21981   ecode8 = SWIG_AsVal_double(swig_obj[7], &val8);
21982   if (!SWIG_IsOK(ecode8)) {
21983     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "tan_t_set" "', argument " "8"" of type '" "double""'");
21984   }
21985   arg8 = (double)(val8);
21986   ecode9 = SWIG_AsVal_double(swig_obj[8], &val9);
21987   if (!SWIG_IsOK(ecode9)) {
21988     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "tan_t_set" "', argument " "9"" of type '" "double""'");
21989   }
21990   arg9 = (double)(val9);
21991   ecode10 = SWIG_AsVal_double(swig_obj[9], &val10);
21992   if (!SWIG_IsOK(ecode10)) {
21993     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "tan_t_set" "', argument " "10"" of type '" "double""'");
21994   }
21995   arg10 = (double)(val10);
21996   ecode11 = SWIG_AsVal_double(swig_obj[10], &val11);
21997   if (!SWIG_IsOK(ecode11)) {
21998     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "tan_t_set" "', argument " "11"" of type '" "double""'");
21999   }
22000   arg11 = (double)(val11);
22001   tan_t_set(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
22002   resultobj = SWIG_Py_Void();
22003   return resultobj;
22004 fail:
22005   return NULL;
22006 }
22007 
22008 
_wrap_tan_t_is_inside(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22009 SWIGINTERN PyObject *_wrap_tan_t_is_inside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22010   PyObject *resultobj = 0;
22011   tan_t *arg1 = (tan_t *) 0 ;
22012   double arg2 ;
22013   double arg3 ;
22014   void *argp1 = 0 ;
22015   int res1 = 0 ;
22016   double val2 ;
22017   int ecode2 = 0 ;
22018   double val3 ;
22019   int ecode3 = 0 ;
22020   PyObject *swig_obj[3] ;
22021   anbool result;
22022 
22023   if (!SWIG_Python_UnpackTuple(args, "tan_t_is_inside", 3, 3, swig_obj)) SWIG_fail;
22024   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22025   if (!SWIG_IsOK(res1)) {
22026     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_is_inside" "', argument " "1"" of type '" "tan_t *""'");
22027   }
22028   arg1 = (tan_t *)(argp1);
22029   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22030   if (!SWIG_IsOK(ecode2)) {
22031     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_is_inside" "', argument " "2"" of type '" "double""'");
22032   }
22033   arg2 = (double)(val2);
22034   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22035   if (!SWIG_IsOK(ecode3)) {
22036     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_is_inside" "', argument " "3"" of type '" "double""'");
22037   }
22038   arg3 = (double)(val3);
22039   result = (anbool)tan_t_is_inside(arg1,arg2,arg3);
22040   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
22041   return resultobj;
22042 fail:
22043   return NULL;
22044 }
22045 
22046 
_wrap_tan_t_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22047 SWIGINTERN PyObject *_wrap_tan_t_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048   PyObject *resultobj = 0;
22049   tan_t *arg1 = (tan_t *) 0 ;
22050   double arg2 ;
22051   void *argp1 = 0 ;
22052   int res1 = 0 ;
22053   double val2 ;
22054   int ecode2 = 0 ;
22055   PyObject *swig_obj[2] ;
22056   tan_t *result = 0 ;
22057 
22058   if (!SWIG_Python_UnpackTuple(args, "tan_t_scale", 2, 2, swig_obj)) SWIG_fail;
22059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22060   if (!SWIG_IsOK(res1)) {
22061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_scale" "', argument " "1"" of type '" "tan_t *""'");
22062   }
22063   arg1 = (tan_t *)(argp1);
22064   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22065   if (!SWIG_IsOK(ecode2)) {
22066     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_scale" "', argument " "2"" of type '" "double""'");
22067   }
22068   arg2 = (double)(val2);
22069   result = (tan_t *)tan_t_scale(arg1,arg2);
22070   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
22071   return resultobj;
22072 fail:
22073   return NULL;
22074 }
22075 
22076 
_wrap_tan_t_rotate(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22077 SWIGINTERN PyObject *_wrap_tan_t_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22078   PyObject *resultobj = 0;
22079   tan_t *arg1 = (tan_t *) 0 ;
22080   double arg2 ;
22081   void *argp1 = 0 ;
22082   int res1 = 0 ;
22083   double val2 ;
22084   int ecode2 = 0 ;
22085   PyObject *swig_obj[2] ;
22086   tan_t *result = 0 ;
22087 
22088   if (!SWIG_Python_UnpackTuple(args, "tan_t_rotate", 2, 2, swig_obj)) SWIG_fail;
22089   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22090   if (!SWIG_IsOK(res1)) {
22091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_rotate" "', argument " "1"" of type '" "tan_t *""'");
22092   }
22093   arg1 = (tan_t *)(argp1);
22094   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22095   if (!SWIG_IsOK(ecode2)) {
22096     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_rotate" "', argument " "2"" of type '" "double""'");
22097   }
22098   arg2 = (double)(val2);
22099   result = (tan_t *)tan_t_rotate(arg1,arg2);
22100   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
22101   return resultobj;
22102 fail:
22103   return NULL;
22104 }
22105 
22106 
_wrap_tan_t_get_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22107 SWIGINTERN PyObject *_wrap_tan_t_get_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22108   PyObject *resultobj = 0;
22109   tan_t *arg1 = (tan_t *) 0 ;
22110   void *argp1 = 0 ;
22111   int res1 = 0 ;
22112   PyObject *swig_obj[1] ;
22113   double result;
22114 
22115   if (!args) SWIG_fail;
22116   swig_obj[0] = args;
22117   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22118   if (!SWIG_IsOK(res1)) {
22119     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_get_width" "', argument " "1"" of type '" "tan_t *""'");
22120   }
22121   arg1 = (tan_t *)(argp1);
22122   result = (double)tan_t_get_width(arg1);
22123   resultobj = SWIG_From_double((double)(result));
22124   return resultobj;
22125 fail:
22126   return NULL;
22127 }
22128 
22129 
_wrap_tan_t_get_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22130 SWIGINTERN PyObject *_wrap_tan_t_get_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22131   PyObject *resultobj = 0;
22132   tan_t *arg1 = (tan_t *) 0 ;
22133   void *argp1 = 0 ;
22134   int res1 = 0 ;
22135   PyObject *swig_obj[1] ;
22136   double result;
22137 
22138   if (!args) SWIG_fail;
22139   swig_obj[0] = args;
22140   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22141   if (!SWIG_IsOK(res1)) {
22142     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_get_height" "', argument " "1"" of type '" "tan_t *""'");
22143   }
22144   arg1 = (tan_t *)(argp1);
22145   result = (double)tan_t_get_height(arg1);
22146   resultobj = SWIG_From_double((double)(result));
22147   return resultobj;
22148 fail:
22149   return NULL;
22150 }
22151 
22152 
_wrap_tan_t_set_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22153 SWIGINTERN PyObject *_wrap_tan_t_set_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22154   PyObject *resultobj = 0;
22155   tan_t *arg1 = (tan_t *) 0 ;
22156   double arg2 ;
22157   void *argp1 = 0 ;
22158   int res1 = 0 ;
22159   double val2 ;
22160   int ecode2 = 0 ;
22161   PyObject *swig_obj[2] ;
22162 
22163   if (!SWIG_Python_UnpackTuple(args, "tan_t_set_width", 2, 2, swig_obj)) SWIG_fail;
22164   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22165   if (!SWIG_IsOK(res1)) {
22166     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set_width" "', argument " "1"" of type '" "tan_t *""'");
22167   }
22168   arg1 = (tan_t *)(argp1);
22169   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22170   if (!SWIG_IsOK(ecode2)) {
22171     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set_width" "', argument " "2"" of type '" "double""'");
22172   }
22173   arg2 = (double)(val2);
22174   tan_t_set_width(arg1,arg2);
22175   resultobj = SWIG_Py_Void();
22176   return resultobj;
22177 fail:
22178   return NULL;
22179 }
22180 
22181 
_wrap_tan_t_set_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22182 SWIGINTERN PyObject *_wrap_tan_t_set_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22183   PyObject *resultobj = 0;
22184   tan_t *arg1 = (tan_t *) 0 ;
22185   double arg2 ;
22186   void *argp1 = 0 ;
22187   int res1 = 0 ;
22188   double val2 ;
22189   int ecode2 = 0 ;
22190   PyObject *swig_obj[2] ;
22191 
22192   if (!SWIG_Python_UnpackTuple(args, "tan_t_set_height", 2, 2, swig_obj)) SWIG_fail;
22193   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22194   if (!SWIG_IsOK(res1)) {
22195     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set_height" "', argument " "1"" of type '" "tan_t *""'");
22196   }
22197   arg1 = (tan_t *)(argp1);
22198   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22199   if (!SWIG_IsOK(ecode2)) {
22200     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set_height" "', argument " "2"" of type '" "double""'");
22201   }
22202   arg2 = (double)(val2);
22203   tan_t_set_height(arg1,arg2);
22204   resultobj = SWIG_Py_Void();
22205   return resultobj;
22206 fail:
22207   return NULL;
22208 }
22209 
22210 
_wrap_tan_t_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22211 SWIGINTERN PyObject *_wrap_tan_t_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22212   PyObject *resultobj = 0;
22213   tan_t *arg1 = (tan_t *) 0 ;
22214   void *argp1 = 0 ;
22215   int res1 = 0 ;
22216   PyObject *swig_obj[1] ;
22217   double result;
22218 
22219   if (!args) SWIG_fail;
22220   swig_obj[0] = args;
22221   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22222   if (!SWIG_IsOK(res1)) {
22223     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_pixel_scale" "', argument " "1"" of type '" "tan_t *""'");
22224   }
22225   arg1 = (tan_t *)(argp1);
22226   result = (double)tan_t_pixel_scale(arg1);
22227   resultobj = SWIG_From_double((double)(result));
22228   return resultobj;
22229 fail:
22230   return NULL;
22231 }
22232 
22233 
_wrap_tan_t_radec_center(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22234 SWIGINTERN PyObject *_wrap_tan_t_radec_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22235   PyObject *resultobj = 0;
22236   tan_t *arg1 = (tan_t *) 0 ;
22237   double *arg2 = (double *) 0 ;
22238   double *arg3 = (double *) 0 ;
22239   void *argp1 = 0 ;
22240   int res1 = 0 ;
22241   double temp2 ;
22242   int res2 = SWIG_TMPOBJ ;
22243   double temp3 ;
22244   int res3 = SWIG_TMPOBJ ;
22245   PyObject *swig_obj[1] ;
22246 
22247   arg2 = &temp2;
22248   arg3 = &temp3;
22249   if (!args) SWIG_fail;
22250   swig_obj[0] = args;
22251   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22252   if (!SWIG_IsOK(res1)) {
22253     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_radec_center" "', argument " "1"" of type '" "tan_t *""'");
22254   }
22255   arg1 = (tan_t *)(argp1);
22256   tan_t_radec_center(arg1,arg2,arg3);
22257   resultobj = SWIG_Py_Void();
22258   if (SWIG_IsTmpObj(res2)) {
22259     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22260   } else {
22261     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22262     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22263   }
22264   if (SWIG_IsTmpObj(res3)) {
22265     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22266   } else {
22267     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22268     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22269   }
22270   return resultobj;
22271 fail:
22272   return NULL;
22273 }
22274 
22275 
_wrap_tan_t_radius(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22276 SWIGINTERN PyObject *_wrap_tan_t_radius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22277   PyObject *resultobj = 0;
22278   tan_t *arg1 = (tan_t *) 0 ;
22279   void *argp1 = 0 ;
22280   int res1 = 0 ;
22281   PyObject *swig_obj[1] ;
22282   double result;
22283 
22284   if (!args) SWIG_fail;
22285   swig_obj[0] = args;
22286   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22287   if (!SWIG_IsOK(res1)) {
22288     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_radius" "', argument " "1"" of type '" "tan_t *""'");
22289   }
22290   arg1 = (tan_t *)(argp1);
22291   result = (double)tan_t_radius(arg1);
22292   resultobj = SWIG_From_double((double)(result));
22293   return resultobj;
22294 fail:
22295   return NULL;
22296 }
22297 
22298 
_wrap_tan_t_xyzcenter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22299 SWIGINTERN PyObject *_wrap_tan_t_xyzcenter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22300   PyObject *resultobj = 0;
22301   tan_t *arg1 = (tan_t *) 0 ;
22302   double *arg2 = (double *) 0 ;
22303   double *arg3 = (double *) 0 ;
22304   double *arg4 = (double *) 0 ;
22305   void *argp1 = 0 ;
22306   int res1 = 0 ;
22307   double temp2 ;
22308   int res2 = SWIG_TMPOBJ ;
22309   double temp3 ;
22310   int res3 = SWIG_TMPOBJ ;
22311   double temp4 ;
22312   int res4 = SWIG_TMPOBJ ;
22313   PyObject *swig_obj[1] ;
22314 
22315   arg2 = &temp2;
22316   arg3 = &temp3;
22317   arg4 = &temp4;
22318   if (!args) SWIG_fail;
22319   swig_obj[0] = args;
22320   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22321   if (!SWIG_IsOK(res1)) {
22322     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_xyzcenter" "', argument " "1"" of type '" "tan_t *""'");
22323   }
22324   arg1 = (tan_t *)(argp1);
22325   tan_t_xyzcenter(arg1,arg2,arg3,arg4);
22326   resultobj = SWIG_Py_Void();
22327   if (SWIG_IsTmpObj(res2)) {
22328     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22329   } else {
22330     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22331     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22332   }
22333   if (SWIG_IsTmpObj(res3)) {
22334     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22335   } else {
22336     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22337     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22338   }
22339   if (SWIG_IsTmpObj(res4)) {
22340     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22341   } else {
22342     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22343     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22344   }
22345   return resultobj;
22346 fail:
22347   return NULL;
22348 }
22349 
22350 
_wrap_tan_t_pixelxy2xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22351 SWIGINTERN PyObject *_wrap_tan_t_pixelxy2xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22352   PyObject *resultobj = 0;
22353   tan_t *arg1 = (tan_t *) 0 ;
22354   double arg2 ;
22355   double arg3 ;
22356   double *arg4 = (double *) 0 ;
22357   double *arg5 = (double *) 0 ;
22358   double *arg6 = (double *) 0 ;
22359   void *argp1 = 0 ;
22360   int res1 = 0 ;
22361   double val2 ;
22362   int ecode2 = 0 ;
22363   double val3 ;
22364   int ecode3 = 0 ;
22365   double temp4 ;
22366   int res4 = SWIG_TMPOBJ ;
22367   double temp5 ;
22368   int res5 = SWIG_TMPOBJ ;
22369   double temp6 ;
22370   int res6 = SWIG_TMPOBJ ;
22371   PyObject *swig_obj[3] ;
22372 
22373   arg4 = &temp4;
22374   arg5 = &temp5;
22375   arg6 = &temp6;
22376   if (!SWIG_Python_UnpackTuple(args, "tan_t_pixelxy2xyz", 3, 3, swig_obj)) SWIG_fail;
22377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22378   if (!SWIG_IsOK(res1)) {
22379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_pixelxy2xyz" "', argument " "1"" of type '" "tan_t *""'");
22380   }
22381   arg1 = (tan_t *)(argp1);
22382   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22383   if (!SWIG_IsOK(ecode2)) {
22384     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_pixelxy2xyz" "', argument " "2"" of type '" "double""'");
22385   }
22386   arg2 = (double)(val2);
22387   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22388   if (!SWIG_IsOK(ecode3)) {
22389     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_pixelxy2xyz" "', argument " "3"" of type '" "double""'");
22390   }
22391   arg3 = (double)(val3);
22392   tan_t_pixelxy2xyz(arg1,arg2,arg3,arg4,arg5,arg6);
22393   resultobj = SWIG_Py_Void();
22394   if (SWIG_IsTmpObj(res4)) {
22395     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22396   } else {
22397     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22398     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22399   }
22400   if (SWIG_IsTmpObj(res5)) {
22401     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22402   } else {
22403     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22404     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22405   }
22406   if (SWIG_IsTmpObj(res6)) {
22407     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
22408   } else {
22409     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22410     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
22411   }
22412   return resultobj;
22413 fail:
22414   return NULL;
22415 }
22416 
22417 
_wrap_tan_t_pixelxy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22418 SWIGINTERN PyObject *_wrap_tan_t_pixelxy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22419   PyObject *resultobj = 0;
22420   tan_t *arg1 = (tan_t *) 0 ;
22421   double arg2 ;
22422   double arg3 ;
22423   double *arg4 = (double *) 0 ;
22424   double *arg5 = (double *) 0 ;
22425   void *argp1 = 0 ;
22426   int res1 = 0 ;
22427   double val2 ;
22428   int ecode2 = 0 ;
22429   double val3 ;
22430   int ecode3 = 0 ;
22431   double temp4 ;
22432   int res4 = SWIG_TMPOBJ ;
22433   double temp5 ;
22434   int res5 = SWIG_TMPOBJ ;
22435   PyObject *swig_obj[3] ;
22436 
22437   arg4 = &temp4;
22438   arg5 = &temp5;
22439   if (!SWIG_Python_UnpackTuple(args, "tan_t_pixelxy2radec", 3, 3, swig_obj)) SWIG_fail;
22440   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22441   if (!SWIG_IsOK(res1)) {
22442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_pixelxy2radec" "', argument " "1"" of type '" "tan_t *""'");
22443   }
22444   arg1 = (tan_t *)(argp1);
22445   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22446   if (!SWIG_IsOK(ecode2)) {
22447     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_pixelxy2radec" "', argument " "2"" of type '" "double""'");
22448   }
22449   arg2 = (double)(val2);
22450   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22451   if (!SWIG_IsOK(ecode3)) {
22452     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_pixelxy2radec" "', argument " "3"" of type '" "double""'");
22453   }
22454   arg3 = (double)(val3);
22455   tan_t_pixelxy2radec(arg1,arg2,arg3,arg4,arg5);
22456   resultobj = SWIG_Py_Void();
22457   if (SWIG_IsTmpObj(res4)) {
22458     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22459   } else {
22460     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22461     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22462   }
22463   if (SWIG_IsTmpObj(res5)) {
22464     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22465   } else {
22466     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22467     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22468   }
22469   return resultobj;
22470 fail:
22471   return NULL;
22472 }
22473 
22474 
_wrap_tan_t_radec2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22475 SWIGINTERN PyObject *_wrap_tan_t_radec2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22476   PyObject *resultobj = 0;
22477   tan_t *arg1 = (tan_t *) 0 ;
22478   double arg2 ;
22479   double arg3 ;
22480   double *arg4 = (double *) 0 ;
22481   double *arg5 = (double *) 0 ;
22482   void *argp1 = 0 ;
22483   int res1 = 0 ;
22484   double val2 ;
22485   int ecode2 = 0 ;
22486   double val3 ;
22487   int ecode3 = 0 ;
22488   double temp4 ;
22489   int res4 = SWIG_TMPOBJ ;
22490   double temp5 ;
22491   int res5 = SWIG_TMPOBJ ;
22492   PyObject *swig_obj[3] ;
22493   int result;
22494 
22495   arg4 = &temp4;
22496   arg5 = &temp5;
22497   if (!SWIG_Python_UnpackTuple(args, "tan_t_radec2pixelxy", 3, 3, swig_obj)) SWIG_fail;
22498   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22499   if (!SWIG_IsOK(res1)) {
22500     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_radec2pixelxy" "', argument " "1"" of type '" "tan_t *""'");
22501   }
22502   arg1 = (tan_t *)(argp1);
22503   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22504   if (!SWIG_IsOK(ecode2)) {
22505     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_radec2pixelxy" "', argument " "2"" of type '" "double""'");
22506   }
22507   arg2 = (double)(val2);
22508   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22509   if (!SWIG_IsOK(ecode3)) {
22510     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_radec2pixelxy" "', argument " "3"" of type '" "double""'");
22511   }
22512   arg3 = (double)(val3);
22513   result = (int)tan_t_radec2pixelxy(arg1,arg2,arg3,arg4,arg5);
22514   resultobj = SWIG_From_int((int)(result));
22515   if (SWIG_IsTmpObj(res4)) {
22516     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22517   } else {
22518     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22519     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22520   }
22521   if (SWIG_IsTmpObj(res5)) {
22522     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22523   } else {
22524     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22525     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22526   }
22527   return resultobj;
22528 fail:
22529   return NULL;
22530 }
22531 
22532 
_wrap_tan_t_iwc2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22533 SWIGINTERN PyObject *_wrap_tan_t_iwc2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22534   PyObject *resultobj = 0;
22535   tan_t *arg1 = (tan_t *) 0 ;
22536   double arg2 ;
22537   double arg3 ;
22538   double *arg4 = (double *) 0 ;
22539   double *arg5 = (double *) 0 ;
22540   void *argp1 = 0 ;
22541   int res1 = 0 ;
22542   double val2 ;
22543   int ecode2 = 0 ;
22544   double val3 ;
22545   int ecode3 = 0 ;
22546   double temp4 ;
22547   int res4 = SWIG_TMPOBJ ;
22548   double temp5 ;
22549   int res5 = SWIG_TMPOBJ ;
22550   PyObject *swig_obj[3] ;
22551 
22552   arg4 = &temp4;
22553   arg5 = &temp5;
22554   if (!SWIG_Python_UnpackTuple(args, "tan_t_iwc2pixelxy", 3, 3, swig_obj)) SWIG_fail;
22555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22556   if (!SWIG_IsOK(res1)) {
22557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_iwc2pixelxy" "', argument " "1"" of type '" "tan_t *""'");
22558   }
22559   arg1 = (tan_t *)(argp1);
22560   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22561   if (!SWIG_IsOK(ecode2)) {
22562     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_iwc2pixelxy" "', argument " "2"" of type '" "double""'");
22563   }
22564   arg2 = (double)(val2);
22565   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22566   if (!SWIG_IsOK(ecode3)) {
22567     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_iwc2pixelxy" "', argument " "3"" of type '" "double""'");
22568   }
22569   arg3 = (double)(val3);
22570   tan_t_iwc2pixelxy(arg1,arg2,arg3,arg4,arg5);
22571   resultobj = SWIG_Py_Void();
22572   if (SWIG_IsTmpObj(res4)) {
22573     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22574   } else {
22575     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22576     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22577   }
22578   if (SWIG_IsTmpObj(res5)) {
22579     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22580   } else {
22581     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22582     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22583   }
22584   return resultobj;
22585 fail:
22586   return NULL;
22587 }
22588 
22589 
_wrap_tan_t_pixelxy2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22590 SWIGINTERN PyObject *_wrap_tan_t_pixelxy2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22591   PyObject *resultobj = 0;
22592   tan_t *arg1 = (tan_t *) 0 ;
22593   double arg2 ;
22594   double arg3 ;
22595   double *arg4 = (double *) 0 ;
22596   double *arg5 = (double *) 0 ;
22597   void *argp1 = 0 ;
22598   int res1 = 0 ;
22599   double val2 ;
22600   int ecode2 = 0 ;
22601   double val3 ;
22602   int ecode3 = 0 ;
22603   double temp4 ;
22604   int res4 = SWIG_TMPOBJ ;
22605   double temp5 ;
22606   int res5 = SWIG_TMPOBJ ;
22607   PyObject *swig_obj[3] ;
22608 
22609   arg4 = &temp4;
22610   arg5 = &temp5;
22611   if (!SWIG_Python_UnpackTuple(args, "tan_t_pixelxy2iwc", 3, 3, swig_obj)) SWIG_fail;
22612   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22613   if (!SWIG_IsOK(res1)) {
22614     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_pixelxy2iwc" "', argument " "1"" of type '" "tan_t *""'");
22615   }
22616   arg1 = (tan_t *)(argp1);
22617   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22618   if (!SWIG_IsOK(ecode2)) {
22619     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_pixelxy2iwc" "', argument " "2"" of type '" "double""'");
22620   }
22621   arg2 = (double)(val2);
22622   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22623   if (!SWIG_IsOK(ecode3)) {
22624     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_pixelxy2iwc" "', argument " "3"" of type '" "double""'");
22625   }
22626   arg3 = (double)(val3);
22627   tan_t_pixelxy2iwc(arg1,arg2,arg3,arg4,arg5);
22628   resultobj = SWIG_Py_Void();
22629   if (SWIG_IsTmpObj(res4)) {
22630     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22631   } else {
22632     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22633     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22634   }
22635   if (SWIG_IsTmpObj(res5)) {
22636     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22637   } else {
22638     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22639     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22640   }
22641   return resultobj;
22642 fail:
22643   return NULL;
22644 }
22645 
22646 
_wrap_tan_t_iwc2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22647 SWIGINTERN PyObject *_wrap_tan_t_iwc2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22648   PyObject *resultobj = 0;
22649   tan_t *arg1 = (tan_t *) 0 ;
22650   double arg2 ;
22651   double arg3 ;
22652   double *arg4 = (double *) 0 ;
22653   double *arg5 = (double *) 0 ;
22654   void *argp1 = 0 ;
22655   int res1 = 0 ;
22656   double val2 ;
22657   int ecode2 = 0 ;
22658   double val3 ;
22659   int ecode3 = 0 ;
22660   double temp4 ;
22661   int res4 = SWIG_TMPOBJ ;
22662   double temp5 ;
22663   int res5 = SWIG_TMPOBJ ;
22664   PyObject *swig_obj[3] ;
22665 
22666   arg4 = &temp4;
22667   arg5 = &temp5;
22668   if (!SWIG_Python_UnpackTuple(args, "tan_t_iwc2radec", 3, 3, swig_obj)) SWIG_fail;
22669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22670   if (!SWIG_IsOK(res1)) {
22671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_iwc2radec" "', argument " "1"" of type '" "tan_t *""'");
22672   }
22673   arg1 = (tan_t *)(argp1);
22674   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22675   if (!SWIG_IsOK(ecode2)) {
22676     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_iwc2radec" "', argument " "2"" of type '" "double""'");
22677   }
22678   arg2 = (double)(val2);
22679   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22680   if (!SWIG_IsOK(ecode3)) {
22681     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_iwc2radec" "', argument " "3"" of type '" "double""'");
22682   }
22683   arg3 = (double)(val3);
22684   tan_t_iwc2radec(arg1,arg2,arg3,arg4,arg5);
22685   resultobj = SWIG_Py_Void();
22686   if (SWIG_IsTmpObj(res4)) {
22687     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22688   } else {
22689     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22690     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22691   }
22692   if (SWIG_IsTmpObj(res5)) {
22693     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22694   } else {
22695     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22696     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22697   }
22698   return resultobj;
22699 fail:
22700   return NULL;
22701 }
22702 
22703 
_wrap_tan_t_radec2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22704 SWIGINTERN PyObject *_wrap_tan_t_radec2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22705   PyObject *resultobj = 0;
22706   tan_t *arg1 = (tan_t *) 0 ;
22707   double arg2 ;
22708   double arg3 ;
22709   double *arg4 = (double *) 0 ;
22710   double *arg5 = (double *) 0 ;
22711   void *argp1 = 0 ;
22712   int res1 = 0 ;
22713   double val2 ;
22714   int ecode2 = 0 ;
22715   double val3 ;
22716   int ecode3 = 0 ;
22717   double temp4 ;
22718   int res4 = SWIG_TMPOBJ ;
22719   double temp5 ;
22720   int res5 = SWIG_TMPOBJ ;
22721   PyObject *swig_obj[3] ;
22722   int result;
22723 
22724   arg4 = &temp4;
22725   arg5 = &temp5;
22726   if (!SWIG_Python_UnpackTuple(args, "tan_t_radec2iwc", 3, 3, swig_obj)) SWIG_fail;
22727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22728   if (!SWIG_IsOK(res1)) {
22729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_radec2iwc" "', argument " "1"" of type '" "tan_t *""'");
22730   }
22731   arg1 = (tan_t *)(argp1);
22732   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22733   if (!SWIG_IsOK(ecode2)) {
22734     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_radec2iwc" "', argument " "2"" of type '" "double""'");
22735   }
22736   arg2 = (double)(val2);
22737   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22738   if (!SWIG_IsOK(ecode3)) {
22739     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_radec2iwc" "', argument " "3"" of type '" "double""'");
22740   }
22741   arg3 = (double)(val3);
22742   result = (int)tan_t_radec2iwc(arg1,arg2,arg3,arg4,arg5);
22743   resultobj = SWIG_From_int((int)(result));
22744   if (SWIG_IsTmpObj(res4)) {
22745     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
22746   } else {
22747     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22748     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
22749   }
22750   if (SWIG_IsTmpObj(res5)) {
22751     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22752   } else {
22753     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22754     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22755   }
22756   return resultobj;
22757 fail:
22758   return NULL;
22759 }
22760 
22761 
_wrap_tan_t_xyz2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22762 SWIGINTERN PyObject *_wrap_tan_t_xyz2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22763   PyObject *resultobj = 0;
22764   tan_t *arg1 = (tan_t *) 0 ;
22765   double arg2 ;
22766   double arg3 ;
22767   double arg4 ;
22768   double *arg5 = (double *) 0 ;
22769   double *arg6 = (double *) 0 ;
22770   void *argp1 = 0 ;
22771   int res1 = 0 ;
22772   double val2 ;
22773   int ecode2 = 0 ;
22774   double val3 ;
22775   int ecode3 = 0 ;
22776   double val4 ;
22777   int ecode4 = 0 ;
22778   double temp5 ;
22779   int res5 = SWIG_TMPOBJ ;
22780   double temp6 ;
22781   int res6 = SWIG_TMPOBJ ;
22782   PyObject *swig_obj[4] ;
22783   int result;
22784 
22785   arg5 = &temp5;
22786   arg6 = &temp6;
22787   if (!SWIG_Python_UnpackTuple(args, "tan_t_xyz2pixelxy", 4, 4, swig_obj)) SWIG_fail;
22788   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22789   if (!SWIG_IsOK(res1)) {
22790     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_xyz2pixelxy" "', argument " "1"" of type '" "tan_t *""'");
22791   }
22792   arg1 = (tan_t *)(argp1);
22793   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22794   if (!SWIG_IsOK(ecode2)) {
22795     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_xyz2pixelxy" "', argument " "2"" of type '" "double""'");
22796   }
22797   arg2 = (double)(val2);
22798   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22799   if (!SWIG_IsOK(ecode3)) {
22800     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_xyz2pixelxy" "', argument " "3"" of type '" "double""'");
22801   }
22802   arg3 = (double)(val3);
22803   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
22804   if (!SWIG_IsOK(ecode4)) {
22805     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "tan_t_xyz2pixelxy" "', argument " "4"" of type '" "double""'");
22806   }
22807   arg4 = (double)(val4);
22808   result = (int)tan_t_xyz2pixelxy(arg1,arg2,arg3,arg4,arg5,arg6);
22809   resultobj = SWIG_From_int((int)(result));
22810   if (SWIG_IsTmpObj(res5)) {
22811     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
22812   } else {
22813     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22814     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
22815   }
22816   if (SWIG_IsTmpObj(res6)) {
22817     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
22818   } else {
22819     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
22820     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
22821   }
22822   return resultobj;
22823 fail:
22824   return NULL;
22825 }
22826 
22827 
_wrap_tan_t_write_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22828 SWIGINTERN PyObject *_wrap_tan_t_write_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22829   PyObject *resultobj = 0;
22830   tan_t *arg1 = (tan_t *) 0 ;
22831   char *arg2 = (char *) 0 ;
22832   void *argp1 = 0 ;
22833   int res1 = 0 ;
22834   int res2 ;
22835   char *buf2 = 0 ;
22836   int alloc2 = 0 ;
22837   PyObject *swig_obj[2] ;
22838   int result;
22839 
22840   if (!SWIG_Python_UnpackTuple(args, "tan_t_write_to", 2, 2, swig_obj)) SWIG_fail;
22841   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22842   if (!SWIG_IsOK(res1)) {
22843     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_write_to" "', argument " "1"" of type '" "tan_t *""'");
22844   }
22845   arg1 = (tan_t *)(argp1);
22846   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
22847   if (!SWIG_IsOK(res2)) {
22848     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_t_write_to" "', argument " "2"" of type '" "char const *""'");
22849   }
22850   arg2 = (char *)(buf2);
22851   result = (int)tan_t_write_to(arg1,(char const *)arg2);
22852   resultobj = SWIG_From_int((int)(result));
22853   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
22854   return resultobj;
22855 fail:
22856   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
22857   return NULL;
22858 }
22859 
22860 
_wrap_tan_t_set_crval(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22861 SWIGINTERN PyObject *_wrap_tan_t_set_crval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22862   PyObject *resultobj = 0;
22863   tan_t *arg1 = (tan_t *) 0 ;
22864   double arg2 ;
22865   double arg3 ;
22866   void *argp1 = 0 ;
22867   int res1 = 0 ;
22868   double val2 ;
22869   int ecode2 = 0 ;
22870   double val3 ;
22871   int ecode3 = 0 ;
22872   PyObject *swig_obj[3] ;
22873 
22874   if (!SWIG_Python_UnpackTuple(args, "tan_t_set_crval", 3, 3, swig_obj)) SWIG_fail;
22875   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22876   if (!SWIG_IsOK(res1)) {
22877     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set_crval" "', argument " "1"" of type '" "tan_t *""'");
22878   }
22879   arg1 = (tan_t *)(argp1);
22880   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22881   if (!SWIG_IsOK(ecode2)) {
22882     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set_crval" "', argument " "2"" of type '" "double""'");
22883   }
22884   arg2 = (double)(val2);
22885   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22886   if (!SWIG_IsOK(ecode3)) {
22887     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_set_crval" "', argument " "3"" of type '" "double""'");
22888   }
22889   arg3 = (double)(val3);
22890   tan_t_set_crval(arg1,arg2,arg3);
22891   resultobj = SWIG_Py_Void();
22892   return resultobj;
22893 fail:
22894   return NULL;
22895 }
22896 
22897 
_wrap_tan_t_set_crpix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22898 SWIGINTERN PyObject *_wrap_tan_t_set_crpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899   PyObject *resultobj = 0;
22900   tan_t *arg1 = (tan_t *) 0 ;
22901   double arg2 ;
22902   double arg3 ;
22903   void *argp1 = 0 ;
22904   int res1 = 0 ;
22905   double val2 ;
22906   int ecode2 = 0 ;
22907   double val3 ;
22908   int ecode3 = 0 ;
22909   PyObject *swig_obj[3] ;
22910 
22911   if (!SWIG_Python_UnpackTuple(args, "tan_t_set_crpix", 3, 3, swig_obj)) SWIG_fail;
22912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22913   if (!SWIG_IsOK(res1)) {
22914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set_crpix" "', argument " "1"" of type '" "tan_t *""'");
22915   }
22916   arg1 = (tan_t *)(argp1);
22917   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22918   if (!SWIG_IsOK(ecode2)) {
22919     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set_crpix" "', argument " "2"" of type '" "double""'");
22920   }
22921   arg2 = (double)(val2);
22922   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22923   if (!SWIG_IsOK(ecode3)) {
22924     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_set_crpix" "', argument " "3"" of type '" "double""'");
22925   }
22926   arg3 = (double)(val3);
22927   tan_t_set_crpix(arg1,arg2,arg3);
22928   resultobj = SWIG_Py_Void();
22929   return resultobj;
22930 fail:
22931   return NULL;
22932 }
22933 
22934 
_wrap_tan_t_set_cd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22935 SWIGINTERN PyObject *_wrap_tan_t_set_cd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22936   PyObject *resultobj = 0;
22937   tan_t *arg1 = (tan_t *) 0 ;
22938   double arg2 ;
22939   double arg3 ;
22940   double arg4 ;
22941   double arg5 ;
22942   void *argp1 = 0 ;
22943   int res1 = 0 ;
22944   double val2 ;
22945   int ecode2 = 0 ;
22946   double val3 ;
22947   int ecode3 = 0 ;
22948   double val4 ;
22949   int ecode4 = 0 ;
22950   double val5 ;
22951   int ecode5 = 0 ;
22952   PyObject *swig_obj[5] ;
22953 
22954   if (!SWIG_Python_UnpackTuple(args, "tan_t_set_cd", 5, 5, swig_obj)) SWIG_fail;
22955   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
22956   if (!SWIG_IsOK(res1)) {
22957     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set_cd" "', argument " "1"" of type '" "tan_t *""'");
22958   }
22959   arg1 = (tan_t *)(argp1);
22960   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
22961   if (!SWIG_IsOK(ecode2)) {
22962     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set_cd" "', argument " "2"" of type '" "double""'");
22963   }
22964   arg2 = (double)(val2);
22965   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
22966   if (!SWIG_IsOK(ecode3)) {
22967     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_set_cd" "', argument " "3"" of type '" "double""'");
22968   }
22969   arg3 = (double)(val3);
22970   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
22971   if (!SWIG_IsOK(ecode4)) {
22972     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "tan_t_set_cd" "', argument " "4"" of type '" "double""'");
22973   }
22974   arg4 = (double)(val4);
22975   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
22976   if (!SWIG_IsOK(ecode5)) {
22977     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "tan_t_set_cd" "', argument " "5"" of type '" "double""'");
22978   }
22979   arg5 = (double)(val5);
22980   tan_t_set_cd(arg1,arg2,arg3,arg4,arg5);
22981   resultobj = SWIG_Py_Void();
22982   return resultobj;
22983 fail:
22984   return NULL;
22985 }
22986 
22987 
_wrap_tan_t_set_imagesize(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22988 SWIGINTERN PyObject *_wrap_tan_t_set_imagesize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22989   PyObject *resultobj = 0;
22990   tan_t *arg1 = (tan_t *) 0 ;
22991   double arg2 ;
22992   double arg3 ;
22993   void *argp1 = 0 ;
22994   int res1 = 0 ;
22995   double val2 ;
22996   int ecode2 = 0 ;
22997   double val3 ;
22998   int ecode3 = 0 ;
22999   PyObject *swig_obj[3] ;
23000 
23001   if (!SWIG_Python_UnpackTuple(args, "tan_t_set_imagesize", 3, 3, swig_obj)) SWIG_fail;
23002   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
23003   if (!SWIG_IsOK(res1)) {
23004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_t_set_imagesize" "', argument " "1"" of type '" "tan_t *""'");
23005   }
23006   arg1 = (tan_t *)(argp1);
23007   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
23008   if (!SWIG_IsOK(ecode2)) {
23009     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_t_set_imagesize" "', argument " "2"" of type '" "double""'");
23010   }
23011   arg2 = (double)(val2);
23012   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
23013   if (!SWIG_IsOK(ecode3)) {
23014     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_t_set_imagesize" "', argument " "3"" of type '" "double""'");
23015   }
23016   arg3 = (double)(val3);
23017   tan_t_set_imagesize(arg1,arg2,arg3);
23018   resultobj = SWIG_Py_Void();
23019   return resultobj;
23020 fail:
23021   return NULL;
23022 }
23023 
23024 
tan_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23025 SWIGINTERN PyObject *tan_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23026   PyObject *obj;
23027   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
23028   SWIG_TypeNewClientData(SWIGTYPE_p_tan_t, SWIG_NewClientData(obj));
23029   return SWIG_Py_Void();
23030 }
23031 
tan_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23032 SWIGINTERN PyObject *tan_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23033   return SWIG_Python_InitShadowInstance(args);
23034 }
23035 
_wrap_sip_t_wcstan_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23036 SWIGINTERN PyObject *_wrap_sip_t_wcstan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23037   PyObject *resultobj = 0;
23038   sip_t *arg1 = (sip_t *) 0 ;
23039   tan_t *arg2 = (tan_t *) 0 ;
23040   void *argp1 = 0 ;
23041   int res1 = 0 ;
23042   void *argp2 = 0 ;
23043   int res2 = 0 ;
23044   PyObject *swig_obj[2] ;
23045 
23046   if (!SWIG_Python_UnpackTuple(args, "sip_t_wcstan_set", 2, 2, swig_obj)) SWIG_fail;
23047   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23048   if (!SWIG_IsOK(res1)) {
23049     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_wcstan_set" "', argument " "1"" of type '" "sip_t *""'");
23050   }
23051   arg1 = (sip_t *)(argp1);
23052   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
23053   if (!SWIG_IsOK(res2)) {
23054     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_t_wcstan_set" "', argument " "2"" of type '" "tan_t *""'");
23055   }
23056   arg2 = (tan_t *)(argp2);
23057   if (arg1) (arg1)->wcstan = *arg2;
23058   resultobj = SWIG_Py_Void();
23059   return resultobj;
23060 fail:
23061   return NULL;
23062 }
23063 
23064 
_wrap_sip_t_wcstan_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23065 SWIGINTERN PyObject *_wrap_sip_t_wcstan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23066   PyObject *resultobj = 0;
23067   sip_t *arg1 = (sip_t *) 0 ;
23068   void *argp1 = 0 ;
23069   int res1 = 0 ;
23070   PyObject *swig_obj[1] ;
23071   tan_t *result = 0 ;
23072 
23073   if (!args) SWIG_fail;
23074   swig_obj[0] = args;
23075   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23076   if (!SWIG_IsOK(res1)) {
23077     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_wcstan_get" "', argument " "1"" of type '" "sip_t *""'");
23078   }
23079   arg1 = (sip_t *)(argp1);
23080   result = (tan_t *)& ((arg1)->wcstan);
23081   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
23082   return resultobj;
23083 fail:
23084   return NULL;
23085 }
23086 
23087 
_wrap_sip_t_a_order_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23088 SWIGINTERN PyObject *_wrap_sip_t_a_order_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23089   PyObject *resultobj = 0;
23090   sip_t *arg1 = (sip_t *) 0 ;
23091   int arg2 ;
23092   void *argp1 = 0 ;
23093   int res1 = 0 ;
23094   int val2 ;
23095   int ecode2 = 0 ;
23096   PyObject *swig_obj[2] ;
23097 
23098   if (!SWIG_Python_UnpackTuple(args, "sip_t_a_order_set", 2, 2, swig_obj)) SWIG_fail;
23099   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23100   if (!SWIG_IsOK(res1)) {
23101     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_a_order_set" "', argument " "1"" of type '" "sip_t *""'");
23102   }
23103   arg1 = (sip_t *)(argp1);
23104   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23105   if (!SWIG_IsOK(ecode2)) {
23106     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_a_order_set" "', argument " "2"" of type '" "int""'");
23107   }
23108   arg2 = (int)(val2);
23109   if (arg1) (arg1)->a_order = arg2;
23110   resultobj = SWIG_Py_Void();
23111   return resultobj;
23112 fail:
23113   return NULL;
23114 }
23115 
23116 
_wrap_sip_t_a_order_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23117 SWIGINTERN PyObject *_wrap_sip_t_a_order_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23118   PyObject *resultobj = 0;
23119   sip_t *arg1 = (sip_t *) 0 ;
23120   void *argp1 = 0 ;
23121   int res1 = 0 ;
23122   PyObject *swig_obj[1] ;
23123   int result;
23124 
23125   if (!args) SWIG_fail;
23126   swig_obj[0] = args;
23127   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23128   if (!SWIG_IsOK(res1)) {
23129     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_a_order_get" "', argument " "1"" of type '" "sip_t *""'");
23130   }
23131   arg1 = (sip_t *)(argp1);
23132   result = (int) ((arg1)->a_order);
23133   resultobj = SWIG_From_int((int)(result));
23134   return resultobj;
23135 fail:
23136   return NULL;
23137 }
23138 
23139 
_wrap_sip_t_b_order_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23140 SWIGINTERN PyObject *_wrap_sip_t_b_order_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23141   PyObject *resultobj = 0;
23142   sip_t *arg1 = (sip_t *) 0 ;
23143   int arg2 ;
23144   void *argp1 = 0 ;
23145   int res1 = 0 ;
23146   int val2 ;
23147   int ecode2 = 0 ;
23148   PyObject *swig_obj[2] ;
23149 
23150   if (!SWIG_Python_UnpackTuple(args, "sip_t_b_order_set", 2, 2, swig_obj)) SWIG_fail;
23151   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23152   if (!SWIG_IsOK(res1)) {
23153     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_b_order_set" "', argument " "1"" of type '" "sip_t *""'");
23154   }
23155   arg1 = (sip_t *)(argp1);
23156   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23157   if (!SWIG_IsOK(ecode2)) {
23158     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_b_order_set" "', argument " "2"" of type '" "int""'");
23159   }
23160   arg2 = (int)(val2);
23161   if (arg1) (arg1)->b_order = arg2;
23162   resultobj = SWIG_Py_Void();
23163   return resultobj;
23164 fail:
23165   return NULL;
23166 }
23167 
23168 
_wrap_sip_t_b_order_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23169 SWIGINTERN PyObject *_wrap_sip_t_b_order_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23170   PyObject *resultobj = 0;
23171   sip_t *arg1 = (sip_t *) 0 ;
23172   void *argp1 = 0 ;
23173   int res1 = 0 ;
23174   PyObject *swig_obj[1] ;
23175   int result;
23176 
23177   if (!args) SWIG_fail;
23178   swig_obj[0] = args;
23179   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23180   if (!SWIG_IsOK(res1)) {
23181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_b_order_get" "', argument " "1"" of type '" "sip_t *""'");
23182   }
23183   arg1 = (sip_t *)(argp1);
23184   result = (int) ((arg1)->b_order);
23185   resultobj = SWIG_From_int((int)(result));
23186   return resultobj;
23187 fail:
23188   return NULL;
23189 }
23190 
23191 
_wrap_sip_t_a_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23192 SWIGINTERN PyObject *_wrap_sip_t_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23193   PyObject *resultobj = 0;
23194   sip_t *arg1 = (sip_t *) 0 ;
23195   double (*arg2)[10] ;
23196   void *argp1 = 0 ;
23197   int res1 = 0 ;
23198   double temp2[10][10] ;
23199   PyObject *swig_obj[2] ;
23200 
23201   if (!SWIG_Python_UnpackTuple(args, "sip_t_a_set", 2, 2, swig_obj)) SWIG_fail;
23202   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23203   if (!SWIG_IsOK(res1)) {
23204     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_a_set" "', argument " "1"" of type '" "sip_t *""'");
23205   }
23206   arg1 = (sip_t *)(argp1);
23207   {
23208     int i;
23209     if (!PySequence_Check(swig_obj[1])) {
23210       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
23211       return NULL;
23212     }
23213     if (PySequence_Length(swig_obj[1]) != (10 * 10)) {
23214       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 10*10 elements");
23215       return NULL;
23216     }
23217     for (i = 0; i < (10*10); i++) {
23218       PyObject *o = PySequence_GetItem(swig_obj[1],i);
23219       if (PyNumber_Check(o)) {
23220         // FIXME -- is it dim0 or dim1?
23221         temp2[i / 10][i % 10] = PyFloat_AsDouble(o);
23222       } else {
23223         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
23224         return NULL;
23225       }
23226     }
23227     arg2 = temp2;
23228   }
23229   {
23230     if (arg2) {
23231       size_t ii = 0;
23232       for (; ii < (size_t)10; ++ii) {
23233         if (arg2[ii]) {
23234           size_t jj = 0;
23235           for (; jj < (size_t)10; ++jj) arg1->a[ii][jj] = arg2[ii][jj];
23236         } else {
23237           SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""a""' of type '""double [10][10]""'");
23238         }
23239       }
23240     } else {
23241       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""a""' of type '""double [10][10]""'");
23242     }
23243   }
23244   resultobj = SWIG_Py_Void();
23245   return resultobj;
23246 fail:
23247   return NULL;
23248 }
23249 
23250 
_wrap_sip_t_a_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23251 SWIGINTERN PyObject *_wrap_sip_t_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23252   PyObject *resultobj = 0;
23253   sip_t *arg1 = (sip_t *) 0 ;
23254   void *argp1 = 0 ;
23255   int res1 = 0 ;
23256   PyObject *swig_obj[1] ;
23257   double (*result)[10] = 0 ;
23258 
23259   if (!args) SWIG_fail;
23260   swig_obj[0] = args;
23261   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23262   if (!SWIG_IsOK(res1)) {
23263     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_a_get" "', argument " "1"" of type '" "sip_t *""'");
23264   }
23265   arg1 = (sip_t *)(argp1);
23266   result = (double (*)[10])(double (*)[10]) ((arg1)->a);
23267   {
23268     int i;
23269     resultobj = PyList_New(10 * 10);
23270     for (i = 0; i < (10)*(10); i++) {
23271       // FIXME -- dim0 or dim1?
23272       PyObject *o = PyFloat_FromDouble(result[i / 10][i % 10]);
23273       PyList_SetItem(resultobj,i,o);
23274     }
23275   }
23276   return resultobj;
23277 fail:
23278   return NULL;
23279 }
23280 
23281 
_wrap_sip_t_b_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23282 SWIGINTERN PyObject *_wrap_sip_t_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23283   PyObject *resultobj = 0;
23284   sip_t *arg1 = (sip_t *) 0 ;
23285   double (*arg2)[10] ;
23286   void *argp1 = 0 ;
23287   int res1 = 0 ;
23288   double temp2[10][10] ;
23289   PyObject *swig_obj[2] ;
23290 
23291   if (!SWIG_Python_UnpackTuple(args, "sip_t_b_set", 2, 2, swig_obj)) SWIG_fail;
23292   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23293   if (!SWIG_IsOK(res1)) {
23294     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_b_set" "', argument " "1"" of type '" "sip_t *""'");
23295   }
23296   arg1 = (sip_t *)(argp1);
23297   {
23298     int i;
23299     if (!PySequence_Check(swig_obj[1])) {
23300       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
23301       return NULL;
23302     }
23303     if (PySequence_Length(swig_obj[1]) != (10 * 10)) {
23304       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 10*10 elements");
23305       return NULL;
23306     }
23307     for (i = 0; i < (10*10); i++) {
23308       PyObject *o = PySequence_GetItem(swig_obj[1],i);
23309       if (PyNumber_Check(o)) {
23310         // FIXME -- is it dim0 or dim1?
23311         temp2[i / 10][i % 10] = PyFloat_AsDouble(o);
23312       } else {
23313         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
23314         return NULL;
23315       }
23316     }
23317     arg2 = temp2;
23318   }
23319   {
23320     if (arg2) {
23321       size_t ii = 0;
23322       for (; ii < (size_t)10; ++ii) {
23323         if (arg2[ii]) {
23324           size_t jj = 0;
23325           for (; jj < (size_t)10; ++jj) arg1->b[ii][jj] = arg2[ii][jj];
23326         } else {
23327           SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""b""' of type '""double [10][10]""'");
23328         }
23329       }
23330     } else {
23331       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""b""' of type '""double [10][10]""'");
23332     }
23333   }
23334   resultobj = SWIG_Py_Void();
23335   return resultobj;
23336 fail:
23337   return NULL;
23338 }
23339 
23340 
_wrap_sip_t_b_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23341 SWIGINTERN PyObject *_wrap_sip_t_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342   PyObject *resultobj = 0;
23343   sip_t *arg1 = (sip_t *) 0 ;
23344   void *argp1 = 0 ;
23345   int res1 = 0 ;
23346   PyObject *swig_obj[1] ;
23347   double (*result)[10] = 0 ;
23348 
23349   if (!args) SWIG_fail;
23350   swig_obj[0] = args;
23351   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23352   if (!SWIG_IsOK(res1)) {
23353     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_b_get" "', argument " "1"" of type '" "sip_t *""'");
23354   }
23355   arg1 = (sip_t *)(argp1);
23356   result = (double (*)[10])(double (*)[10]) ((arg1)->b);
23357   {
23358     int i;
23359     resultobj = PyList_New(10 * 10);
23360     for (i = 0; i < (10)*(10); i++) {
23361       // FIXME -- dim0 or dim1?
23362       PyObject *o = PyFloat_FromDouble(result[i / 10][i % 10]);
23363       PyList_SetItem(resultobj,i,o);
23364     }
23365   }
23366   return resultobj;
23367 fail:
23368   return NULL;
23369 }
23370 
23371 
_wrap_sip_t_ap_order_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23372 SWIGINTERN PyObject *_wrap_sip_t_ap_order_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23373   PyObject *resultobj = 0;
23374   sip_t *arg1 = (sip_t *) 0 ;
23375   int arg2 ;
23376   void *argp1 = 0 ;
23377   int res1 = 0 ;
23378   int val2 ;
23379   int ecode2 = 0 ;
23380   PyObject *swig_obj[2] ;
23381 
23382   if (!SWIG_Python_UnpackTuple(args, "sip_t_ap_order_set", 2, 2, swig_obj)) SWIG_fail;
23383   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23384   if (!SWIG_IsOK(res1)) {
23385     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_ap_order_set" "', argument " "1"" of type '" "sip_t *""'");
23386   }
23387   arg1 = (sip_t *)(argp1);
23388   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23389   if (!SWIG_IsOK(ecode2)) {
23390     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_ap_order_set" "', argument " "2"" of type '" "int""'");
23391   }
23392   arg2 = (int)(val2);
23393   if (arg1) (arg1)->ap_order = arg2;
23394   resultobj = SWIG_Py_Void();
23395   return resultobj;
23396 fail:
23397   return NULL;
23398 }
23399 
23400 
_wrap_sip_t_ap_order_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23401 SWIGINTERN PyObject *_wrap_sip_t_ap_order_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23402   PyObject *resultobj = 0;
23403   sip_t *arg1 = (sip_t *) 0 ;
23404   void *argp1 = 0 ;
23405   int res1 = 0 ;
23406   PyObject *swig_obj[1] ;
23407   int result;
23408 
23409   if (!args) SWIG_fail;
23410   swig_obj[0] = args;
23411   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23412   if (!SWIG_IsOK(res1)) {
23413     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_ap_order_get" "', argument " "1"" of type '" "sip_t *""'");
23414   }
23415   arg1 = (sip_t *)(argp1);
23416   result = (int) ((arg1)->ap_order);
23417   resultobj = SWIG_From_int((int)(result));
23418   return resultobj;
23419 fail:
23420   return NULL;
23421 }
23422 
23423 
_wrap_sip_t_bp_order_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23424 SWIGINTERN PyObject *_wrap_sip_t_bp_order_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23425   PyObject *resultobj = 0;
23426   sip_t *arg1 = (sip_t *) 0 ;
23427   int arg2 ;
23428   void *argp1 = 0 ;
23429   int res1 = 0 ;
23430   int val2 ;
23431   int ecode2 = 0 ;
23432   PyObject *swig_obj[2] ;
23433 
23434   if (!SWIG_Python_UnpackTuple(args, "sip_t_bp_order_set", 2, 2, swig_obj)) SWIG_fail;
23435   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23436   if (!SWIG_IsOK(res1)) {
23437     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_bp_order_set" "', argument " "1"" of type '" "sip_t *""'");
23438   }
23439   arg1 = (sip_t *)(argp1);
23440   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23441   if (!SWIG_IsOK(ecode2)) {
23442     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_bp_order_set" "', argument " "2"" of type '" "int""'");
23443   }
23444   arg2 = (int)(val2);
23445   if (arg1) (arg1)->bp_order = arg2;
23446   resultobj = SWIG_Py_Void();
23447   return resultobj;
23448 fail:
23449   return NULL;
23450 }
23451 
23452 
_wrap_sip_t_bp_order_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23453 SWIGINTERN PyObject *_wrap_sip_t_bp_order_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23454   PyObject *resultobj = 0;
23455   sip_t *arg1 = (sip_t *) 0 ;
23456   void *argp1 = 0 ;
23457   int res1 = 0 ;
23458   PyObject *swig_obj[1] ;
23459   int result;
23460 
23461   if (!args) SWIG_fail;
23462   swig_obj[0] = args;
23463   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23464   if (!SWIG_IsOK(res1)) {
23465     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_bp_order_get" "', argument " "1"" of type '" "sip_t *""'");
23466   }
23467   arg1 = (sip_t *)(argp1);
23468   result = (int) ((arg1)->bp_order);
23469   resultobj = SWIG_From_int((int)(result));
23470   return resultobj;
23471 fail:
23472   return NULL;
23473 }
23474 
23475 
_wrap_sip_t_ap_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23476 SWIGINTERN PyObject *_wrap_sip_t_ap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23477   PyObject *resultobj = 0;
23478   sip_t *arg1 = (sip_t *) 0 ;
23479   double (*arg2)[10] ;
23480   void *argp1 = 0 ;
23481   int res1 = 0 ;
23482   double temp2[10][10] ;
23483   PyObject *swig_obj[2] ;
23484 
23485   if (!SWIG_Python_UnpackTuple(args, "sip_t_ap_set", 2, 2, swig_obj)) SWIG_fail;
23486   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23487   if (!SWIG_IsOK(res1)) {
23488     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_ap_set" "', argument " "1"" of type '" "sip_t *""'");
23489   }
23490   arg1 = (sip_t *)(argp1);
23491   {
23492     int i;
23493     if (!PySequence_Check(swig_obj[1])) {
23494       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
23495       return NULL;
23496     }
23497     if (PySequence_Length(swig_obj[1]) != (10 * 10)) {
23498       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 10*10 elements");
23499       return NULL;
23500     }
23501     for (i = 0; i < (10*10); i++) {
23502       PyObject *o = PySequence_GetItem(swig_obj[1],i);
23503       if (PyNumber_Check(o)) {
23504         // FIXME -- is it dim0 or dim1?
23505         temp2[i / 10][i % 10] = PyFloat_AsDouble(o);
23506       } else {
23507         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
23508         return NULL;
23509       }
23510     }
23511     arg2 = temp2;
23512   }
23513   {
23514     if (arg2) {
23515       size_t ii = 0;
23516       for (; ii < (size_t)10; ++ii) {
23517         if (arg2[ii]) {
23518           size_t jj = 0;
23519           for (; jj < (size_t)10; ++jj) arg1->ap[ii][jj] = arg2[ii][jj];
23520         } else {
23521           SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""ap""' of type '""double [10][10]""'");
23522         }
23523       }
23524     } else {
23525       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""ap""' of type '""double [10][10]""'");
23526     }
23527   }
23528   resultobj = SWIG_Py_Void();
23529   return resultobj;
23530 fail:
23531   return NULL;
23532 }
23533 
23534 
_wrap_sip_t_ap_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23535 SWIGINTERN PyObject *_wrap_sip_t_ap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23536   PyObject *resultobj = 0;
23537   sip_t *arg1 = (sip_t *) 0 ;
23538   void *argp1 = 0 ;
23539   int res1 = 0 ;
23540   PyObject *swig_obj[1] ;
23541   double (*result)[10] = 0 ;
23542 
23543   if (!args) SWIG_fail;
23544   swig_obj[0] = args;
23545   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23546   if (!SWIG_IsOK(res1)) {
23547     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_ap_get" "', argument " "1"" of type '" "sip_t *""'");
23548   }
23549   arg1 = (sip_t *)(argp1);
23550   result = (double (*)[10])(double (*)[10]) ((arg1)->ap);
23551   {
23552     int i;
23553     resultobj = PyList_New(10 * 10);
23554     for (i = 0; i < (10)*(10); i++) {
23555       // FIXME -- dim0 or dim1?
23556       PyObject *o = PyFloat_FromDouble(result[i / 10][i % 10]);
23557       PyList_SetItem(resultobj,i,o);
23558     }
23559   }
23560   return resultobj;
23561 fail:
23562   return NULL;
23563 }
23564 
23565 
_wrap_sip_t_bp_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23566 SWIGINTERN PyObject *_wrap_sip_t_bp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23567   PyObject *resultobj = 0;
23568   sip_t *arg1 = (sip_t *) 0 ;
23569   double (*arg2)[10] ;
23570   void *argp1 = 0 ;
23571   int res1 = 0 ;
23572   double temp2[10][10] ;
23573   PyObject *swig_obj[2] ;
23574 
23575   if (!SWIG_Python_UnpackTuple(args, "sip_t_bp_set", 2, 2, swig_obj)) SWIG_fail;
23576   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23577   if (!SWIG_IsOK(res1)) {
23578     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_bp_set" "', argument " "1"" of type '" "sip_t *""'");
23579   }
23580   arg1 = (sip_t *)(argp1);
23581   {
23582     int i;
23583     if (!PySequence_Check(swig_obj[1])) {
23584       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
23585       return NULL;
23586     }
23587     if (PySequence_Length(swig_obj[1]) != (10 * 10)) {
23588       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 10*10 elements");
23589       return NULL;
23590     }
23591     for (i = 0; i < (10*10); i++) {
23592       PyObject *o = PySequence_GetItem(swig_obj[1],i);
23593       if (PyNumber_Check(o)) {
23594         // FIXME -- is it dim0 or dim1?
23595         temp2[i / 10][i % 10] = PyFloat_AsDouble(o);
23596       } else {
23597         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
23598         return NULL;
23599       }
23600     }
23601     arg2 = temp2;
23602   }
23603   {
23604     if (arg2) {
23605       size_t ii = 0;
23606       for (; ii < (size_t)10; ++ii) {
23607         if (arg2[ii]) {
23608           size_t jj = 0;
23609           for (; jj < (size_t)10; ++jj) arg1->bp[ii][jj] = arg2[ii][jj];
23610         } else {
23611           SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""bp""' of type '""double [10][10]""'");
23612         }
23613       }
23614     } else {
23615       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""bp""' of type '""double [10][10]""'");
23616     }
23617   }
23618   resultobj = SWIG_Py_Void();
23619   return resultobj;
23620 fail:
23621   return NULL;
23622 }
23623 
23624 
_wrap_sip_t_bp_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23625 SWIGINTERN PyObject *_wrap_sip_t_bp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23626   PyObject *resultobj = 0;
23627   sip_t *arg1 = (sip_t *) 0 ;
23628   void *argp1 = 0 ;
23629   int res1 = 0 ;
23630   PyObject *swig_obj[1] ;
23631   double (*result)[10] = 0 ;
23632 
23633   if (!args) SWIG_fail;
23634   swig_obj[0] = args;
23635   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23636   if (!SWIG_IsOK(res1)) {
23637     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_bp_get" "', argument " "1"" of type '" "sip_t *""'");
23638   }
23639   arg1 = (sip_t *)(argp1);
23640   result = (double (*)[10])(double (*)[10]) ((arg1)->bp);
23641   {
23642     int i;
23643     resultobj = PyList_New(10 * 10);
23644     for (i = 0; i < (10)*(10); i++) {
23645       // FIXME -- dim0 or dim1?
23646       PyObject *o = PyFloat_FromDouble(result[i / 10][i % 10]);
23647       PyList_SetItem(resultobj,i,o);
23648     }
23649   }
23650   return resultobj;
23651 fail:
23652   return NULL;
23653 }
23654 
23655 
_wrap_new_sip_t__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23656 SWIGINTERN PyObject *_wrap_new_sip_t__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23657   PyObject *resultobj = 0;
23658   char *arg1 = (char *) NULL ;
23659   int arg2 = (int) 0 ;
23660   int res1 ;
23661   char *buf1 = 0 ;
23662   int alloc1 = 0 ;
23663   int val2 ;
23664   int ecode2 = 0 ;
23665   sip_t *result = 0 ;
23666 
23667   if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
23668   if (swig_obj[0]) {
23669     res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
23670     if (!SWIG_IsOK(res1)) {
23671       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_sip_t" "', argument " "1"" of type '" "char const *""'");
23672     }
23673     arg1 = (char *)(buf1);
23674   }
23675   if (swig_obj[1]) {
23676     ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23677     if (!SWIG_IsOK(ecode2)) {
23678       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_sip_t" "', argument " "2"" of type '" "int""'");
23679     }
23680     arg2 = (int)(val2);
23681   }
23682   result = (sip_t *)new_sip_t__SWIG_0((char const *)arg1,arg2);
23683   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, SWIG_POINTER_NEW |  0 );
23684   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
23685   return resultobj;
23686 fail:
23687   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
23688   return NULL;
23689 }
23690 
23691 
_wrap_new_sip_t__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23692 SWIGINTERN PyObject *_wrap_new_sip_t__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23693   PyObject *resultobj = 0;
23694   char *arg1 = (char *) 0 ;
23695   int arg2 ;
23696   int arg3 ;
23697   int res1 ;
23698   char *buf1 = 0 ;
23699   int alloc1 = 0 ;
23700   int val2 ;
23701   int ecode2 = 0 ;
23702   int val3 ;
23703   int ecode3 = 0 ;
23704   sip_t *result = 0 ;
23705 
23706   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
23707   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
23708   if (!SWIG_IsOK(res1)) {
23709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_sip_t" "', argument " "1"" of type '" "char const *""'");
23710   }
23711   arg1 = (char *)(buf1);
23712   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23713   if (!SWIG_IsOK(ecode2)) {
23714     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_sip_t" "', argument " "2"" of type '" "int""'");
23715   }
23716   arg2 = (int)(val2);
23717   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23718   if (!SWIG_IsOK(ecode3)) {
23719     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_sip_t" "', argument " "3"" of type '" "int""'");
23720   }
23721   arg3 = (int)(val3);
23722   result = (sip_t *)new_sip_t__SWIG_1((char const *)arg1,arg2,arg3);
23723   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, SWIG_POINTER_NEW |  0 );
23724   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
23725   return resultobj;
23726 fail:
23727   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
23728   return NULL;
23729 }
23730 
23731 
_wrap_new_sip_t__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23732 SWIGINTERN PyObject *_wrap_new_sip_t__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23733   PyObject *resultobj = 0;
23734   sip_t *arg1 = (sip_t *) 0 ;
23735   void *argp1 = 0 ;
23736   int res1 = 0 ;
23737   sip_t *result = 0 ;
23738 
23739   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
23740   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23741   if (!SWIG_IsOK(res1)) {
23742     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_sip_t" "', argument " "1"" of type '" "sip_t const *""'");
23743   }
23744   arg1 = (sip_t *)(argp1);
23745   result = (sip_t *)new_sip_t__SWIG_2((sip_t const *)arg1);
23746   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, SWIG_POINTER_NEW |  0 );
23747   return resultobj;
23748 fail:
23749   return NULL;
23750 }
23751 
23752 
_wrap_new_sip_t__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23753 SWIGINTERN PyObject *_wrap_new_sip_t__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23754   PyObject *resultobj = 0;
23755   tan_t *arg1 = (tan_t *) 0 ;
23756   void *argp1 = 0 ;
23757   int res1 = 0 ;
23758   sip_t *result = 0 ;
23759 
23760   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
23761   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
23762   if (!SWIG_IsOK(res1)) {
23763     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_sip_t" "', argument " "1"" of type '" "tan_t const *""'");
23764   }
23765   arg1 = (tan_t *)(argp1);
23766   result = (sip_t *)new_sip_t__SWIG_3((tan_t const *)arg1);
23767   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, SWIG_POINTER_NEW |  0 );
23768   return resultobj;
23769 fail:
23770   return NULL;
23771 }
23772 
23773 
_wrap_new_sip_t__SWIG_4(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23774 SWIGINTERN PyObject *_wrap_new_sip_t__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23775   PyObject *resultobj = 0;
23776   qfits_header *arg1 = (qfits_header *) 0 ;
23777   void *argp1 = 0 ;
23778   int res1 = 0 ;
23779   sip_t *result = 0 ;
23780 
23781   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
23782   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
23783   if (!SWIG_IsOK(res1)) {
23784     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_sip_t" "', argument " "1"" of type '" "qfits_header const *""'");
23785   }
23786   arg1 = (qfits_header *)(argp1);
23787   result = (sip_t *)new_sip_t__SWIG_4((qfits_header const *)arg1);
23788   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, SWIG_POINTER_NEW |  0 );
23789   return resultobj;
23790 fail:
23791   return NULL;
23792 }
23793 
23794 
_wrap_new_sip_t(PyObject * self,PyObject * args)23795 SWIGINTERN PyObject *_wrap_new_sip_t(PyObject *self, PyObject *args) {
23796   Py_ssize_t argc;
23797   PyObject *argv[4] = {
23798     0
23799   };
23800 
23801   if (!(argc = SWIG_Python_UnpackTuple(args, "new_sip_t", 0, 3, argv))) SWIG_fail;
23802   --argc;
23803   if ((argc >= 0) && (argc <= 2)) {
23804     int _v;
23805     if (argc <= 0) {
23806       return _wrap_new_sip_t__SWIG_0(self, argc, argv);
23807     }
23808     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
23809     _v = SWIG_CheckState(res);
23810     if (_v) {
23811       if (argc <= 1) {
23812         return _wrap_new_sip_t__SWIG_0(self, argc, argv);
23813       }
23814       {
23815         int res = SWIG_AsVal_int(argv[1], NULL);
23816         _v = SWIG_CheckState(res);
23817       }
23818       if (_v) {
23819         return _wrap_new_sip_t__SWIG_0(self, argc, argv);
23820       }
23821     }
23822   }
23823   if (argc == 1) {
23824     int _v;
23825     void *vptr = 0;
23826     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_sip_t, 0);
23827     _v = SWIG_CheckState(res);
23828     if (_v) {
23829       return _wrap_new_sip_t__SWIG_2(self, argc, argv);
23830     }
23831   }
23832   if (argc == 1) {
23833     int _v;
23834     void *vptr = 0;
23835     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_tan_t, 0);
23836     _v = SWIG_CheckState(res);
23837     if (_v) {
23838       return _wrap_new_sip_t__SWIG_3(self, argc, argv);
23839     }
23840   }
23841   if (argc == 1) {
23842     int _v;
23843     void *vptr = 0;
23844     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_qfits_header, 0);
23845     _v = SWIG_CheckState(res);
23846     if (_v) {
23847       return _wrap_new_sip_t__SWIG_4(self, argc, argv);
23848     }
23849   }
23850   if (argc == 3) {
23851     int _v;
23852     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
23853     _v = SWIG_CheckState(res);
23854     if (_v) {
23855       {
23856         int res = SWIG_AsVal_int(argv[1], NULL);
23857         _v = SWIG_CheckState(res);
23858       }
23859       if (_v) {
23860         {
23861           int res = SWIG_AsVal_int(argv[2], NULL);
23862           _v = SWIG_CheckState(res);
23863         }
23864         if (_v) {
23865           return _wrap_new_sip_t__SWIG_1(self, argc, argv);
23866         }
23867       }
23868     }
23869   }
23870 
23871 fail:
23872   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_sip_t'.\n"
23873     "  Possible C/C++ prototypes are:\n"
23874     "    sip_t::sip_t(char const *,int)\n"
23875     "    sip_t::sip_t(char const *,int,int)\n"
23876     "    sip_t::sip_t(sip_t const *)\n"
23877     "    sip_t::sip_t(tan_t const *)\n"
23878     "    sip_t::sip_t(qfits_header const *)\n");
23879   return 0;
23880 }
23881 
23882 
_wrap_delete_sip_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23883 SWIGINTERN PyObject *_wrap_delete_sip_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23884   PyObject *resultobj = 0;
23885   sip_t *arg1 = (sip_t *) 0 ;
23886   void *argp1 = 0 ;
23887   int res1 = 0 ;
23888   PyObject *swig_obj[1] ;
23889 
23890   if (!args) SWIG_fail;
23891   swig_obj[0] = args;
23892   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, SWIG_POINTER_DISOWN |  0 );
23893   if (!SWIG_IsOK(res1)) {
23894     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_sip_t" "', argument " "1"" of type '" "sip_t *""'");
23895   }
23896   arg1 = (sip_t *)(argp1);
23897   delete_sip_t(arg1);
23898   resultobj = SWIG_Py_Void();
23899   return resultobj;
23900 fail:
23901   return NULL;
23902 }
23903 
23904 
_wrap_sip_t_get_subimage(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23905 SWIGINTERN PyObject *_wrap_sip_t_get_subimage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23906   PyObject *resultobj = 0;
23907   sip_t *arg1 = (sip_t *) 0 ;
23908   int arg2 ;
23909   int arg3 ;
23910   int arg4 ;
23911   int arg5 ;
23912   void *argp1 = 0 ;
23913   int res1 = 0 ;
23914   int val2 ;
23915   int ecode2 = 0 ;
23916   int val3 ;
23917   int ecode3 = 0 ;
23918   int val4 ;
23919   int ecode4 = 0 ;
23920   int val5 ;
23921   int ecode5 = 0 ;
23922   PyObject *swig_obj[5] ;
23923   sip_t *result = 0 ;
23924 
23925   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_subimage", 5, 5, swig_obj)) SWIG_fail;
23926   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23927   if (!SWIG_IsOK(res1)) {
23928     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_subimage" "', argument " "1"" of type '" "sip_t *""'");
23929   }
23930   arg1 = (sip_t *)(argp1);
23931   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23932   if (!SWIG_IsOK(ecode2)) {
23933     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_subimage" "', argument " "2"" of type '" "int""'");
23934   }
23935   arg2 = (int)(val2);
23936   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23937   if (!SWIG_IsOK(ecode3)) {
23938     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_subimage" "', argument " "3"" of type '" "int""'");
23939   }
23940   arg3 = (int)(val3);
23941   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23942   if (!SWIG_IsOK(ecode4)) {
23943     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_t_get_subimage" "', argument " "4"" of type '" "int""'");
23944   }
23945   arg4 = (int)(val4);
23946   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23947   if (!SWIG_IsOK(ecode5)) {
23948     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "sip_t_get_subimage" "', argument " "5"" of type '" "int""'");
23949   }
23950   arg5 = (int)(val5);
23951   result = (sip_t *)sip_t_get_subimage(arg1,arg2,arg3,arg4,arg5);
23952   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
23953   return resultobj;
23954 fail:
23955   return NULL;
23956 }
23957 
23958 
_wrap_sip_t_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23959 SWIGINTERN PyObject *_wrap_sip_t_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23960   PyObject *resultobj = 0;
23961   sip_t *arg1 = (sip_t *) 0 ;
23962   double arg2 ;
23963   void *argp1 = 0 ;
23964   int res1 = 0 ;
23965   double val2 ;
23966   int ecode2 = 0 ;
23967   PyObject *swig_obj[2] ;
23968   sip_t *result = 0 ;
23969 
23970   if (!SWIG_Python_UnpackTuple(args, "sip_t_scale", 2, 2, swig_obj)) SWIG_fail;
23971   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
23972   if (!SWIG_IsOK(res1)) {
23973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_scale" "', argument " "1"" of type '" "sip_t *""'");
23974   }
23975   arg1 = (sip_t *)(argp1);
23976   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
23977   if (!SWIG_IsOK(ecode2)) {
23978     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_scale" "', argument " "2"" of type '" "double""'");
23979   }
23980   arg2 = (double)(val2);
23981   result = (sip_t *)sip_t_scale(arg1,arg2);
23982   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
23983   return resultobj;
23984 fail:
23985   return NULL;
23986 }
23987 
23988 
_wrap_sip_t_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23989 SWIGINTERN PyObject *_wrap_sip_t_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23990   PyObject *resultobj = 0;
23991   sip_t *arg1 = (sip_t *) 0 ;
23992   void *argp1 = 0 ;
23993   int res1 = 0 ;
23994   PyObject *swig_obj[1] ;
23995   double result;
23996 
23997   if (!args) SWIG_fail;
23998   swig_obj[0] = args;
23999   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24000   if (!SWIG_IsOK(res1)) {
24001     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_pixel_scale" "', argument " "1"" of type '" "sip_t *""'");
24002   }
24003   arg1 = (sip_t *)(argp1);
24004   result = (double)sip_t_pixel_scale(arg1);
24005   resultobj = SWIG_From_double((double)(result));
24006   return resultobj;
24007 fail:
24008   return NULL;
24009 }
24010 
24011 
_wrap_sip_t_radec_center(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24012 SWIGINTERN PyObject *_wrap_sip_t_radec_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24013   PyObject *resultobj = 0;
24014   sip_t *arg1 = (sip_t *) 0 ;
24015   double *arg2 = (double *) 0 ;
24016   double *arg3 = (double *) 0 ;
24017   void *argp1 = 0 ;
24018   int res1 = 0 ;
24019   double temp2 ;
24020   int res2 = SWIG_TMPOBJ ;
24021   double temp3 ;
24022   int res3 = SWIG_TMPOBJ ;
24023   PyObject *swig_obj[1] ;
24024 
24025   arg2 = &temp2;
24026   arg3 = &temp3;
24027   if (!args) SWIG_fail;
24028   swig_obj[0] = args;
24029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24030   if (!SWIG_IsOK(res1)) {
24031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_radec_center" "', argument " "1"" of type '" "sip_t *""'");
24032   }
24033   arg1 = (sip_t *)(argp1);
24034   sip_t_radec_center(arg1,arg2,arg3);
24035   resultobj = SWIG_Py_Void();
24036   if (SWIG_IsTmpObj(res2)) {
24037     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
24038   } else {
24039     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24040     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
24041   }
24042   if (SWIG_IsTmpObj(res3)) {
24043     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
24044   } else {
24045     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24046     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
24047   }
24048   return resultobj;
24049 fail:
24050   return NULL;
24051 }
24052 
24053 
_wrap_sip_t_radius(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24054 SWIGINTERN PyObject *_wrap_sip_t_radius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24055   PyObject *resultobj = 0;
24056   sip_t *arg1 = (sip_t *) 0 ;
24057   void *argp1 = 0 ;
24058   int res1 = 0 ;
24059   PyObject *swig_obj[1] ;
24060   double result;
24061 
24062   if (!args) SWIG_fail;
24063   swig_obj[0] = args;
24064   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24065   if (!SWIG_IsOK(res1)) {
24066     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_radius" "', argument " "1"" of type '" "sip_t *""'");
24067   }
24068   arg1 = (sip_t *)(argp1);
24069   result = (double)sip_t_radius(arg1);
24070   resultobj = SWIG_From_double((double)(result));
24071   return resultobj;
24072 fail:
24073   return NULL;
24074 }
24075 
24076 
_wrap_sip_t_write_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24077 SWIGINTERN PyObject *_wrap_sip_t_write_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24078   PyObject *resultobj = 0;
24079   sip_t *arg1 = (sip_t *) 0 ;
24080   char *arg2 = (char *) 0 ;
24081   void *argp1 = 0 ;
24082   int res1 = 0 ;
24083   int res2 ;
24084   char *buf2 = 0 ;
24085   int alloc2 = 0 ;
24086   PyObject *swig_obj[2] ;
24087   int result;
24088 
24089   if (!SWIG_Python_UnpackTuple(args, "sip_t_write_to", 2, 2, swig_obj)) SWIG_fail;
24090   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24091   if (!SWIG_IsOK(res1)) {
24092     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_write_to" "', argument " "1"" of type '" "sip_t *""'");
24093   }
24094   arg1 = (sip_t *)(argp1);
24095   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
24096   if (!SWIG_IsOK(res2)) {
24097     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_t_write_to" "', argument " "2"" of type '" "char const *""'");
24098   }
24099   arg2 = (char *)(buf2);
24100   result = (int)sip_t_write_to(arg1,(char const *)arg2);
24101   resultobj = SWIG_From_int((int)(result));
24102   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
24103   return resultobj;
24104 fail:
24105   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
24106   return NULL;
24107 }
24108 
24109 
_wrap_sip_t_ensure_inverse_polynomials(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24110 SWIGINTERN PyObject *_wrap_sip_t_ensure_inverse_polynomials(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24111   PyObject *resultobj = 0;
24112   sip_t *arg1 = (sip_t *) 0 ;
24113   void *argp1 = 0 ;
24114   int res1 = 0 ;
24115   PyObject *swig_obj[1] ;
24116   int result;
24117 
24118   if (!args) SWIG_fail;
24119   swig_obj[0] = args;
24120   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24121   if (!SWIG_IsOK(res1)) {
24122     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_ensure_inverse_polynomials" "', argument " "1"" of type '" "sip_t *""'");
24123   }
24124   arg1 = (sip_t *)(argp1);
24125   result = (int)sip_t_ensure_inverse_polynomials(arg1);
24126   resultobj = SWIG_From_int((int)(result));
24127   return resultobj;
24128 fail:
24129   return NULL;
24130 }
24131 
24132 
_wrap_sip_t_pixelxy2xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24133 SWIGINTERN PyObject *_wrap_sip_t_pixelxy2xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24134   PyObject *resultobj = 0;
24135   sip_t *arg1 = (sip_t *) 0 ;
24136   double arg2 ;
24137   double arg3 ;
24138   double *arg4 = (double *) 0 ;
24139   double *arg5 = (double *) 0 ;
24140   double *arg6 = (double *) 0 ;
24141   void *argp1 = 0 ;
24142   int res1 = 0 ;
24143   double val2 ;
24144   int ecode2 = 0 ;
24145   double val3 ;
24146   int ecode3 = 0 ;
24147   double temp4 ;
24148   int res4 = SWIG_TMPOBJ ;
24149   double temp5 ;
24150   int res5 = SWIG_TMPOBJ ;
24151   double temp6 ;
24152   int res6 = SWIG_TMPOBJ ;
24153   PyObject *swig_obj[3] ;
24154 
24155   arg4 = &temp4;
24156   arg5 = &temp5;
24157   arg6 = &temp6;
24158   if (!SWIG_Python_UnpackTuple(args, "sip_t_pixelxy2xyz", 3, 3, swig_obj)) SWIG_fail;
24159   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24160   if (!SWIG_IsOK(res1)) {
24161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_pixelxy2xyz" "', argument " "1"" of type '" "sip_t *""'");
24162   }
24163   arg1 = (sip_t *)(argp1);
24164   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24165   if (!SWIG_IsOK(ecode2)) {
24166     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_pixelxy2xyz" "', argument " "2"" of type '" "double""'");
24167   }
24168   arg2 = (double)(val2);
24169   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24170   if (!SWIG_IsOK(ecode3)) {
24171     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_pixelxy2xyz" "', argument " "3"" of type '" "double""'");
24172   }
24173   arg3 = (double)(val3);
24174   sip_t_pixelxy2xyz(arg1,arg2,arg3,arg4,arg5,arg6);
24175   resultobj = SWIG_Py_Void();
24176   if (SWIG_IsTmpObj(res4)) {
24177     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24178   } else {
24179     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24180     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24181   }
24182   if (SWIG_IsTmpObj(res5)) {
24183     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24184   } else {
24185     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24186     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24187   }
24188   if (SWIG_IsTmpObj(res6)) {
24189     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
24190   } else {
24191     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24192     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
24193   }
24194   return resultobj;
24195 fail:
24196   return NULL;
24197 }
24198 
24199 
_wrap_sip_t_pixelxy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24200 SWIGINTERN PyObject *_wrap_sip_t_pixelxy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24201   PyObject *resultobj = 0;
24202   sip_t *arg1 = (sip_t *) 0 ;
24203   double arg2 ;
24204   double arg3 ;
24205   double *arg4 = (double *) 0 ;
24206   double *arg5 = (double *) 0 ;
24207   void *argp1 = 0 ;
24208   int res1 = 0 ;
24209   double val2 ;
24210   int ecode2 = 0 ;
24211   double val3 ;
24212   int ecode3 = 0 ;
24213   double temp4 ;
24214   int res4 = SWIG_TMPOBJ ;
24215   double temp5 ;
24216   int res5 = SWIG_TMPOBJ ;
24217   PyObject *swig_obj[3] ;
24218 
24219   arg4 = &temp4;
24220   arg5 = &temp5;
24221   if (!SWIG_Python_UnpackTuple(args, "sip_t_pixelxy2radec", 3, 3, swig_obj)) SWIG_fail;
24222   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24223   if (!SWIG_IsOK(res1)) {
24224     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_pixelxy2radec" "', argument " "1"" of type '" "sip_t *""'");
24225   }
24226   arg1 = (sip_t *)(argp1);
24227   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24228   if (!SWIG_IsOK(ecode2)) {
24229     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_pixelxy2radec" "', argument " "2"" of type '" "double""'");
24230   }
24231   arg2 = (double)(val2);
24232   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24233   if (!SWIG_IsOK(ecode3)) {
24234     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_pixelxy2radec" "', argument " "3"" of type '" "double""'");
24235   }
24236   arg3 = (double)(val3);
24237   sip_t_pixelxy2radec(arg1,arg2,arg3,arg4,arg5);
24238   resultobj = SWIG_Py_Void();
24239   if (SWIG_IsTmpObj(res4)) {
24240     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24241   } else {
24242     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24243     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24244   }
24245   if (SWIG_IsTmpObj(res5)) {
24246     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24247   } else {
24248     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24249     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24250   }
24251   return resultobj;
24252 fail:
24253   return NULL;
24254 }
24255 
24256 
_wrap_sip_t_radec2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24257 SWIGINTERN PyObject *_wrap_sip_t_radec2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24258   PyObject *resultobj = 0;
24259   sip_t *arg1 = (sip_t *) 0 ;
24260   double arg2 ;
24261   double arg3 ;
24262   double *arg4 = (double *) 0 ;
24263   double *arg5 = (double *) 0 ;
24264   void *argp1 = 0 ;
24265   int res1 = 0 ;
24266   double val2 ;
24267   int ecode2 = 0 ;
24268   double val3 ;
24269   int ecode3 = 0 ;
24270   double temp4 ;
24271   int res4 = SWIG_TMPOBJ ;
24272   double temp5 ;
24273   int res5 = SWIG_TMPOBJ ;
24274   PyObject *swig_obj[3] ;
24275   int result;
24276 
24277   arg4 = &temp4;
24278   arg5 = &temp5;
24279   if (!SWIG_Python_UnpackTuple(args, "sip_t_radec2pixelxy", 3, 3, swig_obj)) SWIG_fail;
24280   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24281   if (!SWIG_IsOK(res1)) {
24282     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_radec2pixelxy" "', argument " "1"" of type '" "sip_t *""'");
24283   }
24284   arg1 = (sip_t *)(argp1);
24285   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24286   if (!SWIG_IsOK(ecode2)) {
24287     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_radec2pixelxy" "', argument " "2"" of type '" "double""'");
24288   }
24289   arg2 = (double)(val2);
24290   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24291   if (!SWIG_IsOK(ecode3)) {
24292     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_radec2pixelxy" "', argument " "3"" of type '" "double""'");
24293   }
24294   arg3 = (double)(val3);
24295   result = (int)sip_t_radec2pixelxy(arg1,arg2,arg3,arg4,arg5);
24296   resultobj = SWIG_From_int((int)(result));
24297   if (SWIG_IsTmpObj(res4)) {
24298     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24299   } else {
24300     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24301     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24302   }
24303   if (SWIG_IsTmpObj(res5)) {
24304     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24305   } else {
24306     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24307     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24308   }
24309   return resultobj;
24310 fail:
24311   return NULL;
24312 }
24313 
24314 
_wrap_sip_t_iwc2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24315 SWIGINTERN PyObject *_wrap_sip_t_iwc2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24316   PyObject *resultobj = 0;
24317   sip_t *arg1 = (sip_t *) 0 ;
24318   double arg2 ;
24319   double arg3 ;
24320   double *arg4 = (double *) 0 ;
24321   double *arg5 = (double *) 0 ;
24322   void *argp1 = 0 ;
24323   int res1 = 0 ;
24324   double val2 ;
24325   int ecode2 = 0 ;
24326   double val3 ;
24327   int ecode3 = 0 ;
24328   double temp4 ;
24329   int res4 = SWIG_TMPOBJ ;
24330   double temp5 ;
24331   int res5 = SWIG_TMPOBJ ;
24332   PyObject *swig_obj[3] ;
24333 
24334   arg4 = &temp4;
24335   arg5 = &temp5;
24336   if (!SWIG_Python_UnpackTuple(args, "sip_t_iwc2pixelxy", 3, 3, swig_obj)) SWIG_fail;
24337   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24338   if (!SWIG_IsOK(res1)) {
24339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_iwc2pixelxy" "', argument " "1"" of type '" "sip_t *""'");
24340   }
24341   arg1 = (sip_t *)(argp1);
24342   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24343   if (!SWIG_IsOK(ecode2)) {
24344     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_iwc2pixelxy" "', argument " "2"" of type '" "double""'");
24345   }
24346   arg2 = (double)(val2);
24347   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24348   if (!SWIG_IsOK(ecode3)) {
24349     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_iwc2pixelxy" "', argument " "3"" of type '" "double""'");
24350   }
24351   arg3 = (double)(val3);
24352   sip_t_iwc2pixelxy(arg1,arg2,arg3,arg4,arg5);
24353   resultobj = SWIG_Py_Void();
24354   if (SWIG_IsTmpObj(res4)) {
24355     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24356   } else {
24357     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24358     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24359   }
24360   if (SWIG_IsTmpObj(res5)) {
24361     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24362   } else {
24363     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24364     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24365   }
24366   return resultobj;
24367 fail:
24368   return NULL;
24369 }
24370 
24371 
_wrap_sip_t_pixelxy2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24372 SWIGINTERN PyObject *_wrap_sip_t_pixelxy2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24373   PyObject *resultobj = 0;
24374   sip_t *arg1 = (sip_t *) 0 ;
24375   double arg2 ;
24376   double arg3 ;
24377   double *arg4 = (double *) 0 ;
24378   double *arg5 = (double *) 0 ;
24379   void *argp1 = 0 ;
24380   int res1 = 0 ;
24381   double val2 ;
24382   int ecode2 = 0 ;
24383   double val3 ;
24384   int ecode3 = 0 ;
24385   double temp4 ;
24386   int res4 = SWIG_TMPOBJ ;
24387   double temp5 ;
24388   int res5 = SWIG_TMPOBJ ;
24389   PyObject *swig_obj[3] ;
24390 
24391   arg4 = &temp4;
24392   arg5 = &temp5;
24393   if (!SWIG_Python_UnpackTuple(args, "sip_t_pixelxy2iwc", 3, 3, swig_obj)) SWIG_fail;
24394   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24395   if (!SWIG_IsOK(res1)) {
24396     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_pixelxy2iwc" "', argument " "1"" of type '" "sip_t *""'");
24397   }
24398   arg1 = (sip_t *)(argp1);
24399   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24400   if (!SWIG_IsOK(ecode2)) {
24401     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_pixelxy2iwc" "', argument " "2"" of type '" "double""'");
24402   }
24403   arg2 = (double)(val2);
24404   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24405   if (!SWIG_IsOK(ecode3)) {
24406     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_pixelxy2iwc" "', argument " "3"" of type '" "double""'");
24407   }
24408   arg3 = (double)(val3);
24409   sip_t_pixelxy2iwc(arg1,arg2,arg3,arg4,arg5);
24410   resultobj = SWIG_Py_Void();
24411   if (SWIG_IsTmpObj(res4)) {
24412     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24413   } else {
24414     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24415     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24416   }
24417   if (SWIG_IsTmpObj(res5)) {
24418     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24419   } else {
24420     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24421     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24422   }
24423   return resultobj;
24424 fail:
24425   return NULL;
24426 }
24427 
24428 
_wrap_sip_t_iwc2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24429 SWIGINTERN PyObject *_wrap_sip_t_iwc2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24430   PyObject *resultobj = 0;
24431   sip_t *arg1 = (sip_t *) 0 ;
24432   double arg2 ;
24433   double arg3 ;
24434   double *arg4 = (double *) 0 ;
24435   double *arg5 = (double *) 0 ;
24436   void *argp1 = 0 ;
24437   int res1 = 0 ;
24438   double val2 ;
24439   int ecode2 = 0 ;
24440   double val3 ;
24441   int ecode3 = 0 ;
24442   double temp4 ;
24443   int res4 = SWIG_TMPOBJ ;
24444   double temp5 ;
24445   int res5 = SWIG_TMPOBJ ;
24446   PyObject *swig_obj[3] ;
24447 
24448   arg4 = &temp4;
24449   arg5 = &temp5;
24450   if (!SWIG_Python_UnpackTuple(args, "sip_t_iwc2radec", 3, 3, swig_obj)) SWIG_fail;
24451   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24452   if (!SWIG_IsOK(res1)) {
24453     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_iwc2radec" "', argument " "1"" of type '" "sip_t *""'");
24454   }
24455   arg1 = (sip_t *)(argp1);
24456   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24457   if (!SWIG_IsOK(ecode2)) {
24458     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_iwc2radec" "', argument " "2"" of type '" "double""'");
24459   }
24460   arg2 = (double)(val2);
24461   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24462   if (!SWIG_IsOK(ecode3)) {
24463     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_iwc2radec" "', argument " "3"" of type '" "double""'");
24464   }
24465   arg3 = (double)(val3);
24466   sip_t_iwc2radec(arg1,arg2,arg3,arg4,arg5);
24467   resultobj = SWIG_Py_Void();
24468   if (SWIG_IsTmpObj(res4)) {
24469     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24470   } else {
24471     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24472     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24473   }
24474   if (SWIG_IsTmpObj(res5)) {
24475     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24476   } else {
24477     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24478     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24479   }
24480   return resultobj;
24481 fail:
24482   return NULL;
24483 }
24484 
24485 
_wrap_sip_t_radec2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24486 SWIGINTERN PyObject *_wrap_sip_t_radec2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24487   PyObject *resultobj = 0;
24488   sip_t *arg1 = (sip_t *) 0 ;
24489   double arg2 ;
24490   double arg3 ;
24491   double *arg4 = (double *) 0 ;
24492   double *arg5 = (double *) 0 ;
24493   void *argp1 = 0 ;
24494   int res1 = 0 ;
24495   double val2 ;
24496   int ecode2 = 0 ;
24497   double val3 ;
24498   int ecode3 = 0 ;
24499   double temp4 ;
24500   int res4 = SWIG_TMPOBJ ;
24501   double temp5 ;
24502   int res5 = SWIG_TMPOBJ ;
24503   PyObject *swig_obj[3] ;
24504   int result;
24505 
24506   arg4 = &temp4;
24507   arg5 = &temp5;
24508   if (!SWIG_Python_UnpackTuple(args, "sip_t_radec2iwc", 3, 3, swig_obj)) SWIG_fail;
24509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24510   if (!SWIG_IsOK(res1)) {
24511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_radec2iwc" "', argument " "1"" of type '" "sip_t *""'");
24512   }
24513   arg1 = (sip_t *)(argp1);
24514   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24515   if (!SWIG_IsOK(ecode2)) {
24516     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_radec2iwc" "', argument " "2"" of type '" "double""'");
24517   }
24518   arg2 = (double)(val2);
24519   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24520   if (!SWIG_IsOK(ecode3)) {
24521     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_radec2iwc" "', argument " "3"" of type '" "double""'");
24522   }
24523   arg3 = (double)(val3);
24524   result = (int)sip_t_radec2iwc(arg1,arg2,arg3,arg4,arg5);
24525   resultobj = SWIG_From_int((int)(result));
24526   if (SWIG_IsTmpObj(res4)) {
24527     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
24528   } else {
24529     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24530     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
24531   }
24532   if (SWIG_IsTmpObj(res5)) {
24533     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24534   } else {
24535     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24536     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24537   }
24538   return resultobj;
24539 fail:
24540   return NULL;
24541 }
24542 
24543 
_wrap_sip_t_xyz2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24544 SWIGINTERN PyObject *_wrap_sip_t_xyz2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24545   PyObject *resultobj = 0;
24546   sip_t *arg1 = (sip_t *) 0 ;
24547   double arg2 ;
24548   double arg3 ;
24549   double arg4 ;
24550   double *arg5 = (double *) 0 ;
24551   double *arg6 = (double *) 0 ;
24552   void *argp1 = 0 ;
24553   int res1 = 0 ;
24554   double val2 ;
24555   int ecode2 = 0 ;
24556   double val3 ;
24557   int ecode3 = 0 ;
24558   double val4 ;
24559   int ecode4 = 0 ;
24560   double temp5 ;
24561   int res5 = SWIG_TMPOBJ ;
24562   double temp6 ;
24563   int res6 = SWIG_TMPOBJ ;
24564   PyObject *swig_obj[4] ;
24565   int result;
24566 
24567   arg5 = &temp5;
24568   arg6 = &temp6;
24569   if (!SWIG_Python_UnpackTuple(args, "sip_t_xyz2pixelxy", 4, 4, swig_obj)) SWIG_fail;
24570   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24571   if (!SWIG_IsOK(res1)) {
24572     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_xyz2pixelxy" "', argument " "1"" of type '" "sip_t *""'");
24573   }
24574   arg1 = (sip_t *)(argp1);
24575   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24576   if (!SWIG_IsOK(ecode2)) {
24577     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_xyz2pixelxy" "', argument " "2"" of type '" "double""'");
24578   }
24579   arg2 = (double)(val2);
24580   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24581   if (!SWIG_IsOK(ecode3)) {
24582     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_xyz2pixelxy" "', argument " "3"" of type '" "double""'");
24583   }
24584   arg3 = (double)(val3);
24585   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
24586   if (!SWIG_IsOK(ecode4)) {
24587     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_t_xyz2pixelxy" "', argument " "4"" of type '" "double""'");
24588   }
24589   arg4 = (double)(val4);
24590   result = (int)sip_t_xyz2pixelxy(arg1,arg2,arg3,arg4,arg5,arg6);
24591   resultobj = SWIG_From_int((int)(result));
24592   if (SWIG_IsTmpObj(res5)) {
24593     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
24594   } else {
24595     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24596     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
24597   }
24598   if (SWIG_IsTmpObj(res6)) {
24599     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
24600   } else {
24601     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
24602     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
24603   }
24604   return resultobj;
24605 fail:
24606   return NULL;
24607 }
24608 
24609 
_wrap_sip_t_is_inside(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24610 SWIGINTERN PyObject *_wrap_sip_t_is_inside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24611   PyObject *resultobj = 0;
24612   sip_t *arg1 = (sip_t *) 0 ;
24613   double arg2 ;
24614   double arg3 ;
24615   void *argp1 = 0 ;
24616   int res1 = 0 ;
24617   double val2 ;
24618   int ecode2 = 0 ;
24619   double val3 ;
24620   int ecode3 = 0 ;
24621   PyObject *swig_obj[3] ;
24622   anbool result;
24623 
24624   if (!SWIG_Python_UnpackTuple(args, "sip_t_is_inside", 3, 3, swig_obj)) SWIG_fail;
24625   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24626   if (!SWIG_IsOK(res1)) {
24627     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_is_inside" "', argument " "1"" of type '" "sip_t *""'");
24628   }
24629   arg1 = (sip_t *)(argp1);
24630   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24631   if (!SWIG_IsOK(ecode2)) {
24632     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_is_inside" "', argument " "2"" of type '" "double""'");
24633   }
24634   arg2 = (double)(val2);
24635   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
24636   if (!SWIG_IsOK(ecode3)) {
24637     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_is_inside" "', argument " "3"" of type '" "double""'");
24638   }
24639   arg3 = (double)(val3);
24640   result = (anbool)sip_t_is_inside(arg1,arg2,arg3);
24641   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
24642   return resultobj;
24643 fail:
24644   return NULL;
24645 }
24646 
24647 
_wrap_sip_t_set_a_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24648 SWIGINTERN PyObject *_wrap_sip_t_set_a_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24649   PyObject *resultobj = 0;
24650   sip_t *arg1 = (sip_t *) 0 ;
24651   int arg2 ;
24652   int arg3 ;
24653   double arg4 ;
24654   void *argp1 = 0 ;
24655   int res1 = 0 ;
24656   int val2 ;
24657   int ecode2 = 0 ;
24658   int val3 ;
24659   int ecode3 = 0 ;
24660   double val4 ;
24661   int ecode4 = 0 ;
24662   PyObject *swig_obj[4] ;
24663 
24664   if (!SWIG_Python_UnpackTuple(args, "sip_t_set_a_term", 4, 4, swig_obj)) SWIG_fail;
24665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24666   if (!SWIG_IsOK(res1)) {
24667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_set_a_term" "', argument " "1"" of type '" "sip_t *""'");
24668   }
24669   arg1 = (sip_t *)(argp1);
24670   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24671   if (!SWIG_IsOK(ecode2)) {
24672     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_set_a_term" "', argument " "2"" of type '" "int""'");
24673   }
24674   arg2 = (int)(val2);
24675   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24676   if (!SWIG_IsOK(ecode3)) {
24677     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_set_a_term" "', argument " "3"" of type '" "int""'");
24678   }
24679   arg3 = (int)(val3);
24680   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
24681   if (!SWIG_IsOK(ecode4)) {
24682     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_t_set_a_term" "', argument " "4"" of type '" "double""'");
24683   }
24684   arg4 = (double)(val4);
24685   sip_t_set_a_term(arg1,arg2,arg3,arg4);
24686   resultobj = SWIG_Py_Void();
24687   return resultobj;
24688 fail:
24689   return NULL;
24690 }
24691 
24692 
_wrap_sip_t_set_b_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24693 SWIGINTERN PyObject *_wrap_sip_t_set_b_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24694   PyObject *resultobj = 0;
24695   sip_t *arg1 = (sip_t *) 0 ;
24696   int arg2 ;
24697   int arg3 ;
24698   double arg4 ;
24699   void *argp1 = 0 ;
24700   int res1 = 0 ;
24701   int val2 ;
24702   int ecode2 = 0 ;
24703   int val3 ;
24704   int ecode3 = 0 ;
24705   double val4 ;
24706   int ecode4 = 0 ;
24707   PyObject *swig_obj[4] ;
24708 
24709   if (!SWIG_Python_UnpackTuple(args, "sip_t_set_b_term", 4, 4, swig_obj)) SWIG_fail;
24710   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24711   if (!SWIG_IsOK(res1)) {
24712     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_set_b_term" "', argument " "1"" of type '" "sip_t *""'");
24713   }
24714   arg1 = (sip_t *)(argp1);
24715   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24716   if (!SWIG_IsOK(ecode2)) {
24717     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_set_b_term" "', argument " "2"" of type '" "int""'");
24718   }
24719   arg2 = (int)(val2);
24720   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24721   if (!SWIG_IsOK(ecode3)) {
24722     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_set_b_term" "', argument " "3"" of type '" "int""'");
24723   }
24724   arg3 = (int)(val3);
24725   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
24726   if (!SWIG_IsOK(ecode4)) {
24727     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_t_set_b_term" "', argument " "4"" of type '" "double""'");
24728   }
24729   arg4 = (double)(val4);
24730   sip_t_set_b_term(arg1,arg2,arg3,arg4);
24731   resultobj = SWIG_Py_Void();
24732   return resultobj;
24733 fail:
24734   return NULL;
24735 }
24736 
24737 
_wrap_sip_t_set_ap_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24738 SWIGINTERN PyObject *_wrap_sip_t_set_ap_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24739   PyObject *resultobj = 0;
24740   sip_t *arg1 = (sip_t *) 0 ;
24741   int arg2 ;
24742   int arg3 ;
24743   double arg4 ;
24744   void *argp1 = 0 ;
24745   int res1 = 0 ;
24746   int val2 ;
24747   int ecode2 = 0 ;
24748   int val3 ;
24749   int ecode3 = 0 ;
24750   double val4 ;
24751   int ecode4 = 0 ;
24752   PyObject *swig_obj[4] ;
24753 
24754   if (!SWIG_Python_UnpackTuple(args, "sip_t_set_ap_term", 4, 4, swig_obj)) SWIG_fail;
24755   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24756   if (!SWIG_IsOK(res1)) {
24757     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_set_ap_term" "', argument " "1"" of type '" "sip_t *""'");
24758   }
24759   arg1 = (sip_t *)(argp1);
24760   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24761   if (!SWIG_IsOK(ecode2)) {
24762     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_set_ap_term" "', argument " "2"" of type '" "int""'");
24763   }
24764   arg2 = (int)(val2);
24765   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24766   if (!SWIG_IsOK(ecode3)) {
24767     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_set_ap_term" "', argument " "3"" of type '" "int""'");
24768   }
24769   arg3 = (int)(val3);
24770   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
24771   if (!SWIG_IsOK(ecode4)) {
24772     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_t_set_ap_term" "', argument " "4"" of type '" "double""'");
24773   }
24774   arg4 = (double)(val4);
24775   sip_t_set_ap_term(arg1,arg2,arg3,arg4);
24776   resultobj = SWIG_Py_Void();
24777   return resultobj;
24778 fail:
24779   return NULL;
24780 }
24781 
24782 
_wrap_sip_t_set_bp_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24783 SWIGINTERN PyObject *_wrap_sip_t_set_bp_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24784   PyObject *resultobj = 0;
24785   sip_t *arg1 = (sip_t *) 0 ;
24786   int arg2 ;
24787   int arg3 ;
24788   double arg4 ;
24789   void *argp1 = 0 ;
24790   int res1 = 0 ;
24791   int val2 ;
24792   int ecode2 = 0 ;
24793   int val3 ;
24794   int ecode3 = 0 ;
24795   double val4 ;
24796   int ecode4 = 0 ;
24797   PyObject *swig_obj[4] ;
24798 
24799   if (!SWIG_Python_UnpackTuple(args, "sip_t_set_bp_term", 4, 4, swig_obj)) SWIG_fail;
24800   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24801   if (!SWIG_IsOK(res1)) {
24802     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_set_bp_term" "', argument " "1"" of type '" "sip_t *""'");
24803   }
24804   arg1 = (sip_t *)(argp1);
24805   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24806   if (!SWIG_IsOK(ecode2)) {
24807     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_set_bp_term" "', argument " "2"" of type '" "int""'");
24808   }
24809   arg2 = (int)(val2);
24810   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24811   if (!SWIG_IsOK(ecode3)) {
24812     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_set_bp_term" "', argument " "3"" of type '" "int""'");
24813   }
24814   arg3 = (int)(val3);
24815   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
24816   if (!SWIG_IsOK(ecode4)) {
24817     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_t_set_bp_term" "', argument " "4"" of type '" "double""'");
24818   }
24819   arg4 = (double)(val4);
24820   sip_t_set_bp_term(arg1,arg2,arg3,arg4);
24821   resultobj = SWIG_Py_Void();
24822   return resultobj;
24823 fail:
24824   return NULL;
24825 }
24826 
24827 
_wrap_sip_t_get_a_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24828 SWIGINTERN PyObject *_wrap_sip_t_get_a_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829   PyObject *resultobj = 0;
24830   sip_t *arg1 = (sip_t *) 0 ;
24831   int arg2 ;
24832   int arg3 ;
24833   void *argp1 = 0 ;
24834   int res1 = 0 ;
24835   int val2 ;
24836   int ecode2 = 0 ;
24837   int val3 ;
24838   int ecode3 = 0 ;
24839   PyObject *swig_obj[3] ;
24840   double result;
24841 
24842   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_a_term", 3, 3, swig_obj)) SWIG_fail;
24843   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24844   if (!SWIG_IsOK(res1)) {
24845     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_a_term" "', argument " "1"" of type '" "sip_t *""'");
24846   }
24847   arg1 = (sip_t *)(argp1);
24848   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24849   if (!SWIG_IsOK(ecode2)) {
24850     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_a_term" "', argument " "2"" of type '" "int""'");
24851   }
24852   arg2 = (int)(val2);
24853   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24854   if (!SWIG_IsOK(ecode3)) {
24855     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_a_term" "', argument " "3"" of type '" "int""'");
24856   }
24857   arg3 = (int)(val3);
24858   result = (double)sip_t_get_a_term(arg1,arg2,arg3);
24859   resultobj = SWIG_From_double((double)(result));
24860   return resultobj;
24861 fail:
24862   return NULL;
24863 }
24864 
24865 
_wrap_sip_t_get_b_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24866 SWIGINTERN PyObject *_wrap_sip_t_get_b_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24867   PyObject *resultobj = 0;
24868   sip_t *arg1 = (sip_t *) 0 ;
24869   int arg2 ;
24870   int arg3 ;
24871   void *argp1 = 0 ;
24872   int res1 = 0 ;
24873   int val2 ;
24874   int ecode2 = 0 ;
24875   int val3 ;
24876   int ecode3 = 0 ;
24877   PyObject *swig_obj[3] ;
24878   double result;
24879 
24880   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_b_term", 3, 3, swig_obj)) SWIG_fail;
24881   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24882   if (!SWIG_IsOK(res1)) {
24883     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_b_term" "', argument " "1"" of type '" "sip_t *""'");
24884   }
24885   arg1 = (sip_t *)(argp1);
24886   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24887   if (!SWIG_IsOK(ecode2)) {
24888     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_b_term" "', argument " "2"" of type '" "int""'");
24889   }
24890   arg2 = (int)(val2);
24891   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24892   if (!SWIG_IsOK(ecode3)) {
24893     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_b_term" "', argument " "3"" of type '" "int""'");
24894   }
24895   arg3 = (int)(val3);
24896   result = (double)sip_t_get_b_term(arg1,arg2,arg3);
24897   resultobj = SWIG_From_double((double)(result));
24898   return resultobj;
24899 fail:
24900   return NULL;
24901 }
24902 
24903 
_wrap_sip_t_get_ap_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24904 SWIGINTERN PyObject *_wrap_sip_t_get_ap_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24905   PyObject *resultobj = 0;
24906   sip_t *arg1 = (sip_t *) 0 ;
24907   int arg2 ;
24908   int arg3 ;
24909   void *argp1 = 0 ;
24910   int res1 = 0 ;
24911   int val2 ;
24912   int ecode2 = 0 ;
24913   int val3 ;
24914   int ecode3 = 0 ;
24915   PyObject *swig_obj[3] ;
24916   double result;
24917 
24918   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_ap_term", 3, 3, swig_obj)) SWIG_fail;
24919   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24920   if (!SWIG_IsOK(res1)) {
24921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_ap_term" "', argument " "1"" of type '" "sip_t *""'");
24922   }
24923   arg1 = (sip_t *)(argp1);
24924   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24925   if (!SWIG_IsOK(ecode2)) {
24926     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_ap_term" "', argument " "2"" of type '" "int""'");
24927   }
24928   arg2 = (int)(val2);
24929   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24930   if (!SWIG_IsOK(ecode3)) {
24931     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_ap_term" "', argument " "3"" of type '" "int""'");
24932   }
24933   arg3 = (int)(val3);
24934   result = (double)sip_t_get_ap_term(arg1,arg2,arg3);
24935   resultobj = SWIG_From_double((double)(result));
24936   return resultobj;
24937 fail:
24938   return NULL;
24939 }
24940 
24941 
_wrap_sip_t_get_bp_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24942 SWIGINTERN PyObject *_wrap_sip_t_get_bp_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24943   PyObject *resultobj = 0;
24944   sip_t *arg1 = (sip_t *) 0 ;
24945   int arg2 ;
24946   int arg3 ;
24947   void *argp1 = 0 ;
24948   int res1 = 0 ;
24949   int val2 ;
24950   int ecode2 = 0 ;
24951   int val3 ;
24952   int ecode3 = 0 ;
24953   PyObject *swig_obj[3] ;
24954   double result;
24955 
24956   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_bp_term", 3, 3, swig_obj)) SWIG_fail;
24957   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24958   if (!SWIG_IsOK(res1)) {
24959     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_bp_term" "', argument " "1"" of type '" "sip_t *""'");
24960   }
24961   arg1 = (sip_t *)(argp1);
24962   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24963   if (!SWIG_IsOK(ecode2)) {
24964     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_bp_term" "', argument " "2"" of type '" "int""'");
24965   }
24966   arg2 = (int)(val2);
24967   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24968   if (!SWIG_IsOK(ecode3)) {
24969     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_bp_term" "', argument " "3"" of type '" "int""'");
24970   }
24971   arg3 = (int)(val3);
24972   result = (double)sip_t_get_bp_term(arg1,arg2,arg3);
24973   resultobj = SWIG_From_double((double)(result));
24974   return resultobj;
24975 fail:
24976   return NULL;
24977 }
24978 
24979 
_wrap_sip_t_set_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24980 SWIGINTERN PyObject *_wrap_sip_t_set_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24981   PyObject *resultobj = 0;
24982   sip_t *arg1 = (sip_t *) 0 ;
24983   double arg2 ;
24984   void *argp1 = 0 ;
24985   int res1 = 0 ;
24986   double val2 ;
24987   int ecode2 = 0 ;
24988   PyObject *swig_obj[2] ;
24989 
24990   if (!SWIG_Python_UnpackTuple(args, "sip_t_set_width", 2, 2, swig_obj)) SWIG_fail;
24991   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
24992   if (!SWIG_IsOK(res1)) {
24993     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_set_width" "', argument " "1"" of type '" "sip_t *""'");
24994   }
24995   arg1 = (sip_t *)(argp1);
24996   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
24997   if (!SWIG_IsOK(ecode2)) {
24998     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_set_width" "', argument " "2"" of type '" "double""'");
24999   }
25000   arg2 = (double)(val2);
25001   sip_t_set_width(arg1,arg2);
25002   resultobj = SWIG_Py_Void();
25003   return resultobj;
25004 fail:
25005   return NULL;
25006 }
25007 
25008 
_wrap_sip_t_set_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25009 SWIGINTERN PyObject *_wrap_sip_t_set_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25010   PyObject *resultobj = 0;
25011   sip_t *arg1 = (sip_t *) 0 ;
25012   double arg2 ;
25013   void *argp1 = 0 ;
25014   int res1 = 0 ;
25015   double val2 ;
25016   int ecode2 = 0 ;
25017   PyObject *swig_obj[2] ;
25018 
25019   if (!SWIG_Python_UnpackTuple(args, "sip_t_set_height", 2, 2, swig_obj)) SWIG_fail;
25020   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25021   if (!SWIG_IsOK(res1)) {
25022     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_set_height" "', argument " "1"" of type '" "sip_t *""'");
25023   }
25024   arg1 = (sip_t *)(argp1);
25025   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25026   if (!SWIG_IsOK(ecode2)) {
25027     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_set_height" "', argument " "2"" of type '" "double""'");
25028   }
25029   arg2 = (double)(val2);
25030   sip_t_set_height(arg1,arg2);
25031   resultobj = SWIG_Py_Void();
25032   return resultobj;
25033 fail:
25034   return NULL;
25035 }
25036 
25037 
_wrap_sip_t_get_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25038 SWIGINTERN PyObject *_wrap_sip_t_get_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25039   PyObject *resultobj = 0;
25040   sip_t *arg1 = (sip_t *) 0 ;
25041   void *argp1 = 0 ;
25042   int res1 = 0 ;
25043   PyObject *swig_obj[1] ;
25044   double result;
25045 
25046   if (!args) SWIG_fail;
25047   swig_obj[0] = args;
25048   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25049   if (!SWIG_IsOK(res1)) {
25050     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_width" "', argument " "1"" of type '" "sip_t *""'");
25051   }
25052   arg1 = (sip_t *)(argp1);
25053   result = (double)sip_t_get_width(arg1);
25054   resultobj = SWIG_From_double((double)(result));
25055   return resultobj;
25056 fail:
25057   return NULL;
25058 }
25059 
25060 
_wrap_sip_t_get_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25061 SWIGINTERN PyObject *_wrap_sip_t_get_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25062   PyObject *resultobj = 0;
25063   sip_t *arg1 = (sip_t *) 0 ;
25064   void *argp1 = 0 ;
25065   int res1 = 0 ;
25066   PyObject *swig_obj[1] ;
25067   double result;
25068 
25069   if (!args) SWIG_fail;
25070   swig_obj[0] = args;
25071   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25072   if (!SWIG_IsOK(res1)) {
25073     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_height" "', argument " "1"" of type '" "sip_t *""'");
25074   }
25075   arg1 = (sip_t *)(argp1);
25076   result = (double)sip_t_get_height(arg1);
25077   resultobj = SWIG_From_double((double)(result));
25078   return resultobj;
25079 fail:
25080   return NULL;
25081 }
25082 
25083 
_wrap_sip_t_get_distortion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25084 SWIGINTERN PyObject *_wrap_sip_t_get_distortion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25085   PyObject *resultobj = 0;
25086   sip_t *arg1 = (sip_t *) 0 ;
25087   double arg2 ;
25088   double arg3 ;
25089   double *arg4 = (double *) 0 ;
25090   double *arg5 = (double *) 0 ;
25091   void *argp1 = 0 ;
25092   int res1 = 0 ;
25093   double val2 ;
25094   int ecode2 = 0 ;
25095   double val3 ;
25096   int ecode3 = 0 ;
25097   double temp4 ;
25098   int res4 = SWIG_TMPOBJ ;
25099   double temp5 ;
25100   int res5 = SWIG_TMPOBJ ;
25101   PyObject *swig_obj[3] ;
25102 
25103   arg4 = &temp4;
25104   arg5 = &temp5;
25105   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_distortion", 3, 3, swig_obj)) SWIG_fail;
25106   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25107   if (!SWIG_IsOK(res1)) {
25108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_distortion" "', argument " "1"" of type '" "sip_t *""'");
25109   }
25110   arg1 = (sip_t *)(argp1);
25111   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25112   if (!SWIG_IsOK(ecode2)) {
25113     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_distortion" "', argument " "2"" of type '" "double""'");
25114   }
25115   arg2 = (double)(val2);
25116   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25117   if (!SWIG_IsOK(ecode3)) {
25118     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_distortion" "', argument " "3"" of type '" "double""'");
25119   }
25120   arg3 = (double)(val3);
25121   sip_t_get_distortion(arg1,arg2,arg3,arg4,arg5);
25122   resultobj = SWIG_Py_Void();
25123   if (SWIG_IsTmpObj(res4)) {
25124     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25125   } else {
25126     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
25127     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25128   }
25129   if (SWIG_IsTmpObj(res5)) {
25130     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25131   } else {
25132     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
25133     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25134   }
25135   return resultobj;
25136 fail:
25137   return NULL;
25138 }
25139 
25140 
_wrap_sip_t_get_undistortion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25141 SWIGINTERN PyObject *_wrap_sip_t_get_undistortion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25142   PyObject *resultobj = 0;
25143   sip_t *arg1 = (sip_t *) 0 ;
25144   double arg2 ;
25145   double arg3 ;
25146   double *arg4 = (double *) 0 ;
25147   double *arg5 = (double *) 0 ;
25148   void *argp1 = 0 ;
25149   int res1 = 0 ;
25150   double val2 ;
25151   int ecode2 = 0 ;
25152   double val3 ;
25153   int ecode3 = 0 ;
25154   double temp4 ;
25155   int res4 = SWIG_TMPOBJ ;
25156   double temp5 ;
25157   int res5 = SWIG_TMPOBJ ;
25158   PyObject *swig_obj[3] ;
25159 
25160   arg4 = &temp4;
25161   arg5 = &temp5;
25162   if (!SWIG_Python_UnpackTuple(args, "sip_t_get_undistortion", 3, 3, swig_obj)) SWIG_fail;
25163   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25164   if (!SWIG_IsOK(res1)) {
25165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_t_get_undistortion" "', argument " "1"" of type '" "sip_t *""'");
25166   }
25167   arg1 = (sip_t *)(argp1);
25168   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25169   if (!SWIG_IsOK(ecode2)) {
25170     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_t_get_undistortion" "', argument " "2"" of type '" "double""'");
25171   }
25172   arg2 = (double)(val2);
25173   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25174   if (!SWIG_IsOK(ecode3)) {
25175     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_t_get_undistortion" "', argument " "3"" of type '" "double""'");
25176   }
25177   arg3 = (double)(val3);
25178   sip_t_get_undistortion(arg1,arg2,arg3,arg4,arg5);
25179   resultobj = SWIG_Py_Void();
25180   if (SWIG_IsTmpObj(res4)) {
25181     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25182   } else {
25183     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
25184     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25185   }
25186   if (SWIG_IsTmpObj(res5)) {
25187     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25188   } else {
25189     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
25190     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25191   }
25192   return resultobj;
25193 fail:
25194   return NULL;
25195 }
25196 
25197 
sip_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25198 SWIGINTERN PyObject *sip_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25199   PyObject *obj;
25200   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
25201   SWIG_TypeNewClientData(SWIGTYPE_p_sip_t, SWIG_NewClientData(obj));
25202   return SWIG_Py_Void();
25203 }
25204 
sip_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25205 SWIGINTERN PyObject *sip_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25206   return SWIG_Python_InitShadowInstance(args);
25207 }
25208 
_wrap_sip_create(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25209 SWIGINTERN PyObject *_wrap_sip_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25210   PyObject *resultobj = 0;
25211   sip_t *result = 0 ;
25212 
25213   if (!SWIG_Python_UnpackTuple(args, "sip_create", 0, 0, 0)) SWIG_fail;
25214   result = (sip_t *)sip_create();
25215   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
25216   return resultobj;
25217 fail:
25218   return NULL;
25219 }
25220 
25221 
_wrap_sip_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25222 SWIGINTERN PyObject *_wrap_sip_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25223   PyObject *resultobj = 0;
25224   sip_t *arg1 = (sip_t *) 0 ;
25225   void *argp1 = 0 ;
25226   int res1 = 0 ;
25227   PyObject *swig_obj[1] ;
25228 
25229   if (!args) SWIG_fail;
25230   swig_obj[0] = args;
25231   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25232   if (!SWIG_IsOK(res1)) {
25233     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_free" "', argument " "1"" of type '" "sip_t *""'");
25234   }
25235   arg1 = (sip_t *)(argp1);
25236   sip_free(arg1);
25237   resultobj = SWIG_Py_Void();
25238   return resultobj;
25239 fail:
25240   return NULL;
25241 }
25242 
25243 
_wrap_sip_copy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25244 SWIGINTERN PyObject *_wrap_sip_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25245   PyObject *resultobj = 0;
25246   sip_t *arg1 = (sip_t *) 0 ;
25247   sip_t *arg2 = (sip_t *) 0 ;
25248   void *argp1 = 0 ;
25249   int res1 = 0 ;
25250   void *argp2 = 0 ;
25251   int res2 = 0 ;
25252   PyObject *swig_obj[2] ;
25253 
25254   if (!SWIG_Python_UnpackTuple(args, "sip_copy", 2, 2, swig_obj)) SWIG_fail;
25255   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25256   if (!SWIG_IsOK(res1)) {
25257     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_copy" "', argument " "1"" of type '" "sip_t *""'");
25258   }
25259   arg1 = (sip_t *)(argp1);
25260   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
25261   if (!SWIG_IsOK(res2)) {
25262     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_copy" "', argument " "2"" of type '" "sip_t const *""'");
25263   }
25264   arg2 = (sip_t *)(argp2);
25265   sip_copy(arg1,(sip_t const *)arg2);
25266   resultobj = SWIG_Py_Void();
25267   return resultobj;
25268 fail:
25269   return NULL;
25270 }
25271 
25272 
_wrap_sip_wrap_tan(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25273 SWIGINTERN PyObject *_wrap_sip_wrap_tan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25274   PyObject *resultobj = 0;
25275   tan_t *arg1 = (tan_t *) 0 ;
25276   sip_t *arg2 = (sip_t *) 0 ;
25277   void *argp1 = 0 ;
25278   int res1 = 0 ;
25279   void *argp2 = 0 ;
25280   int res2 = 0 ;
25281   PyObject *swig_obj[2] ;
25282 
25283   if (!SWIG_Python_UnpackTuple(args, "sip_wrap_tan", 2, 2, swig_obj)) SWIG_fail;
25284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
25285   if (!SWIG_IsOK(res1)) {
25286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_wrap_tan" "', argument " "1"" of type '" "tan_t const *""'");
25287   }
25288   arg1 = (tan_t *)(argp1);
25289   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
25290   if (!SWIG_IsOK(res2)) {
25291     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_wrap_tan" "', argument " "2"" of type '" "sip_t *""'");
25292   }
25293   arg2 = (sip_t *)(argp2);
25294   sip_wrap_tan((tan_t const *)arg1,arg2);
25295   resultobj = SWIG_Py_Void();
25296   return resultobj;
25297 fail:
25298   return NULL;
25299 }
25300 
25301 
_wrap_sip_imagew(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25302 SWIGINTERN PyObject *_wrap_sip_imagew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25303   PyObject *resultobj = 0;
25304   sip_t *arg1 = (sip_t *) 0 ;
25305   void *argp1 = 0 ;
25306   int res1 = 0 ;
25307   PyObject *swig_obj[1] ;
25308   double result;
25309 
25310   if (!args) SWIG_fail;
25311   swig_obj[0] = args;
25312   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25313   if (!SWIG_IsOK(res1)) {
25314     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_imagew" "', argument " "1"" of type '" "sip_t *""'");
25315   }
25316   arg1 = (sip_t *)(argp1);
25317   result = (double)sip_imagew(arg1);
25318   resultobj = SWIG_From_double((double)(result));
25319   return resultobj;
25320 fail:
25321   return NULL;
25322 }
25323 
25324 
_wrap_sip_imageh(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25325 SWIGINTERN PyObject *_wrap_sip_imageh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25326   PyObject *resultobj = 0;
25327   sip_t *arg1 = (sip_t *) 0 ;
25328   void *argp1 = 0 ;
25329   int res1 = 0 ;
25330   PyObject *swig_obj[1] ;
25331   double result;
25332 
25333   if (!args) SWIG_fail;
25334   swig_obj[0] = args;
25335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25336   if (!SWIG_IsOK(res1)) {
25337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_imageh" "', argument " "1"" of type '" "sip_t *""'");
25338   }
25339   arg1 = (sip_t *)(argp1);
25340   result = (double)sip_imageh(arg1);
25341   resultobj = SWIG_From_double((double)(result));
25342   return resultobj;
25343 fail:
25344   return NULL;
25345 }
25346 
25347 
_wrap_sip_pixelxy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25348 SWIGINTERN PyObject *_wrap_sip_pixelxy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25349   PyObject *resultobj = 0;
25350   sip_t *arg1 = (sip_t *) 0 ;
25351   double arg2 ;
25352   double arg3 ;
25353   double *arg4 = (double *) 0 ;
25354   double *arg5 = (double *) 0 ;
25355   void *argp1 = 0 ;
25356   int res1 = 0 ;
25357   double val2 ;
25358   int ecode2 = 0 ;
25359   double val3 ;
25360   int ecode3 = 0 ;
25361   void *argp4 = 0 ;
25362   int res4 = 0 ;
25363   void *argp5 = 0 ;
25364   int res5 = 0 ;
25365   PyObject *swig_obj[5] ;
25366 
25367   if (!SWIG_Python_UnpackTuple(args, "sip_pixelxy2radec", 5, 5, swig_obj)) SWIG_fail;
25368   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25369   if (!SWIG_IsOK(res1)) {
25370     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixelxy2radec" "', argument " "1"" of type '" "sip_t const *""'");
25371   }
25372   arg1 = (sip_t *)(argp1);
25373   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25374   if (!SWIG_IsOK(ecode2)) {
25375     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_pixelxy2radec" "', argument " "2"" of type '" "double""'");
25376   }
25377   arg2 = (double)(val2);
25378   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25379   if (!SWIG_IsOK(ecode3)) {
25380     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_pixelxy2radec" "', argument " "3"" of type '" "double""'");
25381   }
25382   arg3 = (double)(val3);
25383   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25384   if (!SWIG_IsOK(res4)) {
25385     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_pixelxy2radec" "', argument " "4"" of type '" "double *""'");
25386   }
25387   arg4 = (double *)(argp4);
25388   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25389   if (!SWIG_IsOK(res5)) {
25390     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_pixelxy2radec" "', argument " "5"" of type '" "double *""'");
25391   }
25392   arg5 = (double *)(argp5);
25393   sip_pixelxy2radec((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25394   resultobj = SWIG_Py_Void();
25395   return resultobj;
25396 fail:
25397   return NULL;
25398 }
25399 
25400 
_wrap_sip_pixelxy2xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25401 SWIGINTERN PyObject *_wrap_sip_pixelxy2xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25402   PyObject *resultobj = 0;
25403   sip_t *arg1 = (sip_t *) 0 ;
25404   double arg2 ;
25405   double arg3 ;
25406   double *arg4 = (double *) 0 ;
25407   void *argp1 = 0 ;
25408   int res1 = 0 ;
25409   double val2 ;
25410   int ecode2 = 0 ;
25411   double val3 ;
25412   int ecode3 = 0 ;
25413   void *argp4 = 0 ;
25414   int res4 = 0 ;
25415   PyObject *swig_obj[4] ;
25416 
25417   if (!SWIG_Python_UnpackTuple(args, "sip_pixelxy2xyzarr", 4, 4, swig_obj)) SWIG_fail;
25418   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25419   if (!SWIG_IsOK(res1)) {
25420     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixelxy2xyzarr" "', argument " "1"" of type '" "sip_t const *""'");
25421   }
25422   arg1 = (sip_t *)(argp1);
25423   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25424   if (!SWIG_IsOK(ecode2)) {
25425     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_pixelxy2xyzarr" "', argument " "2"" of type '" "double""'");
25426   }
25427   arg2 = (double)(val2);
25428   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25429   if (!SWIG_IsOK(ecode3)) {
25430     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_pixelxy2xyzarr" "', argument " "3"" of type '" "double""'");
25431   }
25432   arg3 = (double)(val3);
25433   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25434   if (!SWIG_IsOK(res4)) {
25435     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_pixelxy2xyzarr" "', argument " "4"" of type '" "double *""'");
25436   }
25437   arg4 = (double *)(argp4);
25438   sip_pixelxy2xyzarr((sip_t const *)arg1,arg2,arg3,arg4);
25439   resultobj = SWIG_Py_Void();
25440   return resultobj;
25441 fail:
25442   return NULL;
25443 }
25444 
25445 
_wrap_sip_radec2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25446 SWIGINTERN PyObject *_wrap_sip_radec2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25447   PyObject *resultobj = 0;
25448   sip_t *arg1 = (sip_t *) 0 ;
25449   double arg2 ;
25450   double arg3 ;
25451   double *arg4 = (double *) 0 ;
25452   double *arg5 = (double *) 0 ;
25453   void *argp1 = 0 ;
25454   int res1 = 0 ;
25455   double val2 ;
25456   int ecode2 = 0 ;
25457   double val3 ;
25458   int ecode3 = 0 ;
25459   void *argp4 = 0 ;
25460   int res4 = 0 ;
25461   void *argp5 = 0 ;
25462   int res5 = 0 ;
25463   PyObject *swig_obj[5] ;
25464   anbool result;
25465 
25466   if (!SWIG_Python_UnpackTuple(args, "sip_radec2pixelxy", 5, 5, swig_obj)) SWIG_fail;
25467   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25468   if (!SWIG_IsOK(res1)) {
25469     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_radec2pixelxy" "', argument " "1"" of type '" "sip_t const *""'");
25470   }
25471   arg1 = (sip_t *)(argp1);
25472   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25473   if (!SWIG_IsOK(ecode2)) {
25474     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_radec2pixelxy" "', argument " "2"" of type '" "double""'");
25475   }
25476   arg2 = (double)(val2);
25477   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25478   if (!SWIG_IsOK(ecode3)) {
25479     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_radec2pixelxy" "', argument " "3"" of type '" "double""'");
25480   }
25481   arg3 = (double)(val3);
25482   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25483   if (!SWIG_IsOK(res4)) {
25484     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_radec2pixelxy" "', argument " "4"" of type '" "double *""'");
25485   }
25486   arg4 = (double *)(argp4);
25487   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25488   if (!SWIG_IsOK(res5)) {
25489     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_radec2pixelxy" "', argument " "5"" of type '" "double *""'");
25490   }
25491   arg5 = (double *)(argp5);
25492   result = (anbool)sip_radec2pixelxy((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25493   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
25494   return resultobj;
25495 fail:
25496   return NULL;
25497 }
25498 
25499 
_wrap_sip_radec2pixelxy_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25500 SWIGINTERN PyObject *_wrap_sip_radec2pixelxy_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25501   PyObject *resultobj = 0;
25502   sip_t *arg1 = (sip_t *) 0 ;
25503   double arg2 ;
25504   double arg3 ;
25505   double *arg4 = (double *) 0 ;
25506   double *arg5 = (double *) 0 ;
25507   void *argp1 = 0 ;
25508   int res1 = 0 ;
25509   double val2 ;
25510   int ecode2 = 0 ;
25511   double val3 ;
25512   int ecode3 = 0 ;
25513   void *argp4 = 0 ;
25514   int res4 = 0 ;
25515   void *argp5 = 0 ;
25516   int res5 = 0 ;
25517   PyObject *swig_obj[5] ;
25518   anbool result;
25519 
25520   if (!SWIG_Python_UnpackTuple(args, "sip_radec2pixelxy_check", 5, 5, swig_obj)) SWIG_fail;
25521   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25522   if (!SWIG_IsOK(res1)) {
25523     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_radec2pixelxy_check" "', argument " "1"" of type '" "sip_t const *""'");
25524   }
25525   arg1 = (sip_t *)(argp1);
25526   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25527   if (!SWIG_IsOK(ecode2)) {
25528     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_radec2pixelxy_check" "', argument " "2"" of type '" "double""'");
25529   }
25530   arg2 = (double)(val2);
25531   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25532   if (!SWIG_IsOK(ecode3)) {
25533     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_radec2pixelxy_check" "', argument " "3"" of type '" "double""'");
25534   }
25535   arg3 = (double)(val3);
25536   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25537   if (!SWIG_IsOK(res4)) {
25538     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_radec2pixelxy_check" "', argument " "4"" of type '" "double *""'");
25539   }
25540   arg4 = (double *)(argp4);
25541   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25542   if (!SWIG_IsOK(res5)) {
25543     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_radec2pixelxy_check" "', argument " "5"" of type '" "double *""'");
25544   }
25545   arg5 = (double *)(argp5);
25546   result = (anbool)sip_radec2pixelxy_check((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25547   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
25548   return resultobj;
25549 fail:
25550   return NULL;
25551 }
25552 
25553 
_wrap_sip_xyzarr2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25554 SWIGINTERN PyObject *_wrap_sip_xyzarr2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25555   PyObject *resultobj = 0;
25556   sip_t *arg1 = (sip_t *) 0 ;
25557   double *arg2 = (double *) 0 ;
25558   double *arg3 = (double *) 0 ;
25559   double *arg4 = (double *) 0 ;
25560   void *argp1 = 0 ;
25561   int res1 = 0 ;
25562   void *argp2 = 0 ;
25563   int res2 = 0 ;
25564   void *argp3 = 0 ;
25565   int res3 = 0 ;
25566   void *argp4 = 0 ;
25567   int res4 = 0 ;
25568   PyObject *swig_obj[4] ;
25569   anbool result;
25570 
25571   if (!SWIG_Python_UnpackTuple(args, "sip_xyzarr2pixelxy", 4, 4, swig_obj)) SWIG_fail;
25572   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25573   if (!SWIG_IsOK(res1)) {
25574     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_xyzarr2pixelxy" "', argument " "1"" of type '" "sip_t const *""'");
25575   }
25576   arg1 = (sip_t *)(argp1);
25577   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
25578   if (!SWIG_IsOK(res2)) {
25579     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_xyzarr2pixelxy" "', argument " "2"" of type '" "double const *""'");
25580   }
25581   arg2 = (double *)(argp2);
25582   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
25583   if (!SWIG_IsOK(res3)) {
25584     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_xyzarr2pixelxy" "', argument " "3"" of type '" "double *""'");
25585   }
25586   arg3 = (double *)(argp3);
25587   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25588   if (!SWIG_IsOK(res4)) {
25589     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_xyzarr2pixelxy" "', argument " "4"" of type '" "double *""'");
25590   }
25591   arg4 = (double *)(argp4);
25592   result = (anbool)sip_xyzarr2pixelxy((sip_t const *)arg1,(double const *)arg2,arg3,arg4);
25593   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
25594   return resultobj;
25595 fail:
25596   return NULL;
25597 }
25598 
25599 
_wrap_sip_xyz2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25600 SWIGINTERN PyObject *_wrap_sip_xyz2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25601   PyObject *resultobj = 0;
25602   sip_t *arg1 = (sip_t *) 0 ;
25603   double arg2 ;
25604   double arg3 ;
25605   double arg4 ;
25606   double *arg5 = (double *) 0 ;
25607   double *arg6 = (double *) 0 ;
25608   void *argp1 = 0 ;
25609   int res1 = 0 ;
25610   double val2 ;
25611   int ecode2 = 0 ;
25612   double val3 ;
25613   int ecode3 = 0 ;
25614   double val4 ;
25615   int ecode4 = 0 ;
25616   void *argp5 = 0 ;
25617   int res5 = 0 ;
25618   void *argp6 = 0 ;
25619   int res6 = 0 ;
25620   PyObject *swig_obj[6] ;
25621   anbool result;
25622 
25623   if (!SWIG_Python_UnpackTuple(args, "sip_xyz2pixelxy", 6, 6, swig_obj)) SWIG_fail;
25624   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25625   if (!SWIG_IsOK(res1)) {
25626     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_xyz2pixelxy" "', argument " "1"" of type '" "sip_t const *""'");
25627   }
25628   arg1 = (sip_t *)(argp1);
25629   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25630   if (!SWIG_IsOK(ecode2)) {
25631     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_xyz2pixelxy" "', argument " "2"" of type '" "double""'");
25632   }
25633   arg2 = (double)(val2);
25634   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25635   if (!SWIG_IsOK(ecode3)) {
25636     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_xyz2pixelxy" "', argument " "3"" of type '" "double""'");
25637   }
25638   arg3 = (double)(val3);
25639   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25640   if (!SWIG_IsOK(ecode4)) {
25641     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_xyz2pixelxy" "', argument " "4"" of type '" "double""'");
25642   }
25643   arg4 = (double)(val4);
25644   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25645   if (!SWIG_IsOK(res5)) {
25646     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_xyz2pixelxy" "', argument " "5"" of type '" "double *""'");
25647   }
25648   arg5 = (double *)(argp5);
25649   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_double, 0 |  0 );
25650   if (!SWIG_IsOK(res6)) {
25651     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "sip_xyz2pixelxy" "', argument " "6"" of type '" "double *""'");
25652   }
25653   arg6 = (double *)(argp6);
25654   result = (anbool)sip_xyz2pixelxy((sip_t const *)arg1,arg2,arg3,arg4,arg5,arg6);
25655   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
25656   return resultobj;
25657 fail:
25658   return NULL;
25659 }
25660 
25661 
_wrap_sip_pixelxy2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25662 SWIGINTERN PyObject *_wrap_sip_pixelxy2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25663   PyObject *resultobj = 0;
25664   sip_t *arg1 = (sip_t *) 0 ;
25665   double arg2 ;
25666   double arg3 ;
25667   double *arg4 = (double *) 0 ;
25668   double *arg5 = (double *) 0 ;
25669   void *argp1 = 0 ;
25670   int res1 = 0 ;
25671   double val2 ;
25672   int ecode2 = 0 ;
25673   double val3 ;
25674   int ecode3 = 0 ;
25675   void *argp4 = 0 ;
25676   int res4 = 0 ;
25677   void *argp5 = 0 ;
25678   int res5 = 0 ;
25679   PyObject *swig_obj[5] ;
25680 
25681   if (!SWIG_Python_UnpackTuple(args, "sip_pixelxy2iwc", 5, 5, swig_obj)) SWIG_fail;
25682   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25683   if (!SWIG_IsOK(res1)) {
25684     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixelxy2iwc" "', argument " "1"" of type '" "sip_t const *""'");
25685   }
25686   arg1 = (sip_t *)(argp1);
25687   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25688   if (!SWIG_IsOK(ecode2)) {
25689     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_pixelxy2iwc" "', argument " "2"" of type '" "double""'");
25690   }
25691   arg2 = (double)(val2);
25692   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25693   if (!SWIG_IsOK(ecode3)) {
25694     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_pixelxy2iwc" "', argument " "3"" of type '" "double""'");
25695   }
25696   arg3 = (double)(val3);
25697   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25698   if (!SWIG_IsOK(res4)) {
25699     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_pixelxy2iwc" "', argument " "4"" of type '" "double *""'");
25700   }
25701   arg4 = (double *)(argp4);
25702   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25703   if (!SWIG_IsOK(res5)) {
25704     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_pixelxy2iwc" "', argument " "5"" of type '" "double *""'");
25705   }
25706   arg5 = (double *)(argp5);
25707   sip_pixelxy2iwc((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25708   resultobj = SWIG_Py_Void();
25709   return resultobj;
25710 fail:
25711   return NULL;
25712 }
25713 
25714 
_wrap_tan_det_cd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25715 SWIGINTERN PyObject *_wrap_tan_det_cd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25716   PyObject *resultobj = 0;
25717   tan_t *arg1 = (tan_t *) 0 ;
25718   void *argp1 = 0 ;
25719   int res1 = 0 ;
25720   PyObject *swig_obj[1] ;
25721   double result;
25722 
25723   if (!args) SWIG_fail;
25724   swig_obj[0] = args;
25725   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
25726   if (!SWIG_IsOK(res1)) {
25727     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_det_cd" "', argument " "1"" of type '" "tan_t const *""'");
25728   }
25729   arg1 = (tan_t *)(argp1);
25730   result = (double)tan_det_cd((tan_t const *)arg1);
25731   resultobj = SWIG_From_double((double)(result));
25732   return resultobj;
25733 fail:
25734   return NULL;
25735 }
25736 
25737 
_wrap_sip_det_cd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25738 SWIGINTERN PyObject *_wrap_sip_det_cd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25739   PyObject *resultobj = 0;
25740   sip_t *arg1 = (sip_t *) 0 ;
25741   void *argp1 = 0 ;
25742   int res1 = 0 ;
25743   PyObject *swig_obj[1] ;
25744   double result;
25745 
25746   if (!args) SWIG_fail;
25747   swig_obj[0] = args;
25748   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25749   if (!SWIG_IsOK(res1)) {
25750     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_det_cd" "', argument " "1"" of type '" "sip_t const *""'");
25751   }
25752   arg1 = (sip_t *)(argp1);
25753   result = (double)sip_det_cd((sip_t const *)arg1);
25754   resultobj = SWIG_From_double((double)(result));
25755   return resultobj;
25756 fail:
25757   return NULL;
25758 }
25759 
25760 
_wrap_tan_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25761 SWIGINTERN PyObject *_wrap_tan_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25762   PyObject *resultobj = 0;
25763   tan_t *arg1 = (tan_t *) 0 ;
25764   void *argp1 = 0 ;
25765   int res1 = 0 ;
25766   PyObject *swig_obj[1] ;
25767   double result;
25768 
25769   if (!args) SWIG_fail;
25770   swig_obj[0] = args;
25771   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
25772   if (!SWIG_IsOK(res1)) {
25773     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_pixel_scale" "', argument " "1"" of type '" "tan_t const *""'");
25774   }
25775   arg1 = (tan_t *)(argp1);
25776   result = (double)tan_pixel_scale((tan_t const *)arg1);
25777   resultobj = SWIG_From_double((double)(result));
25778   return resultobj;
25779 fail:
25780   return NULL;
25781 }
25782 
25783 
_wrap_sip_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25784 SWIGINTERN PyObject *_wrap_sip_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25785   PyObject *resultobj = 0;
25786   sip_t *arg1 = (sip_t *) 0 ;
25787   void *argp1 = 0 ;
25788   int res1 = 0 ;
25789   PyObject *swig_obj[1] ;
25790   double result;
25791 
25792   if (!args) SWIG_fail;
25793   swig_obj[0] = args;
25794   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25795   if (!SWIG_IsOK(res1)) {
25796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixel_scale" "', argument " "1"" of type '" "sip_t const *""'");
25797   }
25798   arg1 = (sip_t *)(argp1);
25799   result = (double)sip_pixel_scale((sip_t const *)arg1);
25800   resultobj = SWIG_From_double((double)(result));
25801   return resultobj;
25802 fail:
25803   return NULL;
25804 }
25805 
25806 
_wrap_sip_calc_inv_distortion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25807 SWIGINTERN PyObject *_wrap_sip_calc_inv_distortion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25808   PyObject *resultobj = 0;
25809   sip_t *arg1 = (sip_t *) 0 ;
25810   double arg2 ;
25811   double arg3 ;
25812   double *arg4 = (double *) 0 ;
25813   double *arg5 = (double *) 0 ;
25814   void *argp1 = 0 ;
25815   int res1 = 0 ;
25816   double val2 ;
25817   int ecode2 = 0 ;
25818   double val3 ;
25819   int ecode3 = 0 ;
25820   void *argp4 = 0 ;
25821   int res4 = 0 ;
25822   void *argp5 = 0 ;
25823   int res5 = 0 ;
25824   PyObject *swig_obj[5] ;
25825 
25826   if (!SWIG_Python_UnpackTuple(args, "sip_calc_inv_distortion", 5, 5, swig_obj)) SWIG_fail;
25827   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25828   if (!SWIG_IsOK(res1)) {
25829     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_calc_inv_distortion" "', argument " "1"" of type '" "sip_t const *""'");
25830   }
25831   arg1 = (sip_t *)(argp1);
25832   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25833   if (!SWIG_IsOK(ecode2)) {
25834     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_calc_inv_distortion" "', argument " "2"" of type '" "double""'");
25835   }
25836   arg2 = (double)(val2);
25837   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25838   if (!SWIG_IsOK(ecode3)) {
25839     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_calc_inv_distortion" "', argument " "3"" of type '" "double""'");
25840   }
25841   arg3 = (double)(val3);
25842   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25843   if (!SWIG_IsOK(res4)) {
25844     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_calc_inv_distortion" "', argument " "4"" of type '" "double *""'");
25845   }
25846   arg4 = (double *)(argp4);
25847   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25848   if (!SWIG_IsOK(res5)) {
25849     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_calc_inv_distortion" "', argument " "5"" of type '" "double *""'");
25850   }
25851   arg5 = (double *)(argp5);
25852   sip_calc_inv_distortion((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25853   resultobj = SWIG_Py_Void();
25854   return resultobj;
25855 fail:
25856   return NULL;
25857 }
25858 
25859 
_wrap_sip_calc_distortion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25860 SWIGINTERN PyObject *_wrap_sip_calc_distortion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25861   PyObject *resultobj = 0;
25862   sip_t *arg1 = (sip_t *) 0 ;
25863   double arg2 ;
25864   double arg3 ;
25865   double *arg4 = (double *) 0 ;
25866   double *arg5 = (double *) 0 ;
25867   void *argp1 = 0 ;
25868   int res1 = 0 ;
25869   double val2 ;
25870   int ecode2 = 0 ;
25871   double val3 ;
25872   int ecode3 = 0 ;
25873   void *argp4 = 0 ;
25874   int res4 = 0 ;
25875   void *argp5 = 0 ;
25876   int res5 = 0 ;
25877   PyObject *swig_obj[5] ;
25878 
25879   if (!SWIG_Python_UnpackTuple(args, "sip_calc_distortion", 5, 5, swig_obj)) SWIG_fail;
25880   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25881   if (!SWIG_IsOK(res1)) {
25882     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_calc_distortion" "', argument " "1"" of type '" "sip_t const *""'");
25883   }
25884   arg1 = (sip_t *)(argp1);
25885   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25886   if (!SWIG_IsOK(ecode2)) {
25887     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_calc_distortion" "', argument " "2"" of type '" "double""'");
25888   }
25889   arg2 = (double)(val2);
25890   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25891   if (!SWIG_IsOK(ecode3)) {
25892     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_calc_distortion" "', argument " "3"" of type '" "double""'");
25893   }
25894   arg3 = (double)(val3);
25895   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
25896   if (!SWIG_IsOK(res4)) {
25897     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_calc_distortion" "', argument " "4"" of type '" "double *""'");
25898   }
25899   arg4 = (double *)(argp4);
25900   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
25901   if (!SWIG_IsOK(res5)) {
25902     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_calc_distortion" "', argument " "5"" of type '" "double *""'");
25903   }
25904   arg5 = (double *)(argp5);
25905   sip_calc_distortion((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25906   resultobj = SWIG_Py_Void();
25907   return resultobj;
25908 fail:
25909   return NULL;
25910 }
25911 
25912 
_wrap_sip_pixel_distortion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25913 SWIGINTERN PyObject *_wrap_sip_pixel_distortion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25914   PyObject *resultobj = 0;
25915   sip_t *arg1 = (sip_t *) 0 ;
25916   double arg2 ;
25917   double arg3 ;
25918   double *arg4 = (double *) 0 ;
25919   double *arg5 = (double *) 0 ;
25920   void *argp1 = 0 ;
25921   int res1 = 0 ;
25922   double val2 ;
25923   int ecode2 = 0 ;
25924   double val3 ;
25925   int ecode3 = 0 ;
25926   double temp4 ;
25927   int res4 = SWIG_TMPOBJ ;
25928   double temp5 ;
25929   int res5 = SWIG_TMPOBJ ;
25930   PyObject *swig_obj[3] ;
25931 
25932   arg4 = &temp4;
25933   arg5 = &temp5;
25934   if (!SWIG_Python_UnpackTuple(args, "sip_pixel_distortion", 3, 3, swig_obj)) SWIG_fail;
25935   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25936   if (!SWIG_IsOK(res1)) {
25937     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixel_distortion" "', argument " "1"" of type '" "sip_t const *""'");
25938   }
25939   arg1 = (sip_t *)(argp1);
25940   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25941   if (!SWIG_IsOK(ecode2)) {
25942     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_pixel_distortion" "', argument " "2"" of type '" "double""'");
25943   }
25944   arg2 = (double)(val2);
25945   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25946   if (!SWIG_IsOK(ecode3)) {
25947     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_pixel_distortion" "', argument " "3"" of type '" "double""'");
25948   }
25949   arg3 = (double)(val3);
25950   sip_pixel_distortion((sip_t const *)arg1,arg2,arg3,arg4,arg5);
25951   resultobj = SWIG_Py_Void();
25952   if (SWIG_IsTmpObj(res4)) {
25953     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25954   } else {
25955     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
25956     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25957   }
25958   if (SWIG_IsTmpObj(res5)) {
25959     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25960   } else {
25961     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
25962     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25963   }
25964   return resultobj;
25965 fail:
25966   return NULL;
25967 }
25968 
25969 
_wrap_sip_pixel_undistortion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25970 SWIGINTERN PyObject *_wrap_sip_pixel_undistortion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25971   PyObject *resultobj = 0;
25972   sip_t *arg1 = (sip_t *) 0 ;
25973   double arg2 ;
25974   double arg3 ;
25975   double *arg4 = (double *) 0 ;
25976   double *arg5 = (double *) 0 ;
25977   void *argp1 = 0 ;
25978   int res1 = 0 ;
25979   double val2 ;
25980   int ecode2 = 0 ;
25981   double val3 ;
25982   int ecode3 = 0 ;
25983   double temp4 ;
25984   int res4 = SWIG_TMPOBJ ;
25985   double temp5 ;
25986   int res5 = SWIG_TMPOBJ ;
25987   PyObject *swig_obj[3] ;
25988 
25989   arg4 = &temp4;
25990   arg5 = &temp5;
25991   if (!SWIG_Python_UnpackTuple(args, "sip_pixel_undistortion", 3, 3, swig_obj)) SWIG_fail;
25992   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
25993   if (!SWIG_IsOK(res1)) {
25994     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixel_undistortion" "', argument " "1"" of type '" "sip_t const *""'");
25995   }
25996   arg1 = (sip_t *)(argp1);
25997   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25998   if (!SWIG_IsOK(ecode2)) {
25999     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_pixel_undistortion" "', argument " "2"" of type '" "double""'");
26000   }
26001   arg2 = (double)(val2);
26002   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26003   if (!SWIG_IsOK(ecode3)) {
26004     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_pixel_undistortion" "', argument " "3"" of type '" "double""'");
26005   }
26006   arg3 = (double)(val3);
26007   sip_pixel_undistortion((sip_t const *)arg1,arg2,arg3,arg4,arg5);
26008   resultobj = SWIG_Py_Void();
26009   if (SWIG_IsTmpObj(res4)) {
26010     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26011   } else {
26012     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26013     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26014   }
26015   if (SWIG_IsTmpObj(res5)) {
26016     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26017   } else {
26018     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26019     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26020   }
26021   return resultobj;
26022 fail:
26023   return NULL;
26024 }
26025 
26026 
_wrap_tan_pixelxy2xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26027 SWIGINTERN PyObject *_wrap_tan_pixelxy2xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26028   PyObject *resultobj = 0;
26029   tan_t *arg1 = (tan_t *) 0 ;
26030   double arg2 ;
26031   double arg3 ;
26032   double *arg4 = (double *) 0 ;
26033   void *argp1 = 0 ;
26034   int res1 = 0 ;
26035   double val2 ;
26036   int ecode2 = 0 ;
26037   double val3 ;
26038   int ecode3 = 0 ;
26039   void *argp4 = 0 ;
26040   int res4 = 0 ;
26041   PyObject *swig_obj[4] ;
26042 
26043   if (!SWIG_Python_UnpackTuple(args, "tan_pixelxy2xyzarr", 4, 4, swig_obj)) SWIG_fail;
26044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26045   if (!SWIG_IsOK(res1)) {
26046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_pixelxy2xyzarr" "', argument " "1"" of type '" "tan_t const *""'");
26047   }
26048   arg1 = (tan_t *)(argp1);
26049   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26050   if (!SWIG_IsOK(ecode2)) {
26051     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_pixelxy2xyzarr" "', argument " "2"" of type '" "double""'");
26052   }
26053   arg2 = (double)(val2);
26054   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26055   if (!SWIG_IsOK(ecode3)) {
26056     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_pixelxy2xyzarr" "', argument " "3"" of type '" "double""'");
26057   }
26058   arg3 = (double)(val3);
26059   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26060   if (!SWIG_IsOK(res4)) {
26061     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_pixelxy2xyzarr" "', argument " "4"" of type '" "double *""'");
26062   }
26063   arg4 = (double *)(argp4);
26064   tan_pixelxy2xyzarr((tan_t const *)arg1,arg2,arg3,arg4);
26065   resultobj = SWIG_Py_Void();
26066   return resultobj;
26067 fail:
26068   return NULL;
26069 }
26070 
26071 
_wrap_tan_pixelxy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26072 SWIGINTERN PyObject *_wrap_tan_pixelxy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26073   PyObject *resultobj = 0;
26074   tan_t *arg1 = (tan_t *) 0 ;
26075   double arg2 ;
26076   double arg3 ;
26077   double *arg4 = (double *) 0 ;
26078   double *arg5 = (double *) 0 ;
26079   void *argp1 = 0 ;
26080   int res1 = 0 ;
26081   double val2 ;
26082   int ecode2 = 0 ;
26083   double val3 ;
26084   int ecode3 = 0 ;
26085   double temp4 ;
26086   int res4 = SWIG_TMPOBJ ;
26087   double temp5 ;
26088   int res5 = SWIG_TMPOBJ ;
26089   PyObject *swig_obj[3] ;
26090 
26091   arg4 = &temp4;
26092   arg5 = &temp5;
26093   if (!SWIG_Python_UnpackTuple(args, "tan_pixelxy2radec", 3, 3, swig_obj)) SWIG_fail;
26094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26095   if (!SWIG_IsOK(res1)) {
26096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_pixelxy2radec" "', argument " "1"" of type '" "tan_t const *""'");
26097   }
26098   arg1 = (tan_t *)(argp1);
26099   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26100   if (!SWIG_IsOK(ecode2)) {
26101     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_pixelxy2radec" "', argument " "2"" of type '" "double""'");
26102   }
26103   arg2 = (double)(val2);
26104   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26105   if (!SWIG_IsOK(ecode3)) {
26106     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_pixelxy2radec" "', argument " "3"" of type '" "double""'");
26107   }
26108   arg3 = (double)(val3);
26109   tan_pixelxy2radec((tan_t const *)arg1,arg2,arg3,arg4,arg5);
26110   resultobj = SWIG_Py_Void();
26111   if (SWIG_IsTmpObj(res4)) {
26112     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26113   } else {
26114     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26115     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26116   }
26117   if (SWIG_IsTmpObj(res5)) {
26118     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26119   } else {
26120     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26121     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26122   }
26123   return resultobj;
26124 fail:
26125   return NULL;
26126 }
26127 
26128 
_wrap_tan_pixelxy2radecarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26129 SWIGINTERN PyObject *_wrap_tan_pixelxy2radecarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26130   PyObject *resultobj = 0;
26131   tan_t *arg1 = (tan_t *) 0 ;
26132   double arg2 ;
26133   double arg3 ;
26134   double *arg4 = (double *) 0 ;
26135   void *argp1 = 0 ;
26136   int res1 = 0 ;
26137   double val2 ;
26138   int ecode2 = 0 ;
26139   double val3 ;
26140   int ecode3 = 0 ;
26141   void *argp4 = 0 ;
26142   int res4 = 0 ;
26143   PyObject *swig_obj[4] ;
26144 
26145   if (!SWIG_Python_UnpackTuple(args, "tan_pixelxy2radecarr", 4, 4, swig_obj)) SWIG_fail;
26146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26147   if (!SWIG_IsOK(res1)) {
26148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_pixelxy2radecarr" "', argument " "1"" of type '" "tan_t const *""'");
26149   }
26150   arg1 = (tan_t *)(argp1);
26151   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26152   if (!SWIG_IsOK(ecode2)) {
26153     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_pixelxy2radecarr" "', argument " "2"" of type '" "double""'");
26154   }
26155   arg2 = (double)(val2);
26156   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26157   if (!SWIG_IsOK(ecode3)) {
26158     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_pixelxy2radecarr" "', argument " "3"" of type '" "double""'");
26159   }
26160   arg3 = (double)(val3);
26161   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26162   if (!SWIG_IsOK(res4)) {
26163     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_pixelxy2radecarr" "', argument " "4"" of type '" "double *""'");
26164   }
26165   arg4 = (double *)(argp4);
26166   tan_pixelxy2radecarr((tan_t const *)arg1,arg2,arg3,arg4);
26167   resultobj = SWIG_Py_Void();
26168   return resultobj;
26169 fail:
26170   return NULL;
26171 }
26172 
26173 
_wrap_tan_radec2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26174 SWIGINTERN PyObject *_wrap_tan_radec2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26175   PyObject *resultobj = 0;
26176   tan_t *arg1 = (tan_t *) 0 ;
26177   double arg2 ;
26178   double arg3 ;
26179   double *arg4 = (double *) 0 ;
26180   double *arg5 = (double *) 0 ;
26181   void *argp1 = 0 ;
26182   int res1 = 0 ;
26183   double val2 ;
26184   int ecode2 = 0 ;
26185   double val3 ;
26186   int ecode3 = 0 ;
26187   void *argp4 = 0 ;
26188   int res4 = 0 ;
26189   void *argp5 = 0 ;
26190   int res5 = 0 ;
26191   PyObject *swig_obj[5] ;
26192   anbool result;
26193 
26194   if (!SWIG_Python_UnpackTuple(args, "tan_radec2pixelxy", 5, 5, swig_obj)) SWIG_fail;
26195   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26196   if (!SWIG_IsOK(res1)) {
26197     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_radec2pixelxy" "', argument " "1"" of type '" "tan_t const *""'");
26198   }
26199   arg1 = (tan_t *)(argp1);
26200   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26201   if (!SWIG_IsOK(ecode2)) {
26202     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_radec2pixelxy" "', argument " "2"" of type '" "double""'");
26203   }
26204   arg2 = (double)(val2);
26205   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26206   if (!SWIG_IsOK(ecode3)) {
26207     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_radec2pixelxy" "', argument " "3"" of type '" "double""'");
26208   }
26209   arg3 = (double)(val3);
26210   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26211   if (!SWIG_IsOK(res4)) {
26212     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_radec2pixelxy" "', argument " "4"" of type '" "double *""'");
26213   }
26214   arg4 = (double *)(argp4);
26215   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
26216   if (!SWIG_IsOK(res5)) {
26217     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "tan_radec2pixelxy" "', argument " "5"" of type '" "double *""'");
26218   }
26219   arg5 = (double *)(argp5);
26220   result = (anbool)tan_radec2pixelxy((tan_t const *)arg1,arg2,arg3,arg4,arg5);
26221   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
26222   return resultobj;
26223 fail:
26224   return NULL;
26225 }
26226 
26227 
_wrap_tan_xyzarr2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26228 SWIGINTERN PyObject *_wrap_tan_xyzarr2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26229   PyObject *resultobj = 0;
26230   tan_t *arg1 = (tan_t *) 0 ;
26231   double *arg2 = (double *) 0 ;
26232   double *arg3 = (double *) 0 ;
26233   double *arg4 = (double *) 0 ;
26234   void *argp1 = 0 ;
26235   int res1 = 0 ;
26236   void *argp2 = 0 ;
26237   int res2 = 0 ;
26238   void *argp3 = 0 ;
26239   int res3 = 0 ;
26240   void *argp4 = 0 ;
26241   int res4 = 0 ;
26242   PyObject *swig_obj[4] ;
26243   anbool result;
26244 
26245   if (!SWIG_Python_UnpackTuple(args, "tan_xyzarr2pixelxy", 4, 4, swig_obj)) SWIG_fail;
26246   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26247   if (!SWIG_IsOK(res1)) {
26248     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_xyzarr2pixelxy" "', argument " "1"" of type '" "tan_t const *""'");
26249   }
26250   arg1 = (tan_t *)(argp1);
26251   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
26252   if (!SWIG_IsOK(res2)) {
26253     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_xyzarr2pixelxy" "', argument " "2"" of type '" "double const *""'");
26254   }
26255   arg2 = (double *)(argp2);
26256   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
26257   if (!SWIG_IsOK(res3)) {
26258     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tan_xyzarr2pixelxy" "', argument " "3"" of type '" "double *""'");
26259   }
26260   arg3 = (double *)(argp3);
26261   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26262   if (!SWIG_IsOK(res4)) {
26263     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_xyzarr2pixelxy" "', argument " "4"" of type '" "double *""'");
26264   }
26265   arg4 = (double *)(argp4);
26266   result = (anbool)tan_xyzarr2pixelxy((tan_t const *)arg1,(double const *)arg2,arg3,arg4);
26267   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
26268   return resultobj;
26269 fail:
26270   return NULL;
26271 }
26272 
26273 
_wrap_tan_iwc2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26274 SWIGINTERN PyObject *_wrap_tan_iwc2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26275   PyObject *resultobj = 0;
26276   tan_t *arg1 = (tan_t *) 0 ;
26277   double arg2 ;
26278   double arg3 ;
26279   double *arg4 = (double *) 0 ;
26280   double *arg5 = (double *) 0 ;
26281   void *argp1 = 0 ;
26282   int res1 = 0 ;
26283   double val2 ;
26284   int ecode2 = 0 ;
26285   double val3 ;
26286   int ecode3 = 0 ;
26287   void *argp4 = 0 ;
26288   int res4 = 0 ;
26289   void *argp5 = 0 ;
26290   int res5 = 0 ;
26291   PyObject *swig_obj[5] ;
26292 
26293   if (!SWIG_Python_UnpackTuple(args, "tan_iwc2pixelxy", 5, 5, swig_obj)) SWIG_fail;
26294   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26295   if (!SWIG_IsOK(res1)) {
26296     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_iwc2pixelxy" "', argument " "1"" of type '" "tan_t const *""'");
26297   }
26298   arg1 = (tan_t *)(argp1);
26299   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26300   if (!SWIG_IsOK(ecode2)) {
26301     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_iwc2pixelxy" "', argument " "2"" of type '" "double""'");
26302   }
26303   arg2 = (double)(val2);
26304   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26305   if (!SWIG_IsOK(ecode3)) {
26306     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_iwc2pixelxy" "', argument " "3"" of type '" "double""'");
26307   }
26308   arg3 = (double)(val3);
26309   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26310   if (!SWIG_IsOK(res4)) {
26311     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_iwc2pixelxy" "', argument " "4"" of type '" "double *""'");
26312   }
26313   arg4 = (double *)(argp4);
26314   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
26315   if (!SWIG_IsOK(res5)) {
26316     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "tan_iwc2pixelxy" "', argument " "5"" of type '" "double *""'");
26317   }
26318   arg5 = (double *)(argp5);
26319   tan_iwc2pixelxy((tan_t const *)arg1,arg2,arg3,arg4,arg5);
26320   resultobj = SWIG_Py_Void();
26321   return resultobj;
26322 fail:
26323   return NULL;
26324 }
26325 
26326 
_wrap_tan_iwc2xyzarr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26327 SWIGINTERN PyObject *_wrap_tan_iwc2xyzarr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26328   PyObject *resultobj = 0;
26329   tan_t *arg1 = (tan_t *) 0 ;
26330   double arg2 ;
26331   double arg3 ;
26332   double *arg4 = (double *) 0 ;
26333   void *argp1 = 0 ;
26334   int res1 = 0 ;
26335   double val2 ;
26336   int ecode2 = 0 ;
26337   double val3 ;
26338   int ecode3 = 0 ;
26339   void *argp4 = 0 ;
26340   int res4 = 0 ;
26341   PyObject *swig_obj[4] ;
26342 
26343   if (!SWIG_Python_UnpackTuple(args, "tan_iwc2xyzarr", 4, 4, swig_obj)) SWIG_fail;
26344   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26345   if (!SWIG_IsOK(res1)) {
26346     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_iwc2xyzarr" "', argument " "1"" of type '" "tan_t const *""'");
26347   }
26348   arg1 = (tan_t *)(argp1);
26349   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26350   if (!SWIG_IsOK(ecode2)) {
26351     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_iwc2xyzarr" "', argument " "2"" of type '" "double""'");
26352   }
26353   arg2 = (double)(val2);
26354   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26355   if (!SWIG_IsOK(ecode3)) {
26356     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_iwc2xyzarr" "', argument " "3"" of type '" "double""'");
26357   }
26358   arg3 = (double)(val3);
26359   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26360   if (!SWIG_IsOK(res4)) {
26361     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_iwc2xyzarr" "', argument " "4"" of type '" "double *""'");
26362   }
26363   arg4 = (double *)(argp4);
26364   tan_iwc2xyzarr((tan_t const *)arg1,arg2,arg3,arg4);
26365   resultobj = SWIG_Py_Void();
26366   return resultobj;
26367 fail:
26368   return NULL;
26369 }
26370 
26371 
_wrap_tan_iwc2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26372 SWIGINTERN PyObject *_wrap_tan_iwc2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26373   PyObject *resultobj = 0;
26374   tan_t *arg1 = (tan_t *) 0 ;
26375   double arg2 ;
26376   double arg3 ;
26377   double *arg4 = (double *) 0 ;
26378   double *arg5 = (double *) 0 ;
26379   void *argp1 = 0 ;
26380   int res1 = 0 ;
26381   double val2 ;
26382   int ecode2 = 0 ;
26383   double val3 ;
26384   int ecode3 = 0 ;
26385   double temp4 ;
26386   int res4 = SWIG_TMPOBJ ;
26387   double temp5 ;
26388   int res5 = SWIG_TMPOBJ ;
26389   PyObject *swig_obj[3] ;
26390 
26391   arg4 = &temp4;
26392   arg5 = &temp5;
26393   if (!SWIG_Python_UnpackTuple(args, "tan_iwc2radec", 3, 3, swig_obj)) SWIG_fail;
26394   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26395   if (!SWIG_IsOK(res1)) {
26396     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_iwc2radec" "', argument " "1"" of type '" "tan_t const *""'");
26397   }
26398   arg1 = (tan_t *)(argp1);
26399   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26400   if (!SWIG_IsOK(ecode2)) {
26401     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_iwc2radec" "', argument " "2"" of type '" "double""'");
26402   }
26403   arg2 = (double)(val2);
26404   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26405   if (!SWIG_IsOK(ecode3)) {
26406     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_iwc2radec" "', argument " "3"" of type '" "double""'");
26407   }
26408   arg3 = (double)(val3);
26409   tan_iwc2radec((tan_t const *)arg1,arg2,arg3,arg4,arg5);
26410   resultobj = SWIG_Py_Void();
26411   if (SWIG_IsTmpObj(res4)) {
26412     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26413   } else {
26414     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26415     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26416   }
26417   if (SWIG_IsTmpObj(res5)) {
26418     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26419   } else {
26420     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26421     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26422   }
26423   return resultobj;
26424 fail:
26425   return NULL;
26426 }
26427 
26428 
_wrap_tan_pixelxy2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26429 SWIGINTERN PyObject *_wrap_tan_pixelxy2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26430   PyObject *resultobj = 0;
26431   tan_t *arg1 = (tan_t *) 0 ;
26432   double arg2 ;
26433   double arg3 ;
26434   double *arg4 = (double *) 0 ;
26435   double *arg5 = (double *) 0 ;
26436   void *argp1 = 0 ;
26437   int res1 = 0 ;
26438   double val2 ;
26439   int ecode2 = 0 ;
26440   double val3 ;
26441   int ecode3 = 0 ;
26442   void *argp4 = 0 ;
26443   int res4 = 0 ;
26444   void *argp5 = 0 ;
26445   int res5 = 0 ;
26446   PyObject *swig_obj[5] ;
26447 
26448   if (!SWIG_Python_UnpackTuple(args, "tan_pixelxy2iwc", 5, 5, swig_obj)) SWIG_fail;
26449   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26450   if (!SWIG_IsOK(res1)) {
26451     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_pixelxy2iwc" "', argument " "1"" of type '" "tan_t const *""'");
26452   }
26453   arg1 = (tan_t *)(argp1);
26454   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26455   if (!SWIG_IsOK(ecode2)) {
26456     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_pixelxy2iwc" "', argument " "2"" of type '" "double""'");
26457   }
26458   arg2 = (double)(val2);
26459   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26460   if (!SWIG_IsOK(ecode3)) {
26461     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_pixelxy2iwc" "', argument " "3"" of type '" "double""'");
26462   }
26463   arg3 = (double)(val3);
26464   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26465   if (!SWIG_IsOK(res4)) {
26466     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_pixelxy2iwc" "', argument " "4"" of type '" "double *""'");
26467   }
26468   arg4 = (double *)(argp4);
26469   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
26470   if (!SWIG_IsOK(res5)) {
26471     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "tan_pixelxy2iwc" "', argument " "5"" of type '" "double *""'");
26472   }
26473   arg5 = (double *)(argp5);
26474   tan_pixelxy2iwc((tan_t const *)arg1,arg2,arg3,arg4,arg5);
26475   resultobj = SWIG_Py_Void();
26476   return resultobj;
26477 fail:
26478   return NULL;
26479 }
26480 
26481 
_wrap_tan_xyzarr2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26482 SWIGINTERN PyObject *_wrap_tan_xyzarr2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26483   PyObject *resultobj = 0;
26484   tan_t *arg1 = (tan_t *) 0 ;
26485   double *arg2 = (double *) 0 ;
26486   double *arg3 = (double *) 0 ;
26487   double *arg4 = (double *) 0 ;
26488   void *argp1 = 0 ;
26489   int res1 = 0 ;
26490   void *argp2 = 0 ;
26491   int res2 = 0 ;
26492   void *argp3 = 0 ;
26493   int res3 = 0 ;
26494   void *argp4 = 0 ;
26495   int res4 = 0 ;
26496   PyObject *swig_obj[4] ;
26497   anbool result;
26498 
26499   if (!SWIG_Python_UnpackTuple(args, "tan_xyzarr2iwc", 4, 4, swig_obj)) SWIG_fail;
26500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26501   if (!SWIG_IsOK(res1)) {
26502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_xyzarr2iwc" "', argument " "1"" of type '" "tan_t const *""'");
26503   }
26504   arg1 = (tan_t *)(argp1);
26505   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
26506   if (!SWIG_IsOK(res2)) {
26507     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_xyzarr2iwc" "', argument " "2"" of type '" "double const *""'");
26508   }
26509   arg2 = (double *)(argp2);
26510   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
26511   if (!SWIG_IsOK(res3)) {
26512     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tan_xyzarr2iwc" "', argument " "3"" of type '" "double *""'");
26513   }
26514   arg3 = (double *)(argp3);
26515   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26516   if (!SWIG_IsOK(res4)) {
26517     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_xyzarr2iwc" "', argument " "4"" of type '" "double *""'");
26518   }
26519   arg4 = (double *)(argp4);
26520   result = (anbool)tan_xyzarr2iwc((tan_t const *)arg1,(double const *)arg2,arg3,arg4);
26521   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
26522   return resultobj;
26523 fail:
26524   return NULL;
26525 }
26526 
26527 
_wrap_tan_radec2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26528 SWIGINTERN PyObject *_wrap_tan_radec2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26529   PyObject *resultobj = 0;
26530   tan_t *arg1 = (tan_t *) 0 ;
26531   double arg2 ;
26532   double arg3 ;
26533   double *arg4 = (double *) 0 ;
26534   double *arg5 = (double *) 0 ;
26535   void *argp1 = 0 ;
26536   int res1 = 0 ;
26537   double val2 ;
26538   int ecode2 = 0 ;
26539   double val3 ;
26540   int ecode3 = 0 ;
26541   void *argp4 = 0 ;
26542   int res4 = 0 ;
26543   void *argp5 = 0 ;
26544   int res5 = 0 ;
26545   PyObject *swig_obj[5] ;
26546   anbool result;
26547 
26548   if (!SWIG_Python_UnpackTuple(args, "tan_radec2iwc", 5, 5, swig_obj)) SWIG_fail;
26549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26550   if (!SWIG_IsOK(res1)) {
26551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_radec2iwc" "', argument " "1"" of type '" "tan_t const *""'");
26552   }
26553   arg1 = (tan_t *)(argp1);
26554   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26555   if (!SWIG_IsOK(ecode2)) {
26556     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_radec2iwc" "', argument " "2"" of type '" "double""'");
26557   }
26558   arg2 = (double)(val2);
26559   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26560   if (!SWIG_IsOK(ecode3)) {
26561     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_radec2iwc" "', argument " "3"" of type '" "double""'");
26562   }
26563   arg3 = (double)(val3);
26564   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26565   if (!SWIG_IsOK(res4)) {
26566     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_radec2iwc" "', argument " "4"" of type '" "double *""'");
26567   }
26568   arg4 = (double *)(argp4);
26569   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
26570   if (!SWIG_IsOK(res5)) {
26571     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "tan_radec2iwc" "', argument " "5"" of type '" "double *""'");
26572   }
26573   arg5 = (double *)(argp5);
26574   result = (anbool)tan_radec2iwc((tan_t const *)arg1,arg2,arg3,arg4,arg5);
26575   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
26576   return resultobj;
26577 fail:
26578   return NULL;
26579 }
26580 
26581 
_wrap_sip_xyzarr2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26582 SWIGINTERN PyObject *_wrap_sip_xyzarr2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26583   PyObject *resultobj = 0;
26584   sip_t *arg1 = (sip_t *) 0 ;
26585   double *arg2 = (double *) 0 ;
26586   double *arg3 = (double *) 0 ;
26587   double *arg4 = (double *) 0 ;
26588   void *argp1 = 0 ;
26589   int res1 = 0 ;
26590   void *argp2 = 0 ;
26591   int res2 = 0 ;
26592   void *argp3 = 0 ;
26593   int res3 = 0 ;
26594   void *argp4 = 0 ;
26595   int res4 = 0 ;
26596   PyObject *swig_obj[4] ;
26597   anbool result;
26598 
26599   if (!SWIG_Python_UnpackTuple(args, "sip_xyzarr2iwc", 4, 4, swig_obj)) SWIG_fail;
26600   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26601   if (!SWIG_IsOK(res1)) {
26602     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_xyzarr2iwc" "', argument " "1"" of type '" "sip_t const *""'");
26603   }
26604   arg1 = (sip_t *)(argp1);
26605   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
26606   if (!SWIG_IsOK(res2)) {
26607     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_xyzarr2iwc" "', argument " "2"" of type '" "double const *""'");
26608   }
26609   arg2 = (double *)(argp2);
26610   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
26611   if (!SWIG_IsOK(res3)) {
26612     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_xyzarr2iwc" "', argument " "3"" of type '" "double *""'");
26613   }
26614   arg3 = (double *)(argp3);
26615   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26616   if (!SWIG_IsOK(res4)) {
26617     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_xyzarr2iwc" "', argument " "4"" of type '" "double *""'");
26618   }
26619   arg4 = (double *)(argp4);
26620   result = (anbool)sip_xyzarr2iwc((sip_t const *)arg1,(double const *)arg2,arg3,arg4);
26621   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
26622   return resultobj;
26623 fail:
26624   return NULL;
26625 }
26626 
26627 
_wrap_sip_radec2iwc(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26628 SWIGINTERN PyObject *_wrap_sip_radec2iwc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26629   PyObject *resultobj = 0;
26630   sip_t *arg1 = (sip_t *) 0 ;
26631   double arg2 ;
26632   double arg3 ;
26633   double *arg4 = (double *) 0 ;
26634   double *arg5 = (double *) 0 ;
26635   void *argp1 = 0 ;
26636   int res1 = 0 ;
26637   double val2 ;
26638   int ecode2 = 0 ;
26639   double val3 ;
26640   int ecode3 = 0 ;
26641   void *argp4 = 0 ;
26642   int res4 = 0 ;
26643   void *argp5 = 0 ;
26644   int res5 = 0 ;
26645   PyObject *swig_obj[5] ;
26646   anbool result;
26647 
26648   if (!SWIG_Python_UnpackTuple(args, "sip_radec2iwc", 5, 5, swig_obj)) SWIG_fail;
26649   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26650   if (!SWIG_IsOK(res1)) {
26651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_radec2iwc" "', argument " "1"" of type '" "sip_t const *""'");
26652   }
26653   arg1 = (sip_t *)(argp1);
26654   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26655   if (!SWIG_IsOK(ecode2)) {
26656     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_radec2iwc" "', argument " "2"" of type '" "double""'");
26657   }
26658   arg2 = (double)(val2);
26659   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26660   if (!SWIG_IsOK(ecode3)) {
26661     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_radec2iwc" "', argument " "3"" of type '" "double""'");
26662   }
26663   arg3 = (double)(val3);
26664   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26665   if (!SWIG_IsOK(res4)) {
26666     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_radec2iwc" "', argument " "4"" of type '" "double *""'");
26667   }
26668   arg4 = (double *)(argp4);
26669   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
26670   if (!SWIG_IsOK(res5)) {
26671     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_radec2iwc" "', argument " "5"" of type '" "double *""'");
26672   }
26673   arg5 = (double *)(argp5);
26674   result = (anbool)sip_radec2iwc((sip_t const *)arg1,arg2,arg3,arg4,arg5);
26675   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
26676   return resultobj;
26677 fail:
26678   return NULL;
26679 }
26680 
26681 
_wrap_sip_iwc2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26682 SWIGINTERN PyObject *_wrap_sip_iwc2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26683   PyObject *resultobj = 0;
26684   sip_t *arg1 = (sip_t *) 0 ;
26685   double arg2 ;
26686   double arg3 ;
26687   double *arg4 = (double *) 0 ;
26688   double *arg5 = (double *) 0 ;
26689   void *argp1 = 0 ;
26690   int res1 = 0 ;
26691   double val2 ;
26692   int ecode2 = 0 ;
26693   double val3 ;
26694   int ecode3 = 0 ;
26695   void *argp4 = 0 ;
26696   int res4 = 0 ;
26697   void *argp5 = 0 ;
26698   int res5 = 0 ;
26699   PyObject *swig_obj[5] ;
26700 
26701   if (!SWIG_Python_UnpackTuple(args, "sip_iwc2pixelxy", 5, 5, swig_obj)) SWIG_fail;
26702   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26703   if (!SWIG_IsOK(res1)) {
26704     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_iwc2pixelxy" "', argument " "1"" of type '" "sip_t const *""'");
26705   }
26706   arg1 = (sip_t *)(argp1);
26707   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26708   if (!SWIG_IsOK(ecode2)) {
26709     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_iwc2pixelxy" "', argument " "2"" of type '" "double""'");
26710   }
26711   arg2 = (double)(val2);
26712   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26713   if (!SWIG_IsOK(ecode3)) {
26714     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_iwc2pixelxy" "', argument " "3"" of type '" "double""'");
26715   }
26716   arg3 = (double)(val3);
26717   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
26718   if (!SWIG_IsOK(res4)) {
26719     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_iwc2pixelxy" "', argument " "4"" of type '" "double *""'");
26720   }
26721   arg4 = (double *)(argp4);
26722   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_double, 0 |  0 );
26723   if (!SWIG_IsOK(res5)) {
26724     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_iwc2pixelxy" "', argument " "5"" of type '" "double *""'");
26725   }
26726   arg5 = (double *)(argp5);
26727   sip_iwc2pixelxy((sip_t const *)arg1,arg2,arg3,arg4,arg5);
26728   resultobj = SWIG_Py_Void();
26729   return resultobj;
26730 fail:
26731   return NULL;
26732 }
26733 
26734 
_wrap_sip_iwc2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26735 SWIGINTERN PyObject *_wrap_sip_iwc2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26736   PyObject *resultobj = 0;
26737   sip_t *arg1 = (sip_t *) 0 ;
26738   double arg2 ;
26739   double arg3 ;
26740   double *arg4 = (double *) 0 ;
26741   double *arg5 = (double *) 0 ;
26742   void *argp1 = 0 ;
26743   int res1 = 0 ;
26744   double val2 ;
26745   int ecode2 = 0 ;
26746   double val3 ;
26747   int ecode3 = 0 ;
26748   double temp4 ;
26749   int res4 = SWIG_TMPOBJ ;
26750   double temp5 ;
26751   int res5 = SWIG_TMPOBJ ;
26752   PyObject *swig_obj[3] ;
26753 
26754   arg4 = &temp4;
26755   arg5 = &temp5;
26756   if (!SWIG_Python_UnpackTuple(args, "sip_iwc2radec", 3, 3, swig_obj)) SWIG_fail;
26757   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26758   if (!SWIG_IsOK(res1)) {
26759     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_iwc2radec" "', argument " "1"" of type '" "sip_t const *""'");
26760   }
26761   arg1 = (sip_t *)(argp1);
26762   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26763   if (!SWIG_IsOK(ecode2)) {
26764     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_iwc2radec" "', argument " "2"" of type '" "double""'");
26765   }
26766   arg2 = (double)(val2);
26767   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26768   if (!SWIG_IsOK(ecode3)) {
26769     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_iwc2radec" "', argument " "3"" of type '" "double""'");
26770   }
26771   arg3 = (double)(val3);
26772   sip_iwc2radec((sip_t const *)arg1,arg2,arg3,arg4,arg5);
26773   resultobj = SWIG_Py_Void();
26774   if (SWIG_IsTmpObj(res4)) {
26775     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26776   } else {
26777     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26778     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26779   }
26780   if (SWIG_IsTmpObj(res5)) {
26781     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26782   } else {
26783     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26784     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26785   }
26786   return resultobj;
26787 fail:
26788   return NULL;
26789 }
26790 
26791 
_wrap_sip_print(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26792 SWIGINTERN PyObject *_wrap_sip_print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26793   PyObject *resultobj = 0;
26794   sip_t *arg1 = (sip_t *) 0 ;
26795   void *argp1 = 0 ;
26796   int res1 = 0 ;
26797   PyObject *swig_obj[1] ;
26798 
26799   if (!args) SWIG_fail;
26800   swig_obj[0] = args;
26801   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26802   if (!SWIG_IsOK(res1)) {
26803     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_print" "', argument " "1"" of type '" "sip_t const *""'");
26804   }
26805   arg1 = (sip_t *)(argp1);
26806   sip_print((sip_t const *)arg1);
26807   resultobj = SWIG_Py_Void();
26808   return resultobj;
26809 fail:
26810   return NULL;
26811 }
26812 
26813 
_wrap_sip_print_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26814 SWIGINTERN PyObject *_wrap_sip_print_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26815   PyObject *resultobj = 0;
26816   sip_t *arg1 = (sip_t *) 0 ;
26817   FILE *arg2 = (FILE *) 0 ;
26818   void *argp1 = 0 ;
26819   int res1 = 0 ;
26820   void *argp2 = 0 ;
26821   int res2 = 0 ;
26822   PyObject *swig_obj[2] ;
26823 
26824   if (!SWIG_Python_UnpackTuple(args, "sip_print_to", 2, 2, swig_obj)) SWIG_fail;
26825   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26826   if (!SWIG_IsOK(res1)) {
26827     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_print_to" "', argument " "1"" of type '" "sip_t const *""'");
26828   }
26829   arg1 = (sip_t *)(argp1);
26830   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
26831   if (!SWIG_IsOK(res2)) {
26832     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_print_to" "', argument " "2"" of type '" "FILE *""'");
26833   }
26834   arg2 = (FILE *)(argp2);
26835   sip_print_to((sip_t const *)arg1,arg2);
26836   resultobj = SWIG_Py_Void();
26837   return resultobj;
26838 fail:
26839   return NULL;
26840 }
26841 
26842 
_wrap_tan_print(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26843 SWIGINTERN PyObject *_wrap_tan_print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26844   PyObject *resultobj = 0;
26845   tan_t *arg1 = (tan_t *) 0 ;
26846   void *argp1 = 0 ;
26847   int res1 = 0 ;
26848   PyObject *swig_obj[1] ;
26849 
26850   if (!args) SWIG_fail;
26851   swig_obj[0] = args;
26852   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26853   if (!SWIG_IsOK(res1)) {
26854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_print" "', argument " "1"" of type '" "tan_t const *""'");
26855   }
26856   arg1 = (tan_t *)(argp1);
26857   tan_print((tan_t const *)arg1);
26858   resultobj = SWIG_Py_Void();
26859   return resultobj;
26860 fail:
26861   return NULL;
26862 }
26863 
26864 
_wrap_tan_print_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26865 SWIGINTERN PyObject *_wrap_tan_print_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26866   PyObject *resultobj = 0;
26867   tan_t *arg1 = (tan_t *) 0 ;
26868   FILE *arg2 = (FILE *) 0 ;
26869   void *argp1 = 0 ;
26870   int res1 = 0 ;
26871   void *argp2 = 0 ;
26872   int res2 = 0 ;
26873   PyObject *swig_obj[2] ;
26874 
26875   if (!SWIG_Python_UnpackTuple(args, "tan_print_to", 2, 2, swig_obj)) SWIG_fail;
26876   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26877   if (!SWIG_IsOK(res1)) {
26878     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_print_to" "', argument " "1"" of type '" "tan_t const *""'");
26879   }
26880   arg1 = (tan_t *)(argp1);
26881   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
26882   if (!SWIG_IsOK(res2)) {
26883     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_print_to" "', argument " "2"" of type '" "FILE *""'");
26884   }
26885   arg2 = (FILE *)(argp2);
26886   tan_print_to((tan_t const *)arg1,arg2);
26887   resultobj = SWIG_Py_Void();
26888   return resultobj;
26889 fail:
26890   return NULL;
26891 }
26892 
26893 
_wrap_sip_get_crval(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26894 SWIGINTERN PyObject *_wrap_sip_get_crval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26895   PyObject *resultobj = 0;
26896   sip_t *arg1 = (sip_t *) 0 ;
26897   double *arg2 = (double *) 0 ;
26898   double *arg3 = (double *) 0 ;
26899   void *argp1 = 0 ;
26900   int res1 = 0 ;
26901   double temp2 ;
26902   int res2 = SWIG_TMPOBJ ;
26903   double temp3 ;
26904   int res3 = SWIG_TMPOBJ ;
26905   PyObject *swig_obj[1] ;
26906 
26907   arg2 = &temp2;
26908   arg3 = &temp3;
26909   if (!args) SWIG_fail;
26910   swig_obj[0] = args;
26911   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26912   if (!SWIG_IsOK(res1)) {
26913     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_crval" "', argument " "1"" of type '" "sip_t const *""'");
26914   }
26915   arg1 = (sip_t *)(argp1);
26916   sip_get_crval((sip_t const *)arg1,arg2,arg3);
26917   resultobj = SWIG_Py_Void();
26918   if (SWIG_IsTmpObj(res2)) {
26919     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26920   } else {
26921     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26922     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26923   }
26924   if (SWIG_IsTmpObj(res3)) {
26925     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26926   } else {
26927     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
26928     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26929   }
26930   return resultobj;
26931 fail:
26932   return NULL;
26933 }
26934 
26935 
_wrap_tan_get_orientation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26936 SWIGINTERN PyObject *_wrap_tan_get_orientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26937   PyObject *resultobj = 0;
26938   tan_t *arg1 = (tan_t *) 0 ;
26939   void *argp1 = 0 ;
26940   int res1 = 0 ;
26941   PyObject *swig_obj[1] ;
26942   double result;
26943 
26944   if (!args) SWIG_fail;
26945   swig_obj[0] = args;
26946   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
26947   if (!SWIG_IsOK(res1)) {
26948     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_get_orientation" "', argument " "1"" of type '" "tan_t const *""'");
26949   }
26950   arg1 = (tan_t *)(argp1);
26951   result = (double)tan_get_orientation((tan_t const *)arg1);
26952   resultobj = SWIG_From_double((double)(result));
26953   return resultobj;
26954 fail:
26955   return NULL;
26956 }
26957 
26958 
_wrap_sip_get_orientation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26959 SWIGINTERN PyObject *_wrap_sip_get_orientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26960   PyObject *resultobj = 0;
26961   sip_t *arg1 = (sip_t *) 0 ;
26962   void *argp1 = 0 ;
26963   int res1 = 0 ;
26964   PyObject *swig_obj[1] ;
26965   double result;
26966 
26967   if (!args) SWIG_fail;
26968   swig_obj[0] = args;
26969   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
26970   if (!SWIG_IsOK(res1)) {
26971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_orientation" "', argument " "1"" of type '" "sip_t const *""'");
26972   }
26973   arg1 = (sip_t *)(argp1);
26974   result = (double)sip_get_orientation((sip_t const *)arg1);
26975   resultobj = SWIG_From_double((double)(result));
26976   return resultobj;
26977 fail:
26978   return NULL;
26979 }
26980 
26981 
_wrap_sip_get_image_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26982 SWIGINTERN PyObject *_wrap_sip_get_image_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26983   PyObject *resultobj = 0;
26984   qfits_header *arg1 = (qfits_header *) 0 ;
26985   int *arg2 = (int *) 0 ;
26986   int *arg3 = (int *) 0 ;
26987   void *argp1 = 0 ;
26988   int res1 = 0 ;
26989   void *argp2 = 0 ;
26990   int res2 = 0 ;
26991   void *argp3 = 0 ;
26992   int res3 = 0 ;
26993   PyObject *swig_obj[3] ;
26994   int result;
26995 
26996   if (!SWIG_Python_UnpackTuple(args, "sip_get_image_size", 3, 3, swig_obj)) SWIG_fail;
26997   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
26998   if (!SWIG_IsOK(res1)) {
26999     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_image_size" "', argument " "1"" of type '" "qfits_header const *""'");
27000   }
27001   arg1 = (qfits_header *)(argp1);
27002   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
27003   if (!SWIG_IsOK(res2)) {
27004     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_get_image_size" "', argument " "2"" of type '" "int *""'");
27005   }
27006   arg2 = (int *)(argp2);
27007   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
27008   if (!SWIG_IsOK(res3)) {
27009     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_get_image_size" "', argument " "3"" of type '" "int *""'");
27010   }
27011   arg3 = (int *)(argp3);
27012   result = (int)sip_get_image_size((qfits_header const *)arg1,arg2,arg3);
27013   resultobj = SWIG_From_int((int)(result));
27014   return resultobj;
27015 fail:
27016   return NULL;
27017 }
27018 
27019 
_wrap_sip_read_tan_or_sip_header_file_ext(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27020 SWIGINTERN PyObject *_wrap_sip_read_tan_or_sip_header_file_ext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27021   PyObject *resultobj = 0;
27022   char *arg1 = (char *) 0 ;
27023   int arg2 ;
27024   sip_t *arg3 = (sip_t *) 0 ;
27025   anbool arg4 ;
27026   int res1 ;
27027   char *buf1 = 0 ;
27028   int alloc1 = 0 ;
27029   int val2 ;
27030   int ecode2 = 0 ;
27031   void *argp3 = 0 ;
27032   int res3 = 0 ;
27033   unsigned char val4 ;
27034   int ecode4 = 0 ;
27035   PyObject *swig_obj[4] ;
27036   sip_t *result = 0 ;
27037 
27038   if (!SWIG_Python_UnpackTuple(args, "sip_read_tan_or_sip_header_file_ext", 4, 4, swig_obj)) SWIG_fail;
27039   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27040   if (!SWIG_IsOK(res1)) {
27041     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_read_tan_or_sip_header_file_ext" "', argument " "1"" of type '" "char const *""'");
27042   }
27043   arg1 = (char *)(buf1);
27044   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27045   if (!SWIG_IsOK(ecode2)) {
27046     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_read_tan_or_sip_header_file_ext" "', argument " "2"" of type '" "int""'");
27047   }
27048   arg2 = (int)(val2);
27049   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sip_t, 0 |  0 );
27050   if (!SWIG_IsOK(res3)) {
27051     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_read_tan_or_sip_header_file_ext" "', argument " "3"" of type '" "sip_t *""'");
27052   }
27053   arg3 = (sip_t *)(argp3);
27054   ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4);
27055   if (!SWIG_IsOK(ecode4)) {
27056     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_read_tan_or_sip_header_file_ext" "', argument " "4"" of type '" "anbool""'");
27057   }
27058   arg4 = (anbool)(val4);
27059   result = (sip_t *)sip_read_tan_or_sip_header_file_ext((char const *)arg1,arg2,arg3,arg4);
27060   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
27061   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27062   return resultobj;
27063 fail:
27064   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27065   return NULL;
27066 }
27067 
27068 
_wrap_sip_create_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27069 SWIGINTERN PyObject *_wrap_sip_create_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27070   PyObject *resultobj = 0;
27071   sip_t *arg1 = (sip_t *) 0 ;
27072   void *argp1 = 0 ;
27073   int res1 = 0 ;
27074   PyObject *swig_obj[1] ;
27075   qfits_header *result = 0 ;
27076 
27077   if (!args) SWIG_fail;
27078   swig_obj[0] = args;
27079   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27080   if (!SWIG_IsOK(res1)) {
27081     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_create_header" "', argument " "1"" of type '" "sip_t const *""'");
27082   }
27083   arg1 = (sip_t *)(argp1);
27084   result = (qfits_header *)sip_create_header((sip_t const *)arg1);
27085   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
27086   return resultobj;
27087 fail:
27088   return NULL;
27089 }
27090 
27091 
_wrap_tan_create_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27092 SWIGINTERN PyObject *_wrap_tan_create_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27093   PyObject *resultobj = 0;
27094   tan_t *arg1 = (tan_t *) 0 ;
27095   void *argp1 = 0 ;
27096   int res1 = 0 ;
27097   PyObject *swig_obj[1] ;
27098   qfits_header *result = 0 ;
27099 
27100   if (!args) SWIG_fail;
27101   swig_obj[0] = args;
27102   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
27103   if (!SWIG_IsOK(res1)) {
27104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_create_header" "', argument " "1"" of type '" "tan_t const *""'");
27105   }
27106   arg1 = (tan_t *)(argp1);
27107   result = (qfits_header *)tan_create_header((tan_t const *)arg1);
27108   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
27109   return resultobj;
27110 fail:
27111   return NULL;
27112 }
27113 
27114 
_wrap_sip_add_to_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27115 SWIGINTERN PyObject *_wrap_sip_add_to_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27116   PyObject *resultobj = 0;
27117   qfits_header *arg1 = (qfits_header *) 0 ;
27118   sip_t *arg2 = (sip_t *) 0 ;
27119   void *argp1 = 0 ;
27120   int res1 = 0 ;
27121   void *argp2 = 0 ;
27122   int res2 = 0 ;
27123   PyObject *swig_obj[2] ;
27124 
27125   if (!SWIG_Python_UnpackTuple(args, "sip_add_to_header", 2, 2, swig_obj)) SWIG_fail;
27126   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
27127   if (!SWIG_IsOK(res1)) {
27128     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_add_to_header" "', argument " "1"" of type '" "qfits_header *""'");
27129   }
27130   arg1 = (qfits_header *)(argp1);
27131   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
27132   if (!SWIG_IsOK(res2)) {
27133     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_add_to_header" "', argument " "2"" of type '" "sip_t const *""'");
27134   }
27135   arg2 = (sip_t *)(argp2);
27136   sip_add_to_header(arg1,(sip_t const *)arg2);
27137   resultobj = SWIG_Py_Void();
27138   return resultobj;
27139 fail:
27140   return NULL;
27141 }
27142 
27143 
_wrap_tan_add_to_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27144 SWIGINTERN PyObject *_wrap_tan_add_to_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27145   PyObject *resultobj = 0;
27146   qfits_header *arg1 = (qfits_header *) 0 ;
27147   tan_t *arg2 = (tan_t *) 0 ;
27148   void *argp1 = 0 ;
27149   int res1 = 0 ;
27150   void *argp2 = 0 ;
27151   int res2 = 0 ;
27152   PyObject *swig_obj[2] ;
27153 
27154   if (!SWIG_Python_UnpackTuple(args, "tan_add_to_header", 2, 2, swig_obj)) SWIG_fail;
27155   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
27156   if (!SWIG_IsOK(res1)) {
27157     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_add_to_header" "', argument " "1"" of type '" "qfits_header *""'");
27158   }
27159   arg1 = (qfits_header *)(argp1);
27160   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
27161   if (!SWIG_IsOK(res2)) {
27162     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_add_to_header" "', argument " "2"" of type '" "tan_t const *""'");
27163   }
27164   arg2 = (tan_t *)(argp2);
27165   tan_add_to_header(arg1,(tan_t const *)arg2);
27166   resultobj = SWIG_Py_Void();
27167   return resultobj;
27168 fail:
27169   return NULL;
27170 }
27171 
27172 
_wrap_sip_read_header_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27173 SWIGINTERN PyObject *_wrap_sip_read_header_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27174   PyObject *resultobj = 0;
27175   char *arg1 = (char *) 0 ;
27176   sip_t *arg2 = (sip_t *) 0 ;
27177   int res1 ;
27178   char *buf1 = 0 ;
27179   int alloc1 = 0 ;
27180   void *argp2 = 0 ;
27181   int res2 = 0 ;
27182   PyObject *swig_obj[2] ;
27183   sip_t *result = 0 ;
27184 
27185   if (!SWIG_Python_UnpackTuple(args, "sip_read_header_file", 2, 2, swig_obj)) SWIG_fail;
27186   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27187   if (!SWIG_IsOK(res1)) {
27188     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_read_header_file" "', argument " "1"" of type '" "char const *""'");
27189   }
27190   arg1 = (char *)(buf1);
27191   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
27192   if (!SWIG_IsOK(res2)) {
27193     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_read_header_file" "', argument " "2"" of type '" "sip_t *""'");
27194   }
27195   arg2 = (sip_t *)(argp2);
27196   result = (sip_t *)sip_read_header_file((char const *)arg1,arg2);
27197   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
27198   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27199   return resultobj;
27200 fail:
27201   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27202   return NULL;
27203 }
27204 
27205 
_wrap_sip_read_header_file_ext(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27206 SWIGINTERN PyObject *_wrap_sip_read_header_file_ext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27207   PyObject *resultobj = 0;
27208   char *arg1 = (char *) 0 ;
27209   int arg2 ;
27210   sip_t *arg3 = (sip_t *) 0 ;
27211   int res1 ;
27212   char *buf1 = 0 ;
27213   int alloc1 = 0 ;
27214   int val2 ;
27215   int ecode2 = 0 ;
27216   void *argp3 = 0 ;
27217   int res3 = 0 ;
27218   PyObject *swig_obj[3] ;
27219   sip_t *result = 0 ;
27220 
27221   if (!SWIG_Python_UnpackTuple(args, "sip_read_header_file_ext", 3, 3, swig_obj)) SWIG_fail;
27222   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27223   if (!SWIG_IsOK(res1)) {
27224     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_read_header_file_ext" "', argument " "1"" of type '" "char const *""'");
27225   }
27226   arg1 = (char *)(buf1);
27227   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27228   if (!SWIG_IsOK(ecode2)) {
27229     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_read_header_file_ext" "', argument " "2"" of type '" "int""'");
27230   }
27231   arg2 = (int)(val2);
27232   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sip_t, 0 |  0 );
27233   if (!SWIG_IsOK(res3)) {
27234     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_read_header_file_ext" "', argument " "3"" of type '" "sip_t *""'");
27235   }
27236   arg3 = (sip_t *)(argp3);
27237   result = (sip_t *)sip_read_header_file_ext((char const *)arg1,arg2,arg3);
27238   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
27239   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27240   return resultobj;
27241 fail:
27242   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27243   return NULL;
27244 }
27245 
27246 
_wrap_sip_read_header_file_ext_only(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27247 SWIGINTERN PyObject *_wrap_sip_read_header_file_ext_only(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27248   PyObject *resultobj = 0;
27249   char *arg1 = (char *) 0 ;
27250   int arg2 ;
27251   sip_t *arg3 = (sip_t *) 0 ;
27252   int res1 ;
27253   char *buf1 = 0 ;
27254   int alloc1 = 0 ;
27255   int val2 ;
27256   int ecode2 = 0 ;
27257   void *argp3 = 0 ;
27258   int res3 = 0 ;
27259   PyObject *swig_obj[3] ;
27260   sip_t *result = 0 ;
27261 
27262   if (!SWIG_Python_UnpackTuple(args, "sip_read_header_file_ext_only", 3, 3, swig_obj)) SWIG_fail;
27263   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27264   if (!SWIG_IsOK(res1)) {
27265     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_read_header_file_ext_only" "', argument " "1"" of type '" "char const *""'");
27266   }
27267   arg1 = (char *)(buf1);
27268   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27269   if (!SWIG_IsOK(ecode2)) {
27270     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_read_header_file_ext_only" "', argument " "2"" of type '" "int""'");
27271   }
27272   arg2 = (int)(val2);
27273   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sip_t, 0 |  0 );
27274   if (!SWIG_IsOK(res3)) {
27275     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_read_header_file_ext_only" "', argument " "3"" of type '" "sip_t *""'");
27276   }
27277   arg3 = (sip_t *)(argp3);
27278   result = (sip_t *)sip_read_header_file_ext_only((char const *)arg1,arg2,arg3);
27279   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
27280   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27281   return resultobj;
27282 fail:
27283   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27284   return NULL;
27285 }
27286 
27287 
_wrap_tan_read_header_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27288 SWIGINTERN PyObject *_wrap_tan_read_header_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27289   PyObject *resultobj = 0;
27290   char *arg1 = (char *) 0 ;
27291   tan_t *arg2 = (tan_t *) 0 ;
27292   int res1 ;
27293   char *buf1 = 0 ;
27294   int alloc1 = 0 ;
27295   void *argp2 = 0 ;
27296   int res2 = 0 ;
27297   PyObject *swig_obj[2] ;
27298   tan_t *result = 0 ;
27299 
27300   if (!SWIG_Python_UnpackTuple(args, "tan_read_header_file", 2, 2, swig_obj)) SWIG_fail;
27301   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27302   if (!SWIG_IsOK(res1)) {
27303     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_read_header_file" "', argument " "1"" of type '" "char const *""'");
27304   }
27305   arg1 = (char *)(buf1);
27306   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
27307   if (!SWIG_IsOK(res2)) {
27308     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_read_header_file" "', argument " "2"" of type '" "tan_t *""'");
27309   }
27310   arg2 = (tan_t *)(argp2);
27311   result = (tan_t *)tan_read_header_file((char const *)arg1,arg2);
27312   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
27313   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27314   return resultobj;
27315 fail:
27316   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27317   return NULL;
27318 }
27319 
27320 
_wrap_tan_read_header_file_ext(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27321 SWIGINTERN PyObject *_wrap_tan_read_header_file_ext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27322   PyObject *resultobj = 0;
27323   char *arg1 = (char *) 0 ;
27324   int arg2 ;
27325   tan_t *arg3 = (tan_t *) 0 ;
27326   int res1 ;
27327   char *buf1 = 0 ;
27328   int alloc1 = 0 ;
27329   int val2 ;
27330   int ecode2 = 0 ;
27331   void *argp3 = 0 ;
27332   int res3 = 0 ;
27333   PyObject *swig_obj[3] ;
27334   tan_t *result = 0 ;
27335 
27336   if (!SWIG_Python_UnpackTuple(args, "tan_read_header_file_ext", 3, 3, swig_obj)) SWIG_fail;
27337   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27338   if (!SWIG_IsOK(res1)) {
27339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_read_header_file_ext" "', argument " "1"" of type '" "char const *""'");
27340   }
27341   arg1 = (char *)(buf1);
27342   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27343   if (!SWIG_IsOK(ecode2)) {
27344     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_read_header_file_ext" "', argument " "2"" of type '" "int""'");
27345   }
27346   arg2 = (int)(val2);
27347   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_tan_t, 0 |  0 );
27348   if (!SWIG_IsOK(res3)) {
27349     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tan_read_header_file_ext" "', argument " "3"" of type '" "tan_t *""'");
27350   }
27351   arg3 = (tan_t *)(argp3);
27352   result = (tan_t *)tan_read_header_file_ext((char const *)arg1,arg2,arg3);
27353   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
27354   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27355   return resultobj;
27356 fail:
27357   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27358   return NULL;
27359 }
27360 
27361 
_wrap_tan_read_header_file_ext_only(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27362 SWIGINTERN PyObject *_wrap_tan_read_header_file_ext_only(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27363   PyObject *resultobj = 0;
27364   char *arg1 = (char *) 0 ;
27365   int arg2 ;
27366   tan_t *arg3 = (tan_t *) 0 ;
27367   int res1 ;
27368   char *buf1 = 0 ;
27369   int alloc1 = 0 ;
27370   int val2 ;
27371   int ecode2 = 0 ;
27372   void *argp3 = 0 ;
27373   int res3 = 0 ;
27374   PyObject *swig_obj[3] ;
27375   tan_t *result = 0 ;
27376 
27377   if (!SWIG_Python_UnpackTuple(args, "tan_read_header_file_ext_only", 3, 3, swig_obj)) SWIG_fail;
27378   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27379   if (!SWIG_IsOK(res1)) {
27380     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_read_header_file_ext_only" "', argument " "1"" of type '" "char const *""'");
27381   }
27382   arg1 = (char *)(buf1);
27383   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27384   if (!SWIG_IsOK(ecode2)) {
27385     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_read_header_file_ext_only" "', argument " "2"" of type '" "int""'");
27386   }
27387   arg2 = (int)(val2);
27388   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_tan_t, 0 |  0 );
27389   if (!SWIG_IsOK(res3)) {
27390     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tan_read_header_file_ext_only" "', argument " "3"" of type '" "tan_t *""'");
27391   }
27392   arg3 = (tan_t *)(argp3);
27393   result = (tan_t *)tan_read_header_file_ext_only((char const *)arg1,arg2,arg3);
27394   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
27395   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27396   return resultobj;
27397 fail:
27398   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27399   return NULL;
27400 }
27401 
27402 
_wrap_sip_read_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27403 SWIGINTERN PyObject *_wrap_sip_read_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27404   PyObject *resultobj = 0;
27405   qfits_header *arg1 = (qfits_header *) 0 ;
27406   sip_t *arg2 = (sip_t *) 0 ;
27407   void *argp1 = 0 ;
27408   int res1 = 0 ;
27409   void *argp2 = 0 ;
27410   int res2 = 0 ;
27411   PyObject *swig_obj[2] ;
27412   sip_t *result = 0 ;
27413 
27414   if (!SWIG_Python_UnpackTuple(args, "sip_read_header", 2, 2, swig_obj)) SWIG_fail;
27415   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
27416   if (!SWIG_IsOK(res1)) {
27417     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_read_header" "', argument " "1"" of type '" "qfits_header const *""'");
27418   }
27419   arg1 = (qfits_header *)(argp1);
27420   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
27421   if (!SWIG_IsOK(res2)) {
27422     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_read_header" "', argument " "2"" of type '" "sip_t *""'");
27423   }
27424   arg2 = (sip_t *)(argp2);
27425   result = (sip_t *)sip_read_header((qfits_header const *)arg1,arg2);
27426   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
27427   return resultobj;
27428 fail:
27429   return NULL;
27430 }
27431 
27432 
_wrap_tan_read_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27433 SWIGINTERN PyObject *_wrap_tan_read_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27434   PyObject *resultobj = 0;
27435   qfits_header *arg1 = (qfits_header *) 0 ;
27436   tan_t *arg2 = (tan_t *) 0 ;
27437   void *argp1 = 0 ;
27438   int res1 = 0 ;
27439   void *argp2 = 0 ;
27440   int res2 = 0 ;
27441   PyObject *swig_obj[2] ;
27442   tan_t *result = 0 ;
27443 
27444   if (!SWIG_Python_UnpackTuple(args, "tan_read_header", 2, 2, swig_obj)) SWIG_fail;
27445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
27446   if (!SWIG_IsOK(res1)) {
27447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_read_header" "', argument " "1"" of type '" "qfits_header const *""'");
27448   }
27449   arg1 = (qfits_header *)(argp1);
27450   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
27451   if (!SWIG_IsOK(res2)) {
27452     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_read_header" "', argument " "2"" of type '" "tan_t *""'");
27453   }
27454   arg2 = (tan_t *)(argp2);
27455   result = (tan_t *)tan_read_header((qfits_header const *)arg1,arg2);
27456   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tan_t, 0 |  0 );
27457   return resultobj;
27458 fail:
27459   return NULL;
27460 }
27461 
27462 
_wrap_sip_from_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27463 SWIGINTERN PyObject *_wrap_sip_from_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27464   PyObject *resultobj = 0;
27465   char *arg1 = (char *) 0 ;
27466   int arg2 ;
27467   sip_t *arg3 = (sip_t *) 0 ;
27468   int res1 ;
27469   char *buf1 = 0 ;
27470   int alloc1 = 0 ;
27471   int val2 ;
27472   int ecode2 = 0 ;
27473   void *argp3 = 0 ;
27474   int res3 = 0 ;
27475   PyObject *swig_obj[3] ;
27476   sip_t *result = 0 ;
27477 
27478   if (!SWIG_Python_UnpackTuple(args, "sip_from_string", 3, 3, swig_obj)) SWIG_fail;
27479   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
27480   if (!SWIG_IsOK(res1)) {
27481     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_from_string" "', argument " "1"" of type '" "char const *""'");
27482   }
27483   arg1 = (char *)(buf1);
27484   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27485   if (!SWIG_IsOK(ecode2)) {
27486     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_from_string" "', argument " "2"" of type '" "int""'");
27487   }
27488   arg2 = (int)(val2);
27489   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sip_t, 0 |  0 );
27490   if (!SWIG_IsOK(res3)) {
27491     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_from_string" "', argument " "3"" of type '" "sip_t *""'");
27492   }
27493   arg3 = (sip_t *)(argp3);
27494   result = (sip_t *)sip_from_string((char const *)arg1,arg2,arg3);
27495   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
27496   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27497   return resultobj;
27498 fail:
27499   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
27500   return NULL;
27501 }
27502 
27503 
_wrap_tan_write_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27504 SWIGINTERN PyObject *_wrap_tan_write_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27505   PyObject *resultobj = 0;
27506   tan_t *arg1 = (tan_t *) 0 ;
27507   FILE *arg2 = (FILE *) 0 ;
27508   void *argp1 = 0 ;
27509   int res1 = 0 ;
27510   void *argp2 = 0 ;
27511   int res2 = 0 ;
27512   PyObject *swig_obj[2] ;
27513   int result;
27514 
27515   if (!SWIG_Python_UnpackTuple(args, "tan_write_to", 2, 2, swig_obj)) SWIG_fail;
27516   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
27517   if (!SWIG_IsOK(res1)) {
27518     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_write_to" "', argument " "1"" of type '" "tan_t const *""'");
27519   }
27520   arg1 = (tan_t *)(argp1);
27521   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
27522   if (!SWIG_IsOK(res2)) {
27523     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_write_to" "', argument " "2"" of type '" "FILE *""'");
27524   }
27525   arg2 = (FILE *)(argp2);
27526   result = (int)tan_write_to((tan_t const *)arg1,arg2);
27527   resultobj = SWIG_From_int((int)(result));
27528   return resultobj;
27529 fail:
27530   return NULL;
27531 }
27532 
27533 
_wrap_sip_write_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27534 SWIGINTERN PyObject *_wrap_sip_write_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27535   PyObject *resultobj = 0;
27536   sip_t *arg1 = (sip_t *) 0 ;
27537   FILE *arg2 = (FILE *) 0 ;
27538   void *argp1 = 0 ;
27539   int res1 = 0 ;
27540   void *argp2 = 0 ;
27541   int res2 = 0 ;
27542   PyObject *swig_obj[2] ;
27543   int result;
27544 
27545   if (!SWIG_Python_UnpackTuple(args, "sip_write_to", 2, 2, swig_obj)) SWIG_fail;
27546   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27547   if (!SWIG_IsOK(res1)) {
27548     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_write_to" "', argument " "1"" of type '" "sip_t const *""'");
27549   }
27550   arg1 = (sip_t *)(argp1);
27551   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
27552   if (!SWIG_IsOK(res2)) {
27553     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_write_to" "', argument " "2"" of type '" "FILE *""'");
27554   }
27555   arg2 = (FILE *)(argp2);
27556   result = (int)sip_write_to((sip_t const *)arg1,arg2);
27557   resultobj = SWIG_From_int((int)(result));
27558   return resultobj;
27559 fail:
27560   return NULL;
27561 }
27562 
27563 
_wrap_sip_write_to_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27564 SWIGINTERN PyObject *_wrap_sip_write_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27565   PyObject *resultobj = 0;
27566   sip_t *arg1 = (sip_t *) 0 ;
27567   char *arg2 = (char *) 0 ;
27568   void *argp1 = 0 ;
27569   int res1 = 0 ;
27570   int res2 ;
27571   char *buf2 = 0 ;
27572   int alloc2 = 0 ;
27573   PyObject *swig_obj[2] ;
27574   int result;
27575 
27576   if (!SWIG_Python_UnpackTuple(args, "sip_write_to_file", 2, 2, swig_obj)) SWIG_fail;
27577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27578   if (!SWIG_IsOK(res1)) {
27579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_write_to_file" "', argument " "1"" of type '" "sip_t const *""'");
27580   }
27581   arg1 = (sip_t *)(argp1);
27582   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
27583   if (!SWIG_IsOK(res2)) {
27584     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_write_to_file" "', argument " "2"" of type '" "char const *""'");
27585   }
27586   arg2 = (char *)(buf2);
27587   result = (int)sip_write_to_file((sip_t const *)arg1,(char const *)arg2);
27588   resultobj = SWIG_From_int((int)(result));
27589   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
27590   return resultobj;
27591 fail:
27592   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
27593   return NULL;
27594 }
27595 
27596 
_wrap_tan_write_to_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27597 SWIGINTERN PyObject *_wrap_tan_write_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27598   PyObject *resultobj = 0;
27599   tan_t *arg1 = (tan_t *) 0 ;
27600   char *arg2 = (char *) 0 ;
27601   void *argp1 = 0 ;
27602   int res1 = 0 ;
27603   int res2 ;
27604   char *buf2 = 0 ;
27605   int alloc2 = 0 ;
27606   PyObject *swig_obj[2] ;
27607   int result;
27608 
27609   if (!SWIG_Python_UnpackTuple(args, "tan_write_to_file", 2, 2, swig_obj)) SWIG_fail;
27610   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
27611   if (!SWIG_IsOK(res1)) {
27612     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_write_to_file" "', argument " "1"" of type '" "tan_t const *""'");
27613   }
27614   arg1 = (tan_t *)(argp1);
27615   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
27616   if (!SWIG_IsOK(res2)) {
27617     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_write_to_file" "', argument " "2"" of type '" "char const *""'");
27618   }
27619   arg2 = (char *)(buf2);
27620   result = (int)tan_write_to_file((tan_t const *)arg1,(char const *)arg2);
27621   resultobj = SWIG_From_int((int)(result));
27622   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
27623   return resultobj;
27624 fail:
27625   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
27626   return NULL;
27627 }
27628 
27629 
_wrap_wcs_pixel_center_for_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27630 SWIGINTERN PyObject *_wrap_wcs_pixel_center_for_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27631   PyObject *resultobj = 0;
27632   double arg1 ;
27633   double val1 ;
27634   int ecode1 = 0 ;
27635   PyObject *swig_obj[1] ;
27636   double result;
27637 
27638   if (!args) SWIG_fail;
27639   swig_obj[0] = args;
27640   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
27641   if (!SWIG_IsOK(ecode1)) {
27642     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "wcs_pixel_center_for_size" "', argument " "1"" of type '" "double""'");
27643   }
27644   arg1 = (double)(val1);
27645   result = (double)wcs_pixel_center_for_size(arg1);
27646   resultobj = SWIG_From_double((double)(result));
27647   return resultobj;
27648 fail:
27649   return NULL;
27650 }
27651 
27652 
_wrap_sip_ensure_inverse_polynomials(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27653 SWIGINTERN PyObject *_wrap_sip_ensure_inverse_polynomials(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27654   PyObject *resultobj = 0;
27655   sip_t *arg1 = (sip_t *) 0 ;
27656   void *argp1 = 0 ;
27657   int res1 = 0 ;
27658   PyObject *swig_obj[1] ;
27659   int result;
27660 
27661   if (!args) SWIG_fail;
27662   swig_obj[0] = args;
27663   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27664   if (!SWIG_IsOK(res1)) {
27665     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_ensure_inverse_polynomials" "', argument " "1"" of type '" "sip_t *""'");
27666   }
27667   arg1 = (sip_t *)(argp1);
27668   result = (int)sip_ensure_inverse_polynomials(arg1);
27669   resultobj = SWIG_From_int((int)(result));
27670   return resultobj;
27671 fail:
27672   return NULL;
27673 }
27674 
27675 
_wrap_sip_compute_inverse_polynomials(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27676 SWIGINTERN PyObject *_wrap_sip_compute_inverse_polynomials(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27677   PyObject *resultobj = 0;
27678   sip_t *arg1 = (sip_t *) 0 ;
27679   int arg2 ;
27680   int arg3 ;
27681   double arg4 ;
27682   double arg5 ;
27683   double arg6 ;
27684   double arg7 ;
27685   void *argp1 = 0 ;
27686   int res1 = 0 ;
27687   int val2 ;
27688   int ecode2 = 0 ;
27689   int val3 ;
27690   int ecode3 = 0 ;
27691   double val4 ;
27692   int ecode4 = 0 ;
27693   double val5 ;
27694   int ecode5 = 0 ;
27695   double val6 ;
27696   int ecode6 = 0 ;
27697   double val7 ;
27698   int ecode7 = 0 ;
27699   PyObject *swig_obj[7] ;
27700   int result;
27701 
27702   if (!SWIG_Python_UnpackTuple(args, "sip_compute_inverse_polynomials", 7, 7, swig_obj)) SWIG_fail;
27703   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27704   if (!SWIG_IsOK(res1)) {
27705     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_compute_inverse_polynomials" "', argument " "1"" of type '" "sip_t *""'");
27706   }
27707   arg1 = (sip_t *)(argp1);
27708   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27709   if (!SWIG_IsOK(ecode2)) {
27710     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_compute_inverse_polynomials" "', argument " "2"" of type '" "int""'");
27711   }
27712   arg2 = (int)(val2);
27713   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27714   if (!SWIG_IsOK(ecode3)) {
27715     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_compute_inverse_polynomials" "', argument " "3"" of type '" "int""'");
27716   }
27717   arg3 = (int)(val3);
27718   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27719   if (!SWIG_IsOK(ecode4)) {
27720     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_compute_inverse_polynomials" "', argument " "4"" of type '" "double""'");
27721   }
27722   arg4 = (double)(val4);
27723   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27724   if (!SWIG_IsOK(ecode5)) {
27725     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "sip_compute_inverse_polynomials" "', argument " "5"" of type '" "double""'");
27726   }
27727   arg5 = (double)(val5);
27728   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27729   if (!SWIG_IsOK(ecode6)) {
27730     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "sip_compute_inverse_polynomials" "', argument " "6"" of type '" "double""'");
27731   }
27732   arg6 = (double)(val6);
27733   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27734   if (!SWIG_IsOK(ecode7)) {
27735     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "sip_compute_inverse_polynomials" "', argument " "7"" of type '" "double""'");
27736   }
27737   arg7 = (double)(val7);
27738   result = (int)sip_compute_inverse_polynomials(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
27739   resultobj = SWIG_From_int((int)(result));
27740   return resultobj;
27741 fail:
27742   return NULL;
27743 }
27744 
27745 
_wrap_sip_filter_stars_in_field(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27746 SWIGINTERN PyObject *_wrap_sip_filter_stars_in_field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27747   PyObject *resultobj = 0;
27748   sip_t *arg1 = (sip_t *) 0 ;
27749   tan_t *arg2 = (tan_t *) 0 ;
27750   double *arg3 = (double *) 0 ;
27751   double *arg4 = (double *) 0 ;
27752   int arg5 ;
27753   double **arg6 = (double **) 0 ;
27754   int *arg7 = (int *) 0 ;
27755   int *arg8 = (int *) 0 ;
27756   void *argp1 = 0 ;
27757   int res1 = 0 ;
27758   void *argp2 = 0 ;
27759   int res2 = 0 ;
27760   void *argp3 = 0 ;
27761   int res3 = 0 ;
27762   void *argp4 = 0 ;
27763   int res4 = 0 ;
27764   int val5 ;
27765   int ecode5 = 0 ;
27766   void *argp6 = 0 ;
27767   int res6 = 0 ;
27768   void *argp7 = 0 ;
27769   int res7 = 0 ;
27770   void *argp8 = 0 ;
27771   int res8 = 0 ;
27772   PyObject *swig_obj[8] ;
27773   int *result = 0 ;
27774 
27775   if (!SWIG_Python_UnpackTuple(args, "sip_filter_stars_in_field", 8, 8, swig_obj)) SWIG_fail;
27776   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27777   if (!SWIG_IsOK(res1)) {
27778     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_filter_stars_in_field" "', argument " "1"" of type '" "sip_t const *""'");
27779   }
27780   arg1 = (sip_t *)(argp1);
27781   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
27782   if (!SWIG_IsOK(res2)) {
27783     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_filter_stars_in_field" "', argument " "2"" of type '" "tan_t const *""'");
27784   }
27785   arg2 = (tan_t *)(argp2);
27786   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
27787   if (!SWIG_IsOK(res3)) {
27788     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_filter_stars_in_field" "', argument " "3"" of type '" "double const *""'");
27789   }
27790   arg3 = (double *)(argp3);
27791   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
27792   if (!SWIG_IsOK(res4)) {
27793     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_filter_stars_in_field" "', argument " "4"" of type '" "double const *""'");
27794   }
27795   arg4 = (double *)(argp4);
27796   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27797   if (!SWIG_IsOK(ecode5)) {
27798     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "sip_filter_stars_in_field" "', argument " "5"" of type '" "int""'");
27799   }
27800   arg5 = (int)(val5);
27801   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_p_double, 0 |  0 );
27802   if (!SWIG_IsOK(res6)) {
27803     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "sip_filter_stars_in_field" "', argument " "6"" of type '" "double **""'");
27804   }
27805   arg6 = (double **)(argp6);
27806   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_int, 0 |  0 );
27807   if (!SWIG_IsOK(res7)) {
27808     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "sip_filter_stars_in_field" "', argument " "7"" of type '" "int *""'");
27809   }
27810   arg7 = (int *)(argp7);
27811   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_int, 0 |  0 );
27812   if (!SWIG_IsOK(res8)) {
27813     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "sip_filter_stars_in_field" "', argument " "8"" of type '" "int *""'");
27814   }
27815   arg8 = (int *)(argp8);
27816   result = (int *)sip_filter_stars_in_field((sip_t const *)arg1,(tan_t const *)arg2,(double const *)arg3,(double const *)arg4,arg5,arg6,arg7,arg8);
27817   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
27818   return resultobj;
27819 fail:
27820   return NULL;
27821 }
27822 
27823 
_wrap_sip_get_radec_bounds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27824 SWIGINTERN PyObject *_wrap_sip_get_radec_bounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27825   PyObject *resultobj = 0;
27826   sip_t *arg1 = (sip_t *) 0 ;
27827   int arg2 ;
27828   double *arg3 = (double *) 0 ;
27829   double *arg4 = (double *) 0 ;
27830   double *arg5 = (double *) 0 ;
27831   double *arg6 = (double *) 0 ;
27832   void *argp1 = 0 ;
27833   int res1 = 0 ;
27834   int val2 ;
27835   int ecode2 = 0 ;
27836   double temp3 ;
27837   int res3 = SWIG_TMPOBJ ;
27838   double temp4 ;
27839   int res4 = SWIG_TMPOBJ ;
27840   double temp5 ;
27841   int res5 = SWIG_TMPOBJ ;
27842   double temp6 ;
27843   int res6 = SWIG_TMPOBJ ;
27844   PyObject *swig_obj[2] ;
27845 
27846   arg3 = &temp3;
27847   arg4 = &temp4;
27848   arg5 = &temp5;
27849   arg6 = &temp6;
27850   if (!SWIG_Python_UnpackTuple(args, "sip_get_radec_bounds", 2, 2, swig_obj)) SWIG_fail;
27851   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27852   if (!SWIG_IsOK(res1)) {
27853     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_radec_bounds" "', argument " "1"" of type '" "sip_t const *""'");
27854   }
27855   arg1 = (sip_t *)(argp1);
27856   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27857   if (!SWIG_IsOK(ecode2)) {
27858     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_get_radec_bounds" "', argument " "2"" of type '" "int""'");
27859   }
27860   arg2 = (int)(val2);
27861   sip_get_radec_bounds((sip_t const *)arg1,arg2,arg3,arg4,arg5,arg6);
27862   resultobj = SWIG_Py_Void();
27863   if (SWIG_IsTmpObj(res3)) {
27864     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27865   } else {
27866     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
27867     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27868   }
27869   if (SWIG_IsTmpObj(res4)) {
27870     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
27871   } else {
27872     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
27873     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
27874   }
27875   if (SWIG_IsTmpObj(res5)) {
27876     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
27877   } else {
27878     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
27879     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
27880   }
27881   if (SWIG_IsTmpObj(res6)) {
27882     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
27883   } else {
27884     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
27885     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
27886   }
27887   return resultobj;
27888 fail:
27889   return NULL;
27890 }
27891 
27892 
_wrap_sip_walk_image_boundary(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27893 SWIGINTERN PyObject *_wrap_sip_walk_image_boundary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27894   PyObject *resultobj = 0;
27895   sip_t *arg1 = (sip_t *) 0 ;
27896   double arg2 ;
27897   void (*arg3)(sip_t const *,double,double,double,double,void *) = (void (*)(sip_t const *,double,double,double,double,void *)) 0 ;
27898   void *arg4 = (void *) 0 ;
27899   void *argp1 = 0 ;
27900   int res1 = 0 ;
27901   double val2 ;
27902   int ecode2 = 0 ;
27903   int res4 ;
27904   PyObject *swig_obj[4] ;
27905 
27906   if (!SWIG_Python_UnpackTuple(args, "sip_walk_image_boundary", 4, 4, swig_obj)) SWIG_fail;
27907   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27908   if (!SWIG_IsOK(res1)) {
27909     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_walk_image_boundary" "', argument " "1"" of type '" "sip_t const *""'");
27910   }
27911   arg1 = (sip_t *)(argp1);
27912   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27913   if (!SWIG_IsOK(ecode2)) {
27914     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_walk_image_boundary" "', argument " "2"" of type '" "double""'");
27915   }
27916   arg2 = (double)(val2);
27917   {
27918     int res = SWIG_ConvertFunctionPtr(swig_obj[2], (void**)(&arg3), SWIGTYPE_p_f_p_q_const__sip_t_double_double_double_double_p_void__void);
27919     if (!SWIG_IsOK(res)) {
27920       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sip_walk_image_boundary" "', argument " "3"" of type '" "void (*)(sip_t const *,double,double,double,double,void *)""'");
27921     }
27922   }
27923   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
27924   if (!SWIG_IsOK(res4)) {
27925     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_walk_image_boundary" "', argument " "4"" of type '" "void *""'");
27926   }
27927   sip_walk_image_boundary((sip_t const *)arg1,arg2,arg3,arg4);
27928   resultobj = SWIG_Py_Void();
27929   return resultobj;
27930 fail:
27931   return NULL;
27932 }
27933 
27934 
_wrap_sip_get_radec_center(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27935 SWIGINTERN PyObject *_wrap_sip_get_radec_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936   PyObject *resultobj = 0;
27937   sip_t *arg1 = (sip_t *) 0 ;
27938   double *arg2 = (double *) 0 ;
27939   double *arg3 = (double *) 0 ;
27940   void *argp1 = 0 ;
27941   int res1 = 0 ;
27942   double temp2 ;
27943   int res2 = SWIG_TMPOBJ ;
27944   double temp3 ;
27945   int res3 = SWIG_TMPOBJ ;
27946   PyObject *swig_obj[1] ;
27947 
27948   arg2 = &temp2;
27949   arg3 = &temp3;
27950   if (!args) SWIG_fail;
27951   swig_obj[0] = args;
27952   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
27953   if (!SWIG_IsOK(res1)) {
27954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_radec_center" "', argument " "1"" of type '" "sip_t const *""'");
27955   }
27956   arg1 = (sip_t *)(argp1);
27957   sip_get_radec_center((sip_t const *)arg1,arg2,arg3);
27958   resultobj = SWIG_Py_Void();
27959   if (SWIG_IsTmpObj(res2)) {
27960     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27961   } else {
27962     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
27963     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27964   }
27965   if (SWIG_IsTmpObj(res3)) {
27966     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27967   } else {
27968     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
27969     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27970   }
27971   return resultobj;
27972 fail:
27973   return NULL;
27974 }
27975 
27976 
_wrap_tan_get_radec_center(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27977 SWIGINTERN PyObject *_wrap_tan_get_radec_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27978   PyObject *resultobj = 0;
27979   tan_t *arg1 = (tan_t *) 0 ;
27980   double *arg2 = (double *) 0 ;
27981   double *arg3 = (double *) 0 ;
27982   void *argp1 = 0 ;
27983   int res1 = 0 ;
27984   double temp2 ;
27985   int res2 = SWIG_TMPOBJ ;
27986   double temp3 ;
27987   int res3 = SWIG_TMPOBJ ;
27988   PyObject *swig_obj[1] ;
27989 
27990   arg2 = &temp2;
27991   arg3 = &temp3;
27992   if (!args) SWIG_fail;
27993   swig_obj[0] = args;
27994   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
27995   if (!SWIG_IsOK(res1)) {
27996     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_get_radec_center" "', argument " "1"" of type '" "tan_t const *""'");
27997   }
27998   arg1 = (tan_t *)(argp1);
27999   tan_get_radec_center((tan_t const *)arg1,arg2,arg3);
28000   resultobj = SWIG_Py_Void();
28001   if (SWIG_IsTmpObj(res2)) {
28002     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
28003   } else {
28004     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
28005     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
28006   }
28007   if (SWIG_IsTmpObj(res3)) {
28008     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28009   } else {
28010     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
28011     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28012   }
28013   return resultobj;
28014 fail:
28015   return NULL;
28016 }
28017 
28018 
_wrap_sip_get_radius_deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28019 SWIGINTERN PyObject *_wrap_sip_get_radius_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28020   PyObject *resultobj = 0;
28021   sip_t *arg1 = (sip_t *) 0 ;
28022   void *argp1 = 0 ;
28023   int res1 = 0 ;
28024   PyObject *swig_obj[1] ;
28025   double result;
28026 
28027   if (!args) SWIG_fail;
28028   swig_obj[0] = args;
28029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28030   if (!SWIG_IsOK(res1)) {
28031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_radius_deg" "', argument " "1"" of type '" "sip_t const *""'");
28032   }
28033   arg1 = (sip_t *)(argp1);
28034   result = (double)sip_get_radius_deg((sip_t const *)arg1);
28035   resultobj = SWIG_From_double((double)(result));
28036   return resultobj;
28037 fail:
28038   return NULL;
28039 }
28040 
28041 
_wrap_tan_get_radius_deg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28042 SWIGINTERN PyObject *_wrap_tan_get_radius_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28043   PyObject *resultobj = 0;
28044   tan_t *arg1 = (tan_t *) 0 ;
28045   void *argp1 = 0 ;
28046   int res1 = 0 ;
28047   PyObject *swig_obj[1] ;
28048   double result;
28049 
28050   if (!args) SWIG_fail;
28051   swig_obj[0] = args;
28052   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28053   if (!SWIG_IsOK(res1)) {
28054     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_get_radius_deg" "', argument " "1"" of type '" "tan_t const *""'");
28055   }
28056   arg1 = (tan_t *)(argp1);
28057   result = (double)tan_get_radius_deg((tan_t const *)arg1);
28058   resultobj = SWIG_From_double((double)(result));
28059   return resultobj;
28060 fail:
28061   return NULL;
28062 }
28063 
28064 
_wrap_sip_get_radec_center_hms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28065 SWIGINTERN PyObject *_wrap_sip_get_radec_center_hms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28066   PyObject *resultobj = 0;
28067   sip_t *arg1 = (sip_t *) 0 ;
28068   int *arg2 = (int *) 0 ;
28069   int *arg3 = (int *) 0 ;
28070   double *arg4 = (double *) 0 ;
28071   int *arg5 = (int *) 0 ;
28072   int *arg6 = (int *) 0 ;
28073   int *arg7 = (int *) 0 ;
28074   double *arg8 = (double *) 0 ;
28075   void *argp1 = 0 ;
28076   int res1 = 0 ;
28077   void *argp2 = 0 ;
28078   int res2 = 0 ;
28079   void *argp3 = 0 ;
28080   int res3 = 0 ;
28081   void *argp4 = 0 ;
28082   int res4 = 0 ;
28083   void *argp5 = 0 ;
28084   int res5 = 0 ;
28085   void *argp6 = 0 ;
28086   int res6 = 0 ;
28087   void *argp7 = 0 ;
28088   int res7 = 0 ;
28089   void *argp8 = 0 ;
28090   int res8 = 0 ;
28091   PyObject *swig_obj[8] ;
28092 
28093   if (!SWIG_Python_UnpackTuple(args, "sip_get_radec_center_hms", 8, 8, swig_obj)) SWIG_fail;
28094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28095   if (!SWIG_IsOK(res1)) {
28096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_radec_center_hms" "', argument " "1"" of type '" "sip_t const *""'");
28097   }
28098   arg1 = (sip_t *)(argp1);
28099   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
28100   if (!SWIG_IsOK(res2)) {
28101     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_get_radec_center_hms" "', argument " "2"" of type '" "int *""'");
28102   }
28103   arg2 = (int *)(argp2);
28104   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
28105   if (!SWIG_IsOK(res3)) {
28106     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_get_radec_center_hms" "', argument " "3"" of type '" "int *""'");
28107   }
28108   arg3 = (int *)(argp3);
28109   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
28110   if (!SWIG_IsOK(res4)) {
28111     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_get_radec_center_hms" "', argument " "4"" of type '" "double *""'");
28112   }
28113   arg4 = (double *)(argp4);
28114   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
28115   if (!SWIG_IsOK(res5)) {
28116     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sip_get_radec_center_hms" "', argument " "5"" of type '" "int *""'");
28117   }
28118   arg5 = (int *)(argp5);
28119   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 |  0 );
28120   if (!SWIG_IsOK(res6)) {
28121     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "sip_get_radec_center_hms" "', argument " "6"" of type '" "int *""'");
28122   }
28123   arg6 = (int *)(argp6);
28124   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_int, 0 |  0 );
28125   if (!SWIG_IsOK(res7)) {
28126     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "sip_get_radec_center_hms" "', argument " "7"" of type '" "int *""'");
28127   }
28128   arg7 = (int *)(argp7);
28129   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_double, 0 |  0 );
28130   if (!SWIG_IsOK(res8)) {
28131     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "sip_get_radec_center_hms" "', argument " "8"" of type '" "double *""'");
28132   }
28133   arg8 = (double *)(argp8);
28134   sip_get_radec_center_hms((sip_t const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
28135   resultobj = SWIG_Py_Void();
28136   return resultobj;
28137 fail:
28138   return NULL;
28139 }
28140 
28141 
_wrap_sip_pixel_is_inside_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28142 SWIGINTERN PyObject *_wrap_sip_pixel_is_inside_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28143   PyObject *resultobj = 0;
28144   sip_t *arg1 = (sip_t *) 0 ;
28145   double arg2 ;
28146   double arg3 ;
28147   void *argp1 = 0 ;
28148   int res1 = 0 ;
28149   double val2 ;
28150   int ecode2 = 0 ;
28151   double val3 ;
28152   int ecode3 = 0 ;
28153   PyObject *swig_obj[3] ;
28154   anbool result;
28155 
28156   if (!SWIG_Python_UnpackTuple(args, "sip_pixel_is_inside_image", 3, 3, swig_obj)) SWIG_fail;
28157   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28158   if (!SWIG_IsOK(res1)) {
28159     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_pixel_is_inside_image" "', argument " "1"" of type '" "sip_t const *""'");
28160   }
28161   arg1 = (sip_t *)(argp1);
28162   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28163   if (!SWIG_IsOK(ecode2)) {
28164     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_pixel_is_inside_image" "', argument " "2"" of type '" "double""'");
28165   }
28166   arg2 = (double)(val2);
28167   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28168   if (!SWIG_IsOK(ecode3)) {
28169     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_pixel_is_inside_image" "', argument " "3"" of type '" "double""'");
28170   }
28171   arg3 = (double)(val3);
28172   result = (anbool)sip_pixel_is_inside_image((sip_t const *)arg1,arg2,arg3);
28173   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
28174   return resultobj;
28175 fail:
28176   return NULL;
28177 }
28178 
28179 
_wrap_sip_is_inside_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28180 SWIGINTERN PyObject *_wrap_sip_is_inside_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28181   PyObject *resultobj = 0;
28182   sip_t *arg1 = (sip_t *) 0 ;
28183   double arg2 ;
28184   double arg3 ;
28185   void *argp1 = 0 ;
28186   int res1 = 0 ;
28187   double val2 ;
28188   int ecode2 = 0 ;
28189   double val3 ;
28190   int ecode3 = 0 ;
28191   PyObject *swig_obj[3] ;
28192   anbool result;
28193 
28194   if (!SWIG_Python_UnpackTuple(args, "sip_is_inside_image", 3, 3, swig_obj)) SWIG_fail;
28195   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28196   if (!SWIG_IsOK(res1)) {
28197     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_is_inside_image" "', argument " "1"" of type '" "sip_t const *""'");
28198   }
28199   arg1 = (sip_t *)(argp1);
28200   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28201   if (!SWIG_IsOK(ecode2)) {
28202     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sip_is_inside_image" "', argument " "2"" of type '" "double""'");
28203   }
28204   arg2 = (double)(val2);
28205   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28206   if (!SWIG_IsOK(ecode3)) {
28207     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_is_inside_image" "', argument " "3"" of type '" "double""'");
28208   }
28209   arg3 = (double)(val3);
28210   result = (anbool)sip_is_inside_image((sip_t const *)arg1,arg2,arg3);
28211   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
28212   return resultobj;
28213 fail:
28214   return NULL;
28215 }
28216 
28217 
_wrap_sip_get_radec_center_hms_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28218 SWIGINTERN PyObject *_wrap_sip_get_radec_center_hms_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28219   PyObject *resultobj = 0;
28220   sip_t *arg1 = (sip_t *) 0 ;
28221   char *arg2 = (char *) 0 ;
28222   char *arg3 = (char *) 0 ;
28223   void *argp1 = 0 ;
28224   int res1 = 0 ;
28225   int res2 ;
28226   char *buf2 = 0 ;
28227   int alloc2 = 0 ;
28228   int res3 ;
28229   char *buf3 = 0 ;
28230   int alloc3 = 0 ;
28231   PyObject *swig_obj[3] ;
28232 
28233   if (!SWIG_Python_UnpackTuple(args, "sip_get_radec_center_hms_string", 3, 3, swig_obj)) SWIG_fail;
28234   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28235   if (!SWIG_IsOK(res1)) {
28236     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_radec_center_hms_string" "', argument " "1"" of type '" "sip_t const *""'");
28237   }
28238   arg1 = (sip_t *)(argp1);
28239   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
28240   if (!SWIG_IsOK(res2)) {
28241     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_get_radec_center_hms_string" "', argument " "2"" of type '" "char *""'");
28242   }
28243   arg2 = (char *)(buf2);
28244   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
28245   if (!SWIG_IsOK(res3)) {
28246     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_get_radec_center_hms_string" "', argument " "3"" of type '" "char *""'");
28247   }
28248   arg3 = (char *)(buf3);
28249   sip_get_radec_center_hms_string((sip_t const *)arg1,arg2,arg3);
28250   resultobj = SWIG_Py_Void();
28251   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
28252   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
28253   return resultobj;
28254 fail:
28255   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
28256   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
28257   return NULL;
28258 }
28259 
28260 
_wrap_sip_get_field_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28261 SWIGINTERN PyObject *_wrap_sip_get_field_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28262   PyObject *resultobj = 0;
28263   sip_t *arg1 = (sip_t *) 0 ;
28264   double *arg2 = (double *) 0 ;
28265   double *arg3 = (double *) 0 ;
28266   char **arg4 = (char **) 0 ;
28267   void *argp1 = 0 ;
28268   int res1 = 0 ;
28269   void *argp2 = 0 ;
28270   int res2 = 0 ;
28271   void *argp3 = 0 ;
28272   int res3 = 0 ;
28273   void *argp4 = 0 ;
28274   int res4 = 0 ;
28275   PyObject *swig_obj[4] ;
28276 
28277   if (!SWIG_Python_UnpackTuple(args, "sip_get_field_size", 4, 4, swig_obj)) SWIG_fail;
28278   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28279   if (!SWIG_IsOK(res1)) {
28280     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_get_field_size" "', argument " "1"" of type '" "sip_t const *""'");
28281   }
28282   arg1 = (sip_t *)(argp1);
28283   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
28284   if (!SWIG_IsOK(res2)) {
28285     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_get_field_size" "', argument " "2"" of type '" "double *""'");
28286   }
28287   arg2 = (double *)(argp2);
28288   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
28289   if (!SWIG_IsOK(res3)) {
28290     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sip_get_field_size" "', argument " "3"" of type '" "double *""'");
28291   }
28292   arg3 = (double *)(argp3);
28293   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_p_char, 0 |  0 );
28294   if (!SWIG_IsOK(res4)) {
28295     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sip_get_field_size" "', argument " "4"" of type '" "char **""'");
28296   }
28297   arg4 = (char **)(argp4);
28298   sip_get_field_size((sip_t const *)arg1,arg2,arg3,arg4);
28299   resultobj = SWIG_Py_Void();
28300   return resultobj;
28301 fail:
28302   return NULL;
28303 }
28304 
28305 
_wrap_sip_shift(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28306 SWIGINTERN PyObject *_wrap_sip_shift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28307   PyObject *resultobj = 0;
28308   sip_t *arg1 = (sip_t *) 0 ;
28309   sip_t *arg2 = (sip_t *) 0 ;
28310   double arg3 ;
28311   double arg4 ;
28312   double arg5 ;
28313   double arg6 ;
28314   void *argp1 = 0 ;
28315   int res1 = 0 ;
28316   void *argp2 = 0 ;
28317   int res2 = 0 ;
28318   double val3 ;
28319   int ecode3 = 0 ;
28320   double val4 ;
28321   int ecode4 = 0 ;
28322   double val5 ;
28323   int ecode5 = 0 ;
28324   double val6 ;
28325   int ecode6 = 0 ;
28326   PyObject *swig_obj[6] ;
28327 
28328   if (!SWIG_Python_UnpackTuple(args, "sip_shift", 6, 6, swig_obj)) SWIG_fail;
28329   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28330   if (!SWIG_IsOK(res1)) {
28331     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_shift" "', argument " "1"" of type '" "sip_t const *""'");
28332   }
28333   arg1 = (sip_t *)(argp1);
28334   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
28335   if (!SWIG_IsOK(res2)) {
28336     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_shift" "', argument " "2"" of type '" "sip_t *""'");
28337   }
28338   arg2 = (sip_t *)(argp2);
28339   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28340   if (!SWIG_IsOK(ecode3)) {
28341     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_shift" "', argument " "3"" of type '" "double""'");
28342   }
28343   arg3 = (double)(val3);
28344   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
28345   if (!SWIG_IsOK(ecode4)) {
28346     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "sip_shift" "', argument " "4"" of type '" "double""'");
28347   }
28348   arg4 = (double)(val4);
28349   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
28350   if (!SWIG_IsOK(ecode5)) {
28351     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "sip_shift" "', argument " "5"" of type '" "double""'");
28352   }
28353   arg5 = (double)(val5);
28354   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
28355   if (!SWIG_IsOK(ecode6)) {
28356     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "sip_shift" "', argument " "6"" of type '" "double""'");
28357   }
28358   arg6 = (double)(val6);
28359   sip_shift((sip_t const *)arg1,arg2,arg3,arg4,arg5,arg6);
28360   resultobj = SWIG_Py_Void();
28361   return resultobj;
28362 fail:
28363   return NULL;
28364 }
28365 
28366 
_wrap_tan_pixel_is_inside_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28367 SWIGINTERN PyObject *_wrap_tan_pixel_is_inside_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28368   PyObject *resultobj = 0;
28369   tan_t *arg1 = (tan_t *) 0 ;
28370   double arg2 ;
28371   double arg3 ;
28372   void *argp1 = 0 ;
28373   int res1 = 0 ;
28374   double val2 ;
28375   int ecode2 = 0 ;
28376   double val3 ;
28377   int ecode3 = 0 ;
28378   PyObject *swig_obj[3] ;
28379   anbool result;
28380 
28381   if (!SWIG_Python_UnpackTuple(args, "tan_pixel_is_inside_image", 3, 3, swig_obj)) SWIG_fail;
28382   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28383   if (!SWIG_IsOK(res1)) {
28384     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_pixel_is_inside_image" "', argument " "1"" of type '" "tan_t const *""'");
28385   }
28386   arg1 = (tan_t *)(argp1);
28387   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28388   if (!SWIG_IsOK(ecode2)) {
28389     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_pixel_is_inside_image" "', argument " "2"" of type '" "double""'");
28390   }
28391   arg2 = (double)(val2);
28392   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28393   if (!SWIG_IsOK(ecode3)) {
28394     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_pixel_is_inside_image" "', argument " "3"" of type '" "double""'");
28395   }
28396   arg3 = (double)(val3);
28397   result = (anbool)tan_pixel_is_inside_image((tan_t const *)arg1,arg2,arg3);
28398   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
28399   return resultobj;
28400 fail:
28401   return NULL;
28402 }
28403 
28404 
_wrap_tan_is_inside_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28405 SWIGINTERN PyObject *_wrap_tan_is_inside_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28406   PyObject *resultobj = 0;
28407   tan_t *arg1 = (tan_t *) 0 ;
28408   double arg2 ;
28409   double arg3 ;
28410   void *argp1 = 0 ;
28411   int res1 = 0 ;
28412   double val2 ;
28413   int ecode2 = 0 ;
28414   double val3 ;
28415   int ecode3 = 0 ;
28416   PyObject *swig_obj[3] ;
28417   anbool result;
28418 
28419   if (!SWIG_Python_UnpackTuple(args, "tan_is_inside_image", 3, 3, swig_obj)) SWIG_fail;
28420   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28421   if (!SWIG_IsOK(res1)) {
28422     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_is_inside_image" "', argument " "1"" of type '" "tan_t const *""'");
28423   }
28424   arg1 = (tan_t *)(argp1);
28425   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28426   if (!SWIG_IsOK(ecode2)) {
28427     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tan_is_inside_image" "', argument " "2"" of type '" "double""'");
28428   }
28429   arg2 = (double)(val2);
28430   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28431   if (!SWIG_IsOK(ecode3)) {
28432     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_is_inside_image" "', argument " "3"" of type '" "double""'");
28433   }
28434   arg3 = (double)(val3);
28435   result = (anbool)tan_is_inside_image((tan_t const *)arg1,arg2,arg3);
28436   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
28437   return resultobj;
28438 fail:
28439   return NULL;
28440 }
28441 
28442 
_wrap_tan_transform(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28443 SWIGINTERN PyObject *_wrap_tan_transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28444   PyObject *resultobj = 0;
28445   tan_t *arg1 = (tan_t *) 0 ;
28446   tan_t *arg2 = (tan_t *) 0 ;
28447   double arg3 ;
28448   double arg4 ;
28449   double arg5 ;
28450   double arg6 ;
28451   double arg7 ;
28452   void *argp1 = 0 ;
28453   int res1 = 0 ;
28454   void *argp2 = 0 ;
28455   int res2 = 0 ;
28456   double val3 ;
28457   int ecode3 = 0 ;
28458   double val4 ;
28459   int ecode4 = 0 ;
28460   double val5 ;
28461   int ecode5 = 0 ;
28462   double val6 ;
28463   int ecode6 = 0 ;
28464   double val7 ;
28465   int ecode7 = 0 ;
28466   PyObject *swig_obj[7] ;
28467 
28468   if (!SWIG_Python_UnpackTuple(args, "tan_transform", 7, 7, swig_obj)) SWIG_fail;
28469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28470   if (!SWIG_IsOK(res1)) {
28471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_transform" "', argument " "1"" of type '" "tan_t const *""'");
28472   }
28473   arg1 = (tan_t *)(argp1);
28474   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
28475   if (!SWIG_IsOK(res2)) {
28476     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_transform" "', argument " "2"" of type '" "tan_t *""'");
28477   }
28478   arg2 = (tan_t *)(argp2);
28479   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28480   if (!SWIG_IsOK(ecode3)) {
28481     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_transform" "', argument " "3"" of type '" "double""'");
28482   }
28483   arg3 = (double)(val3);
28484   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
28485   if (!SWIG_IsOK(ecode4)) {
28486     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "tan_transform" "', argument " "4"" of type '" "double""'");
28487   }
28488   arg4 = (double)(val4);
28489   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
28490   if (!SWIG_IsOK(ecode5)) {
28491     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "tan_transform" "', argument " "5"" of type '" "double""'");
28492   }
28493   arg5 = (double)(val5);
28494   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
28495   if (!SWIG_IsOK(ecode6)) {
28496     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "tan_transform" "', argument " "6"" of type '" "double""'");
28497   }
28498   arg6 = (double)(val6);
28499   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
28500   if (!SWIG_IsOK(ecode7)) {
28501     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "tan_transform" "', argument " "7"" of type '" "double""'");
28502   }
28503   arg7 = (double)(val7);
28504   tan_transform((tan_t const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
28505   resultobj = SWIG_Py_Void();
28506   return resultobj;
28507 fail:
28508   return NULL;
28509 }
28510 
28511 
_wrap_tan_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28512 SWIGINTERN PyObject *_wrap_tan_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513   PyObject *resultobj = 0;
28514   tan_t *arg1 = (tan_t *) 0 ;
28515   tan_t *arg2 = (tan_t *) 0 ;
28516   double arg3 ;
28517   void *argp1 = 0 ;
28518   int res1 = 0 ;
28519   void *argp2 = 0 ;
28520   int res2 = 0 ;
28521   double val3 ;
28522   int ecode3 = 0 ;
28523   PyObject *swig_obj[3] ;
28524 
28525   if (!SWIG_Python_UnpackTuple(args, "tan_scale", 3, 3, swig_obj)) SWIG_fail;
28526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28527   if (!SWIG_IsOK(res1)) {
28528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_scale" "', argument " "1"" of type '" "tan_t const *""'");
28529   }
28530   arg1 = (tan_t *)(argp1);
28531   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
28532   if (!SWIG_IsOK(res2)) {
28533     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_scale" "', argument " "2"" of type '" "tan_t *""'");
28534   }
28535   arg2 = (tan_t *)(argp2);
28536   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28537   if (!SWIG_IsOK(ecode3)) {
28538     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_scale" "', argument " "3"" of type '" "double""'");
28539   }
28540   arg3 = (double)(val3);
28541   tan_scale((tan_t const *)arg1,arg2,arg3);
28542   resultobj = SWIG_Py_Void();
28543   return resultobj;
28544 fail:
28545   return NULL;
28546 }
28547 
28548 
_wrap_sip_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28549 SWIGINTERN PyObject *_wrap_sip_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28550   PyObject *resultobj = 0;
28551   sip_t *arg1 = (sip_t *) 0 ;
28552   sip_t *arg2 = (sip_t *) 0 ;
28553   double arg3 ;
28554   void *argp1 = 0 ;
28555   int res1 = 0 ;
28556   void *argp2 = 0 ;
28557   int res2 = 0 ;
28558   double val3 ;
28559   int ecode3 = 0 ;
28560   PyObject *swig_obj[3] ;
28561 
28562   if (!SWIG_Python_UnpackTuple(args, "sip_scale", 3, 3, swig_obj)) SWIG_fail;
28563   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28564   if (!SWIG_IsOK(res1)) {
28565     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_scale" "', argument " "1"" of type '" "sip_t const *""'");
28566   }
28567   arg1 = (sip_t *)(argp1);
28568   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
28569   if (!SWIG_IsOK(res2)) {
28570     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sip_scale" "', argument " "2"" of type '" "sip_t *""'");
28571   }
28572   arg2 = (sip_t *)(argp2);
28573   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28574   if (!SWIG_IsOK(ecode3)) {
28575     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sip_scale" "', argument " "3"" of type '" "double""'");
28576   }
28577   arg3 = (double)(val3);
28578   sip_scale((sip_t const *)arg1,arg2,arg3);
28579   resultobj = SWIG_Py_Void();
28580   return resultobj;
28581 fail:
28582   return NULL;
28583 }
28584 
28585 
_wrap_tan_rotate(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28586 SWIGINTERN PyObject *_wrap_tan_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28587   PyObject *resultobj = 0;
28588   tan_t *arg1 = (tan_t *) 0 ;
28589   tan_t *arg2 = (tan_t *) 0 ;
28590   double arg3 ;
28591   void *argp1 = 0 ;
28592   int res1 = 0 ;
28593   void *argp2 = 0 ;
28594   int res2 = 0 ;
28595   double val3 ;
28596   int ecode3 = 0 ;
28597   PyObject *swig_obj[3] ;
28598 
28599   if (!SWIG_Python_UnpackTuple(args, "tan_rotate", 3, 3, swig_obj)) SWIG_fail;
28600   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28601   if (!SWIG_IsOK(res1)) {
28602     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_rotate" "', argument " "1"" of type '" "tan_t const *""'");
28603   }
28604   arg1 = (tan_t *)(argp1);
28605   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
28606   if (!SWIG_IsOK(res2)) {
28607     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_rotate" "', argument " "2"" of type '" "tan_t *""'");
28608   }
28609   arg2 = (tan_t *)(argp2);
28610   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28611   if (!SWIG_IsOK(ecode3)) {
28612     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "tan_rotate" "', argument " "3"" of type '" "double""'");
28613   }
28614   arg3 = (double)(val3);
28615   tan_rotate((tan_t const *)arg1,arg2,arg3);
28616   resultobj = SWIG_Py_Void();
28617   return resultobj;
28618 fail:
28619   return NULL;
28620 }
28621 
28622 
_wrap_coadd_add_numpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28623 SWIGINTERN PyObject *_wrap_coadd_add_numpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28624   PyObject *resultobj = 0;
28625   coadd_t *arg1 = (coadd_t *) 0 ;
28626   PyObject *arg2 = (PyObject *) 0 ;
28627   PyObject *arg3 = (PyObject *) 0 ;
28628   float arg4 ;
28629   anwcs_t *arg5 = (anwcs_t *) 0 ;
28630   void *argp1 = 0 ;
28631   int res1 = 0 ;
28632   float val4 ;
28633   int ecode4 = 0 ;
28634   void *argp5 = 0 ;
28635   int res5 = 0 ;
28636   PyObject *swig_obj[5] ;
28637   int result;
28638 
28639   if (!SWIG_Python_UnpackTuple(args, "coadd_add_numpy", 5, 5, swig_obj)) SWIG_fail;
28640   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
28641   if (!SWIG_IsOK(res1)) {
28642     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_add_numpy" "', argument " "1"" of type '" "coadd_t *""'");
28643   }
28644   arg1 = (coadd_t *)(argp1);
28645   arg2 = swig_obj[1];
28646   arg3 = swig_obj[2];
28647   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
28648   if (!SWIG_IsOK(ecode4)) {
28649     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "coadd_add_numpy" "', argument " "4"" of type '" "float""'");
28650   }
28651   arg4 = (float)(val4);
28652   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_anwcs_t, 0 |  0 );
28653   if (!SWIG_IsOK(res5)) {
28654     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "coadd_add_numpy" "', argument " "5"" of type '" "anwcs_t const *""'");
28655   }
28656   arg5 = (anwcs_t *)(argp5);
28657   result = (int)coadd_add_numpy(arg1,arg2,arg3,arg4,(struct anwcs_t const *)arg5);
28658   resultobj = SWIG_From_int((int)(result));
28659   return resultobj;
28660 fail:
28661   return NULL;
28662 }
28663 
28664 
_wrap_coadd_get_snapshot_numpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28665 SWIGINTERN PyObject *_wrap_coadd_get_snapshot_numpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28666   PyObject *resultobj = 0;
28667   coadd_t *arg1 = (coadd_t *) 0 ;
28668   float arg2 ;
28669   void *argp1 = 0 ;
28670   int res1 = 0 ;
28671   float val2 ;
28672   int ecode2 = 0 ;
28673   PyObject *swig_obj[2] ;
28674   PyObject *result = 0 ;
28675 
28676   if (!SWIG_Python_UnpackTuple(args, "coadd_get_snapshot_numpy", 2, 2, swig_obj)) SWIG_fail;
28677   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_coadd_t, 0 |  0 );
28678   if (!SWIG_IsOK(res1)) {
28679     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coadd_get_snapshot_numpy" "', argument " "1"" of type '" "coadd_t *""'");
28680   }
28681   arg1 = (coadd_t *)(argp1);
28682   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
28683   if (!SWIG_IsOK(ecode2)) {
28684     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coadd_get_snapshot_numpy" "', argument " "2"" of type '" "float""'");
28685   }
28686   arg2 = (float)(val2);
28687   result = (PyObject *)coadd_get_snapshot_numpy(arg1,arg2);
28688   resultobj = result;
28689   return resultobj;
28690 fail:
28691   return NULL;
28692 }
28693 
28694 
_wrap_fit_sip_wcs_py(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28695 SWIGINTERN PyObject *_wrap_fit_sip_wcs_py(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28696   PyObject *resultobj = 0;
28697   PyObject *arg1 = (PyObject *) 0 ;
28698   PyObject *arg2 = (PyObject *) 0 ;
28699   PyObject *arg3 = (PyObject *) 0 ;
28700   tan_t *arg4 = (tan_t *) 0 ;
28701   int arg5 ;
28702   int arg6 ;
28703   void *argp4 = 0 ;
28704   int res4 = 0 ;
28705   int val5 ;
28706   int ecode5 = 0 ;
28707   int val6 ;
28708   int ecode6 = 0 ;
28709   PyObject *swig_obj[6] ;
28710   sip_t *result = 0 ;
28711 
28712   if (!SWIG_Python_UnpackTuple(args, "fit_sip_wcs_py", 6, 6, swig_obj)) SWIG_fail;
28713   arg1 = swig_obj[0];
28714   arg2 = swig_obj[1];
28715   arg3 = swig_obj[2];
28716   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_tan_t, 0 |  0 );
28717   if (!SWIG_IsOK(res4)) {
28718     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fit_sip_wcs_py" "', argument " "4"" of type '" "tan_t *""'");
28719   }
28720   arg4 = (tan_t *)(argp4);
28721   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
28722   if (!SWIG_IsOK(ecode5)) {
28723     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fit_sip_wcs_py" "', argument " "5"" of type '" "int""'");
28724   }
28725   arg5 = (int)(val5);
28726   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
28727   if (!SWIG_IsOK(ecode6)) {
28728     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fit_sip_wcs_py" "', argument " "6"" of type '" "int""'");
28729   }
28730   arg6 = (int)(val6);
28731   result = (sip_t *)fit_sip_wcs_py(arg1,arg2,arg3,arg4,arg5,arg6);
28732   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sip_t, 0 |  0 );
28733   return resultobj;
28734 fail:
28735   return NULL;
28736 }
28737 
28738 
_wrap_broadcast_2to2ok(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28739 SWIGINTERN PyObject *_wrap_broadcast_2to2ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28740   PyObject *resultobj = 0;
28741   f_2to2ok arg1 = (f_2to2ok) 0 ;
28742   void *arg2 = (void *) 0 ;
28743   PyObject *arg3 = (PyObject *) 0 ;
28744   PyObject *arg4 = (PyObject *) 0 ;
28745   int res2 ;
28746   PyObject *swig_obj[4] ;
28747   PyObject *result = 0 ;
28748 
28749   if (!SWIG_Python_UnpackTuple(args, "broadcast_2to2ok", 4, 4, swig_obj)) SWIG_fail;
28750   {
28751     int res = SWIG_ConvertFunctionPtr(swig_obj[0], (void**)(&arg1), SWIGTYPE_p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char);
28752     if (!SWIG_IsOK(res)) {
28753       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "broadcast_2to2ok" "', argument " "1"" of type '" "f_2to2ok""'");
28754     }
28755   }
28756   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
28757   if (!SWIG_IsOK(res2)) {
28758     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "broadcast_2to2ok" "', argument " "2"" of type '" "void const *""'");
28759   }
28760   arg3 = swig_obj[2];
28761   arg4 = swig_obj[3];
28762   result = (PyObject *)broadcast_2to2ok(arg1,(void const *)arg2,arg3,arg4);
28763   resultobj = result;
28764   return resultobj;
28765 fail:
28766   return NULL;
28767 }
28768 
28769 
_wrap_broadcast_2to2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28770 SWIGINTERN PyObject *_wrap_broadcast_2to2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28771   PyObject *resultobj = 0;
28772   f_2to2 arg1 = (f_2to2) 0 ;
28773   void *arg2 = (void *) 0 ;
28774   PyObject *arg3 = (PyObject *) 0 ;
28775   PyObject *arg4 = (PyObject *) 0 ;
28776   int res2 ;
28777   PyObject *swig_obj[4] ;
28778   PyObject *result = 0 ;
28779 
28780   if (!SWIG_Python_UnpackTuple(args, "broadcast_2to2", 4, 4, swig_obj)) SWIG_fail;
28781   {
28782     int res = SWIG_ConvertFunctionPtr(swig_obj[0], (void**)(&arg1), SWIGTYPE_p_f_p_q_const__void_double_double_p_double_p_double__void);
28783     if (!SWIG_IsOK(res)) {
28784       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "broadcast_2to2" "', argument " "1"" of type '" "f_2to2""'");
28785     }
28786   }
28787   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
28788   if (!SWIG_IsOK(res2)) {
28789     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "broadcast_2to2" "', argument " "2"" of type '" "void const *""'");
28790   }
28791   arg3 = swig_obj[2];
28792   arg4 = swig_obj[3];
28793   result = (PyObject *)broadcast_2to2(arg1,(void const *)arg2,arg3,arg4);
28794   resultobj = result;
28795   return resultobj;
28796 fail:
28797   return NULL;
28798 }
28799 
28800 
_wrap_broadcast_2to2i(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28801 SWIGINTERN PyObject *_wrap_broadcast_2to2i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28802   PyObject *resultobj = 0;
28803   f_2to2i arg1 = (f_2to2i) 0 ;
28804   void *arg2 = (void *) 0 ;
28805   PyObject *arg3 = (PyObject *) 0 ;
28806   PyObject *arg4 = (PyObject *) 0 ;
28807   int res2 ;
28808   PyObject *swig_obj[4] ;
28809   PyObject *result = 0 ;
28810 
28811   if (!SWIG_Python_UnpackTuple(args, "broadcast_2to2i", 4, 4, swig_obj)) SWIG_fail;
28812   {
28813     int res = SWIG_ConvertFunctionPtr(swig_obj[0], (void**)(&arg1), SWIGTYPE_p_f_p_q_const__void_double_double_p_double_p_double__int);
28814     if (!SWIG_IsOK(res)) {
28815       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "broadcast_2to2i" "', argument " "1"" of type '" "f_2to2i""'");
28816     }
28817   }
28818   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
28819   if (!SWIG_IsOK(res2)) {
28820     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "broadcast_2to2i" "', argument " "2"" of type '" "void const *""'");
28821   }
28822   arg3 = swig_obj[2];
28823   arg4 = swig_obj[3];
28824   result = (PyObject *)broadcast_2to2i(arg1,(void const *)arg2,arg3,arg4);
28825   resultobj = result;
28826   return resultobj;
28827 fail:
28828   return NULL;
28829 }
28830 
28831 
_wrap_tan_rd2xy_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28832 SWIGINTERN PyObject *_wrap_tan_rd2xy_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28833   PyObject *resultobj = 0;
28834   tan_t *arg1 = (tan_t *) 0 ;
28835   PyObject *arg2 = (PyObject *) 0 ;
28836   PyObject *arg3 = (PyObject *) 0 ;
28837   void *argp1 = 0 ;
28838   int res1 = 0 ;
28839   PyObject *swig_obj[3] ;
28840   PyObject *result = 0 ;
28841 
28842   if (!SWIG_Python_UnpackTuple(args, "tan_rd2xy_wrapper", 3, 3, swig_obj)) SWIG_fail;
28843   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28844   if (!SWIG_IsOK(res1)) {
28845     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_rd2xy_wrapper" "', argument " "1"" of type '" "tan_t const *""'");
28846   }
28847   arg1 = (tan_t *)(argp1);
28848   arg2 = swig_obj[1];
28849   arg3 = swig_obj[2];
28850   result = (PyObject *)tan_rd2xy_wrapper((tan_t const *)arg1,arg2,arg3);
28851   resultobj = result;
28852   return resultobj;
28853 fail:
28854   return NULL;
28855 }
28856 
28857 
_wrap_sip_rd2xy_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28858 SWIGINTERN PyObject *_wrap_sip_rd2xy_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28859   PyObject *resultobj = 0;
28860   sip_t *arg1 = (sip_t *) 0 ;
28861   PyObject *arg2 = (PyObject *) 0 ;
28862   PyObject *arg3 = (PyObject *) 0 ;
28863   void *argp1 = 0 ;
28864   int res1 = 0 ;
28865   PyObject *swig_obj[3] ;
28866   PyObject *result = 0 ;
28867 
28868   if (!SWIG_Python_UnpackTuple(args, "sip_rd2xy_wrapper", 3, 3, swig_obj)) SWIG_fail;
28869   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28870   if (!SWIG_IsOK(res1)) {
28871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_rd2xy_wrapper" "', argument " "1"" of type '" "sip_t const *""'");
28872   }
28873   arg1 = (sip_t *)(argp1);
28874   arg2 = swig_obj[1];
28875   arg3 = swig_obj[2];
28876   result = (PyObject *)sip_rd2xy_wrapper((sip_t const *)arg1,arg2,arg3);
28877   resultobj = result;
28878   return resultobj;
28879 fail:
28880   return NULL;
28881 }
28882 
28883 
_wrap_anwcs_rd2xy_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28884 SWIGINTERN PyObject *_wrap_anwcs_rd2xy_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28885   PyObject *resultobj = 0;
28886   anwcs_t *arg1 = (anwcs_t *) 0 ;
28887   PyObject *arg2 = (PyObject *) 0 ;
28888   PyObject *arg3 = (PyObject *) 0 ;
28889   void *argp1 = 0 ;
28890   int res1 = 0 ;
28891   PyObject *swig_obj[3] ;
28892   PyObject *result = 0 ;
28893 
28894   if (!SWIG_Python_UnpackTuple(args, "anwcs_rd2xy_wrapper", 3, 3, swig_obj)) SWIG_fail;
28895   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
28896   if (!SWIG_IsOK(res1)) {
28897     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_rd2xy_wrapper" "', argument " "1"" of type '" "anwcs_t const *""'");
28898   }
28899   arg1 = (anwcs_t *)(argp1);
28900   arg2 = swig_obj[1];
28901   arg3 = swig_obj[2];
28902   result = (PyObject *)anwcs_rd2xy_wrapper((struct anwcs_t const *)arg1,arg2,arg3);
28903   resultobj = result;
28904   return resultobj;
28905 fail:
28906   return NULL;
28907 }
28908 
28909 
_wrap_tan_iwc2xy_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28910 SWIGINTERN PyObject *_wrap_tan_iwc2xy_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28911   PyObject *resultobj = 0;
28912   tan_t *arg1 = (tan_t *) 0 ;
28913   PyObject *arg2 = (PyObject *) 0 ;
28914   PyObject *arg3 = (PyObject *) 0 ;
28915   void *argp1 = 0 ;
28916   int res1 = 0 ;
28917   PyObject *swig_obj[3] ;
28918   PyObject *result = 0 ;
28919 
28920   if (!SWIG_Python_UnpackTuple(args, "tan_iwc2xy_wrapper", 3, 3, swig_obj)) SWIG_fail;
28921   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28922   if (!SWIG_IsOK(res1)) {
28923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_iwc2xy_wrapper" "', argument " "1"" of type '" "tan_t const *""'");
28924   }
28925   arg1 = (tan_t *)(argp1);
28926   arg2 = swig_obj[1];
28927   arg3 = swig_obj[2];
28928   result = (PyObject *)tan_iwc2xy_wrapper((tan_t const *)arg1,arg2,arg3);
28929   resultobj = result;
28930   return resultobj;
28931 fail:
28932   return NULL;
28933 }
28934 
28935 
_wrap_sip_iwc2xy_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28936 SWIGINTERN PyObject *_wrap_sip_iwc2xy_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28937   PyObject *resultobj = 0;
28938   sip_t *arg1 = (sip_t *) 0 ;
28939   PyObject *arg2 = (PyObject *) 0 ;
28940   PyObject *arg3 = (PyObject *) 0 ;
28941   void *argp1 = 0 ;
28942   int res1 = 0 ;
28943   PyObject *swig_obj[3] ;
28944   PyObject *result = 0 ;
28945 
28946   if (!SWIG_Python_UnpackTuple(args, "sip_iwc2xy_wrapper", 3, 3, swig_obj)) SWIG_fail;
28947   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
28948   if (!SWIG_IsOK(res1)) {
28949     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_iwc2xy_wrapper" "', argument " "1"" of type '" "sip_t const *""'");
28950   }
28951   arg1 = (sip_t *)(argp1);
28952   arg2 = swig_obj[1];
28953   arg3 = swig_obj[2];
28954   result = (PyObject *)sip_iwc2xy_wrapper((sip_t const *)arg1,arg2,arg3);
28955   resultobj = result;
28956   return resultobj;
28957 fail:
28958   return NULL;
28959 }
28960 
28961 
_wrap_tan_xy2iwc_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28962 SWIGINTERN PyObject *_wrap_tan_xy2iwc_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28963   PyObject *resultobj = 0;
28964   tan_t *arg1 = (tan_t *) 0 ;
28965   PyObject *arg2 = (PyObject *) 0 ;
28966   PyObject *arg3 = (PyObject *) 0 ;
28967   void *argp1 = 0 ;
28968   int res1 = 0 ;
28969   PyObject *swig_obj[3] ;
28970   PyObject *result = 0 ;
28971 
28972   if (!SWIG_Python_UnpackTuple(args, "tan_xy2iwc_wrapper", 3, 3, swig_obj)) SWIG_fail;
28973   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
28974   if (!SWIG_IsOK(res1)) {
28975     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_xy2iwc_wrapper" "', argument " "1"" of type '" "tan_t const *""'");
28976   }
28977   arg1 = (tan_t *)(argp1);
28978   arg2 = swig_obj[1];
28979   arg3 = swig_obj[2];
28980   result = (PyObject *)tan_xy2iwc_wrapper((tan_t const *)arg1,arg2,arg3);
28981   resultobj = result;
28982   return resultobj;
28983 fail:
28984   return NULL;
28985 }
28986 
28987 
_wrap_sip_xy2iwc_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28988 SWIGINTERN PyObject *_wrap_sip_xy2iwc_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28989   PyObject *resultobj = 0;
28990   sip_t *arg1 = (sip_t *) 0 ;
28991   PyObject *arg2 = (PyObject *) 0 ;
28992   PyObject *arg3 = (PyObject *) 0 ;
28993   void *argp1 = 0 ;
28994   int res1 = 0 ;
28995   PyObject *swig_obj[3] ;
28996   PyObject *result = 0 ;
28997 
28998   if (!SWIG_Python_UnpackTuple(args, "sip_xy2iwc_wrapper", 3, 3, swig_obj)) SWIG_fail;
28999   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
29000   if (!SWIG_IsOK(res1)) {
29001     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_xy2iwc_wrapper" "', argument " "1"" of type '" "sip_t const *""'");
29002   }
29003   arg1 = (sip_t *)(argp1);
29004   arg2 = swig_obj[1];
29005   arg3 = swig_obj[2];
29006   result = (PyObject *)sip_xy2iwc_wrapper((sip_t const *)arg1,arg2,arg3);
29007   resultobj = result;
29008   return resultobj;
29009 fail:
29010   return NULL;
29011 }
29012 
29013 
_wrap_tan_iwc2rd_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29014 SWIGINTERN PyObject *_wrap_tan_iwc2rd_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29015   PyObject *resultobj = 0;
29016   tan_t *arg1 = (tan_t *) 0 ;
29017   PyObject *arg2 = (PyObject *) 0 ;
29018   PyObject *arg3 = (PyObject *) 0 ;
29019   void *argp1 = 0 ;
29020   int res1 = 0 ;
29021   PyObject *swig_obj[3] ;
29022   PyObject *result = 0 ;
29023 
29024   if (!SWIG_Python_UnpackTuple(args, "tan_iwc2rd_wrapper", 3, 3, swig_obj)) SWIG_fail;
29025   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
29026   if (!SWIG_IsOK(res1)) {
29027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_iwc2rd_wrapper" "', argument " "1"" of type '" "tan_t const *""'");
29028   }
29029   arg1 = (tan_t *)(argp1);
29030   arg2 = swig_obj[1];
29031   arg3 = swig_obj[2];
29032   result = (PyObject *)tan_iwc2rd_wrapper((tan_t const *)arg1,arg2,arg3);
29033   resultobj = result;
29034   return resultobj;
29035 fail:
29036   return NULL;
29037 }
29038 
29039 
_wrap_sip_iwc2rd_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29040 SWIGINTERN PyObject *_wrap_sip_iwc2rd_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29041   PyObject *resultobj = 0;
29042   sip_t *arg1 = (sip_t *) 0 ;
29043   PyObject *arg2 = (PyObject *) 0 ;
29044   PyObject *arg3 = (PyObject *) 0 ;
29045   void *argp1 = 0 ;
29046   int res1 = 0 ;
29047   PyObject *swig_obj[3] ;
29048   PyObject *result = 0 ;
29049 
29050   if (!SWIG_Python_UnpackTuple(args, "sip_iwc2rd_wrapper", 3, 3, swig_obj)) SWIG_fail;
29051   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
29052   if (!SWIG_IsOK(res1)) {
29053     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_iwc2rd_wrapper" "', argument " "1"" of type '" "sip_t const *""'");
29054   }
29055   arg1 = (sip_t *)(argp1);
29056   arg2 = swig_obj[1];
29057   arg3 = swig_obj[2];
29058   result = (PyObject *)sip_iwc2rd_wrapper((sip_t const *)arg1,arg2,arg3);
29059   resultobj = result;
29060   return resultobj;
29061 fail:
29062   return NULL;
29063 }
29064 
29065 
_wrap_tan_rd2iwc_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29066 SWIGINTERN PyObject *_wrap_tan_rd2iwc_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29067   PyObject *resultobj = 0;
29068   tan_t *arg1 = (tan_t *) 0 ;
29069   PyObject *arg2 = (PyObject *) 0 ;
29070   PyObject *arg3 = (PyObject *) 0 ;
29071   void *argp1 = 0 ;
29072   int res1 = 0 ;
29073   PyObject *swig_obj[3] ;
29074   PyObject *result = 0 ;
29075 
29076   if (!SWIG_Python_UnpackTuple(args, "tan_rd2iwc_wrapper", 3, 3, swig_obj)) SWIG_fail;
29077   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
29078   if (!SWIG_IsOK(res1)) {
29079     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_rd2iwc_wrapper" "', argument " "1"" of type '" "tan_t const *""'");
29080   }
29081   arg1 = (tan_t *)(argp1);
29082   arg2 = swig_obj[1];
29083   arg3 = swig_obj[2];
29084   result = (PyObject *)tan_rd2iwc_wrapper((tan_t const *)arg1,arg2,arg3);
29085   resultobj = result;
29086   return resultobj;
29087 fail:
29088   return NULL;
29089 }
29090 
29091 
_wrap_sip_rd2iwc_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29092 SWIGINTERN PyObject *_wrap_sip_rd2iwc_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29093   PyObject *resultobj = 0;
29094   sip_t *arg1 = (sip_t *) 0 ;
29095   PyObject *arg2 = (PyObject *) 0 ;
29096   PyObject *arg3 = (PyObject *) 0 ;
29097   void *argp1 = 0 ;
29098   int res1 = 0 ;
29099   PyObject *swig_obj[3] ;
29100   PyObject *result = 0 ;
29101 
29102   if (!SWIG_Python_UnpackTuple(args, "sip_rd2iwc_wrapper", 3, 3, swig_obj)) SWIG_fail;
29103   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
29104   if (!SWIG_IsOK(res1)) {
29105     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_rd2iwc_wrapper" "', argument " "1"" of type '" "sip_t const *""'");
29106   }
29107   arg1 = (sip_t *)(argp1);
29108   arg2 = swig_obj[1];
29109   arg3 = swig_obj[2];
29110   result = (PyObject *)sip_rd2iwc_wrapper((sip_t const *)arg1,arg2,arg3);
29111   resultobj = result;
29112   return resultobj;
29113 fail:
29114   return NULL;
29115 }
29116 
29117 
_wrap_tan_xy2rd_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29118 SWIGINTERN PyObject *_wrap_tan_xy2rd_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29119   PyObject *resultobj = 0;
29120   tan_t *arg1 = (tan_t *) 0 ;
29121   PyObject *arg2 = (PyObject *) 0 ;
29122   PyObject *arg3 = (PyObject *) 0 ;
29123   void *argp1 = 0 ;
29124   int res1 = 0 ;
29125   PyObject *swig_obj[3] ;
29126   PyObject *result = 0 ;
29127 
29128   if (!SWIG_Python_UnpackTuple(args, "tan_xy2rd_wrapper", 3, 3, swig_obj)) SWIG_fail;
29129   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
29130   if (!SWIG_IsOK(res1)) {
29131     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_xy2rd_wrapper" "', argument " "1"" of type '" "tan_t const *""'");
29132   }
29133   arg1 = (tan_t *)(argp1);
29134   arg2 = swig_obj[1];
29135   arg3 = swig_obj[2];
29136   result = (PyObject *)tan_xy2rd_wrapper((tan_t const *)arg1,arg2,arg3);
29137   resultobj = result;
29138   return resultobj;
29139 fail:
29140   return NULL;
29141 }
29142 
29143 
_wrap_sip_xy2rd_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29144 SWIGINTERN PyObject *_wrap_sip_xy2rd_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29145   PyObject *resultobj = 0;
29146   sip_t *arg1 = (sip_t *) 0 ;
29147   PyObject *arg2 = (PyObject *) 0 ;
29148   PyObject *arg3 = (PyObject *) 0 ;
29149   void *argp1 = 0 ;
29150   int res1 = 0 ;
29151   PyObject *swig_obj[3] ;
29152   PyObject *result = 0 ;
29153 
29154   if (!SWIG_Python_UnpackTuple(args, "sip_xy2rd_wrapper", 3, 3, swig_obj)) SWIG_fail;
29155   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sip_t, 0 |  0 );
29156   if (!SWIG_IsOK(res1)) {
29157     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sip_xy2rd_wrapper" "', argument " "1"" of type '" "sip_t const *""'");
29158   }
29159   arg1 = (sip_t *)(argp1);
29160   arg2 = swig_obj[1];
29161   arg3 = swig_obj[2];
29162   result = (PyObject *)sip_xy2rd_wrapper((sip_t const *)arg1,arg2,arg3);
29163   resultobj = result;
29164   return resultobj;
29165 fail:
29166   return NULL;
29167 }
29168 
29169 
_wrap_anwcs_xy2rd_wrapper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29170 SWIGINTERN PyObject *_wrap_anwcs_xy2rd_wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29171   PyObject *resultobj = 0;
29172   anwcs_t *arg1 = (anwcs_t *) 0 ;
29173   PyObject *arg2 = (PyObject *) 0 ;
29174   PyObject *arg3 = (PyObject *) 0 ;
29175   void *argp1 = 0 ;
29176   int res1 = 0 ;
29177   PyObject *swig_obj[3] ;
29178   PyObject *result = 0 ;
29179 
29180   if (!SWIG_Python_UnpackTuple(args, "anwcs_xy2rd_wrapper", 3, 3, swig_obj)) SWIG_fail;
29181   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_anwcs_t, 0 |  0 );
29182   if (!SWIG_IsOK(res1)) {
29183     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "anwcs_xy2rd_wrapper" "', argument " "1"" of type '" "anwcs_t const *""'");
29184   }
29185   arg1 = (anwcs_t *)(argp1);
29186   arg2 = swig_obj[1];
29187   arg3 = swig_obj[2];
29188   result = (PyObject *)anwcs_xy2rd_wrapper((struct anwcs_t const *)arg1,arg2,arg3);
29189   resultobj = result;
29190   return resultobj;
29191 fail:
29192   return NULL;
29193 }
29194 
29195 
_wrap_tan_wcs_resample(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29196 SWIGINTERN PyObject *_wrap_tan_wcs_resample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29197   PyObject *resultobj = 0;
29198   tan_t *arg1 = (tan_t *) 0 ;
29199   tan_t *arg2 = (tan_t *) 0 ;
29200   PyObject *arg3 = (PyObject *) 0 ;
29201   PyObject *arg4 = (PyObject *) 0 ;
29202   int arg5 ;
29203   int arg6 ;
29204   void *argp1 = 0 ;
29205   int res1 = 0 ;
29206   void *argp2 = 0 ;
29207   int res2 = 0 ;
29208   int val5 ;
29209   int ecode5 = 0 ;
29210   int val6 ;
29211   int ecode6 = 0 ;
29212   PyObject *swig_obj[6] ;
29213   int result;
29214 
29215   if (!SWIG_Python_UnpackTuple(args, "tan_wcs_resample", 6, 6, swig_obj)) SWIG_fail;
29216   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
29217   if (!SWIG_IsOK(res1)) {
29218     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_wcs_resample" "', argument " "1"" of type '" "tan_t *""'");
29219   }
29220   arg1 = (tan_t *)(argp1);
29221   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
29222   if (!SWIG_IsOK(res2)) {
29223     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_wcs_resample" "', argument " "2"" of type '" "tan_t *""'");
29224   }
29225   arg2 = (tan_t *)(argp2);
29226   arg3 = swig_obj[2];
29227   arg4 = swig_obj[3];
29228   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
29229   if (!SWIG_IsOK(ecode5)) {
29230     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "tan_wcs_resample" "', argument " "5"" of type '" "int""'");
29231   }
29232   arg5 = (int)(val5);
29233   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
29234   if (!SWIG_IsOK(ecode6)) {
29235     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "tan_wcs_resample" "', argument " "6"" of type '" "int""'");
29236   }
29237   arg6 = (int)(val6);
29238   result = (int)tan_wcs_resample(arg1,arg2,arg3,arg4,arg5,arg6);
29239   resultobj = SWIG_From_int((int)(result));
29240   return resultobj;
29241 fail:
29242   return NULL;
29243 }
29244 
29245 
_wrap_tan_numpy_xyz2pixelxy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29246 SWIGINTERN PyObject *_wrap_tan_numpy_xyz2pixelxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29247   PyObject *resultobj = 0;
29248   tan_t *arg1 = (tan_t *) 0 ;
29249   PyArrayObject *arg2 = (PyArrayObject *) 0 ;
29250   PyArrayObject *arg3 = (PyArrayObject *) 0 ;
29251   PyArrayObject *arg4 = (PyArrayObject *) 0 ;
29252   void *argp1 = 0 ;
29253   int res1 = 0 ;
29254   void *argp2 = 0 ;
29255   int res2 = 0 ;
29256   void *argp3 = 0 ;
29257   int res3 = 0 ;
29258   void *argp4 = 0 ;
29259   int res4 = 0 ;
29260   PyObject *swig_obj[4] ;
29261   int result;
29262 
29263   if (!SWIG_Python_UnpackTuple(args, "tan_numpy_xyz2pixelxy", 4, 4, swig_obj)) SWIG_fail;
29264   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_tan_t, 0 |  0 );
29265   if (!SWIG_IsOK(res1)) {
29266     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_numpy_xyz2pixelxy" "', argument " "1"" of type '" "tan_t *""'");
29267   }
29268   arg1 = (tan_t *)(argp1);
29269   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_PyArrayObject, 0 |  0 );
29270   if (!SWIG_IsOK(res2)) {
29271     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_numpy_xyz2pixelxy" "', argument " "2"" of type '" "PyArrayObject *""'");
29272   }
29273   arg2 = (PyArrayObject *)(argp2);
29274   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_PyArrayObject, 0 |  0 );
29275   if (!SWIG_IsOK(res3)) {
29276     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tan_numpy_xyz2pixelxy" "', argument " "3"" of type '" "PyArrayObject *""'");
29277   }
29278   arg3 = (PyArrayObject *)(argp3);
29279   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_PyArrayObject, 0 |  0 );
29280   if (!SWIG_IsOK(res4)) {
29281     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tan_numpy_xyz2pixelxy" "', argument " "4"" of type '" "PyArrayObject *""'");
29282   }
29283   arg4 = (PyArrayObject *)(argp4);
29284   result = (int)tan_numpy_xyz2pixelxy(arg1,arg2,arg3,arg4);
29285   resultobj = SWIG_From_int((int)(result));
29286   return resultobj;
29287 fail:
29288   return NULL;
29289 }
29290 
29291 
_wrap_an_tally(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29292 SWIGINTERN PyObject *_wrap_an_tally(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29293   PyObject *resultobj = 0;
29294   PyObject *arg1 = (PyObject *) 0 ;
29295   PyObject *arg2 = (PyObject *) 0 ;
29296   PyObject *arg3 = (PyObject *) 0 ;
29297   PyObject *swig_obj[3] ;
29298   int result;
29299 
29300   if (!SWIG_Python_UnpackTuple(args, "an_tally", 3, 3, swig_obj)) SWIG_fail;
29301   arg1 = swig_obj[0];
29302   arg2 = swig_obj[1];
29303   arg3 = swig_obj[2];
29304   result = (int)an_tally(arg1,arg2,arg3);
29305   resultobj = SWIG_From_int((int)(result));
29306   return resultobj;
29307 fail:
29308   return NULL;
29309 }
29310 
29311 
_wrap_fits_use_error_system(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29312 SWIGINTERN PyObject *_wrap_fits_use_error_system(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29313   PyObject *resultobj = 0;
29314 
29315   if (!SWIG_Python_UnpackTuple(args, "fits_use_error_system", 0, 0, 0)) SWIG_fail;
29316   fits_use_error_system();
29317   resultobj = SWIG_Py_Void();
29318   return resultobj;
29319 fail:
29320   return NULL;
29321 }
29322 
29323 
_wrap_fits_to_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29324 SWIGINTERN PyObject *_wrap_fits_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29325   PyObject *resultobj = 0;
29326   qfits_header *arg1 = (qfits_header *) 0 ;
29327   int *arg2 = (int *) 0 ;
29328   void *argp1 = 0 ;
29329   int res1 = 0 ;
29330   void *argp2 = 0 ;
29331   int res2 = 0 ;
29332   PyObject *swig_obj[2] ;
29333   char *result = 0 ;
29334 
29335   if (!SWIG_Python_UnpackTuple(args, "fits_to_string", 2, 2, swig_obj)) SWIG_fail;
29336   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29337   if (!SWIG_IsOK(res1)) {
29338     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_to_string" "', argument " "1"" of type '" "qfits_header const *""'");
29339   }
29340   arg1 = (qfits_header *)(argp1);
29341   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
29342   if (!SWIG_IsOK(res2)) {
29343     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_to_string" "', argument " "2"" of type '" "int *""'");
29344   }
29345   arg2 = (int *)(argp2);
29346   result = (char *)fits_to_string((qfits_header const *)arg1,arg2);
29347   resultobj = SWIG_FromCharPtr((const char *)result);
29348   return resultobj;
29349 fail:
29350   return NULL;
29351 }
29352 
29353 
_wrap_fits_write_float_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29354 SWIGINTERN PyObject *_wrap_fits_write_float_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29355   PyObject *resultobj = 0;
29356   float *arg1 = (float *) 0 ;
29357   int arg2 ;
29358   int arg3 ;
29359   char *arg4 = (char *) 0 ;
29360   void *argp1 = 0 ;
29361   int res1 = 0 ;
29362   int val2 ;
29363   int ecode2 = 0 ;
29364   int val3 ;
29365   int ecode3 = 0 ;
29366   int res4 ;
29367   char *buf4 = 0 ;
29368   int alloc4 = 0 ;
29369   PyObject *swig_obj[4] ;
29370   int result;
29371 
29372   if (!SWIG_Python_UnpackTuple(args, "fits_write_float_image", 4, 4, swig_obj)) SWIG_fail;
29373   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
29374   if (!SWIG_IsOK(res1)) {
29375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_float_image" "', argument " "1"" of type '" "float const *""'");
29376   }
29377   arg1 = (float *)(argp1);
29378   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29379   if (!SWIG_IsOK(ecode2)) {
29380     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_float_image" "', argument " "2"" of type '" "int""'");
29381   }
29382   arg2 = (int)(val2);
29383   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
29384   if (!SWIG_IsOK(ecode3)) {
29385     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_float_image" "', argument " "3"" of type '" "int""'");
29386   }
29387   arg3 = (int)(val3);
29388   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
29389   if (!SWIG_IsOK(res4)) {
29390     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_write_float_image" "', argument " "4"" of type '" "char const *""'");
29391   }
29392   arg4 = (char *)(buf4);
29393   result = (int)fits_write_float_image((float const *)arg1,arg2,arg3,(char const *)arg4);
29394   resultobj = SWIG_From_int((int)(result));
29395   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29396   return resultobj;
29397 fail:
29398   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29399   return NULL;
29400 }
29401 
29402 
_wrap_fits_write_u8_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29403 SWIGINTERN PyObject *_wrap_fits_write_u8_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29404   PyObject *resultobj = 0;
29405   uint8_t *arg1 = (uint8_t *) 0 ;
29406   int arg2 ;
29407   int arg3 ;
29408   char *arg4 = (char *) 0 ;
29409   void *argp1 = 0 ;
29410   int res1 = 0 ;
29411   int val2 ;
29412   int ecode2 = 0 ;
29413   int val3 ;
29414   int ecode3 = 0 ;
29415   int res4 ;
29416   char *buf4 = 0 ;
29417   int alloc4 = 0 ;
29418   PyObject *swig_obj[4] ;
29419   int result;
29420 
29421   if (!SWIG_Python_UnpackTuple(args, "fits_write_u8_image", 4, 4, swig_obj)) SWIG_fail;
29422   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_uint8_t, 0 |  0 );
29423   if (!SWIG_IsOK(res1)) {
29424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_u8_image" "', argument " "1"" of type '" "uint8_t const *""'");
29425   }
29426   arg1 = (uint8_t *)(argp1);
29427   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29428   if (!SWIG_IsOK(ecode2)) {
29429     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_u8_image" "', argument " "2"" of type '" "int""'");
29430   }
29431   arg2 = (int)(val2);
29432   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
29433   if (!SWIG_IsOK(ecode3)) {
29434     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_u8_image" "', argument " "3"" of type '" "int""'");
29435   }
29436   arg3 = (int)(val3);
29437   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
29438   if (!SWIG_IsOK(res4)) {
29439     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_write_u8_image" "', argument " "4"" of type '" "char const *""'");
29440   }
29441   arg4 = (char *)(buf4);
29442   result = (int)fits_write_u8_image((uint8_t const *)arg1,arg2,arg3,(char const *)arg4);
29443   resultobj = SWIG_From_int((int)(result));
29444   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29445   return resultobj;
29446 fail:
29447   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29448   return NULL;
29449 }
29450 
29451 
_wrap_fits_write_i16_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29452 SWIGINTERN PyObject *_wrap_fits_write_i16_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29453   PyObject *resultobj = 0;
29454   int16_t *arg1 = (int16_t *) 0 ;
29455   int arg2 ;
29456   int arg3 ;
29457   char *arg4 = (char *) 0 ;
29458   void *argp1 = 0 ;
29459   int res1 = 0 ;
29460   int val2 ;
29461   int ecode2 = 0 ;
29462   int val3 ;
29463   int ecode3 = 0 ;
29464   int res4 ;
29465   char *buf4 = 0 ;
29466   int alloc4 = 0 ;
29467   PyObject *swig_obj[4] ;
29468   int result;
29469 
29470   if (!SWIG_Python_UnpackTuple(args, "fits_write_i16_image", 4, 4, swig_obj)) SWIG_fail;
29471   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_int16_t, 0 |  0 );
29472   if (!SWIG_IsOK(res1)) {
29473     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_i16_image" "', argument " "1"" of type '" "int16_t const *""'");
29474   }
29475   arg1 = (int16_t *)(argp1);
29476   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29477   if (!SWIG_IsOK(ecode2)) {
29478     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_i16_image" "', argument " "2"" of type '" "int""'");
29479   }
29480   arg2 = (int)(val2);
29481   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
29482   if (!SWIG_IsOK(ecode3)) {
29483     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_i16_image" "', argument " "3"" of type '" "int""'");
29484   }
29485   arg3 = (int)(val3);
29486   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
29487   if (!SWIG_IsOK(res4)) {
29488     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_write_i16_image" "', argument " "4"" of type '" "char const *""'");
29489   }
29490   arg4 = (char *)(buf4);
29491   result = (int)fits_write_i16_image((int16_t const *)arg1,arg2,arg3,(char const *)arg4);
29492   resultobj = SWIG_From_int((int)(result));
29493   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29494   return resultobj;
29495 fail:
29496   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29497   return NULL;
29498 }
29499 
29500 
_wrap_fits_get_header_for_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29501 SWIGINTERN PyObject *_wrap_fits_get_header_for_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29502   PyObject *resultobj = 0;
29503   qfitsdumper *arg1 = (qfitsdumper *) 0 ;
29504   int arg2 ;
29505   qfits_header *arg3 = (qfits_header *) 0 ;
29506   void *argp1 = 0 ;
29507   int res1 = 0 ;
29508   int val2 ;
29509   int ecode2 = 0 ;
29510   void *argp3 = 0 ;
29511   int res3 = 0 ;
29512   PyObject *swig_obj[3] ;
29513   qfits_header *result = 0 ;
29514 
29515   if (!SWIG_Python_UnpackTuple(args, "fits_get_header_for_image", 3, 3, swig_obj)) SWIG_fail;
29516   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
29517   if (!SWIG_IsOK(res1)) {
29518     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_get_header_for_image" "', argument " "1"" of type '" "qfitsdumper const *""'");
29519   }
29520   arg1 = (qfitsdumper *)(argp1);
29521   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29522   if (!SWIG_IsOK(ecode2)) {
29523     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_get_header_for_image" "', argument " "2"" of type '" "int""'");
29524   }
29525   arg2 = (int)(val2);
29526   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_qfits_header, 0 |  0 );
29527   if (!SWIG_IsOK(res3)) {
29528     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_get_header_for_image" "', argument " "3"" of type '" "qfits_header *""'");
29529   }
29530   arg3 = (qfits_header *)(argp3);
29531   result = (qfits_header *)fits_get_header_for_image((qfitsdumper const *)arg1,arg2,arg3);
29532   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
29533   return resultobj;
29534 fail:
29535   return NULL;
29536 }
29537 
29538 
_wrap_fits_get_header_for_image2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29539 SWIGINTERN PyObject *_wrap_fits_get_header_for_image2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29540   PyObject *resultobj = 0;
29541   int arg1 ;
29542   int arg2 ;
29543   int arg3 ;
29544   qfits_header *arg4 = (qfits_header *) 0 ;
29545   int val1 ;
29546   int ecode1 = 0 ;
29547   int val2 ;
29548   int ecode2 = 0 ;
29549   int val3 ;
29550   int ecode3 = 0 ;
29551   void *argp4 = 0 ;
29552   int res4 = 0 ;
29553   PyObject *swig_obj[4] ;
29554   qfits_header *result = 0 ;
29555 
29556   if (!SWIG_Python_UnpackTuple(args, "fits_get_header_for_image2", 4, 4, swig_obj)) SWIG_fail;
29557   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
29558   if (!SWIG_IsOK(ecode1)) {
29559     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "fits_get_header_for_image2" "', argument " "1"" of type '" "int""'");
29560   }
29561   arg1 = (int)(val1);
29562   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29563   if (!SWIG_IsOK(ecode2)) {
29564     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_get_header_for_image2" "', argument " "2"" of type '" "int""'");
29565   }
29566   arg2 = (int)(val2);
29567   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
29568   if (!SWIG_IsOK(ecode3)) {
29569     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_get_header_for_image2" "', argument " "3"" of type '" "int""'");
29570   }
29571   arg3 = (int)(val3);
29572   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_qfits_header, 0 |  0 );
29573   if (!SWIG_IsOK(res4)) {
29574     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_get_header_for_image2" "', argument " "4"" of type '" "qfits_header *""'");
29575   }
29576   arg4 = (qfits_header *)(argp4);
29577   result = (qfits_header *)fits_get_header_for_image2(arg1,arg2,arg3,arg4);
29578   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
29579   return resultobj;
29580 fail:
29581   return NULL;
29582 }
29583 
29584 
_wrap_fits_get_header_for_image3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29585 SWIGINTERN PyObject *_wrap_fits_get_header_for_image3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29586   PyObject *resultobj = 0;
29587   int arg1 ;
29588   int arg2 ;
29589   int arg3 ;
29590   int arg4 ;
29591   qfits_header *arg5 = (qfits_header *) 0 ;
29592   int val1 ;
29593   int ecode1 = 0 ;
29594   int val2 ;
29595   int ecode2 = 0 ;
29596   int val3 ;
29597   int ecode3 = 0 ;
29598   int val4 ;
29599   int ecode4 = 0 ;
29600   void *argp5 = 0 ;
29601   int res5 = 0 ;
29602   PyObject *swig_obj[5] ;
29603   qfits_header *result = 0 ;
29604 
29605   if (!SWIG_Python_UnpackTuple(args, "fits_get_header_for_image3", 5, 5, swig_obj)) SWIG_fail;
29606   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
29607   if (!SWIG_IsOK(ecode1)) {
29608     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "fits_get_header_for_image3" "', argument " "1"" of type '" "int""'");
29609   }
29610   arg1 = (int)(val1);
29611   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29612   if (!SWIG_IsOK(ecode2)) {
29613     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_get_header_for_image3" "', argument " "2"" of type '" "int""'");
29614   }
29615   arg2 = (int)(val2);
29616   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
29617   if (!SWIG_IsOK(ecode3)) {
29618     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_get_header_for_image3" "', argument " "3"" of type '" "int""'");
29619   }
29620   arg3 = (int)(val3);
29621   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29622   if (!SWIG_IsOK(ecode4)) {
29623     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fits_get_header_for_image3" "', argument " "4"" of type '" "int""'");
29624   }
29625   arg4 = (int)(val4);
29626   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_qfits_header, 0 |  0 );
29627   if (!SWIG_IsOK(res5)) {
29628     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fits_get_header_for_image3" "', argument " "5"" of type '" "qfits_header *""'");
29629   }
29630   arg5 = (qfits_header *)(argp5);
29631   result = (qfits_header *)fits_get_header_for_image3(arg1,arg2,arg3,arg4,arg5);
29632   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_header, 0 |  0 );
29633   return resultobj;
29634 fail:
29635   return NULL;
29636 }
29637 
29638 
_wrap_fits_write_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29639 SWIGINTERN PyObject *_wrap_fits_write_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29640   PyObject *resultobj = 0;
29641   qfits_header *arg1 = (qfits_header *) 0 ;
29642   char *arg2 = (char *) 0 ;
29643   void *argp1 = 0 ;
29644   int res1 = 0 ;
29645   int res2 ;
29646   char *buf2 = 0 ;
29647   int alloc2 = 0 ;
29648   PyObject *swig_obj[2] ;
29649   int result;
29650 
29651   if (!SWIG_Python_UnpackTuple(args, "fits_write_header", 2, 2, swig_obj)) SWIG_fail;
29652   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29653   if (!SWIG_IsOK(res1)) {
29654     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_header" "', argument " "1"" of type '" "qfits_header const *""'");
29655   }
29656   arg1 = (qfits_header *)(argp1);
29657   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
29658   if (!SWIG_IsOK(res2)) {
29659     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_header" "', argument " "2"" of type '" "char const *""'");
29660   }
29661   arg2 = (char *)(buf2);
29662   result = (int)fits_write_header((qfits_header const *)arg1,(char const *)arg2);
29663   resultobj = SWIG_From_int((int)(result));
29664   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29665   return resultobj;
29666 fail:
29667   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29668   return NULL;
29669 }
29670 
29671 
_wrap_fits_write_header_and_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29672 SWIGINTERN PyObject *_wrap_fits_write_header_and_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29673   PyObject *resultobj = 0;
29674   qfits_header *arg1 = (qfits_header *) 0 ;
29675   qfitsdumper *arg2 = (qfitsdumper *) 0 ;
29676   int arg3 ;
29677   void *argp1 = 0 ;
29678   int res1 = 0 ;
29679   void *argp2 = 0 ;
29680   int res2 = 0 ;
29681   int val3 ;
29682   int ecode3 = 0 ;
29683   PyObject *swig_obj[3] ;
29684   int result;
29685 
29686   if (!SWIG_Python_UnpackTuple(args, "fits_write_header_and_image", 3, 3, swig_obj)) SWIG_fail;
29687   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29688   if (!SWIG_IsOK(res1)) {
29689     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_header_and_image" "', argument " "1"" of type '" "qfits_header const *""'");
29690   }
29691   arg1 = (qfits_header *)(argp1);
29692   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfitsdumper, 0 |  0 );
29693   if (!SWIG_IsOK(res2)) {
29694     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_header_and_image" "', argument " "2"" of type '" "qfitsdumper const *""'");
29695   }
29696   arg2 = (qfitsdumper *)(argp2);
29697   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
29698   if (!SWIG_IsOK(ecode3)) {
29699     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_header_and_image" "', argument " "3"" of type '" "int""'");
29700   }
29701   arg3 = (int)(val3);
29702   result = (int)fits_write_header_and_image((qfits_header const *)arg1,(qfitsdumper const *)arg2,arg3);
29703   resultobj = SWIG_From_int((int)(result));
29704   return resultobj;
29705 fail:
29706   return NULL;
29707 }
29708 
29709 
_wrap_fits_get_double_val(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29710 SWIGINTERN PyObject *_wrap_fits_get_double_val(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29711   PyObject *resultobj = 0;
29712   qfits_table *arg1 = (qfits_table *) 0 ;
29713   int arg2 ;
29714   void *arg3 = (void *) 0 ;
29715   void *argp1 = 0 ;
29716   int res1 = 0 ;
29717   int val2 ;
29718   int ecode2 = 0 ;
29719   int res3 ;
29720   PyObject *swig_obj[3] ;
29721   double result;
29722 
29723   if (!SWIG_Python_UnpackTuple(args, "fits_get_double_val", 3, 3, swig_obj)) SWIG_fail;
29724   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_table, 0 |  0 );
29725   if (!SWIG_IsOK(res1)) {
29726     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_get_double_val" "', argument " "1"" of type '" "qfits_table const *""'");
29727   }
29728   arg1 = (qfits_table *)(argp1);
29729   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29730   if (!SWIG_IsOK(ecode2)) {
29731     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_get_double_val" "', argument " "2"" of type '" "int""'");
29732   }
29733   arg2 = (int)(val2);
29734   res3 = SWIG_ConvertPtr(swig_obj[2],SWIG_as_voidptrptr(&arg3), 0, 0);
29735   if (!SWIG_IsOK(res3)) {
29736     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_get_double_val" "', argument " "3"" of type '" "void const *""'");
29737   }
29738   result = (double)fits_get_double_val((qfits_table const *)arg1,arg2,(void const *)arg3);
29739   resultobj = SWIG_From_double((double)(result));
29740   return resultobj;
29741 fail:
29742   return NULL;
29743 }
29744 
29745 
_wrap_fits_is_table_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29746 SWIGINTERN PyObject *_wrap_fits_is_table_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29747   PyObject *resultobj = 0;
29748   char *arg1 = (char *) 0 ;
29749   int res1 ;
29750   char *buf1 = 0 ;
29751   int alloc1 = 0 ;
29752   PyObject *swig_obj[1] ;
29753   int result;
29754 
29755   if (!args) SWIG_fail;
29756   swig_obj[0] = args;
29757   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
29758   if (!SWIG_IsOK(res1)) {
29759     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_is_table_header" "', argument " "1"" of type '" "char const *""'");
29760   }
29761   arg1 = (char *)(buf1);
29762   result = (int)fits_is_table_header((char const *)arg1);
29763   resultobj = SWIG_From_int((int)(result));
29764   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
29765   return resultobj;
29766 fail:
29767   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
29768   return NULL;
29769 }
29770 
29771 
_wrap_fits_is_primary_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29772 SWIGINTERN PyObject *_wrap_fits_is_primary_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29773   PyObject *resultobj = 0;
29774   char *arg1 = (char *) 0 ;
29775   int res1 ;
29776   char *buf1 = 0 ;
29777   int alloc1 = 0 ;
29778   PyObject *swig_obj[1] ;
29779   int result;
29780 
29781   if (!args) SWIG_fail;
29782   swig_obj[0] = args;
29783   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
29784   if (!SWIG_IsOK(res1)) {
29785     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_is_primary_header" "', argument " "1"" of type '" "char const *""'");
29786   }
29787   arg1 = (char *)(buf1);
29788   result = (int)fits_is_primary_header((char const *)arg1);
29789   resultobj = SWIG_From_int((int)(result));
29790   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
29791   return resultobj;
29792 fail:
29793   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
29794   return NULL;
29795 }
29796 
29797 
_wrap_fits_copy_non_table_headers(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29798 SWIGINTERN PyObject *_wrap_fits_copy_non_table_headers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29799   PyObject *resultobj = 0;
29800   qfits_header *arg1 = (qfits_header *) 0 ;
29801   qfits_header *arg2 = (qfits_header *) 0 ;
29802   void *argp1 = 0 ;
29803   int res1 = 0 ;
29804   void *argp2 = 0 ;
29805   int res2 = 0 ;
29806   PyObject *swig_obj[2] ;
29807 
29808   if (!SWIG_Python_UnpackTuple(args, "fits_copy_non_table_headers", 2, 2, swig_obj)) SWIG_fail;
29809   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29810   if (!SWIG_IsOK(res1)) {
29811     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_copy_non_table_headers" "', argument " "1"" of type '" "qfits_header *""'");
29812   }
29813   arg1 = (qfits_header *)(argp1);
29814   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, 0 |  0 );
29815   if (!SWIG_IsOK(res2)) {
29816     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_copy_non_table_headers" "', argument " "2"" of type '" "qfits_header const *""'");
29817   }
29818   arg2 = (qfits_header *)(argp2);
29819   fits_copy_non_table_headers(arg1,(qfits_header const *)arg2);
29820   resultobj = SWIG_Py_Void();
29821   return resultobj;
29822 fail:
29823   return NULL;
29824 }
29825 
29826 
_wrap_fits_get_dupstring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29827 SWIGINTERN PyObject *_wrap_fits_get_dupstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29828   PyObject *resultobj = 0;
29829   qfits_header *arg1 = (qfits_header *) 0 ;
29830   char *arg2 = (char *) 0 ;
29831   void *argp1 = 0 ;
29832   int res1 = 0 ;
29833   int res2 ;
29834   char *buf2 = 0 ;
29835   int alloc2 = 0 ;
29836   PyObject *swig_obj[2] ;
29837   char *result = 0 ;
29838 
29839   if (!SWIG_Python_UnpackTuple(args, "fits_get_dupstring", 2, 2, swig_obj)) SWIG_fail;
29840   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29841   if (!SWIG_IsOK(res1)) {
29842     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_get_dupstring" "', argument " "1"" of type '" "qfits_header const *""'");
29843   }
29844   arg1 = (qfits_header *)(argp1);
29845   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
29846   if (!SWIG_IsOK(res2)) {
29847     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_get_dupstring" "', argument " "2"" of type '" "char const *""'");
29848   }
29849   arg2 = (char *)(buf2);
29850   result = (char *)fits_get_dupstring((qfits_header const *)arg1,(char const *)arg2);
29851   resultobj = SWIG_FromCharPtr((const char *)result);
29852   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29853   return resultobj;
29854 fail:
29855   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29856   return NULL;
29857 }
29858 
29859 
_wrap_fits_get_long_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29860 SWIGINTERN PyObject *_wrap_fits_get_long_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29861   PyObject *resultobj = 0;
29862   qfits_header *arg1 = (qfits_header *) 0 ;
29863   char *arg2 = (char *) 0 ;
29864   void *argp1 = 0 ;
29865   int res1 = 0 ;
29866   int res2 ;
29867   char *buf2 = 0 ;
29868   int alloc2 = 0 ;
29869   PyObject *swig_obj[2] ;
29870   char *result = 0 ;
29871 
29872   if (!SWIG_Python_UnpackTuple(args, "fits_get_long_string", 2, 2, swig_obj)) SWIG_fail;
29873   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29874   if (!SWIG_IsOK(res1)) {
29875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_get_long_string" "', argument " "1"" of type '" "qfits_header const *""'");
29876   }
29877   arg1 = (qfits_header *)(argp1);
29878   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
29879   if (!SWIG_IsOK(res2)) {
29880     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_get_long_string" "', argument " "2"" of type '" "char const *""'");
29881   }
29882   arg2 = (char *)(buf2);
29883   result = (char *)fits_get_long_string((qfits_header const *)arg1,(char const *)arg2);
29884   resultobj = SWIG_FromCharPtr((const char *)result);
29885   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29886   return resultobj;
29887 fail:
29888   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29889   return NULL;
29890 }
29891 
29892 
_wrap_fits_header_addf__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)29893 SWIGINTERN PyObject *_wrap_fits_header_addf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
29894   PyObject *resultobj = 0;
29895   qfits_header *arg1 = (qfits_header *) 0 ;
29896   char *arg2 = (char *) 0 ;
29897   char *arg3 = (char *) 0 ;
29898   char *arg4 = (char *) 0 ;
29899   void *arg5 = 0 ;
29900   void *argp1 = 0 ;
29901   int res1 = 0 ;
29902   int res2 ;
29903   char *buf2 = 0 ;
29904   int alloc2 = 0 ;
29905   int res3 ;
29906   char *buf3 = 0 ;
29907   int alloc3 = 0 ;
29908   int res4 ;
29909   char *buf4 = 0 ;
29910   int alloc4 = 0 ;
29911   PyObject * obj0 = 0 ;
29912   PyObject * obj1 = 0 ;
29913   PyObject * obj2 = 0 ;
29914   PyObject * obj3 = 0 ;
29915 
29916   if (!PyArg_UnpackTuple(args, "fits_header_addf", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29917   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29918   if (!SWIG_IsOK(res1)) {
29919     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_addf" "', argument " "1"" of type '" "qfits_header *""'");
29920   }
29921   arg1 = (qfits_header *)(argp1);
29922   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
29923   if (!SWIG_IsOK(res2)) {
29924     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_addf" "', argument " "2"" of type '" "char const *""'");
29925   }
29926   arg2 = (char *)(buf2);
29927   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
29928   if (!SWIG_IsOK(res3)) {
29929     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_header_addf" "', argument " "3"" of type '" "char const *""'");
29930   }
29931   arg3 = (char *)(buf3);
29932   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
29933   if (!SWIG_IsOK(res4)) {
29934     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_addf" "', argument " "4"" of type '" "char const *""'");
29935   }
29936   arg4 = (char *)(buf4);
29937   fits_header_addf(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
29938   resultobj = SWIG_Py_Void();
29939   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29940   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
29941   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29942   return resultobj;
29943 fail:
29944   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
29945   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
29946   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
29947   return NULL;
29948 }
29949 
29950 
_wrap_fits_header_addf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29951 SWIGINTERN PyObject *_wrap_fits_header_addf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29952   PyObject *resultobj;
29953   PyObject *varargs;
29954   PyObject *newargs;
29955 
29956   newargs = PyTuple_GetSlice(args,0,4);
29957   varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args));
29958   resultobj = _wrap_fits_header_addf__varargs__(NULL,newargs,varargs);
29959   Py_XDECREF(newargs);
29960   Py_XDECREF(varargs);
29961   return resultobj;
29962 }
29963 
29964 
_wrap_fits_header_addf_longstring__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)29965 SWIGINTERN PyObject *_wrap_fits_header_addf_longstring__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
29966   PyObject *resultobj = 0;
29967   qfits_header *arg1 = (qfits_header *) 0 ;
29968   char *arg2 = (char *) 0 ;
29969   char *arg3 = (char *) 0 ;
29970   char *arg4 = (char *) 0 ;
29971   void *arg5 = 0 ;
29972   void *argp1 = 0 ;
29973   int res1 = 0 ;
29974   int res2 ;
29975   char *buf2 = 0 ;
29976   int alloc2 = 0 ;
29977   int res3 ;
29978   char *buf3 = 0 ;
29979   int alloc3 = 0 ;
29980   int res4 ;
29981   char *buf4 = 0 ;
29982   int alloc4 = 0 ;
29983   PyObject * obj0 = 0 ;
29984   PyObject * obj1 = 0 ;
29985   PyObject * obj2 = 0 ;
29986   PyObject * obj3 = 0 ;
29987 
29988   if (!PyArg_UnpackTuple(args, "fits_header_addf_longstring", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
29989   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
29990   if (!SWIG_IsOK(res1)) {
29991     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_addf_longstring" "', argument " "1"" of type '" "qfits_header *""'");
29992   }
29993   arg1 = (qfits_header *)(argp1);
29994   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
29995   if (!SWIG_IsOK(res2)) {
29996     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_addf_longstring" "', argument " "2"" of type '" "char const *""'");
29997   }
29998   arg2 = (char *)(buf2);
29999   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
30000   if (!SWIG_IsOK(res3)) {
30001     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_header_addf_longstring" "', argument " "3"" of type '" "char const *""'");
30002   }
30003   arg3 = (char *)(buf3);
30004   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
30005   if (!SWIG_IsOK(res4)) {
30006     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_addf_longstring" "', argument " "4"" of type '" "char const *""'");
30007   }
30008   arg4 = (char *)(buf4);
30009   fits_header_addf_longstring(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
30010   resultobj = SWIG_Py_Void();
30011   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30012   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30013   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30014   return resultobj;
30015 fail:
30016   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30017   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30018   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30019   return NULL;
30020 }
30021 
30022 
_wrap_fits_header_addf_longstring(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30023 SWIGINTERN PyObject *_wrap_fits_header_addf_longstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30024   PyObject *resultobj;
30025   PyObject *varargs;
30026   PyObject *newargs;
30027 
30028   newargs = PyTuple_GetSlice(args,0,4);
30029   varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args));
30030   resultobj = _wrap_fits_header_addf_longstring__varargs__(NULL,newargs,varargs);
30031   Py_XDECREF(newargs);
30032   Py_XDECREF(varargs);
30033   return resultobj;
30034 }
30035 
30036 
_wrap_fits_header_add_longstring_boilerplate(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30037 SWIGINTERN PyObject *_wrap_fits_header_add_longstring_boilerplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30038   PyObject *resultobj = 0;
30039   qfits_header *arg1 = (qfits_header *) 0 ;
30040   void *argp1 = 0 ;
30041   int res1 = 0 ;
30042   PyObject *swig_obj[1] ;
30043 
30044   if (!args) SWIG_fail;
30045   swig_obj[0] = args;
30046   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30047   if (!SWIG_IsOK(res1)) {
30048     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_add_longstring_boilerplate" "', argument " "1"" of type '" "qfits_header *""'");
30049   }
30050   arg1 = (qfits_header *)(argp1);
30051   fits_header_add_longstring_boilerplate(arg1);
30052   resultobj = SWIG_Py_Void();
30053   return resultobj;
30054 fail:
30055   return NULL;
30056 }
30057 
30058 
_wrap_fits_header_modf__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)30059 SWIGINTERN PyObject *_wrap_fits_header_modf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
30060   PyObject *resultobj = 0;
30061   qfits_header *arg1 = (qfits_header *) 0 ;
30062   char *arg2 = (char *) 0 ;
30063   char *arg3 = (char *) 0 ;
30064   char *arg4 = (char *) 0 ;
30065   void *arg5 = 0 ;
30066   void *argp1 = 0 ;
30067   int res1 = 0 ;
30068   int res2 ;
30069   char *buf2 = 0 ;
30070   int alloc2 = 0 ;
30071   int res3 ;
30072   char *buf3 = 0 ;
30073   int alloc3 = 0 ;
30074   int res4 ;
30075   char *buf4 = 0 ;
30076   int alloc4 = 0 ;
30077   PyObject * obj0 = 0 ;
30078   PyObject * obj1 = 0 ;
30079   PyObject * obj2 = 0 ;
30080   PyObject * obj3 = 0 ;
30081 
30082   if (!PyArg_UnpackTuple(args, "fits_header_modf", 4, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
30083   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30084   if (!SWIG_IsOK(res1)) {
30085     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_modf" "', argument " "1"" of type '" "qfits_header *""'");
30086   }
30087   arg1 = (qfits_header *)(argp1);
30088   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
30089   if (!SWIG_IsOK(res2)) {
30090     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_modf" "', argument " "2"" of type '" "char const *""'");
30091   }
30092   arg2 = (char *)(buf2);
30093   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
30094   if (!SWIG_IsOK(res3)) {
30095     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_header_modf" "', argument " "3"" of type '" "char const *""'");
30096   }
30097   arg3 = (char *)(buf3);
30098   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
30099   if (!SWIG_IsOK(res4)) {
30100     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_modf" "', argument " "4"" of type '" "char const *""'");
30101   }
30102   arg4 = (char *)(buf4);
30103   fits_header_modf(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
30104   resultobj = SWIG_Py_Void();
30105   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30106   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30107   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30108   return resultobj;
30109 fail:
30110   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30111   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30112   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30113   return NULL;
30114 }
30115 
30116 
_wrap_fits_header_modf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30117 SWIGINTERN PyObject *_wrap_fits_header_modf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30118   PyObject *resultobj;
30119   PyObject *varargs;
30120   PyObject *newargs;
30121 
30122   newargs = PyTuple_GetSlice(args,0,4);
30123   varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args));
30124   resultobj = _wrap_fits_header_modf__varargs__(NULL,newargs,varargs);
30125   Py_XDECREF(newargs);
30126   Py_XDECREF(varargs);
30127   return resultobj;
30128 }
30129 
30130 
_wrap_fits_header_add_int(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30131 SWIGINTERN PyObject *_wrap_fits_header_add_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30132   PyObject *resultobj = 0;
30133   qfits_header *arg1 = (qfits_header *) 0 ;
30134   char *arg2 = (char *) 0 ;
30135   int arg3 ;
30136   char *arg4 = (char *) 0 ;
30137   void *argp1 = 0 ;
30138   int res1 = 0 ;
30139   int res2 ;
30140   char *buf2 = 0 ;
30141   int alloc2 = 0 ;
30142   int val3 ;
30143   int ecode3 = 0 ;
30144   int res4 ;
30145   char *buf4 = 0 ;
30146   int alloc4 = 0 ;
30147   PyObject *swig_obj[4] ;
30148 
30149   if (!SWIG_Python_UnpackTuple(args, "fits_header_add_int", 4, 4, swig_obj)) SWIG_fail;
30150   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30151   if (!SWIG_IsOK(res1)) {
30152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_add_int" "', argument " "1"" of type '" "qfits_header *""'");
30153   }
30154   arg1 = (qfits_header *)(argp1);
30155   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30156   if (!SWIG_IsOK(res2)) {
30157     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_add_int" "', argument " "2"" of type '" "char const *""'");
30158   }
30159   arg2 = (char *)(buf2);
30160   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30161   if (!SWIG_IsOK(ecode3)) {
30162     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_header_add_int" "', argument " "3"" of type '" "int""'");
30163   }
30164   arg3 = (int)(val3);
30165   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
30166   if (!SWIG_IsOK(res4)) {
30167     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_add_int" "', argument " "4"" of type '" "char const *""'");
30168   }
30169   arg4 = (char *)(buf4);
30170   fits_header_add_int(arg1,(char const *)arg2,arg3,(char const *)arg4);
30171   resultobj = SWIG_Py_Void();
30172   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30173   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30174   return resultobj;
30175 fail:
30176   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30177   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30178   return NULL;
30179 }
30180 
30181 
_wrap_fits_header_add_double(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30182 SWIGINTERN PyObject *_wrap_fits_header_add_double(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30183   PyObject *resultobj = 0;
30184   qfits_header *arg1 = (qfits_header *) 0 ;
30185   char *arg2 = (char *) 0 ;
30186   double arg3 ;
30187   char *arg4 = (char *) 0 ;
30188   void *argp1 = 0 ;
30189   int res1 = 0 ;
30190   int res2 ;
30191   char *buf2 = 0 ;
30192   int alloc2 = 0 ;
30193   double val3 ;
30194   int ecode3 = 0 ;
30195   int res4 ;
30196   char *buf4 = 0 ;
30197   int alloc4 = 0 ;
30198   PyObject *swig_obj[4] ;
30199 
30200   if (!SWIG_Python_UnpackTuple(args, "fits_header_add_double", 4, 4, swig_obj)) SWIG_fail;
30201   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30202   if (!SWIG_IsOK(res1)) {
30203     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_add_double" "', argument " "1"" of type '" "qfits_header *""'");
30204   }
30205   arg1 = (qfits_header *)(argp1);
30206   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30207   if (!SWIG_IsOK(res2)) {
30208     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_add_double" "', argument " "2"" of type '" "char const *""'");
30209   }
30210   arg2 = (char *)(buf2);
30211   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
30212   if (!SWIG_IsOK(ecode3)) {
30213     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_header_add_double" "', argument " "3"" of type '" "double""'");
30214   }
30215   arg3 = (double)(val3);
30216   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
30217   if (!SWIG_IsOK(res4)) {
30218     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_add_double" "', argument " "4"" of type '" "char const *""'");
30219   }
30220   arg4 = (char *)(buf4);
30221   fits_header_add_double(arg1,(char const *)arg2,arg3,(char const *)arg4);
30222   resultobj = SWIG_Py_Void();
30223   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30224   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30225   return resultobj;
30226 fail:
30227   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30228   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30229   return NULL;
30230 }
30231 
30232 
_wrap_fits_header_set_double(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30233 SWIGINTERN PyObject *_wrap_fits_header_set_double(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30234   PyObject *resultobj = 0;
30235   qfits_header *arg1 = (qfits_header *) 0 ;
30236   char *arg2 = (char *) 0 ;
30237   double arg3 ;
30238   char *arg4 = (char *) 0 ;
30239   void *argp1 = 0 ;
30240   int res1 = 0 ;
30241   int res2 ;
30242   char *buf2 = 0 ;
30243   int alloc2 = 0 ;
30244   double val3 ;
30245   int ecode3 = 0 ;
30246   int res4 ;
30247   char *buf4 = 0 ;
30248   int alloc4 = 0 ;
30249   PyObject *swig_obj[4] ;
30250 
30251   if (!SWIG_Python_UnpackTuple(args, "fits_header_set_double", 4, 4, swig_obj)) SWIG_fail;
30252   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30253   if (!SWIG_IsOK(res1)) {
30254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_set_double" "', argument " "1"" of type '" "qfits_header *""'");
30255   }
30256   arg1 = (qfits_header *)(argp1);
30257   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30258   if (!SWIG_IsOK(res2)) {
30259     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_set_double" "', argument " "2"" of type '" "char const *""'");
30260   }
30261   arg2 = (char *)(buf2);
30262   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
30263   if (!SWIG_IsOK(ecode3)) {
30264     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_header_set_double" "', argument " "3"" of type '" "double""'");
30265   }
30266   arg3 = (double)(val3);
30267   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
30268   if (!SWIG_IsOK(res4)) {
30269     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_set_double" "', argument " "4"" of type '" "char const *""'");
30270   }
30271   arg4 = (char *)(buf4);
30272   fits_header_set_double(arg1,(char const *)arg2,arg3,(char const *)arg4);
30273   resultobj = SWIG_Py_Void();
30274   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30275   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30276   return resultobj;
30277 fail:
30278   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30279   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30280   return NULL;
30281 }
30282 
30283 
_wrap_fits_header_set_int(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30284 SWIGINTERN PyObject *_wrap_fits_header_set_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30285   PyObject *resultobj = 0;
30286   qfits_header *arg1 = (qfits_header *) 0 ;
30287   char *arg2 = (char *) 0 ;
30288   int arg3 ;
30289   char *arg4 = (char *) 0 ;
30290   void *argp1 = 0 ;
30291   int res1 = 0 ;
30292   int res2 ;
30293   char *buf2 = 0 ;
30294   int alloc2 = 0 ;
30295   int val3 ;
30296   int ecode3 = 0 ;
30297   int res4 ;
30298   char *buf4 = 0 ;
30299   int alloc4 = 0 ;
30300   PyObject *swig_obj[4] ;
30301 
30302   if (!SWIG_Python_UnpackTuple(args, "fits_header_set_int", 4, 4, swig_obj)) SWIG_fail;
30303   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30304   if (!SWIG_IsOK(res1)) {
30305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_set_int" "', argument " "1"" of type '" "qfits_header *""'");
30306   }
30307   arg1 = (qfits_header *)(argp1);
30308   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30309   if (!SWIG_IsOK(res2)) {
30310     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_set_int" "', argument " "2"" of type '" "char const *""'");
30311   }
30312   arg2 = (char *)(buf2);
30313   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30314   if (!SWIG_IsOK(ecode3)) {
30315     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_header_set_int" "', argument " "3"" of type '" "int""'");
30316   }
30317   arg3 = (int)(val3);
30318   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
30319   if (!SWIG_IsOK(res4)) {
30320     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_set_int" "', argument " "4"" of type '" "char const *""'");
30321   }
30322   arg4 = (char *)(buf4);
30323   fits_header_set_int(arg1,(char const *)arg2,arg3,(char const *)arg4);
30324   resultobj = SWIG_Py_Void();
30325   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30326   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30327   return resultobj;
30328 fail:
30329   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30330   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30331   return NULL;
30332 }
30333 
30334 
_wrap_fits_header_mod_int(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30335 SWIGINTERN PyObject *_wrap_fits_header_mod_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30336   PyObject *resultobj = 0;
30337   qfits_header *arg1 = (qfits_header *) 0 ;
30338   char *arg2 = (char *) 0 ;
30339   int arg3 ;
30340   char *arg4 = (char *) 0 ;
30341   void *argp1 = 0 ;
30342   int res1 = 0 ;
30343   int res2 ;
30344   char *buf2 = 0 ;
30345   int alloc2 = 0 ;
30346   int val3 ;
30347   int ecode3 = 0 ;
30348   int res4 ;
30349   char *buf4 = 0 ;
30350   int alloc4 = 0 ;
30351   PyObject *swig_obj[4] ;
30352 
30353   if (!SWIG_Python_UnpackTuple(args, "fits_header_mod_int", 4, 4, swig_obj)) SWIG_fail;
30354   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30355   if (!SWIG_IsOK(res1)) {
30356     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_mod_int" "', argument " "1"" of type '" "qfits_header *""'");
30357   }
30358   arg1 = (qfits_header *)(argp1);
30359   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30360   if (!SWIG_IsOK(res2)) {
30361     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_mod_int" "', argument " "2"" of type '" "char const *""'");
30362   }
30363   arg2 = (char *)(buf2);
30364   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30365   if (!SWIG_IsOK(ecode3)) {
30366     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_header_mod_int" "', argument " "3"" of type '" "int""'");
30367   }
30368   arg3 = (int)(val3);
30369   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
30370   if (!SWIG_IsOK(res4)) {
30371     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_mod_int" "', argument " "4"" of type '" "char const *""'");
30372   }
30373   arg4 = (char *)(buf4);
30374   fits_header_mod_int(arg1,(char const *)arg2,arg3,(char const *)arg4);
30375   resultobj = SWIG_Py_Void();
30376   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30377   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30378   return resultobj;
30379 fail:
30380   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30381   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30382   return NULL;
30383 }
30384 
30385 
_wrap_fits_header_mod_double(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30386 SWIGINTERN PyObject *_wrap_fits_header_mod_double(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30387   PyObject *resultobj = 0;
30388   qfits_header *arg1 = (qfits_header *) 0 ;
30389   char *arg2 = (char *) 0 ;
30390   double arg3 ;
30391   char *arg4 = (char *) 0 ;
30392   void *argp1 = 0 ;
30393   int res1 = 0 ;
30394   int res2 ;
30395   char *buf2 = 0 ;
30396   int alloc2 = 0 ;
30397   double val3 ;
30398   int ecode3 = 0 ;
30399   int res4 ;
30400   char *buf4 = 0 ;
30401   int alloc4 = 0 ;
30402   PyObject *swig_obj[4] ;
30403 
30404   if (!SWIG_Python_UnpackTuple(args, "fits_header_mod_double", 4, 4, swig_obj)) SWIG_fail;
30405   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30406   if (!SWIG_IsOK(res1)) {
30407     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_header_mod_double" "', argument " "1"" of type '" "qfits_header *""'");
30408   }
30409   arg1 = (qfits_header *)(argp1);
30410   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30411   if (!SWIG_IsOK(res2)) {
30412     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_header_mod_double" "', argument " "2"" of type '" "char const *""'");
30413   }
30414   arg2 = (char *)(buf2);
30415   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
30416   if (!SWIG_IsOK(ecode3)) {
30417     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_header_mod_double" "', argument " "3"" of type '" "double""'");
30418   }
30419   arg3 = (double)(val3);
30420   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
30421   if (!SWIG_IsOK(res4)) {
30422     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_header_mod_double" "', argument " "4"" of type '" "char const *""'");
30423   }
30424   arg4 = (char *)(buf4);
30425   fits_header_mod_double(arg1,(char const *)arg2,arg3,(char const *)arg4);
30426   resultobj = SWIG_Py_Void();
30427   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30428   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30429   return resultobj;
30430 fail:
30431   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30432   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
30433   return NULL;
30434 }
30435 
30436 
_wrap_fits_update_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30437 SWIGINTERN PyObject *_wrap_fits_update_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30438   PyObject *resultobj = 0;
30439   qfits_header *arg1 = (qfits_header *) 0 ;
30440   char *arg2 = (char *) 0 ;
30441   char *arg3 = (char *) 0 ;
30442   void *argp1 = 0 ;
30443   int res1 = 0 ;
30444   int res2 ;
30445   char *buf2 = 0 ;
30446   int alloc2 = 0 ;
30447   int res3 ;
30448   char *buf3 = 0 ;
30449   int alloc3 = 0 ;
30450   PyObject *swig_obj[3] ;
30451   int result;
30452 
30453   if (!SWIG_Python_UnpackTuple(args, "fits_update_value", 3, 3, swig_obj)) SWIG_fail;
30454   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30455   if (!SWIG_IsOK(res1)) {
30456     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_update_value" "', argument " "1"" of type '" "qfits_header *""'");
30457   }
30458   arg1 = (qfits_header *)(argp1);
30459   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
30460   if (!SWIG_IsOK(res2)) {
30461     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_update_value" "', argument " "2"" of type '" "char const *""'");
30462   }
30463   arg2 = (char *)(buf2);
30464   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
30465   if (!SWIG_IsOK(res3)) {
30466     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_update_value" "', argument " "3"" of type '" "char const *""'");
30467   }
30468   arg3 = (char *)(buf3);
30469   result = (int)fits_update_value(arg1,(char const *)arg2,(char const *)arg3);
30470   resultobj = SWIG_From_int((int)(result));
30471   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30472   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30473   return resultobj;
30474 fail:
30475   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30476   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30477   return NULL;
30478 }
30479 
30480 
_wrap_fits_copy_table(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30481 SWIGINTERN PyObject *_wrap_fits_copy_table(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30482   PyObject *resultobj = 0;
30483   qfits_table *arg1 = (qfits_table *) 0 ;
30484   void *argp1 = 0 ;
30485   int res1 = 0 ;
30486   PyObject *swig_obj[1] ;
30487   qfits_table *result = 0 ;
30488 
30489   if (!args) SWIG_fail;
30490   swig_obj[0] = args;
30491   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_table, 0 |  0 );
30492   if (!SWIG_IsOK(res1)) {
30493     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_copy_table" "', argument " "1"" of type '" "qfits_table *""'");
30494   }
30495   arg1 = (qfits_table *)(argp1);
30496   result = (qfits_table *)fits_copy_table(arg1);
30497   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_table, 0 |  0 );
30498   return resultobj;
30499 fail:
30500   return NULL;
30501 }
30502 
30503 
_wrap_an_fits_copy_header(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30504 SWIGINTERN PyObject *_wrap_an_fits_copy_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30505   PyObject *resultobj = 0;
30506   qfits_header *arg1 = (qfits_header *) 0 ;
30507   qfits_header *arg2 = (qfits_header *) 0 ;
30508   char *arg3 = (char *) 0 ;
30509   void *argp1 = 0 ;
30510   int res1 = 0 ;
30511   void *argp2 = 0 ;
30512   int res2 = 0 ;
30513   int res3 ;
30514   char *buf3 = 0 ;
30515   int alloc3 = 0 ;
30516   PyObject *swig_obj[3] ;
30517   int result;
30518 
30519   if (!SWIG_Python_UnpackTuple(args, "an_fits_copy_header", 3, 3, swig_obj)) SWIG_fail;
30520   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30521   if (!SWIG_IsOK(res1)) {
30522     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "an_fits_copy_header" "', argument " "1"" of type '" "qfits_header const *""'");
30523   }
30524   arg1 = (qfits_header *)(argp1);
30525   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, 0 |  0 );
30526   if (!SWIG_IsOK(res2)) {
30527     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "an_fits_copy_header" "', argument " "2"" of type '" "qfits_header *""'");
30528   }
30529   arg2 = (qfits_header *)(argp2);
30530   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
30531   if (!SWIG_IsOK(res3)) {
30532     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "an_fits_copy_header" "', argument " "3"" of type '" "char *""'");
30533   }
30534   arg3 = (char *)(buf3);
30535   result = (int)an_fits_copy_header((qfits_header const *)arg1,arg2,arg3);
30536   resultobj = SWIG_From_int((int)(result));
30537   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30538   return resultobj;
30539 fail:
30540   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30541   return NULL;
30542 }
30543 
30544 
_wrap_fits_copy_all_headers(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30545 SWIGINTERN PyObject *_wrap_fits_copy_all_headers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30546   PyObject *resultobj = 0;
30547   qfits_header *arg1 = (qfits_header *) 0 ;
30548   qfits_header *arg2 = (qfits_header *) 0 ;
30549   char *arg3 = (char *) 0 ;
30550   void *argp1 = 0 ;
30551   int res1 = 0 ;
30552   void *argp2 = 0 ;
30553   int res2 = 0 ;
30554   int res3 ;
30555   char *buf3 = 0 ;
30556   int alloc3 = 0 ;
30557   PyObject *swig_obj[3] ;
30558   int result;
30559 
30560   if (!SWIG_Python_UnpackTuple(args, "fits_copy_all_headers", 3, 3, swig_obj)) SWIG_fail;
30561   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30562   if (!SWIG_IsOK(res1)) {
30563     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_copy_all_headers" "', argument " "1"" of type '" "qfits_header const *""'");
30564   }
30565   arg1 = (qfits_header *)(argp1);
30566   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, 0 |  0 );
30567   if (!SWIG_IsOK(res2)) {
30568     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_copy_all_headers" "', argument " "2"" of type '" "qfits_header *""'");
30569   }
30570   arg2 = (qfits_header *)(argp2);
30571   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
30572   if (!SWIG_IsOK(res3)) {
30573     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_copy_all_headers" "', argument " "3"" of type '" "char *""'");
30574   }
30575   arg3 = (char *)(buf3);
30576   result = (int)fits_copy_all_headers((qfits_header const *)arg1,arg2,arg3);
30577   resultobj = SWIG_From_int((int)(result));
30578   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30579   return resultobj;
30580 fail:
30581   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30582   return NULL;
30583 }
30584 
30585 
_wrap_fits_append_all_headers(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30586 SWIGINTERN PyObject *_wrap_fits_append_all_headers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30587   PyObject *resultobj = 0;
30588   qfits_header *arg1 = (qfits_header *) 0 ;
30589   qfits_header *arg2 = (qfits_header *) 0 ;
30590   char *arg3 = (char *) 0 ;
30591   void *argp1 = 0 ;
30592   int res1 = 0 ;
30593   void *argp2 = 0 ;
30594   int res2 = 0 ;
30595   int res3 ;
30596   char *buf3 = 0 ;
30597   int alloc3 = 0 ;
30598   PyObject *swig_obj[3] ;
30599   int result;
30600 
30601   if (!SWIG_Python_UnpackTuple(args, "fits_append_all_headers", 3, 3, swig_obj)) SWIG_fail;
30602   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30603   if (!SWIG_IsOK(res1)) {
30604     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_append_all_headers" "', argument " "1"" of type '" "qfits_header const *""'");
30605   }
30606   arg1 = (qfits_header *)(argp1);
30607   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_qfits_header, 0 |  0 );
30608   if (!SWIG_IsOK(res2)) {
30609     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_append_all_headers" "', argument " "2"" of type '" "qfits_header *""'");
30610   }
30611   arg2 = (qfits_header *)(argp2);
30612   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
30613   if (!SWIG_IsOK(res3)) {
30614     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_append_all_headers" "', argument " "3"" of type '" "char *""'");
30615   }
30616   arg3 = (char *)(buf3);
30617   result = (int)fits_append_all_headers((qfits_header const *)arg1,arg2,arg3);
30618   resultobj = SWIG_From_int((int)(result));
30619   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30620   return resultobj;
30621 fail:
30622   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
30623   return NULL;
30624 }
30625 
30626 
_wrap_fits_add_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30627 SWIGINTERN PyObject *_wrap_fits_add_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30628   PyObject *resultobj = 0;
30629   qfits_header *arg1 = (qfits_header *) 0 ;
30630   char **arg2 = (char **) 0 ;
30631   int arg3 ;
30632   void *argp1 = 0 ;
30633   int res1 = 0 ;
30634   void *argp2 = 0 ;
30635   int res2 = 0 ;
30636   int val3 ;
30637   int ecode3 = 0 ;
30638   PyObject *swig_obj[3] ;
30639   int result;
30640 
30641   if (!SWIG_Python_UnpackTuple(args, "fits_add_args", 3, 3, swig_obj)) SWIG_fail;
30642   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30643   if (!SWIG_IsOK(res1)) {
30644     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_args" "', argument " "1"" of type '" "qfits_header *""'");
30645   }
30646   arg1 = (qfits_header *)(argp1);
30647   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_p_char, 0 |  0 );
30648   if (!SWIG_IsOK(res2)) {
30649     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_add_args" "', argument " "2"" of type '" "char **""'");
30650   }
30651   arg2 = (char **)(argp2);
30652   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30653   if (!SWIG_IsOK(ecode3)) {
30654     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_add_args" "', argument " "3"" of type '" "int""'");
30655   }
30656   arg3 = (int)(val3);
30657   result = (int)fits_add_args(arg1,arg2,arg3);
30658   resultobj = SWIG_From_int((int)(result));
30659   return resultobj;
30660 fail:
30661   return NULL;
30662 }
30663 
30664 
_wrap_fits_add_long_comment__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)30665 SWIGINTERN PyObject *_wrap_fits_add_long_comment__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
30666   PyObject *resultobj = 0;
30667   qfits_header *arg1 = (qfits_header *) 0 ;
30668   char *arg2 = (char *) 0 ;
30669   void *arg3 = 0 ;
30670   void *argp1 = 0 ;
30671   int res1 = 0 ;
30672   int res2 ;
30673   char *buf2 = 0 ;
30674   int alloc2 = 0 ;
30675   PyObject * obj0 = 0 ;
30676   PyObject * obj1 = 0 ;
30677   int result;
30678 
30679   if (!PyArg_UnpackTuple(args, "fits_add_long_comment", 2, 2, &obj0, &obj1)) SWIG_fail;
30680   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30681   if (!SWIG_IsOK(res1)) {
30682     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_long_comment" "', argument " "1"" of type '" "qfits_header *""'");
30683   }
30684   arg1 = (qfits_header *)(argp1);
30685   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
30686   if (!SWIG_IsOK(res2)) {
30687     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_add_long_comment" "', argument " "2"" of type '" "char const *""'");
30688   }
30689   arg2 = (char *)(buf2);
30690   result = (int)fits_add_long_comment(arg1,(char const *)arg2,arg3);
30691   resultobj = SWIG_From_int((int)(result));
30692   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30693   return resultobj;
30694 fail:
30695   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30696   return NULL;
30697 }
30698 
30699 
_wrap_fits_add_long_comment(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30700 SWIGINTERN PyObject *_wrap_fits_add_long_comment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30701   PyObject *resultobj;
30702   PyObject *varargs;
30703   PyObject *newargs;
30704 
30705   newargs = PyTuple_GetSlice(args,0,2);
30706   varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args));
30707   resultobj = _wrap_fits_add_long_comment__varargs__(NULL,newargs,varargs);
30708   Py_XDECREF(newargs);
30709   Py_XDECREF(varargs);
30710   return resultobj;
30711 }
30712 
30713 
_wrap_fits_append_long_comment__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)30714 SWIGINTERN PyObject *_wrap_fits_append_long_comment__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
30715   PyObject *resultobj = 0;
30716   qfits_header *arg1 = (qfits_header *) 0 ;
30717   char *arg2 = (char *) 0 ;
30718   void *arg3 = 0 ;
30719   void *argp1 = 0 ;
30720   int res1 = 0 ;
30721   int res2 ;
30722   char *buf2 = 0 ;
30723   int alloc2 = 0 ;
30724   PyObject * obj0 = 0 ;
30725   PyObject * obj1 = 0 ;
30726   int result;
30727 
30728   if (!PyArg_UnpackTuple(args, "fits_append_long_comment", 2, 2, &obj0, &obj1)) SWIG_fail;
30729   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30730   if (!SWIG_IsOK(res1)) {
30731     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_append_long_comment" "', argument " "1"" of type '" "qfits_header *""'");
30732   }
30733   arg1 = (qfits_header *)(argp1);
30734   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
30735   if (!SWIG_IsOK(res2)) {
30736     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_append_long_comment" "', argument " "2"" of type '" "char const *""'");
30737   }
30738   arg2 = (char *)(buf2);
30739   result = (int)fits_append_long_comment(arg1,(char const *)arg2,arg3);
30740   resultobj = SWIG_From_int((int)(result));
30741   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30742   return resultobj;
30743 fail:
30744   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30745   return NULL;
30746 }
30747 
30748 
_wrap_fits_append_long_comment(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30749 SWIGINTERN PyObject *_wrap_fits_append_long_comment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30750   PyObject *resultobj;
30751   PyObject *varargs;
30752   PyObject *newargs;
30753 
30754   newargs = PyTuple_GetSlice(args,0,2);
30755   varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args));
30756   resultobj = _wrap_fits_append_long_comment__varargs__(NULL,newargs,varargs);
30757   Py_XDECREF(newargs);
30758   Py_XDECREF(varargs);
30759   return resultobj;
30760 }
30761 
30762 
_wrap_fits_add_long_history__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)30763 SWIGINTERN PyObject *_wrap_fits_add_long_history__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
30764   PyObject *resultobj = 0;
30765   qfits_header *arg1 = (qfits_header *) 0 ;
30766   char *arg2 = (char *) 0 ;
30767   void *arg3 = 0 ;
30768   void *argp1 = 0 ;
30769   int res1 = 0 ;
30770   int res2 ;
30771   char *buf2 = 0 ;
30772   int alloc2 = 0 ;
30773   PyObject * obj0 = 0 ;
30774   PyObject * obj1 = 0 ;
30775   int result;
30776 
30777   if (!PyArg_UnpackTuple(args, "fits_add_long_history", 2, 2, &obj0, &obj1)) SWIG_fail;
30778   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30779   if (!SWIG_IsOK(res1)) {
30780     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_long_history" "', argument " "1"" of type '" "qfits_header *""'");
30781   }
30782   arg1 = (qfits_header *)(argp1);
30783   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
30784   if (!SWIG_IsOK(res2)) {
30785     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_add_long_history" "', argument " "2"" of type '" "char const *""'");
30786   }
30787   arg2 = (char *)(buf2);
30788   result = (int)fits_add_long_history(arg1,(char const *)arg2,arg3);
30789   resultobj = SWIG_From_int((int)(result));
30790   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30791   return resultobj;
30792 fail:
30793   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
30794   return NULL;
30795 }
30796 
30797 
_wrap_fits_add_long_history(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30798 SWIGINTERN PyObject *_wrap_fits_add_long_history(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30799   PyObject *resultobj;
30800   PyObject *varargs;
30801   PyObject *newargs;
30802 
30803   newargs = PyTuple_GetSlice(args,0,2);
30804   varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args));
30805   resultobj = _wrap_fits_add_long_history__varargs__(NULL,newargs,varargs);
30806   Py_XDECREF(newargs);
30807   Py_XDECREF(varargs);
30808   return resultobj;
30809 }
30810 
30811 
_wrap_fits_blocks_needed(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30812 SWIGINTERN PyObject *_wrap_fits_blocks_needed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30813   PyObject *resultobj = 0;
30814   int arg1 ;
30815   int val1 ;
30816   int ecode1 = 0 ;
30817   PyObject *swig_obj[1] ;
30818   int result;
30819 
30820   if (!args) SWIG_fail;
30821   swig_obj[0] = args;
30822   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
30823   if (!SWIG_IsOK(ecode1)) {
30824     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "fits_blocks_needed" "', argument " "1"" of type '" "int""'");
30825   }
30826   arg1 = (int)(val1);
30827   result = (int)fits_blocks_needed(arg1);
30828   resultobj = SWIG_From_int((int)(result));
30829   return resultobj;
30830 fail:
30831   return NULL;
30832 }
30833 
30834 
_wrap_fits_bytes_needed(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30835 SWIGINTERN PyObject *_wrap_fits_bytes_needed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30836   PyObject *resultobj = 0;
30837   size_t arg1 ;
30838   size_t val1 ;
30839   int ecode1 = 0 ;
30840   PyObject *swig_obj[1] ;
30841   size_t result;
30842 
30843   if (!args) SWIG_fail;
30844   swig_obj[0] = args;
30845   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
30846   if (!SWIG_IsOK(ecode1)) {
30847     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "fits_bytes_needed" "', argument " "1"" of type '" "size_t""'");
30848   }
30849   arg1 = (size_t)(val1);
30850   result = fits_bytes_needed(arg1);
30851   resultobj = SWIG_From_size_t((size_t)(result));
30852   return resultobj;
30853 fail:
30854   return NULL;
30855 }
30856 
30857 
_wrap_fits_pad_file_with(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30858 SWIGINTERN PyObject *_wrap_fits_pad_file_with(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30859   PyObject *resultobj = 0;
30860   FILE *arg1 = (FILE *) 0 ;
30861   char arg2 ;
30862   void *argp1 = 0 ;
30863   int res1 = 0 ;
30864   char val2 ;
30865   int ecode2 = 0 ;
30866   PyObject *swig_obj[2] ;
30867   int result;
30868 
30869   if (!SWIG_Python_UnpackTuple(args, "fits_pad_file_with", 2, 2, swig_obj)) SWIG_fail;
30870   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
30871   if (!SWIG_IsOK(res1)) {
30872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_pad_file_with" "', argument " "1"" of type '" "FILE *""'");
30873   }
30874   arg1 = (FILE *)(argp1);
30875   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
30876   if (!SWIG_IsOK(ecode2)) {
30877     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_pad_file_with" "', argument " "2"" of type '" "char""'");
30878   }
30879   arg2 = (char)(val2);
30880   result = (int)fits_pad_file_with(arg1,arg2);
30881   resultobj = SWIG_From_int((int)(result));
30882   return resultobj;
30883 fail:
30884   return NULL;
30885 }
30886 
30887 
_wrap_fits_pad_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30888 SWIGINTERN PyObject *_wrap_fits_pad_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30889   PyObject *resultobj = 0;
30890   FILE *arg1 = (FILE *) 0 ;
30891   void *argp1 = 0 ;
30892   int res1 = 0 ;
30893   PyObject *swig_obj[1] ;
30894   int result;
30895 
30896   if (!args) SWIG_fail;
30897   swig_obj[0] = args;
30898   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
30899   if (!SWIG_IsOK(res1)) {
30900     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_pad_file" "', argument " "1"" of type '" "FILE *""'");
30901   }
30902   arg1 = (FILE *)(argp1);
30903   result = (int)fits_pad_file(arg1);
30904   resultobj = SWIG_From_int((int)(result));
30905   return resultobj;
30906 fail:
30907   return NULL;
30908 }
30909 
30910 
_wrap_fits_pad_file_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30911 SWIGINTERN PyObject *_wrap_fits_pad_file_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30912   PyObject *resultobj = 0;
30913   char *arg1 = (char *) 0 ;
30914   int res1 ;
30915   char *buf1 = 0 ;
30916   int alloc1 = 0 ;
30917   PyObject *swig_obj[1] ;
30918   int result;
30919 
30920   if (!args) SWIG_fail;
30921   swig_obj[0] = args;
30922   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
30923   if (!SWIG_IsOK(res1)) {
30924     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_pad_file_name" "', argument " "1"" of type '" "char *""'");
30925   }
30926   arg1 = (char *)(buf1);
30927   result = (int)fits_pad_file_name(arg1);
30928   resultobj = SWIG_From_int((int)(result));
30929   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
30930   return resultobj;
30931 fail:
30932   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
30933   return NULL;
30934 }
30935 
30936 
_wrap_fits_fill_endian_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30937 SWIGINTERN PyObject *_wrap_fits_fill_endian_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30938   PyObject *resultobj = 0;
30939   char *arg1 = (char *) 0 ;
30940   int res1 ;
30941   char *buf1 = 0 ;
30942   int alloc1 = 0 ;
30943   PyObject *swig_obj[1] ;
30944 
30945   if (!args) SWIG_fail;
30946   swig_obj[0] = args;
30947   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
30948   if (!SWIG_IsOK(res1)) {
30949     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_fill_endian_string" "', argument " "1"" of type '" "char *""'");
30950   }
30951   arg1 = (char *)(buf1);
30952   fits_fill_endian_string(arg1);
30953   resultobj = SWIG_Py_Void();
30954   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
30955   return resultobj;
30956 fail:
30957   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
30958   return NULL;
30959 }
30960 
30961 
_wrap_fits_get_endian_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30962 SWIGINTERN PyObject *_wrap_fits_get_endian_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30963   PyObject *resultobj = 0;
30964   char *result = 0 ;
30965 
30966   if (!SWIG_Python_UnpackTuple(args, "fits_get_endian_string", 0, 0, 0)) SWIG_fail;
30967   result = (char *)fits_get_endian_string();
30968   resultobj = SWIG_FromCharPtr((const char *)result);
30969   return resultobj;
30970 fail:
30971   return NULL;
30972 }
30973 
30974 
_wrap_fits_check_endian(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30975 SWIGINTERN PyObject *_wrap_fits_check_endian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30976   PyObject *resultobj = 0;
30977   qfits_header *arg1 = (qfits_header *) 0 ;
30978   void *argp1 = 0 ;
30979   int res1 = 0 ;
30980   PyObject *swig_obj[1] ;
30981   int result;
30982 
30983   if (!args) SWIG_fail;
30984   swig_obj[0] = args;
30985   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
30986   if (!SWIG_IsOK(res1)) {
30987     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_check_endian" "', argument " "1"" of type '" "qfits_header const *""'");
30988   }
30989   arg1 = (qfits_header *)(argp1);
30990   result = (int)fits_check_endian((qfits_header const *)arg1);
30991   resultobj = SWIG_From_int((int)(result));
30992   return resultobj;
30993 fail:
30994   return NULL;
30995 }
30996 
30997 
_wrap_fits_check_uint_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30998 SWIGINTERN PyObject *_wrap_fits_check_uint_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30999   PyObject *resultobj = 0;
31000   qfits_header *arg1 = (qfits_header *) 0 ;
31001   void *argp1 = 0 ;
31002   int res1 = 0 ;
31003   PyObject *swig_obj[1] ;
31004   int result;
31005 
31006   if (!args) SWIG_fail;
31007   swig_obj[0] = args;
31008   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31009   if (!SWIG_IsOK(res1)) {
31010     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_check_uint_size" "', argument " "1"" of type '" "qfits_header const *""'");
31011   }
31012   arg1 = (qfits_header *)(argp1);
31013   result = (int)fits_check_uint_size((qfits_header const *)arg1);
31014   resultobj = SWIG_From_int((int)(result));
31015   return resultobj;
31016 fail:
31017   return NULL;
31018 }
31019 
31020 
_wrap_fits_check_double_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31021 SWIGINTERN PyObject *_wrap_fits_check_double_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31022   PyObject *resultobj = 0;
31023   qfits_header *arg1 = (qfits_header *) 0 ;
31024   void *argp1 = 0 ;
31025   int res1 = 0 ;
31026   PyObject *swig_obj[1] ;
31027   int result;
31028 
31029   if (!args) SWIG_fail;
31030   swig_obj[0] = args;
31031   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31032   if (!SWIG_IsOK(res1)) {
31033     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_check_double_size" "', argument " "1"" of type '" "qfits_header const *""'");
31034   }
31035   arg1 = (qfits_header *)(argp1);
31036   result = (int)fits_check_double_size((qfits_header const *)arg1);
31037   resultobj = SWIG_From_int((int)(result));
31038   return resultobj;
31039 fail:
31040   return NULL;
31041 }
31042 
31043 
_wrap_fits_add_endian(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31044 SWIGINTERN PyObject *_wrap_fits_add_endian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31045   PyObject *resultobj = 0;
31046   qfits_header *arg1 = (qfits_header *) 0 ;
31047   void *argp1 = 0 ;
31048   int res1 = 0 ;
31049   PyObject *swig_obj[1] ;
31050 
31051   if (!args) SWIG_fail;
31052   swig_obj[0] = args;
31053   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31054   if (!SWIG_IsOK(res1)) {
31055     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_endian" "', argument " "1"" of type '" "qfits_header *""'");
31056   }
31057   arg1 = (qfits_header *)(argp1);
31058   fits_add_endian(arg1);
31059   resultobj = SWIG_Py_Void();
31060   return resultobj;
31061 fail:
31062   return NULL;
31063 }
31064 
31065 
_wrap_fits_add_reverse_endian(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31066 SWIGINTERN PyObject *_wrap_fits_add_reverse_endian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31067   PyObject *resultobj = 0;
31068   qfits_header *arg1 = (qfits_header *) 0 ;
31069   void *argp1 = 0 ;
31070   int res1 = 0 ;
31071   PyObject *swig_obj[1] ;
31072 
31073   if (!args) SWIG_fail;
31074   swig_obj[0] = args;
31075   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31076   if (!SWIG_IsOK(res1)) {
31077     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_reverse_endian" "', argument " "1"" of type '" "qfits_header *""'");
31078   }
31079   arg1 = (qfits_header *)(argp1);
31080   fits_add_reverse_endian(arg1);
31081   resultobj = SWIG_Py_Void();
31082   return resultobj;
31083 fail:
31084   return NULL;
31085 }
31086 
31087 
_wrap_fits_mod_reverse_endian(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31088 SWIGINTERN PyObject *_wrap_fits_mod_reverse_endian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31089   PyObject *resultobj = 0;
31090   qfits_header *arg1 = (qfits_header *) 0 ;
31091   void *argp1 = 0 ;
31092   int res1 = 0 ;
31093   PyObject *swig_obj[1] ;
31094 
31095   if (!args) SWIG_fail;
31096   swig_obj[0] = args;
31097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31098   if (!SWIG_IsOK(res1)) {
31099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_mod_reverse_endian" "', argument " "1"" of type '" "qfits_header *""'");
31100   }
31101   arg1 = (qfits_header *)(argp1);
31102   fits_mod_reverse_endian(arg1);
31103   resultobj = SWIG_Py_Void();
31104   return resultobj;
31105 fail:
31106   return NULL;
31107 }
31108 
31109 
_wrap_fits_add_uint_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31110 SWIGINTERN PyObject *_wrap_fits_add_uint_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31111   PyObject *resultobj = 0;
31112   qfits_header *arg1 = (qfits_header *) 0 ;
31113   void *argp1 = 0 ;
31114   int res1 = 0 ;
31115   PyObject *swig_obj[1] ;
31116 
31117   if (!args) SWIG_fail;
31118   swig_obj[0] = args;
31119   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31120   if (!SWIG_IsOK(res1)) {
31121     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_uint_size" "', argument " "1"" of type '" "qfits_header *""'");
31122   }
31123   arg1 = (qfits_header *)(argp1);
31124   fits_add_uint_size(arg1);
31125   resultobj = SWIG_Py_Void();
31126   return resultobj;
31127 fail:
31128   return NULL;
31129 }
31130 
31131 
_wrap_fits_add_double_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31132 SWIGINTERN PyObject *_wrap_fits_add_double_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31133   PyObject *resultobj = 0;
31134   qfits_header *arg1 = (qfits_header *) 0 ;
31135   void *argp1 = 0 ;
31136   int res1 = 0 ;
31137   PyObject *swig_obj[1] ;
31138 
31139   if (!args) SWIG_fail;
31140   swig_obj[0] = args;
31141   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_header, 0 |  0 );
31142   if (!SWIG_IsOK(res1)) {
31143     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_double_size" "', argument " "1"" of type '" "qfits_header *""'");
31144   }
31145   arg1 = (qfits_header *)(argp1);
31146   fits_add_double_size(arg1);
31147   resultobj = SWIG_Py_Void();
31148   return resultobj;
31149 fail:
31150   return NULL;
31151 }
31152 
31153 
_wrap_fits_find_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31154 SWIGINTERN PyObject *_wrap_fits_find_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31155   PyObject *resultobj = 0;
31156   qfits_table *arg1 = (qfits_table *) 0 ;
31157   char *arg2 = (char *) 0 ;
31158   void *argp1 = 0 ;
31159   int res1 = 0 ;
31160   int res2 ;
31161   char *buf2 = 0 ;
31162   int alloc2 = 0 ;
31163   PyObject *swig_obj[2] ;
31164   int result;
31165 
31166   if (!SWIG_Python_UnpackTuple(args, "fits_find_column", 2, 2, swig_obj)) SWIG_fail;
31167   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_table, 0 |  0 );
31168   if (!SWIG_IsOK(res1)) {
31169     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_find_column" "', argument " "1"" of type '" "qfits_table const *""'");
31170   }
31171   arg1 = (qfits_table *)(argp1);
31172   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
31173   if (!SWIG_IsOK(res2)) {
31174     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_find_column" "', argument " "2"" of type '" "char const *""'");
31175   }
31176   arg2 = (char *)(buf2);
31177   result = (int)fits_find_column((qfits_table const *)arg1,(char const *)arg2);
31178   resultobj = SWIG_From_int((int)(result));
31179   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
31180   return resultobj;
31181 fail:
31182   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
31183   return NULL;
31184 }
31185 
31186 
_wrap_fits_find_table_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31187 SWIGINTERN PyObject *_wrap_fits_find_table_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31188   PyObject *resultobj = 0;
31189   char *arg1 = (char *) 0 ;
31190   char *arg2 = (char *) 0 ;
31191   off_t *arg3 = (off_t *) 0 ;
31192   off_t *arg4 = (off_t *) 0 ;
31193   int *arg5 = (int *) 0 ;
31194   int res1 ;
31195   char *buf1 = 0 ;
31196   int alloc1 = 0 ;
31197   int res2 ;
31198   char *buf2 = 0 ;
31199   int alloc2 = 0 ;
31200   void *argp3 = 0 ;
31201   int res3 = 0 ;
31202   void *argp4 = 0 ;
31203   int res4 = 0 ;
31204   void *argp5 = 0 ;
31205   int res5 = 0 ;
31206   PyObject *swig_obj[5] ;
31207   int result;
31208 
31209   if (!SWIG_Python_UnpackTuple(args, "fits_find_table_column", 5, 5, swig_obj)) SWIG_fail;
31210   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
31211   if (!SWIG_IsOK(res1)) {
31212     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_find_table_column" "', argument " "1"" of type '" "char const *""'");
31213   }
31214   arg1 = (char *)(buf1);
31215   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
31216   if (!SWIG_IsOK(res2)) {
31217     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_find_table_column" "', argument " "2"" of type '" "char const *""'");
31218   }
31219   arg2 = (char *)(buf2);
31220   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_off_t, 0 |  0 );
31221   if (!SWIG_IsOK(res3)) {
31222     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_find_table_column" "', argument " "3"" of type '" "off_t *""'");
31223   }
31224   arg3 = (off_t *)(argp3);
31225   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_off_t, 0 |  0 );
31226   if (!SWIG_IsOK(res4)) {
31227     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fits_find_table_column" "', argument " "4"" of type '" "off_t *""'");
31228   }
31229   arg4 = (off_t *)(argp4);
31230   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
31231   if (!SWIG_IsOK(res5)) {
31232     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fits_find_table_column" "', argument " "5"" of type '" "int *""'");
31233   }
31234   arg5 = (int *)(argp5);
31235   result = (int)fits_find_table_column((char const *)arg1,(char const *)arg2,arg3,arg4,arg5);
31236   resultobj = SWIG_From_int((int)(result));
31237   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
31238   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
31239   return resultobj;
31240 fail:
31241   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
31242   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
31243   return NULL;
31244 }
31245 
31246 
_wrap_fits_get_table_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31247 SWIGINTERN PyObject *_wrap_fits_get_table_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31248   PyObject *resultobj = 0;
31249   char *arg1 = (char *) 0 ;
31250   char *arg2 = (char *) 0 ;
31251   int *arg3 = (int *) 0 ;
31252   int res1 ;
31253   char *buf1 = 0 ;
31254   int alloc1 = 0 ;
31255   int res2 ;
31256   char *buf2 = 0 ;
31257   int alloc2 = 0 ;
31258   void *argp3 = 0 ;
31259   int res3 = 0 ;
31260   PyObject *swig_obj[3] ;
31261   qfits_table *result = 0 ;
31262 
31263   if (!SWIG_Python_UnpackTuple(args, "fits_get_table_column", 3, 3, swig_obj)) SWIG_fail;
31264   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
31265   if (!SWIG_IsOK(res1)) {
31266     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_get_table_column" "', argument " "1"" of type '" "char const *""'");
31267   }
31268   arg1 = (char *)(buf1);
31269   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
31270   if (!SWIG_IsOK(res2)) {
31271     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_get_table_column" "', argument " "2"" of type '" "char const *""'");
31272   }
31273   arg2 = (char *)(buf2);
31274   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
31275   if (!SWIG_IsOK(res3)) {
31276     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_get_table_column" "', argument " "3"" of type '" "int *""'");
31277   }
31278   arg3 = (int *)(argp3);
31279   result = (qfits_table *)fits_get_table_column((char const *)arg1,(char const *)arg2,arg3);
31280   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfits_table, 0 |  0 );
31281   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
31282   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
31283   return resultobj;
31284 fail:
31285   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
31286   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
31287   return NULL;
31288 }
31289 
31290 
_wrap_fits_add_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31291 SWIGINTERN PyObject *_wrap_fits_add_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31292   PyObject *resultobj = 0;
31293   qfits_table *arg1 = (qfits_table *) 0 ;
31294   int arg2 ;
31295   tfits_type arg3 ;
31296   int arg4 ;
31297   char *arg5 = (char *) 0 ;
31298   char *arg6 = (char *) 0 ;
31299   void *argp1 = 0 ;
31300   int res1 = 0 ;
31301   int val2 ;
31302   int ecode2 = 0 ;
31303   void *argp3 ;
31304   int res3 = 0 ;
31305   int val4 ;
31306   int ecode4 = 0 ;
31307   int res5 ;
31308   char *buf5 = 0 ;
31309   int alloc5 = 0 ;
31310   int res6 ;
31311   char *buf6 = 0 ;
31312   int alloc6 = 0 ;
31313   PyObject *swig_obj[6] ;
31314   int result;
31315 
31316   if (!SWIG_Python_UnpackTuple(args, "fits_add_column", 6, 6, swig_obj)) SWIG_fail;
31317   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_table, 0 |  0 );
31318   if (!SWIG_IsOK(res1)) {
31319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_add_column" "', argument " "1"" of type '" "qfits_table *""'");
31320   }
31321   arg1 = (qfits_table *)(argp1);
31322   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31323   if (!SWIG_IsOK(ecode2)) {
31324     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_add_column" "', argument " "2"" of type '" "int""'");
31325   }
31326   arg2 = (int)(val2);
31327   {
31328     res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_tfits_type,  0 );
31329     if (!SWIG_IsOK(res3)) {
31330       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_add_column" "', argument " "3"" of type '" "tfits_type""'");
31331     }
31332     if (!argp3) {
31333       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_add_column" "', argument " "3"" of type '" "tfits_type""'");
31334     } else {
31335       arg3 = *((tfits_type *)(argp3));
31336     }
31337   }
31338   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31339   if (!SWIG_IsOK(ecode4)) {
31340     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fits_add_column" "', argument " "4"" of type '" "int""'");
31341   }
31342   arg4 = (int)(val4);
31343   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
31344   if (!SWIG_IsOK(res5)) {
31345     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fits_add_column" "', argument " "5"" of type '" "char const *""'");
31346   }
31347   arg5 = (char *)(buf5);
31348   res6 = SWIG_AsCharPtrAndSize(swig_obj[5], &buf6, NULL, &alloc6);
31349   if (!SWIG_IsOK(res6)) {
31350     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "fits_add_column" "', argument " "6"" of type '" "char const *""'");
31351   }
31352   arg6 = (char *)(buf6);
31353   result = (int)fits_add_column(arg1,arg2,arg3,arg4,(char const *)arg5,(char const *)arg6);
31354   resultobj = SWIG_From_int((int)(result));
31355   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
31356   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
31357   return resultobj;
31358 fail:
31359   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
31360   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
31361   return NULL;
31362 }
31363 
31364 
_wrap_fits_offset_of_column(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31365 SWIGINTERN PyObject *_wrap_fits_offset_of_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31366   PyObject *resultobj = 0;
31367   qfits_table *arg1 = (qfits_table *) 0 ;
31368   int arg2 ;
31369   void *argp1 = 0 ;
31370   int res1 = 0 ;
31371   int val2 ;
31372   int ecode2 = 0 ;
31373   PyObject *swig_obj[2] ;
31374   int result;
31375 
31376   if (!SWIG_Python_UnpackTuple(args, "fits_offset_of_column", 2, 2, swig_obj)) SWIG_fail;
31377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfits_table, 0 |  0 );
31378   if (!SWIG_IsOK(res1)) {
31379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_offset_of_column" "', argument " "1"" of type '" "qfits_table *""'");
31380   }
31381   arg1 = (qfits_table *)(argp1);
31382   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31383   if (!SWIG_IsOK(ecode2)) {
31384     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_offset_of_column" "', argument " "2"" of type '" "int""'");
31385   }
31386   arg2 = (int)(val2);
31387   result = (int)fits_offset_of_column(arg1,arg2);
31388   resultobj = SWIG_From_int((int)(result));
31389   return resultobj;
31390 fail:
31391   return NULL;
31392 }
31393 
31394 
_wrap_fits_write_data_A(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31395 SWIGINTERN PyObject *_wrap_fits_write_data_A(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31396   PyObject *resultobj = 0;
31397   FILE *arg1 = (FILE *) 0 ;
31398   char arg2 ;
31399   void *argp1 = 0 ;
31400   int res1 = 0 ;
31401   char val2 ;
31402   int ecode2 = 0 ;
31403   PyObject *swig_obj[2] ;
31404   int result;
31405 
31406   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_A", 2, 2, swig_obj)) SWIG_fail;
31407   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31408   if (!SWIG_IsOK(res1)) {
31409     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_A" "', argument " "1"" of type '" "FILE *""'");
31410   }
31411   arg1 = (FILE *)(argp1);
31412   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
31413   if (!SWIG_IsOK(ecode2)) {
31414     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_data_A" "', argument " "2"" of type '" "char""'");
31415   }
31416   arg2 = (char)(val2);
31417   result = (int)fits_write_data_A(arg1,arg2);
31418   resultobj = SWIG_From_int((int)(result));
31419   return resultobj;
31420 fail:
31421   return NULL;
31422 }
31423 
31424 
_wrap_fits_write_data_B(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31425 SWIGINTERN PyObject *_wrap_fits_write_data_B(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31426   PyObject *resultobj = 0;
31427   FILE *arg1 = (FILE *) 0 ;
31428   uint8_t arg2 ;
31429   void *argp1 = 0 ;
31430   int res1 = 0 ;
31431   void *argp2 ;
31432   int res2 = 0 ;
31433   PyObject *swig_obj[2] ;
31434   int result;
31435 
31436   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_B", 2, 2, swig_obj)) SWIG_fail;
31437   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31438   if (!SWIG_IsOK(res1)) {
31439     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_B" "', argument " "1"" of type '" "FILE *""'");
31440   }
31441   arg1 = (FILE *)(argp1);
31442   {
31443     res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_uint8_t,  0 );
31444     if (!SWIG_IsOK(res2)) {
31445       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_data_B" "', argument " "2"" of type '" "uint8_t""'");
31446     }
31447     if (!argp2) {
31448       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_write_data_B" "', argument " "2"" of type '" "uint8_t""'");
31449     } else {
31450       arg2 = *((uint8_t *)(argp2));
31451     }
31452   }
31453   result = (int)fits_write_data_B(arg1,arg2);
31454   resultobj = SWIG_From_int((int)(result));
31455   return resultobj;
31456 fail:
31457   return NULL;
31458 }
31459 
31460 
_wrap_fits_write_data_D(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31461 SWIGINTERN PyObject *_wrap_fits_write_data_D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31462   PyObject *resultobj = 0;
31463   FILE *arg1 = (FILE *) 0 ;
31464   double arg2 ;
31465   anbool arg3 ;
31466   void *argp1 = 0 ;
31467   int res1 = 0 ;
31468   double val2 ;
31469   int ecode2 = 0 ;
31470   unsigned char val3 ;
31471   int ecode3 = 0 ;
31472   PyObject *swig_obj[3] ;
31473   int result;
31474 
31475   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_D", 3, 3, swig_obj)) SWIG_fail;
31476   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31477   if (!SWIG_IsOK(res1)) {
31478     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_D" "', argument " "1"" of type '" "FILE *""'");
31479   }
31480   arg1 = (FILE *)(argp1);
31481   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
31482   if (!SWIG_IsOK(ecode2)) {
31483     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_data_D" "', argument " "2"" of type '" "double""'");
31484   }
31485   arg2 = (double)(val2);
31486   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
31487   if (!SWIG_IsOK(ecode3)) {
31488     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_data_D" "', argument " "3"" of type '" "anbool""'");
31489   }
31490   arg3 = (anbool)(val3);
31491   result = (int)fits_write_data_D(arg1,arg2,arg3);
31492   resultobj = SWIG_From_int((int)(result));
31493   return resultobj;
31494 fail:
31495   return NULL;
31496 }
31497 
31498 
_wrap_fits_write_data_E(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31499 SWIGINTERN PyObject *_wrap_fits_write_data_E(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31500   PyObject *resultobj = 0;
31501   FILE *arg1 = (FILE *) 0 ;
31502   float arg2 ;
31503   anbool arg3 ;
31504   void *argp1 = 0 ;
31505   int res1 = 0 ;
31506   float val2 ;
31507   int ecode2 = 0 ;
31508   unsigned char val3 ;
31509   int ecode3 = 0 ;
31510   PyObject *swig_obj[3] ;
31511   int result;
31512 
31513   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_E", 3, 3, swig_obj)) SWIG_fail;
31514   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31515   if (!SWIG_IsOK(res1)) {
31516     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_E" "', argument " "1"" of type '" "FILE *""'");
31517   }
31518   arg1 = (FILE *)(argp1);
31519   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
31520   if (!SWIG_IsOK(ecode2)) {
31521     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_data_E" "', argument " "2"" of type '" "float""'");
31522   }
31523   arg2 = (float)(val2);
31524   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
31525   if (!SWIG_IsOK(ecode3)) {
31526     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_data_E" "', argument " "3"" of type '" "anbool""'");
31527   }
31528   arg3 = (anbool)(val3);
31529   result = (int)fits_write_data_E(arg1,arg2,arg3);
31530   resultobj = SWIG_From_int((int)(result));
31531   return resultobj;
31532 fail:
31533   return NULL;
31534 }
31535 
31536 
_wrap_fits_write_data_I(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31537 SWIGINTERN PyObject *_wrap_fits_write_data_I(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31538   PyObject *resultobj = 0;
31539   FILE *arg1 = (FILE *) 0 ;
31540   int16_t arg2 ;
31541   anbool arg3 ;
31542   void *argp1 = 0 ;
31543   int res1 = 0 ;
31544   void *argp2 ;
31545   int res2 = 0 ;
31546   unsigned char val3 ;
31547   int ecode3 = 0 ;
31548   PyObject *swig_obj[3] ;
31549   int result;
31550 
31551   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_I", 3, 3, swig_obj)) SWIG_fail;
31552   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31553   if (!SWIG_IsOK(res1)) {
31554     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_I" "', argument " "1"" of type '" "FILE *""'");
31555   }
31556   arg1 = (FILE *)(argp1);
31557   {
31558     res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_int16_t,  0 );
31559     if (!SWIG_IsOK(res2)) {
31560       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_data_I" "', argument " "2"" of type '" "int16_t""'");
31561     }
31562     if (!argp2) {
31563       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_write_data_I" "', argument " "2"" of type '" "int16_t""'");
31564     } else {
31565       arg2 = *((int16_t *)(argp2));
31566     }
31567   }
31568   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
31569   if (!SWIG_IsOK(ecode3)) {
31570     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_data_I" "', argument " "3"" of type '" "anbool""'");
31571   }
31572   arg3 = (anbool)(val3);
31573   result = (int)fits_write_data_I(arg1,arg2,arg3);
31574   resultobj = SWIG_From_int((int)(result));
31575   return resultobj;
31576 fail:
31577   return NULL;
31578 }
31579 
31580 
_wrap_fits_write_data_J(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31581 SWIGINTERN PyObject *_wrap_fits_write_data_J(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31582   PyObject *resultobj = 0;
31583   FILE *arg1 = (FILE *) 0 ;
31584   int32_t arg2 ;
31585   anbool arg3 ;
31586   void *argp1 = 0 ;
31587   int res1 = 0 ;
31588   void *argp2 ;
31589   int res2 = 0 ;
31590   unsigned char val3 ;
31591   int ecode3 = 0 ;
31592   PyObject *swig_obj[3] ;
31593   int result;
31594 
31595   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_J", 3, 3, swig_obj)) SWIG_fail;
31596   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31597   if (!SWIG_IsOK(res1)) {
31598     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_J" "', argument " "1"" of type '" "FILE *""'");
31599   }
31600   arg1 = (FILE *)(argp1);
31601   {
31602     res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_int32_t,  0 );
31603     if (!SWIG_IsOK(res2)) {
31604       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_data_J" "', argument " "2"" of type '" "int32_t""'");
31605     }
31606     if (!argp2) {
31607       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_write_data_J" "', argument " "2"" of type '" "int32_t""'");
31608     } else {
31609       arg2 = *((int32_t *)(argp2));
31610     }
31611   }
31612   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
31613   if (!SWIG_IsOK(ecode3)) {
31614     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_data_J" "', argument " "3"" of type '" "anbool""'");
31615   }
31616   arg3 = (anbool)(val3);
31617   result = (int)fits_write_data_J(arg1,arg2,arg3);
31618   resultobj = SWIG_From_int((int)(result));
31619   return resultobj;
31620 fail:
31621   return NULL;
31622 }
31623 
31624 
_wrap_fits_write_data_K(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31625 SWIGINTERN PyObject *_wrap_fits_write_data_K(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31626   PyObject *resultobj = 0;
31627   FILE *arg1 = (FILE *) 0 ;
31628   int64_t arg2 ;
31629   anbool arg3 ;
31630   void *argp1 = 0 ;
31631   int res1 = 0 ;
31632   void *argp2 ;
31633   int res2 = 0 ;
31634   unsigned char val3 ;
31635   int ecode3 = 0 ;
31636   PyObject *swig_obj[3] ;
31637   int result;
31638 
31639   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_K", 3, 3, swig_obj)) SWIG_fail;
31640   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31641   if (!SWIG_IsOK(res1)) {
31642     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_K" "', argument " "1"" of type '" "FILE *""'");
31643   }
31644   arg1 = (FILE *)(argp1);
31645   {
31646     res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_int64_t,  0 );
31647     if (!SWIG_IsOK(res2)) {
31648       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_data_K" "', argument " "2"" of type '" "int64_t""'");
31649     }
31650     if (!argp2) {
31651       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_write_data_K" "', argument " "2"" of type '" "int64_t""'");
31652     } else {
31653       arg2 = *((int64_t *)(argp2));
31654     }
31655   }
31656   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
31657   if (!SWIG_IsOK(ecode3)) {
31658     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fits_write_data_K" "', argument " "3"" of type '" "anbool""'");
31659   }
31660   arg3 = (anbool)(val3);
31661   result = (int)fits_write_data_K(arg1,arg2,arg3);
31662   resultobj = SWIG_From_int((int)(result));
31663   return resultobj;
31664 fail:
31665   return NULL;
31666 }
31667 
31668 
_wrap_fits_write_data_L(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31669 SWIGINTERN PyObject *_wrap_fits_write_data_L(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31670   PyObject *resultobj = 0;
31671   FILE *arg1 = (FILE *) 0 ;
31672   char arg2 ;
31673   void *argp1 = 0 ;
31674   int res1 = 0 ;
31675   char val2 ;
31676   int ecode2 = 0 ;
31677   PyObject *swig_obj[2] ;
31678   int result;
31679 
31680   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_L", 2, 2, swig_obj)) SWIG_fail;
31681   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31682   if (!SWIG_IsOK(res1)) {
31683     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_L" "', argument " "1"" of type '" "FILE *""'");
31684   }
31685   arg1 = (FILE *)(argp1);
31686   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
31687   if (!SWIG_IsOK(ecode2)) {
31688     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_data_L" "', argument " "2"" of type '" "char""'");
31689   }
31690   arg2 = (char)(val2);
31691   result = (int)fits_write_data_L(arg1,arg2);
31692   resultobj = SWIG_From_int((int)(result));
31693   return resultobj;
31694 fail:
31695   return NULL;
31696 }
31697 
31698 
_wrap_fits_write_data_X(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31699 SWIGINTERN PyObject *_wrap_fits_write_data_X(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31700   PyObject *resultobj = 0;
31701   FILE *arg1 = (FILE *) 0 ;
31702   unsigned char arg2 ;
31703   void *argp1 = 0 ;
31704   int res1 = 0 ;
31705   unsigned char val2 ;
31706   int ecode2 = 0 ;
31707   PyObject *swig_obj[2] ;
31708   int result;
31709 
31710   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_X", 2, 2, swig_obj)) SWIG_fail;
31711   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31712   if (!SWIG_IsOK(res1)) {
31713     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_X" "', argument " "1"" of type '" "FILE *""'");
31714   }
31715   arg1 = (FILE *)(argp1);
31716   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
31717   if (!SWIG_IsOK(ecode2)) {
31718     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fits_write_data_X" "', argument " "2"" of type '" "unsigned char""'");
31719   }
31720   arg2 = (unsigned char)(val2);
31721   result = (int)fits_write_data_X(arg1,arg2);
31722   resultobj = SWIG_From_int((int)(result));
31723   return resultobj;
31724 fail:
31725   return NULL;
31726 }
31727 
31728 
_wrap_fits_write_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31729 SWIGINTERN PyObject *_wrap_fits_write_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31730   PyObject *resultobj = 0;
31731   FILE *arg1 = (FILE *) 0 ;
31732   void *arg2 = (void *) 0 ;
31733   tfits_type arg3 ;
31734   anbool arg4 ;
31735   void *argp1 = 0 ;
31736   int res1 = 0 ;
31737   int res2 ;
31738   void *argp3 ;
31739   int res3 = 0 ;
31740   unsigned char val4 ;
31741   int ecode4 = 0 ;
31742   PyObject *swig_obj[4] ;
31743   int result;
31744 
31745   if (!SWIG_Python_UnpackTuple(args, "fits_write_data", 4, 4, swig_obj)) SWIG_fail;
31746   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31747   if (!SWIG_IsOK(res1)) {
31748     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data" "', argument " "1"" of type '" "FILE *""'");
31749   }
31750   arg1 = (FILE *)(argp1);
31751   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
31752   if (!SWIG_IsOK(res2)) {
31753     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_data" "', argument " "2"" of type '" "void *""'");
31754   }
31755   {
31756     res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_tfits_type,  0 );
31757     if (!SWIG_IsOK(res3)) {
31758       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_write_data" "', argument " "3"" of type '" "tfits_type""'");
31759     }
31760     if (!argp3) {
31761       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_write_data" "', argument " "3"" of type '" "tfits_type""'");
31762     } else {
31763       arg3 = *((tfits_type *)(argp3));
31764     }
31765   }
31766   ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4);
31767   if (!SWIG_IsOK(ecode4)) {
31768     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fits_write_data" "', argument " "4"" of type '" "anbool""'");
31769   }
31770   arg4 = (anbool)(val4);
31771   result = (int)fits_write_data(arg1,arg2,arg3,arg4);
31772   resultobj = SWIG_From_int((int)(result));
31773   return resultobj;
31774 fail:
31775   return NULL;
31776 }
31777 
31778 
_wrap_fits_write_data_array(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31779 SWIGINTERN PyObject *_wrap_fits_write_data_array(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31780   PyObject *resultobj = 0;
31781   FILE *arg1 = (FILE *) 0 ;
31782   void *arg2 = (void *) 0 ;
31783   tfits_type arg3 ;
31784   int arg4 ;
31785   anbool arg5 ;
31786   void *argp1 = 0 ;
31787   int res1 = 0 ;
31788   int res2 ;
31789   void *argp3 ;
31790   int res3 = 0 ;
31791   int val4 ;
31792   int ecode4 = 0 ;
31793   unsigned char val5 ;
31794   int ecode5 = 0 ;
31795   PyObject *swig_obj[5] ;
31796   int result;
31797 
31798   if (!SWIG_Python_UnpackTuple(args, "fits_write_data_array", 5, 5, swig_obj)) SWIG_fail;
31799   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
31800   if (!SWIG_IsOK(res1)) {
31801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fits_write_data_array" "', argument " "1"" of type '" "FILE *""'");
31802   }
31803   arg1 = (FILE *)(argp1);
31804   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
31805   if (!SWIG_IsOK(res2)) {
31806     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fits_write_data_array" "', argument " "2"" of type '" "void const *""'");
31807   }
31808   {
31809     res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_tfits_type,  0 );
31810     if (!SWIG_IsOK(res3)) {
31811       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fits_write_data_array" "', argument " "3"" of type '" "tfits_type""'");
31812     }
31813     if (!argp3) {
31814       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fits_write_data_array" "', argument " "3"" of type '" "tfits_type""'");
31815     } else {
31816       arg3 = *((tfits_type *)(argp3));
31817     }
31818   }
31819   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31820   if (!SWIG_IsOK(ecode4)) {
31821     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fits_write_data_array" "', argument " "4"" of type '" "int""'");
31822   }
31823   arg4 = (int)(val4);
31824   ecode5 = SWIG_AsVal_unsigned_SS_char(swig_obj[4], &val5);
31825   if (!SWIG_IsOK(ecode5)) {
31826     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fits_write_data_array" "', argument " "5"" of type '" "anbool""'");
31827   }
31828   arg5 = (anbool)(val5);
31829   result = (int)fits_write_data_array(arg1,(void const *)arg2,arg3,arg4,arg5);
31830   resultobj = SWIG_From_int((int)(result));
31831   return resultobj;
31832 fail:
31833   return NULL;
31834 }
31835 
31836 
_wrap_collapsing_find_minlabel(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31837 SWIGINTERN PyObject *_wrap_collapsing_find_minlabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31838   PyObject *resultobj = 0;
31839   dimage_label_t arg1 ;
31840   dimage_label_t *arg2 = (dimage_label_t *) 0 ;
31841   void *argp1 ;
31842   int res1 = 0 ;
31843   void *argp2 = 0 ;
31844   int res2 = 0 ;
31845   PyObject *swig_obj[2] ;
31846   dimage_label_t result;
31847 
31848   if (!SWIG_Python_UnpackTuple(args, "collapsing_find_minlabel", 2, 2, swig_obj)) SWIG_fail;
31849   {
31850     res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int32_t,  0 );
31851     if (!SWIG_IsOK(res1)) {
31852       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "collapsing_find_minlabel" "', argument " "1"" of type '" "dimage_label_t""'");
31853     }
31854     if (!argp1) {
31855       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "collapsing_find_minlabel" "', argument " "1"" of type '" "dimage_label_t""'");
31856     } else {
31857       arg1 = *((dimage_label_t *)(argp1));
31858     }
31859   }
31860   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int32_t, 0 |  0 );
31861   if (!SWIG_IsOK(res2)) {
31862     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "collapsing_find_minlabel" "', argument " "2"" of type '" "dimage_label_t *""'");
31863   }
31864   arg2 = (dimage_label_t *)(argp2);
31865   result = collapsing_find_minlabel(arg1,arg2);
31866   resultobj = SWIG_NewPointerObj((dimage_label_t *)memcpy((dimage_label_t *)calloc(1,sizeof(dimage_label_t)),&result,sizeof(dimage_label_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
31867   return resultobj;
31868 fail:
31869   return NULL;
31870 }
31871 
31872 
_wrap_dfind2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31873 SWIGINTERN PyObject *_wrap_dfind2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31874   PyObject *resultobj = 0;
31875   int *arg1 = (int *) 0 ;
31876   int arg2 ;
31877   int arg3 ;
31878   int *arg4 = (int *) 0 ;
31879   int *arg5 = (int *) 0 ;
31880   void *argp1 = 0 ;
31881   int res1 = 0 ;
31882   int val2 ;
31883   int ecode2 = 0 ;
31884   int val3 ;
31885   int ecode3 = 0 ;
31886   void *argp4 = 0 ;
31887   int res4 = 0 ;
31888   void *argp5 = 0 ;
31889   int res5 = 0 ;
31890   PyObject *swig_obj[5] ;
31891   int result;
31892 
31893   if (!SWIG_Python_UnpackTuple(args, "dfind2", 5, 5, swig_obj)) SWIG_fail;
31894   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_int, 0 |  0 );
31895   if (!SWIG_IsOK(res1)) {
31896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dfind2" "', argument " "1"" of type '" "int const *""'");
31897   }
31898   arg1 = (int *)(argp1);
31899   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31900   if (!SWIG_IsOK(ecode2)) {
31901     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dfind2" "', argument " "2"" of type '" "int""'");
31902   }
31903   arg2 = (int)(val2);
31904   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31905   if (!SWIG_IsOK(ecode3)) {
31906     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dfind2" "', argument " "3"" of type '" "int""'");
31907   }
31908   arg3 = (int)(val3);
31909   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
31910   if (!SWIG_IsOK(res4)) {
31911     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dfind2" "', argument " "4"" of type '" "int *""'");
31912   }
31913   arg4 = (int *)(argp4);
31914   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
31915   if (!SWIG_IsOK(res5)) {
31916     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dfind2" "', argument " "5"" of type '" "int *""'");
31917   }
31918   arg5 = (int *)(argp5);
31919   result = (int)dfind2((int const *)arg1,arg2,arg3,arg4,arg5);
31920   resultobj = SWIG_From_int((int)(result));
31921   return resultobj;
31922 fail:
31923   return NULL;
31924 }
31925 
31926 
_wrap_dfind2_u8(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31927 SWIGINTERN PyObject *_wrap_dfind2_u8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31928   PyObject *resultobj = 0;
31929   unsigned char *arg1 = (unsigned char *) 0 ;
31930   int arg2 ;
31931   int arg3 ;
31932   int *arg4 = (int *) 0 ;
31933   int *arg5 = (int *) 0 ;
31934   void *argp1 = 0 ;
31935   int res1 = 0 ;
31936   int val2 ;
31937   int ecode2 = 0 ;
31938   int val3 ;
31939   int ecode3 = 0 ;
31940   void *argp4 = 0 ;
31941   int res4 = 0 ;
31942   void *argp5 = 0 ;
31943   int res5 = 0 ;
31944   PyObject *swig_obj[5] ;
31945   int result;
31946 
31947   if (!SWIG_Python_UnpackTuple(args, "dfind2_u8", 5, 5, swig_obj)) SWIG_fail;
31948   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_unsigned_char, 0 |  0 );
31949   if (!SWIG_IsOK(res1)) {
31950     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dfind2_u8" "', argument " "1"" of type '" "unsigned char const *""'");
31951   }
31952   arg1 = (unsigned char *)(argp1);
31953   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31954   if (!SWIG_IsOK(ecode2)) {
31955     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dfind2_u8" "', argument " "2"" of type '" "int""'");
31956   }
31957   arg2 = (int)(val2);
31958   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31959   if (!SWIG_IsOK(ecode3)) {
31960     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dfind2_u8" "', argument " "3"" of type '" "int""'");
31961   }
31962   arg3 = (int)(val3);
31963   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
31964   if (!SWIG_IsOK(res4)) {
31965     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dfind2_u8" "', argument " "4"" of type '" "int *""'");
31966   }
31967   arg4 = (int *)(argp4);
31968   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
31969   if (!SWIG_IsOK(res5)) {
31970     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dfind2_u8" "', argument " "5"" of type '" "int *""'");
31971   }
31972   arg5 = (int *)(argp5);
31973   result = (int)dfind2_u8((unsigned char const *)arg1,arg2,arg3,arg4,arg5);
31974   resultobj = SWIG_From_int((int)(result));
31975   return resultobj;
31976 fail:
31977   return NULL;
31978 }
31979 
31980 
_wrap_dselip(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31981 SWIGINTERN PyObject *_wrap_dselip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31982   PyObject *resultobj = 0;
31983   unsigned long arg1 ;
31984   unsigned long arg2 ;
31985   float *arg3 = (float *) 0 ;
31986   unsigned long val1 ;
31987   int ecode1 = 0 ;
31988   unsigned long val2 ;
31989   int ecode2 = 0 ;
31990   void *argp3 = 0 ;
31991   int res3 = 0 ;
31992   PyObject *swig_obj[3] ;
31993   float result;
31994 
31995   if (!SWIG_Python_UnpackTuple(args, "dselip", 3, 3, swig_obj)) SWIG_fail;
31996   ecode1 = SWIG_AsVal_unsigned_SS_long(swig_obj[0], &val1);
31997   if (!SWIG_IsOK(ecode1)) {
31998     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dselip" "', argument " "1"" of type '" "unsigned long""'");
31999   }
32000   arg1 = (unsigned long)(val1);
32001   ecode2 = SWIG_AsVal_unsigned_SS_long(swig_obj[1], &val2);
32002   if (!SWIG_IsOK(ecode2)) {
32003     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dselip" "', argument " "2"" of type '" "unsigned long""'");
32004   }
32005   arg2 = (unsigned long)(val2);
32006   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
32007   if (!SWIG_IsOK(res3)) {
32008     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dselip" "', argument " "3"" of type '" "float const *""'");
32009   }
32010   arg3 = (float *)(argp3);
32011   result = (float)dselip(arg1,arg2,(float const *)arg3);
32012   resultobj = SWIG_From_float((float)(result));
32013   return resultobj;
32014 fail:
32015   return NULL;
32016 }
32017 
32018 
_wrap_dselip_cleanup(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32019 SWIGINTERN PyObject *_wrap_dselip_cleanup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32020   PyObject *resultobj = 0;
32021 
32022   if (!SWIG_Python_UnpackTuple(args, "dselip_cleanup", 0, 0, 0)) SWIG_fail;
32023   dselip_cleanup();
32024   resultobj = SWIG_Py_Void();
32025   return resultobj;
32026 fail:
32027   return NULL;
32028 }
32029 
32030 
_wrap_dsmooth(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32031 SWIGINTERN PyObject *_wrap_dsmooth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32032   PyObject *resultobj = 0;
32033   float *arg1 = (float *) 0 ;
32034   int arg2 ;
32035   int arg3 ;
32036   float arg4 ;
32037   float *arg5 = (float *) 0 ;
32038   void *argp1 = 0 ;
32039   int res1 = 0 ;
32040   int val2 ;
32041   int ecode2 = 0 ;
32042   int val3 ;
32043   int ecode3 = 0 ;
32044   float val4 ;
32045   int ecode4 = 0 ;
32046   void *argp5 = 0 ;
32047   int res5 = 0 ;
32048   PyObject *swig_obj[5] ;
32049   int result;
32050 
32051   if (!SWIG_Python_UnpackTuple(args, "dsmooth", 5, 5, swig_obj)) SWIG_fail;
32052   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32053   if (!SWIG_IsOK(res1)) {
32054     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dsmooth" "', argument " "1"" of type '" "float *""'");
32055   }
32056   arg1 = (float *)(argp1);
32057   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32058   if (!SWIG_IsOK(ecode2)) {
32059     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dsmooth" "', argument " "2"" of type '" "int""'");
32060   }
32061   arg2 = (int)(val2);
32062   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32063   if (!SWIG_IsOK(ecode3)) {
32064     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dsmooth" "', argument " "3"" of type '" "int""'");
32065   }
32066   arg3 = (int)(val3);
32067   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
32068   if (!SWIG_IsOK(ecode4)) {
32069     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dsmooth" "', argument " "4"" of type '" "float""'");
32070   }
32071   arg4 = (float)(val4);
32072   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_float, 0 |  0 );
32073   if (!SWIG_IsOK(res5)) {
32074     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dsmooth" "', argument " "5"" of type '" "float *""'");
32075   }
32076   arg5 = (float *)(argp5);
32077   result = (int)dsmooth(arg1,arg2,arg3,arg4,arg5);
32078   resultobj = SWIG_From_int((int)(result));
32079   return resultobj;
32080 fail:
32081   return NULL;
32082 }
32083 
32084 
_wrap_dsmooth2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32085 SWIGINTERN PyObject *_wrap_dsmooth2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32086   PyObject *resultobj = 0;
32087   float *arg1 = (float *) 0 ;
32088   int arg2 ;
32089   int arg3 ;
32090   float arg4 ;
32091   float *arg5 = (float *) 0 ;
32092   void *argp1 = 0 ;
32093   int res1 = 0 ;
32094   int val2 ;
32095   int ecode2 = 0 ;
32096   int val3 ;
32097   int ecode3 = 0 ;
32098   float val4 ;
32099   int ecode4 = 0 ;
32100   void *argp5 = 0 ;
32101   int res5 = 0 ;
32102   PyObject *swig_obj[5] ;
32103 
32104   if (!SWIG_Python_UnpackTuple(args, "dsmooth2", 5, 5, swig_obj)) SWIG_fail;
32105   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32106   if (!SWIG_IsOK(res1)) {
32107     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dsmooth2" "', argument " "1"" of type '" "float *""'");
32108   }
32109   arg1 = (float *)(argp1);
32110   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32111   if (!SWIG_IsOK(ecode2)) {
32112     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dsmooth2" "', argument " "2"" of type '" "int""'");
32113   }
32114   arg2 = (int)(val2);
32115   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32116   if (!SWIG_IsOK(ecode3)) {
32117     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dsmooth2" "', argument " "3"" of type '" "int""'");
32118   }
32119   arg3 = (int)(val3);
32120   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
32121   if (!SWIG_IsOK(ecode4)) {
32122     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dsmooth2" "', argument " "4"" of type '" "float""'");
32123   }
32124   arg4 = (float)(val4);
32125   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_float, 0 |  0 );
32126   if (!SWIG_IsOK(res5)) {
32127     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dsmooth2" "', argument " "5"" of type '" "float *""'");
32128   }
32129   arg5 = (float *)(argp5);
32130   dsmooth2(arg1,arg2,arg3,arg4,arg5);
32131   resultobj = SWIG_Py_Void();
32132   return resultobj;
32133 fail:
32134   return NULL;
32135 }
32136 
32137 
_wrap_dsmooth2_u8(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32138 SWIGINTERN PyObject *_wrap_dsmooth2_u8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32139   PyObject *resultobj = 0;
32140   uint8_t *arg1 = (uint8_t *) 0 ;
32141   int arg2 ;
32142   int arg3 ;
32143   float arg4 ;
32144   float *arg5 = (float *) 0 ;
32145   void *argp1 = 0 ;
32146   int res1 = 0 ;
32147   int val2 ;
32148   int ecode2 = 0 ;
32149   int val3 ;
32150   int ecode3 = 0 ;
32151   float val4 ;
32152   int ecode4 = 0 ;
32153   void *argp5 = 0 ;
32154   int res5 = 0 ;
32155   PyObject *swig_obj[5] ;
32156 
32157   if (!SWIG_Python_UnpackTuple(args, "dsmooth2_u8", 5, 5, swig_obj)) SWIG_fail;
32158   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_uint8_t, 0 |  0 );
32159   if (!SWIG_IsOK(res1)) {
32160     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dsmooth2_u8" "', argument " "1"" of type '" "uint8_t *""'");
32161   }
32162   arg1 = (uint8_t *)(argp1);
32163   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32164   if (!SWIG_IsOK(ecode2)) {
32165     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dsmooth2_u8" "', argument " "2"" of type '" "int""'");
32166   }
32167   arg2 = (int)(val2);
32168   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32169   if (!SWIG_IsOK(ecode3)) {
32170     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dsmooth2_u8" "', argument " "3"" of type '" "int""'");
32171   }
32172   arg3 = (int)(val3);
32173   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
32174   if (!SWIG_IsOK(ecode4)) {
32175     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dsmooth2_u8" "', argument " "4"" of type '" "float""'");
32176   }
32177   arg4 = (float)(val4);
32178   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_float, 0 |  0 );
32179   if (!SWIG_IsOK(res5)) {
32180     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dsmooth2_u8" "', argument " "5"" of type '" "float *""'");
32181   }
32182   arg5 = (float *)(argp5);
32183   dsmooth2_u8(arg1,arg2,arg3,arg4,arg5);
32184   resultobj = SWIG_Py_Void();
32185   return resultobj;
32186 fail:
32187   return NULL;
32188 }
32189 
32190 
_wrap_dsmooth2_i16(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32191 SWIGINTERN PyObject *_wrap_dsmooth2_i16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32192   PyObject *resultobj = 0;
32193   int16_t *arg1 = (int16_t *) 0 ;
32194   int arg2 ;
32195   int arg3 ;
32196   float arg4 ;
32197   float *arg5 = (float *) 0 ;
32198   void *argp1 = 0 ;
32199   int res1 = 0 ;
32200   int val2 ;
32201   int ecode2 = 0 ;
32202   int val3 ;
32203   int ecode3 = 0 ;
32204   float val4 ;
32205   int ecode4 = 0 ;
32206   void *argp5 = 0 ;
32207   int res5 = 0 ;
32208   PyObject *swig_obj[5] ;
32209 
32210   if (!SWIG_Python_UnpackTuple(args, "dsmooth2_i16", 5, 5, swig_obj)) SWIG_fail;
32211   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_int16_t, 0 |  0 );
32212   if (!SWIG_IsOK(res1)) {
32213     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dsmooth2_i16" "', argument " "1"" of type '" "int16_t *""'");
32214   }
32215   arg1 = (int16_t *)(argp1);
32216   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32217   if (!SWIG_IsOK(ecode2)) {
32218     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dsmooth2_i16" "', argument " "2"" of type '" "int""'");
32219   }
32220   arg2 = (int)(val2);
32221   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32222   if (!SWIG_IsOK(ecode3)) {
32223     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dsmooth2_i16" "', argument " "3"" of type '" "int""'");
32224   }
32225   arg3 = (int)(val3);
32226   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
32227   if (!SWIG_IsOK(ecode4)) {
32228     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dsmooth2_i16" "', argument " "4"" of type '" "float""'");
32229   }
32230   arg4 = (float)(val4);
32231   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_float, 0 |  0 );
32232   if (!SWIG_IsOK(res5)) {
32233     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dsmooth2_i16" "', argument " "5"" of type '" "float *""'");
32234   }
32235   arg5 = (float *)(argp5);
32236   dsmooth2_i16(arg1,arg2,arg3,arg4,arg5);
32237   resultobj = SWIG_Py_Void();
32238   return resultobj;
32239 fail:
32240   return NULL;
32241 }
32242 
32243 
_wrap_dobjects(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32244 SWIGINTERN PyObject *_wrap_dobjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32245   PyObject *resultobj = 0;
32246   float *arg1 = (float *) 0 ;
32247   int arg2 ;
32248   int arg3 ;
32249   float arg4 ;
32250   float arg5 ;
32251   int *arg6 = (int *) 0 ;
32252   void *argp1 = 0 ;
32253   int res1 = 0 ;
32254   int val2 ;
32255   int ecode2 = 0 ;
32256   int val3 ;
32257   int ecode3 = 0 ;
32258   float val4 ;
32259   int ecode4 = 0 ;
32260   float val5 ;
32261   int ecode5 = 0 ;
32262   void *argp6 = 0 ;
32263   int res6 = 0 ;
32264   PyObject *swig_obj[6] ;
32265   int result;
32266 
32267   if (!SWIG_Python_UnpackTuple(args, "dobjects", 6, 6, swig_obj)) SWIG_fail;
32268   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32269   if (!SWIG_IsOK(res1)) {
32270     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dobjects" "', argument " "1"" of type '" "float *""'");
32271   }
32272   arg1 = (float *)(argp1);
32273   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32274   if (!SWIG_IsOK(ecode2)) {
32275     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dobjects" "', argument " "2"" of type '" "int""'");
32276   }
32277   arg2 = (int)(val2);
32278   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32279   if (!SWIG_IsOK(ecode3)) {
32280     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dobjects" "', argument " "3"" of type '" "int""'");
32281   }
32282   arg3 = (int)(val3);
32283   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
32284   if (!SWIG_IsOK(ecode4)) {
32285     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dobjects" "', argument " "4"" of type '" "float""'");
32286   }
32287   arg4 = (float)(val4);
32288   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
32289   if (!SWIG_IsOK(ecode5)) {
32290     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dobjects" "', argument " "5"" of type '" "float""'");
32291   }
32292   arg5 = (float)(val5);
32293   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 |  0 );
32294   if (!SWIG_IsOK(res6)) {
32295     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dobjects" "', argument " "6"" of type '" "int *""'");
32296   }
32297   arg6 = (int *)(argp6);
32298   result = (int)dobjects(arg1,arg2,arg3,arg4,arg5,arg6);
32299   resultobj = SWIG_From_int((int)(result));
32300   return resultobj;
32301 fail:
32302   return NULL;
32303 }
32304 
32305 
_wrap_dmask(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32306 SWIGINTERN PyObject *_wrap_dmask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32307   PyObject *resultobj = 0;
32308   float *arg1 = (float *) 0 ;
32309   int arg2 ;
32310   int arg3 ;
32311   float arg4 ;
32312   float arg5 ;
32313   uint8_t *arg6 = (uint8_t *) 0 ;
32314   void *argp1 = 0 ;
32315   int res1 = 0 ;
32316   int val2 ;
32317   int ecode2 = 0 ;
32318   int val3 ;
32319   int ecode3 = 0 ;
32320   float val4 ;
32321   int ecode4 = 0 ;
32322   float val5 ;
32323   int ecode5 = 0 ;
32324   void *argp6 = 0 ;
32325   int res6 = 0 ;
32326   PyObject *swig_obj[6] ;
32327   int result;
32328 
32329   if (!SWIG_Python_UnpackTuple(args, "dmask", 6, 6, swig_obj)) SWIG_fail;
32330   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32331   if (!SWIG_IsOK(res1)) {
32332     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dmask" "', argument " "1"" of type '" "float *""'");
32333   }
32334   arg1 = (float *)(argp1);
32335   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32336   if (!SWIG_IsOK(ecode2)) {
32337     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dmask" "', argument " "2"" of type '" "int""'");
32338   }
32339   arg2 = (int)(val2);
32340   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32341   if (!SWIG_IsOK(ecode3)) {
32342     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dmask" "', argument " "3"" of type '" "int""'");
32343   }
32344   arg3 = (int)(val3);
32345   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
32346   if (!SWIG_IsOK(ecode4)) {
32347     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dmask" "', argument " "4"" of type '" "float""'");
32348   }
32349   arg4 = (float)(val4);
32350   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
32351   if (!SWIG_IsOK(ecode5)) {
32352     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dmask" "', argument " "5"" of type '" "float""'");
32353   }
32354   arg5 = (float)(val5);
32355   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_uint8_t, 0 |  0 );
32356   if (!SWIG_IsOK(res6)) {
32357     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dmask" "', argument " "6"" of type '" "uint8_t *""'");
32358   }
32359   arg6 = (uint8_t *)(argp6);
32360   result = (int)dmask(arg1,arg2,arg3,arg4,arg5,arg6);
32361   resultobj = SWIG_From_int((int)(result));
32362   return resultobj;
32363 fail:
32364   return NULL;
32365 }
32366 
32367 
_wrap_dpeaks(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32368 SWIGINTERN PyObject *_wrap_dpeaks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32369   PyObject *resultobj = 0;
32370   float *arg1 = (float *) 0 ;
32371   int arg2 ;
32372   int arg3 ;
32373   int *arg4 = (int *) 0 ;
32374   int *arg5 = (int *) 0 ;
32375   int *arg6 = (int *) 0 ;
32376   float arg7 ;
32377   float arg8 ;
32378   float arg9 ;
32379   int arg10 ;
32380   int arg11 ;
32381   int arg12 ;
32382   float arg13 ;
32383   void *argp1 = 0 ;
32384   int res1 = 0 ;
32385   int val2 ;
32386   int ecode2 = 0 ;
32387   int val3 ;
32388   int ecode3 = 0 ;
32389   void *argp4 = 0 ;
32390   int res4 = 0 ;
32391   void *argp5 = 0 ;
32392   int res5 = 0 ;
32393   void *argp6 = 0 ;
32394   int res6 = 0 ;
32395   float val7 ;
32396   int ecode7 = 0 ;
32397   float val8 ;
32398   int ecode8 = 0 ;
32399   float val9 ;
32400   int ecode9 = 0 ;
32401   int val10 ;
32402   int ecode10 = 0 ;
32403   int val11 ;
32404   int ecode11 = 0 ;
32405   int val12 ;
32406   int ecode12 = 0 ;
32407   float val13 ;
32408   int ecode13 = 0 ;
32409   PyObject *swig_obj[13] ;
32410   int result;
32411 
32412   if (!SWIG_Python_UnpackTuple(args, "dpeaks", 13, 13, swig_obj)) SWIG_fail;
32413   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32414   if (!SWIG_IsOK(res1)) {
32415     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dpeaks" "', argument " "1"" of type '" "float *""'");
32416   }
32417   arg1 = (float *)(argp1);
32418   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32419   if (!SWIG_IsOK(ecode2)) {
32420     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dpeaks" "', argument " "2"" of type '" "int""'");
32421   }
32422   arg2 = (int)(val2);
32423   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32424   if (!SWIG_IsOK(ecode3)) {
32425     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dpeaks" "', argument " "3"" of type '" "int""'");
32426   }
32427   arg3 = (int)(val3);
32428   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
32429   if (!SWIG_IsOK(res4)) {
32430     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dpeaks" "', argument " "4"" of type '" "int *""'");
32431   }
32432   arg4 = (int *)(argp4);
32433   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
32434   if (!SWIG_IsOK(res5)) {
32435     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dpeaks" "', argument " "5"" of type '" "int *""'");
32436   }
32437   arg5 = (int *)(argp5);
32438   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 |  0 );
32439   if (!SWIG_IsOK(res6)) {
32440     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dpeaks" "', argument " "6"" of type '" "int *""'");
32441   }
32442   arg6 = (int *)(argp6);
32443   ecode7 = SWIG_AsVal_float(swig_obj[6], &val7);
32444   if (!SWIG_IsOK(ecode7)) {
32445     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dpeaks" "', argument " "7"" of type '" "float""'");
32446   }
32447   arg7 = (float)(val7);
32448   ecode8 = SWIG_AsVal_float(swig_obj[7], &val8);
32449   if (!SWIG_IsOK(ecode8)) {
32450     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dpeaks" "', argument " "8"" of type '" "float""'");
32451   }
32452   arg8 = (float)(val8);
32453   ecode9 = SWIG_AsVal_float(swig_obj[8], &val9);
32454   if (!SWIG_IsOK(ecode9)) {
32455     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dpeaks" "', argument " "9"" of type '" "float""'");
32456   }
32457   arg9 = (float)(val9);
32458   ecode10 = SWIG_AsVal_int(swig_obj[9], &val10);
32459   if (!SWIG_IsOK(ecode10)) {
32460     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "dpeaks" "', argument " "10"" of type '" "int""'");
32461   }
32462   arg10 = (int)(val10);
32463   ecode11 = SWIG_AsVal_int(swig_obj[10], &val11);
32464   if (!SWIG_IsOK(ecode11)) {
32465     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "dpeaks" "', argument " "11"" of type '" "int""'");
32466   }
32467   arg11 = (int)(val11);
32468   ecode12 = SWIG_AsVal_int(swig_obj[11], &val12);
32469   if (!SWIG_IsOK(ecode12)) {
32470     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "dpeaks" "', argument " "12"" of type '" "int""'");
32471   }
32472   arg12 = (int)(val12);
32473   ecode13 = SWIG_AsVal_float(swig_obj[12], &val13);
32474   if (!SWIG_IsOK(ecode13)) {
32475     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "dpeaks" "', argument " "13"" of type '" "float""'");
32476   }
32477   arg13 = (float)(val13);
32478   result = (int)dpeaks(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
32479   resultobj = SWIG_From_int((int)(result));
32480   return resultobj;
32481 fail:
32482   return NULL;
32483 }
32484 
32485 
_wrap_dcen3x3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32486 SWIGINTERN PyObject *_wrap_dcen3x3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32487   PyObject *resultobj = 0;
32488   float *arg1 = (float *) 0 ;
32489   float *arg2 = (float *) 0 ;
32490   float *arg3 = (float *) 0 ;
32491   void *argp1 = 0 ;
32492   int res1 = 0 ;
32493   float temp2 ;
32494   int res2 = SWIG_TMPOBJ ;
32495   float temp3 ;
32496   int res3 = SWIG_TMPOBJ ;
32497   PyObject *swig_obj[1] ;
32498   int result;
32499 
32500   arg2 = &temp2;
32501   arg3 = &temp3;
32502   if (!args) SWIG_fail;
32503   swig_obj[0] = args;
32504   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32505   if (!SWIG_IsOK(res1)) {
32506     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dcen3x3" "', argument " "1"" of type '" "float *""'");
32507   }
32508   arg1 = (float *)(argp1);
32509   result = (int)dcen3x3(arg1,arg2,arg3);
32510   resultobj = SWIG_From_int((int)(result));
32511   if (SWIG_IsTmpObj(res2)) {
32512     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
32513   } else {
32514     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
32515     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
32516   }
32517   if (SWIG_IsTmpObj(res3)) {
32518     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
32519   } else {
32520     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
32521     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
32522   }
32523   return resultobj;
32524 fail:
32525   return NULL;
32526 }
32527 
32528 
_wrap_dsigma(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32529 SWIGINTERN PyObject *_wrap_dsigma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32530   PyObject *resultobj = 0;
32531   float *arg1 = (float *) 0 ;
32532   int arg2 ;
32533   int arg3 ;
32534   int arg4 ;
32535   int arg5 ;
32536   float *arg6 = (float *) 0 ;
32537   void *argp1 = 0 ;
32538   int res1 = 0 ;
32539   int val2 ;
32540   int ecode2 = 0 ;
32541   int val3 ;
32542   int ecode3 = 0 ;
32543   int val4 ;
32544   int ecode4 = 0 ;
32545   int val5 ;
32546   int ecode5 = 0 ;
32547   void *argp6 = 0 ;
32548   int res6 = 0 ;
32549   PyObject *swig_obj[6] ;
32550   int result;
32551 
32552   if (!SWIG_Python_UnpackTuple(args, "dsigma", 6, 6, swig_obj)) SWIG_fail;
32553   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32554   if (!SWIG_IsOK(res1)) {
32555     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dsigma" "', argument " "1"" of type '" "float *""'");
32556   }
32557   arg1 = (float *)(argp1);
32558   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32559   if (!SWIG_IsOK(ecode2)) {
32560     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dsigma" "', argument " "2"" of type '" "int""'");
32561   }
32562   arg2 = (int)(val2);
32563   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32564   if (!SWIG_IsOK(ecode3)) {
32565     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dsigma" "', argument " "3"" of type '" "int""'");
32566   }
32567   arg3 = (int)(val3);
32568   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32569   if (!SWIG_IsOK(ecode4)) {
32570     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dsigma" "', argument " "4"" of type '" "int""'");
32571   }
32572   arg4 = (int)(val4);
32573   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
32574   if (!SWIG_IsOK(ecode5)) {
32575     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dsigma" "', argument " "5"" of type '" "int""'");
32576   }
32577   arg5 = (int)(val5);
32578   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_float, 0 |  0 );
32579   if (!SWIG_IsOK(res6)) {
32580     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dsigma" "', argument " "6"" of type '" "float *""'");
32581   }
32582   arg6 = (float *)(argp6);
32583   result = (int)dsigma(arg1,arg2,arg3,arg4,arg5,arg6);
32584   resultobj = SWIG_From_int((int)(result));
32585   return resultobj;
32586 fail:
32587   return NULL;
32588 }
32589 
32590 
_wrap_dsigma_u8(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32591 SWIGINTERN PyObject *_wrap_dsigma_u8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32592   PyObject *resultobj = 0;
32593   uint8_t *arg1 = (uint8_t *) 0 ;
32594   int arg2 ;
32595   int arg3 ;
32596   int arg4 ;
32597   int arg5 ;
32598   float *arg6 = (float *) 0 ;
32599   void *argp1 = 0 ;
32600   int res1 = 0 ;
32601   int val2 ;
32602   int ecode2 = 0 ;
32603   int val3 ;
32604   int ecode3 = 0 ;
32605   int val4 ;
32606   int ecode4 = 0 ;
32607   int val5 ;
32608   int ecode5 = 0 ;
32609   void *argp6 = 0 ;
32610   int res6 = 0 ;
32611   PyObject *swig_obj[6] ;
32612   int result;
32613 
32614   if (!SWIG_Python_UnpackTuple(args, "dsigma_u8", 6, 6, swig_obj)) SWIG_fail;
32615   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_uint8_t, 0 |  0 );
32616   if (!SWIG_IsOK(res1)) {
32617     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dsigma_u8" "', argument " "1"" of type '" "uint8_t *""'");
32618   }
32619   arg1 = (uint8_t *)(argp1);
32620   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32621   if (!SWIG_IsOK(ecode2)) {
32622     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dsigma_u8" "', argument " "2"" of type '" "int""'");
32623   }
32624   arg2 = (int)(val2);
32625   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32626   if (!SWIG_IsOK(ecode3)) {
32627     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dsigma_u8" "', argument " "3"" of type '" "int""'");
32628   }
32629   arg3 = (int)(val3);
32630   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32631   if (!SWIG_IsOK(ecode4)) {
32632     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dsigma_u8" "', argument " "4"" of type '" "int""'");
32633   }
32634   arg4 = (int)(val4);
32635   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
32636   if (!SWIG_IsOK(ecode5)) {
32637     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dsigma_u8" "', argument " "5"" of type '" "int""'");
32638   }
32639   arg5 = (int)(val5);
32640   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_float, 0 |  0 );
32641   if (!SWIG_IsOK(res6)) {
32642     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dsigma_u8" "', argument " "6"" of type '" "float *""'");
32643   }
32644   arg6 = (float *)(argp6);
32645   result = (int)dsigma_u8(arg1,arg2,arg3,arg4,arg5,arg6);
32646   resultobj = SWIG_From_int((int)(result));
32647   return resultobj;
32648 fail:
32649   return NULL;
32650 }
32651 
32652 
_wrap_dmedsmooth(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32653 SWIGINTERN PyObject *_wrap_dmedsmooth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32654   PyObject *resultobj = 0;
32655   float *arg1 = (float *) 0 ;
32656   uint8_t *arg2 = (uint8_t *) 0 ;
32657   int arg3 ;
32658   int arg4 ;
32659   int arg5 ;
32660   float *arg6 = (float *) 0 ;
32661   void *argp1 = 0 ;
32662   int res1 = 0 ;
32663   void *argp2 = 0 ;
32664   int res2 = 0 ;
32665   int val3 ;
32666   int ecode3 = 0 ;
32667   int val4 ;
32668   int ecode4 = 0 ;
32669   int val5 ;
32670   int ecode5 = 0 ;
32671   void *argp6 = 0 ;
32672   int res6 = 0 ;
32673   PyObject *swig_obj[6] ;
32674   int result;
32675 
32676   if (!SWIG_Python_UnpackTuple(args, "dmedsmooth", 6, 6, swig_obj)) SWIG_fail;
32677   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32678   if (!SWIG_IsOK(res1)) {
32679     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dmedsmooth" "', argument " "1"" of type '" "float const *""'");
32680   }
32681   arg1 = (float *)(argp1);
32682   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_uint8_t, 0 |  0 );
32683   if (!SWIG_IsOK(res2)) {
32684     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dmedsmooth" "', argument " "2"" of type '" "uint8_t const *""'");
32685   }
32686   arg2 = (uint8_t *)(argp2);
32687   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32688   if (!SWIG_IsOK(ecode3)) {
32689     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dmedsmooth" "', argument " "3"" of type '" "int""'");
32690   }
32691   arg3 = (int)(val3);
32692   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32693   if (!SWIG_IsOK(ecode4)) {
32694     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dmedsmooth" "', argument " "4"" of type '" "int""'");
32695   }
32696   arg4 = (int)(val4);
32697   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
32698   if (!SWIG_IsOK(ecode5)) {
32699     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dmedsmooth" "', argument " "5"" of type '" "int""'");
32700   }
32701   arg5 = (int)(val5);
32702   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_float, 0 |  0 );
32703   if (!SWIG_IsOK(res6)) {
32704     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dmedsmooth" "', argument " "6"" of type '" "float *""'");
32705   }
32706   arg6 = (float *)(argp6);
32707   result = (int)dmedsmooth((float const *)arg1,(uint8_t const *)arg2,arg3,arg4,arg5,arg6);
32708   resultobj = SWIG_From_int((int)(result));
32709   return resultobj;
32710 fail:
32711   return NULL;
32712 }
32713 
32714 
_wrap_dallpeaks(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32715 SWIGINTERN PyObject *_wrap_dallpeaks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32716   PyObject *resultobj = 0;
32717   float *arg1 = (float *) 0 ;
32718   int arg2 ;
32719   int arg3 ;
32720   int *arg4 = (int *) 0 ;
32721   float *arg5 = (float *) 0 ;
32722   float *arg6 = (float *) 0 ;
32723   int *arg7 = (int *) 0 ;
32724   float arg8 ;
32725   float arg9 ;
32726   float arg10 ;
32727   float arg11 ;
32728   int arg12 ;
32729   int arg13 ;
32730   float arg14 ;
32731   int arg15 ;
32732   void *argp1 = 0 ;
32733   int res1 = 0 ;
32734   int val2 ;
32735   int ecode2 = 0 ;
32736   int val3 ;
32737   int ecode3 = 0 ;
32738   void *argp4 = 0 ;
32739   int res4 = 0 ;
32740   float temp5 ;
32741   int res5 = SWIG_TMPOBJ ;
32742   float temp6 ;
32743   int res6 = SWIG_TMPOBJ ;
32744   void *argp7 = 0 ;
32745   int res7 = 0 ;
32746   float val8 ;
32747   int ecode8 = 0 ;
32748   float val9 ;
32749   int ecode9 = 0 ;
32750   float val10 ;
32751   int ecode10 = 0 ;
32752   float val11 ;
32753   int ecode11 = 0 ;
32754   int val12 ;
32755   int ecode12 = 0 ;
32756   int val13 ;
32757   int ecode13 = 0 ;
32758   float val14 ;
32759   int ecode14 = 0 ;
32760   int val15 ;
32761   int ecode15 = 0 ;
32762   PyObject *swig_obj[13] ;
32763   int result;
32764 
32765   arg5 = &temp5;
32766   arg6 = &temp6;
32767   if (!SWIG_Python_UnpackTuple(args, "dallpeaks", 13, 13, swig_obj)) SWIG_fail;
32768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
32769   if (!SWIG_IsOK(res1)) {
32770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dallpeaks" "', argument " "1"" of type '" "float *""'");
32771   }
32772   arg1 = (float *)(argp1);
32773   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32774   if (!SWIG_IsOK(ecode2)) {
32775     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dallpeaks" "', argument " "2"" of type '" "int""'");
32776   }
32777   arg2 = (int)(val2);
32778   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32779   if (!SWIG_IsOK(ecode3)) {
32780     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dallpeaks" "', argument " "3"" of type '" "int""'");
32781   }
32782   arg3 = (int)(val3);
32783   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
32784   if (!SWIG_IsOK(res4)) {
32785     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dallpeaks" "', argument " "4"" of type '" "int *""'");
32786   }
32787   arg4 = (int *)(argp4);
32788   res7 = SWIG_ConvertPtr(swig_obj[4], &argp7,SWIGTYPE_p_int, 0 |  0 );
32789   if (!SWIG_IsOK(res7)) {
32790     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "dallpeaks" "', argument " "7"" of type '" "int *""'");
32791   }
32792   arg7 = (int *)(argp7);
32793   ecode8 = SWIG_AsVal_float(swig_obj[5], &val8);
32794   if (!SWIG_IsOK(ecode8)) {
32795     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dallpeaks" "', argument " "8"" of type '" "float""'");
32796   }
32797   arg8 = (float)(val8);
32798   ecode9 = SWIG_AsVal_float(swig_obj[6], &val9);
32799   if (!SWIG_IsOK(ecode9)) {
32800     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dallpeaks" "', argument " "9"" of type '" "float""'");
32801   }
32802   arg9 = (float)(val9);
32803   ecode10 = SWIG_AsVal_float(swig_obj[7], &val10);
32804   if (!SWIG_IsOK(ecode10)) {
32805     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "dallpeaks" "', argument " "10"" of type '" "float""'");
32806   }
32807   arg10 = (float)(val10);
32808   ecode11 = SWIG_AsVal_float(swig_obj[8], &val11);
32809   if (!SWIG_IsOK(ecode11)) {
32810     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "dallpeaks" "', argument " "11"" of type '" "float""'");
32811   }
32812   arg11 = (float)(val11);
32813   ecode12 = SWIG_AsVal_int(swig_obj[9], &val12);
32814   if (!SWIG_IsOK(ecode12)) {
32815     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "dallpeaks" "', argument " "12"" of type '" "int""'");
32816   }
32817   arg12 = (int)(val12);
32818   ecode13 = SWIG_AsVal_int(swig_obj[10], &val13);
32819   if (!SWIG_IsOK(ecode13)) {
32820     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "dallpeaks" "', argument " "13"" of type '" "int""'");
32821   }
32822   arg13 = (int)(val13);
32823   ecode14 = SWIG_AsVal_float(swig_obj[11], &val14);
32824   if (!SWIG_IsOK(ecode14)) {
32825     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "dallpeaks" "', argument " "14"" of type '" "float""'");
32826   }
32827   arg14 = (float)(val14);
32828   ecode15 = SWIG_AsVal_int(swig_obj[12], &val15);
32829   if (!SWIG_IsOK(ecode15)) {
32830     SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "dallpeaks" "', argument " "15"" of type '" "int""'");
32831   }
32832   arg15 = (int)(val15);
32833   result = (int)dallpeaks(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
32834   resultobj = SWIG_From_int((int)(result));
32835   if (SWIG_IsTmpObj(res5)) {
32836     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
32837   } else {
32838     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
32839     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
32840   }
32841   if (SWIG_IsTmpObj(res6)) {
32842     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg6)));
32843   } else {
32844     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
32845     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_float, new_flags));
32846   }
32847   return resultobj;
32848 fail:
32849   return NULL;
32850 }
32851 
32852 
_wrap_dallpeaks_u8(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32853 SWIGINTERN PyObject *_wrap_dallpeaks_u8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32854   PyObject *resultobj = 0;
32855   uint8_t *arg1 = (uint8_t *) 0 ;
32856   int arg2 ;
32857   int arg3 ;
32858   int *arg4 = (int *) 0 ;
32859   float *arg5 = (float *) 0 ;
32860   float *arg6 = (float *) 0 ;
32861   int *arg7 = (int *) 0 ;
32862   float arg8 ;
32863   float arg9 ;
32864   float arg10 ;
32865   float arg11 ;
32866   int arg12 ;
32867   int arg13 ;
32868   float arg14 ;
32869   int arg15 ;
32870   void *argp1 = 0 ;
32871   int res1 = 0 ;
32872   int val2 ;
32873   int ecode2 = 0 ;
32874   int val3 ;
32875   int ecode3 = 0 ;
32876   void *argp4 = 0 ;
32877   int res4 = 0 ;
32878   float temp5 ;
32879   int res5 = SWIG_TMPOBJ ;
32880   float temp6 ;
32881   int res6 = SWIG_TMPOBJ ;
32882   void *argp7 = 0 ;
32883   int res7 = 0 ;
32884   float val8 ;
32885   int ecode8 = 0 ;
32886   float val9 ;
32887   int ecode9 = 0 ;
32888   float val10 ;
32889   int ecode10 = 0 ;
32890   float val11 ;
32891   int ecode11 = 0 ;
32892   int val12 ;
32893   int ecode12 = 0 ;
32894   int val13 ;
32895   int ecode13 = 0 ;
32896   float val14 ;
32897   int ecode14 = 0 ;
32898   int val15 ;
32899   int ecode15 = 0 ;
32900   PyObject *swig_obj[13] ;
32901   int result;
32902 
32903   arg5 = &temp5;
32904   arg6 = &temp6;
32905   if (!SWIG_Python_UnpackTuple(args, "dallpeaks_u8", 13, 13, swig_obj)) SWIG_fail;
32906   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_uint8_t, 0 |  0 );
32907   if (!SWIG_IsOK(res1)) {
32908     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dallpeaks_u8" "', argument " "1"" of type '" "uint8_t *""'");
32909   }
32910   arg1 = (uint8_t *)(argp1);
32911   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32912   if (!SWIG_IsOK(ecode2)) {
32913     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dallpeaks_u8" "', argument " "2"" of type '" "int""'");
32914   }
32915   arg2 = (int)(val2);
32916   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32917   if (!SWIG_IsOK(ecode3)) {
32918     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dallpeaks_u8" "', argument " "3"" of type '" "int""'");
32919   }
32920   arg3 = (int)(val3);
32921   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
32922   if (!SWIG_IsOK(res4)) {
32923     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dallpeaks_u8" "', argument " "4"" of type '" "int *""'");
32924   }
32925   arg4 = (int *)(argp4);
32926   res7 = SWIG_ConvertPtr(swig_obj[4], &argp7,SWIGTYPE_p_int, 0 |  0 );
32927   if (!SWIG_IsOK(res7)) {
32928     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "dallpeaks_u8" "', argument " "7"" of type '" "int *""'");
32929   }
32930   arg7 = (int *)(argp7);
32931   ecode8 = SWIG_AsVal_float(swig_obj[5], &val8);
32932   if (!SWIG_IsOK(ecode8)) {
32933     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dallpeaks_u8" "', argument " "8"" of type '" "float""'");
32934   }
32935   arg8 = (float)(val8);
32936   ecode9 = SWIG_AsVal_float(swig_obj[6], &val9);
32937   if (!SWIG_IsOK(ecode9)) {
32938     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dallpeaks_u8" "', argument " "9"" of type '" "float""'");
32939   }
32940   arg9 = (float)(val9);
32941   ecode10 = SWIG_AsVal_float(swig_obj[7], &val10);
32942   if (!SWIG_IsOK(ecode10)) {
32943     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "dallpeaks_u8" "', argument " "10"" of type '" "float""'");
32944   }
32945   arg10 = (float)(val10);
32946   ecode11 = SWIG_AsVal_float(swig_obj[8], &val11);
32947   if (!SWIG_IsOK(ecode11)) {
32948     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "dallpeaks_u8" "', argument " "11"" of type '" "float""'");
32949   }
32950   arg11 = (float)(val11);
32951   ecode12 = SWIG_AsVal_int(swig_obj[9], &val12);
32952   if (!SWIG_IsOK(ecode12)) {
32953     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "dallpeaks_u8" "', argument " "12"" of type '" "int""'");
32954   }
32955   arg12 = (int)(val12);
32956   ecode13 = SWIG_AsVal_int(swig_obj[10], &val13);
32957   if (!SWIG_IsOK(ecode13)) {
32958     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "dallpeaks_u8" "', argument " "13"" of type '" "int""'");
32959   }
32960   arg13 = (int)(val13);
32961   ecode14 = SWIG_AsVal_float(swig_obj[11], &val14);
32962   if (!SWIG_IsOK(ecode14)) {
32963     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "dallpeaks_u8" "', argument " "14"" of type '" "float""'");
32964   }
32965   arg14 = (float)(val14);
32966   ecode15 = SWIG_AsVal_int(swig_obj[12], &val15);
32967   if (!SWIG_IsOK(ecode15)) {
32968     SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "dallpeaks_u8" "', argument " "15"" of type '" "int""'");
32969   }
32970   arg15 = (int)(val15);
32971   result = (int)dallpeaks_u8(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
32972   resultobj = SWIG_From_int((int)(result));
32973   if (SWIG_IsTmpObj(res5)) {
32974     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
32975   } else {
32976     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
32977     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
32978   }
32979   if (SWIG_IsTmpObj(res6)) {
32980     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg6)));
32981   } else {
32982     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
32983     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_float, new_flags));
32984   }
32985   return resultobj;
32986 fail:
32987   return NULL;
32988 }
32989 
32990 
_wrap_dallpeaks_i16(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32991 SWIGINTERN PyObject *_wrap_dallpeaks_i16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32992   PyObject *resultobj = 0;
32993   int16_t *arg1 = (int16_t *) 0 ;
32994   int arg2 ;
32995   int arg3 ;
32996   int *arg4 = (int *) 0 ;
32997   float *arg5 = (float *) 0 ;
32998   float *arg6 = (float *) 0 ;
32999   int *arg7 = (int *) 0 ;
33000   float arg8 ;
33001   float arg9 ;
33002   float arg10 ;
33003   float arg11 ;
33004   int arg12 ;
33005   int arg13 ;
33006   float arg14 ;
33007   int arg15 ;
33008   void *argp1 = 0 ;
33009   int res1 = 0 ;
33010   int val2 ;
33011   int ecode2 = 0 ;
33012   int val3 ;
33013   int ecode3 = 0 ;
33014   void *argp4 = 0 ;
33015   int res4 = 0 ;
33016   float temp5 ;
33017   int res5 = SWIG_TMPOBJ ;
33018   float temp6 ;
33019   int res6 = SWIG_TMPOBJ ;
33020   void *argp7 = 0 ;
33021   int res7 = 0 ;
33022   float val8 ;
33023   int ecode8 = 0 ;
33024   float val9 ;
33025   int ecode9 = 0 ;
33026   float val10 ;
33027   int ecode10 = 0 ;
33028   float val11 ;
33029   int ecode11 = 0 ;
33030   int val12 ;
33031   int ecode12 = 0 ;
33032   int val13 ;
33033   int ecode13 = 0 ;
33034   float val14 ;
33035   int ecode14 = 0 ;
33036   int val15 ;
33037   int ecode15 = 0 ;
33038   PyObject *swig_obj[13] ;
33039   int result;
33040 
33041   arg5 = &temp5;
33042   arg6 = &temp6;
33043   if (!SWIG_Python_UnpackTuple(args, "dallpeaks_i16", 13, 13, swig_obj)) SWIG_fail;
33044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_int16_t, 0 |  0 );
33045   if (!SWIG_IsOK(res1)) {
33046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dallpeaks_i16" "', argument " "1"" of type '" "int16_t *""'");
33047   }
33048   arg1 = (int16_t *)(argp1);
33049   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33050   if (!SWIG_IsOK(ecode2)) {
33051     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dallpeaks_i16" "', argument " "2"" of type '" "int""'");
33052   }
33053   arg2 = (int)(val2);
33054   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
33055   if (!SWIG_IsOK(ecode3)) {
33056     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dallpeaks_i16" "', argument " "3"" of type '" "int""'");
33057   }
33058   arg3 = (int)(val3);
33059   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
33060   if (!SWIG_IsOK(res4)) {
33061     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dallpeaks_i16" "', argument " "4"" of type '" "int *""'");
33062   }
33063   arg4 = (int *)(argp4);
33064   res7 = SWIG_ConvertPtr(swig_obj[4], &argp7,SWIGTYPE_p_int, 0 |  0 );
33065   if (!SWIG_IsOK(res7)) {
33066     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "dallpeaks_i16" "', argument " "7"" of type '" "int *""'");
33067   }
33068   arg7 = (int *)(argp7);
33069   ecode8 = SWIG_AsVal_float(swig_obj[5], &val8);
33070   if (!SWIG_IsOK(ecode8)) {
33071     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dallpeaks_i16" "', argument " "8"" of type '" "float""'");
33072   }
33073   arg8 = (float)(val8);
33074   ecode9 = SWIG_AsVal_float(swig_obj[6], &val9);
33075   if (!SWIG_IsOK(ecode9)) {
33076     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dallpeaks_i16" "', argument " "9"" of type '" "float""'");
33077   }
33078   arg9 = (float)(val9);
33079   ecode10 = SWIG_AsVal_float(swig_obj[7], &val10);
33080   if (!SWIG_IsOK(ecode10)) {
33081     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "dallpeaks_i16" "', argument " "10"" of type '" "float""'");
33082   }
33083   arg10 = (float)(val10);
33084   ecode11 = SWIG_AsVal_float(swig_obj[8], &val11);
33085   if (!SWIG_IsOK(ecode11)) {
33086     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "dallpeaks_i16" "', argument " "11"" of type '" "float""'");
33087   }
33088   arg11 = (float)(val11);
33089   ecode12 = SWIG_AsVal_int(swig_obj[9], &val12);
33090   if (!SWIG_IsOK(ecode12)) {
33091     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "dallpeaks_i16" "', argument " "12"" of type '" "int""'");
33092   }
33093   arg12 = (int)(val12);
33094   ecode13 = SWIG_AsVal_int(swig_obj[10], &val13);
33095   if (!SWIG_IsOK(ecode13)) {
33096     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "dallpeaks_i16" "', argument " "13"" of type '" "int""'");
33097   }
33098   arg13 = (int)(val13);
33099   ecode14 = SWIG_AsVal_float(swig_obj[11], &val14);
33100   if (!SWIG_IsOK(ecode14)) {
33101     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "dallpeaks_i16" "', argument " "14"" of type '" "float""'");
33102   }
33103   arg14 = (float)(val14);
33104   ecode15 = SWIG_AsVal_int(swig_obj[12], &val15);
33105   if (!SWIG_IsOK(ecode15)) {
33106     SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "dallpeaks_i16" "', argument " "15"" of type '" "int""'");
33107   }
33108   arg15 = (int)(val15);
33109   result = (int)dallpeaks_i16(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
33110   resultobj = SWIG_From_int((int)(result));
33111   if (SWIG_IsTmpObj(res5)) {
33112     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
33113   } else {
33114     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
33115     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
33116   }
33117   if (SWIG_IsTmpObj(res6)) {
33118     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg6)));
33119   } else {
33120     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
33121     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_float, new_flags));
33122   }
33123   return resultobj;
33124 fail:
33125   return NULL;
33126 }
33127 
33128 
_wrap_dcen3x3b(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33129 SWIGINTERN PyObject *_wrap_dcen3x3b(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33130   PyObject *resultobj = 0;
33131   float arg1 ;
33132   float arg2 ;
33133   float arg3 ;
33134   float arg4 ;
33135   float arg5 ;
33136   float arg6 ;
33137   float arg7 ;
33138   float arg8 ;
33139   float arg9 ;
33140   float *arg10 = (float *) 0 ;
33141   float *arg11 = (float *) 0 ;
33142   float val1 ;
33143   int ecode1 = 0 ;
33144   float val2 ;
33145   int ecode2 = 0 ;
33146   float val3 ;
33147   int ecode3 = 0 ;
33148   float val4 ;
33149   int ecode4 = 0 ;
33150   float val5 ;
33151   int ecode5 = 0 ;
33152   float val6 ;
33153   int ecode6 = 0 ;
33154   float val7 ;
33155   int ecode7 = 0 ;
33156   float val8 ;
33157   int ecode8 = 0 ;
33158   float val9 ;
33159   int ecode9 = 0 ;
33160   float temp10 ;
33161   int res10 = SWIG_TMPOBJ ;
33162   float temp11 ;
33163   int res11 = SWIG_TMPOBJ ;
33164   PyObject *swig_obj[9] ;
33165   int result;
33166 
33167   arg10 = &temp10;
33168   arg11 = &temp11;
33169   if (!SWIG_Python_UnpackTuple(args, "dcen3x3b", 9, 9, swig_obj)) SWIG_fail;
33170   ecode1 = SWIG_AsVal_float(swig_obj[0], &val1);
33171   if (!SWIG_IsOK(ecode1)) {
33172     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dcen3x3b" "', argument " "1"" of type '" "float""'");
33173   }
33174   arg1 = (float)(val1);
33175   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
33176   if (!SWIG_IsOK(ecode2)) {
33177     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dcen3x3b" "', argument " "2"" of type '" "float""'");
33178   }
33179   arg2 = (float)(val2);
33180   ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
33181   if (!SWIG_IsOK(ecode3)) {
33182     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dcen3x3b" "', argument " "3"" of type '" "float""'");
33183   }
33184   arg3 = (float)(val3);
33185   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
33186   if (!SWIG_IsOK(ecode4)) {
33187     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dcen3x3b" "', argument " "4"" of type '" "float""'");
33188   }
33189   arg4 = (float)(val4);
33190   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
33191   if (!SWIG_IsOK(ecode5)) {
33192     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dcen3x3b" "', argument " "5"" of type '" "float""'");
33193   }
33194   arg5 = (float)(val5);
33195   ecode6 = SWIG_AsVal_float(swig_obj[5], &val6);
33196   if (!SWIG_IsOK(ecode6)) {
33197     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dcen3x3b" "', argument " "6"" of type '" "float""'");
33198   }
33199   arg6 = (float)(val6);
33200   ecode7 = SWIG_AsVal_float(swig_obj[6], &val7);
33201   if (!SWIG_IsOK(ecode7)) {
33202     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dcen3x3b" "', argument " "7"" of type '" "float""'");
33203   }
33204   arg7 = (float)(val7);
33205   ecode8 = SWIG_AsVal_float(swig_obj[7], &val8);
33206   if (!SWIG_IsOK(ecode8)) {
33207     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dcen3x3b" "', argument " "8"" of type '" "float""'");
33208   }
33209   arg8 = (float)(val8);
33210   ecode9 = SWIG_AsVal_float(swig_obj[8], &val9);
33211   if (!SWIG_IsOK(ecode9)) {
33212     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dcen3x3b" "', argument " "9"" of type '" "float""'");
33213   }
33214   arg9 = (float)(val9);
33215   result = (int)dcen3x3b(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
33216   resultobj = SWIG_From_int((int)(result));
33217   if (SWIG_IsTmpObj(res10)) {
33218     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg10)));
33219   } else {
33220     int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
33221     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_float, new_flags));
33222   }
33223   if (SWIG_IsTmpObj(res11)) {
33224     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg11)));
33225   } else {
33226     int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
33227     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_float, new_flags));
33228   }
33229   return resultobj;
33230 fail:
33231   return NULL;
33232 }
33233 
33234 
33235 static PyMethodDef SwigMethods[] = {
33236 	 { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
33237 	 { "log_init", _wrap_log_init, METH_O, NULL},
33238 	 { "log_get_level", _wrap_log_get_level, METH_NOARGS, NULL},
33239 	 { "log_set_level", _wrap_log_set_level, METH_O, NULL},
33240 	 { "coadd_t_img_set", _wrap_coadd_t_img_set, METH_VARARGS, NULL},
33241 	 { "coadd_t_img_get", _wrap_coadd_t_img_get, METH_O, NULL},
33242 	 { "coadd_t_weight_set", _wrap_coadd_t_weight_set, METH_VARARGS, NULL},
33243 	 { "coadd_t_weight_get", _wrap_coadd_t_weight_get, METH_O, NULL},
33244 	 { "coadd_t_W_set", _wrap_coadd_t_W_set, METH_VARARGS, NULL},
33245 	 { "coadd_t_W_get", _wrap_coadd_t_W_get, METH_O, NULL},
33246 	 { "coadd_t_H_set", _wrap_coadd_t_H_set, METH_VARARGS, NULL},
33247 	 { "coadd_t_H_get", _wrap_coadd_t_H_get, METH_O, NULL},
33248 	 { "coadd_t_wcs_set", _wrap_coadd_t_wcs_set, METH_VARARGS, NULL},
33249 	 { "coadd_t_wcs_get", _wrap_coadd_t_wcs_get, METH_O, NULL},
33250 	 { "coadd_t_resample_func_set", _wrap_coadd_t_resample_func_set, METH_VARARGS, NULL},
33251 	 { "coadd_t_resample_func_get", _wrap_coadd_t_resample_func_get, METH_O, NULL},
33252 	 { "coadd_t_resample_token_set", _wrap_coadd_t_resample_token_set, METH_VARARGS, NULL},
33253 	 { "coadd_t_resample_token_get", _wrap_coadd_t_resample_token_get, METH_O, NULL},
33254 	 { "new_coadd_t", _wrap_new_coadd_t, METH_NOARGS, NULL},
33255 	 { "delete_coadd_t", _wrap_delete_coadd_t, METH_O, NULL},
33256 	 { "coadd_t_swigregister", coadd_t_swigregister, METH_O, NULL},
33257 	 { "coadd_t_swiginit", coadd_t_swiginit, METH_VARARGS, NULL},
33258 	 { "coadd_new", _wrap_coadd_new, METH_VARARGS, NULL},
33259 	 { "coadd_new_from_wcs", _wrap_coadd_new_from_wcs, METH_O, NULL},
33260 	 { "coadd_set_lanczos", _wrap_coadd_set_lanczos, METH_VARARGS, NULL},
33261 	 { "coadd_add_image", _wrap_coadd_add_image, METH_VARARGS, NULL},
33262 	 { "coadd_divide_by_weight", _wrap_coadd_divide_by_weight, METH_VARARGS, NULL},
33263 	 { "coadd_get_snapshot", _wrap_coadd_get_snapshot, METH_VARARGS, NULL},
33264 	 { "coadd_free", _wrap_coadd_free, METH_O, NULL},
33265 	 { "coadd_debug", _wrap_coadd_debug, METH_O, NULL},
33266 	 { "coadd_create_weight_image_from_range", _wrap_coadd_create_weight_image_from_range, METH_VARARGS, NULL},
33267 	 { "coadd_weight_image_mask_value", _wrap_coadd_weight_image_mask_value, METH_VARARGS, NULL},
33268 	 { "lanczos_args_t_order_set", _wrap_lanczos_args_t_order_set, METH_VARARGS, NULL},
33269 	 { "lanczos_args_t_order_get", _wrap_lanczos_args_t_order_get, METH_O, NULL},
33270 	 { "lanczos_args_t_weighted_set", _wrap_lanczos_args_t_weighted_set, METH_VARARGS, NULL},
33271 	 { "lanczos_args_t_weighted_get", _wrap_lanczos_args_t_weighted_get, METH_O, NULL},
33272 	 { "new_lanczos_args_t", _wrap_new_lanczos_args_t, METH_NOARGS, NULL},
33273 	 { "delete_lanczos_args_t", _wrap_delete_lanczos_args_t, METH_O, NULL},
33274 	 { "lanczos_args_t_swigregister", lanczos_args_t_swigregister, METH_O, NULL},
33275 	 { "lanczos_args_t_swiginit", lanczos_args_t_swiginit, METH_VARARGS, NULL},
33276 	 { "lanczos", _wrap_lanczos, METH_VARARGS, NULL},
33277 	 { "nearest_resample_f", _wrap_nearest_resample_f, METH_VARARGS, NULL},
33278 	 { "lanczos_resample_f", _wrap_lanczos_resample_f, METH_VARARGS, NULL},
33279 	 { "lanczos_resample_unw_sep_f", _wrap_lanczos_resample_unw_sep_f, METH_VARARGS, NULL},
33280 	 { "nearest_resample_d", _wrap_nearest_resample_d, METH_VARARGS, NULL},
33281 	 { "lanczos_resample_d", _wrap_lanczos_resample_d, METH_VARARGS, NULL},
33282 	 { "fit_sip_coefficients", _wrap_fit_sip_coefficients, METH_VARARGS, NULL},
33283 	 { "wcs_shift", _wrap_wcs_shift, METH_VARARGS, NULL},
33284 	 { "fit_sip_wcs", _wrap_fit_sip_wcs, METH_VARARGS, NULL},
33285 	 { "fit_sip_wcs_2", _wrap_fit_sip_wcs_2, METH_VARARGS, NULL},
33286 	 { "fit_tan_wcs_move_tangent_point", _wrap_fit_tan_wcs_move_tangent_point, METH_VARARGS, NULL},
33287 	 { "fit_tan_wcs_move_tangent_point_weighted", _wrap_fit_tan_wcs_move_tangent_point_weighted, METH_VARARGS, NULL},
33288 	 { "fit_tan_wcs", _wrap_fit_tan_wcs, METH_VARARGS, NULL},
33289 	 { "fit_tan_wcs_weighted", _wrap_fit_tan_wcs_weighted, METH_VARARGS, NULL},
33290 	 { "print_array", _wrap_print_array, METH_O, NULL},
33291 	 { "an_hist2d", _wrap_an_hist2d, METH_VARARGS, NULL},
33292 	 { "flat_percentile_f", _wrap_flat_percentile_f, METH_VARARGS, NULL},
33293 	 { "flat_median_f", _wrap_flat_median_f, METH_O, NULL},
33294 	 { "median_smooth", _wrap_median_smooth, METH_VARARGS, NULL},
33295 	 { "lanczos5_interpolate", _wrap_lanczos5_interpolate, METH_VARARGS, NULL},
33296 	 { "lanczos3_interpolate", _wrap_lanczos3_interpolate, METH_VARARGS, NULL},
33297 	 { "lanczos5_filter", _wrap_lanczos5_filter, METH_VARARGS, NULL},
33298 	 { "lanczos3_filter", _wrap_lanczos3_filter, METH_VARARGS, NULL},
33299 	 { "lanczos3_filter_table", _wrap_lanczos3_filter_table, METH_VARARGS, NULL},
33300 	 { "lanczos_shift_image_c", _wrap_lanczos_shift_image_c, METH_VARARGS, NULL},
33301 	 { "index_t_codekd_set", _wrap_index_t_codekd_set, METH_VARARGS, NULL},
33302 	 { "index_t_codekd_get", _wrap_index_t_codekd_get, METH_O, NULL},
33303 	 { "index_t_quads_set", _wrap_index_t_quads_set, METH_VARARGS, NULL},
33304 	 { "index_t_quads_get", _wrap_index_t_quads_get, METH_O, NULL},
33305 	 { "index_t_starkd_set", _wrap_index_t_starkd_set, METH_VARARGS, NULL},
33306 	 { "index_t_starkd_get", _wrap_index_t_starkd_get, METH_O, NULL},
33307 	 { "index_t_fits_set", _wrap_index_t_fits_set, METH_VARARGS, NULL},
33308 	 { "index_t_fits_get", _wrap_index_t_fits_get, METH_O, NULL},
33309 	 { "index_t_indexfn_set", _wrap_index_t_indexfn_set, METH_VARARGS, NULL},
33310 	 { "index_t_indexfn_get", _wrap_index_t_indexfn_get, METH_O, NULL},
33311 	 { "index_t_indexname_set", _wrap_index_t_indexname_set, METH_VARARGS, NULL},
33312 	 { "index_t_indexname_get", _wrap_index_t_indexname_get, METH_O, NULL},
33313 	 { "index_t_indexid_set", _wrap_index_t_indexid_set, METH_VARARGS, NULL},
33314 	 { "index_t_indexid_get", _wrap_index_t_indexid_get, METH_O, NULL},
33315 	 { "index_t_healpix_set", _wrap_index_t_healpix_set, METH_VARARGS, NULL},
33316 	 { "index_t_healpix_get", _wrap_index_t_healpix_get, METH_O, NULL},
33317 	 { "index_t_hpnside_set", _wrap_index_t_hpnside_set, METH_VARARGS, NULL},
33318 	 { "index_t_hpnside_get", _wrap_index_t_hpnside_get, METH_O, NULL},
33319 	 { "index_t_index_jitter_set", _wrap_index_t_index_jitter_set, METH_VARARGS, NULL},
33320 	 { "index_t_index_jitter_get", _wrap_index_t_index_jitter_get, METH_O, NULL},
33321 	 { "index_t_cutnside_set", _wrap_index_t_cutnside_set, METH_VARARGS, NULL},
33322 	 { "index_t_cutnside_get", _wrap_index_t_cutnside_get, METH_O, NULL},
33323 	 { "index_t_cutnsweep_set", _wrap_index_t_cutnsweep_set, METH_VARARGS, NULL},
33324 	 { "index_t_cutnsweep_get", _wrap_index_t_cutnsweep_get, METH_O, NULL},
33325 	 { "index_t_cutdedup_set", _wrap_index_t_cutdedup_set, METH_VARARGS, NULL},
33326 	 { "index_t_cutdedup_get", _wrap_index_t_cutdedup_get, METH_O, NULL},
33327 	 { "index_t_cutband_set", _wrap_index_t_cutband_set, METH_VARARGS, NULL},
33328 	 { "index_t_cutband_get", _wrap_index_t_cutband_get, METH_O, NULL},
33329 	 { "index_t_cutmargin_set", _wrap_index_t_cutmargin_set, METH_VARARGS, NULL},
33330 	 { "index_t_cutmargin_get", _wrap_index_t_cutmargin_get, METH_O, NULL},
33331 	 { "index_t_circle_set", _wrap_index_t_circle_set, METH_VARARGS, NULL},
33332 	 { "index_t_circle_get", _wrap_index_t_circle_get, METH_O, NULL},
33333 	 { "index_t_cx_less_than_dx_set", _wrap_index_t_cx_less_than_dx_set, METH_VARARGS, NULL},
33334 	 { "index_t_cx_less_than_dx_get", _wrap_index_t_cx_less_than_dx_get, METH_O, NULL},
33335 	 { "index_t_meanx_less_than_half_set", _wrap_index_t_meanx_less_than_half_set, METH_VARARGS, NULL},
33336 	 { "index_t_meanx_less_than_half_get", _wrap_index_t_meanx_less_than_half_get, METH_O, NULL},
33337 	 { "index_t_index_scale_upper_set", _wrap_index_t_index_scale_upper_set, METH_VARARGS, NULL},
33338 	 { "index_t_index_scale_upper_get", _wrap_index_t_index_scale_upper_get, METH_O, NULL},
33339 	 { "index_t_index_scale_lower_set", _wrap_index_t_index_scale_lower_set, METH_VARARGS, NULL},
33340 	 { "index_t_index_scale_lower_get", _wrap_index_t_index_scale_lower_get, METH_O, NULL},
33341 	 { "index_t_dimquads_set", _wrap_index_t_dimquads_set, METH_VARARGS, NULL},
33342 	 { "index_t_dimquads_get", _wrap_index_t_dimquads_get, METH_O, NULL},
33343 	 { "index_t_nstars_set", _wrap_index_t_nstars_set, METH_VARARGS, NULL},
33344 	 { "index_t_nstars_get", _wrap_index_t_nstars_get, METH_O, NULL},
33345 	 { "index_t_nquads_set", _wrap_index_t_nquads_set, METH_VARARGS, NULL},
33346 	 { "index_t_nquads_get", _wrap_index_t_nquads_get, METH_O, NULL},
33347 	 { "new_index_t", _wrap_new_index_t, METH_NOARGS, NULL},
33348 	 { "delete_index_t", _wrap_delete_index_t, METH_O, NULL},
33349 	 { "index_t_swigregister", index_t_swigregister, METH_O, NULL},
33350 	 { "index_t_swiginit", index_t_swiginit, METH_VARARGS, NULL},
33351 	 { "index_dimquads", _wrap_index_dimquads, METH_O, NULL},
33352 	 { "index_overlaps_scale_range", _wrap_index_overlaps_scale_range, METH_VARARGS, NULL},
33353 	 { "index_is_within_range", _wrap_index_is_within_range, METH_VARARGS, NULL},
33354 	 { "index_get_meta", _wrap_index_get_meta, METH_VARARGS, NULL},
33355 	 { "index_is_file_index", _wrap_index_is_file_index, METH_O, NULL},
33356 	 { "index_get_quad_filename", _wrap_index_get_quad_filename, METH_O, NULL},
33357 	 { "index_get_qidx_filename", _wrap_index_get_qidx_filename, METH_O, NULL},
33358 	 { "index_get_quad_dim", _wrap_index_get_quad_dim, METH_O, NULL},
33359 	 { "index_get_code_dim", _wrap_index_get_code_dim, METH_O, NULL},
33360 	 { "index_nquads", _wrap_index_nquads, METH_O, NULL},
33361 	 { "index_nstars", _wrap_index_nstars, METH_O, NULL},
33362 	 { "index_build_from", _wrap_index_build_from, METH_VARARGS, NULL},
33363 	 { "index_load", _wrap_index_load, METH_VARARGS, NULL},
33364 	 { "index_unload", _wrap_index_unload, METH_O, NULL},
33365 	 { "index_reload", _wrap_index_reload, METH_O, NULL},
33366 	 { "index_close_fds", _wrap_index_close_fds, METH_O, NULL},
33367 	 { "index_close", _wrap_index_close, METH_O, NULL},
33368 	 { "index_free", _wrap_index_free, METH_O, NULL},
33369 	 { "index_get_missing_cut_params", _wrap_index_get_missing_cut_params, METH_VARARGS, NULL},
33370 	 { "quadfile_t_numquads_set", _wrap_quadfile_t_numquads_set, METH_VARARGS, NULL},
33371 	 { "quadfile_t_numquads_get", _wrap_quadfile_t_numquads_get, METH_O, NULL},
33372 	 { "quadfile_t_numstars_set", _wrap_quadfile_t_numstars_set, METH_VARARGS, NULL},
33373 	 { "quadfile_t_numstars_get", _wrap_quadfile_t_numstars_get, METH_O, NULL},
33374 	 { "quadfile_t_dimquads_set", _wrap_quadfile_t_dimquads_set, METH_VARARGS, NULL},
33375 	 { "quadfile_t_dimquads_get", _wrap_quadfile_t_dimquads_get, METH_O, NULL},
33376 	 { "quadfile_t_index_scale_upper_set", _wrap_quadfile_t_index_scale_upper_set, METH_VARARGS, NULL},
33377 	 { "quadfile_t_index_scale_upper_get", _wrap_quadfile_t_index_scale_upper_get, METH_O, NULL},
33378 	 { "quadfile_t_index_scale_lower_set", _wrap_quadfile_t_index_scale_lower_set, METH_VARARGS, NULL},
33379 	 { "quadfile_t_index_scale_lower_get", _wrap_quadfile_t_index_scale_lower_get, METH_O, NULL},
33380 	 { "quadfile_t_indexid_set", _wrap_quadfile_t_indexid_set, METH_VARARGS, NULL},
33381 	 { "quadfile_t_indexid_get", _wrap_quadfile_t_indexid_get, METH_O, NULL},
33382 	 { "quadfile_t_healpix_set", _wrap_quadfile_t_healpix_set, METH_VARARGS, NULL},
33383 	 { "quadfile_t_healpix_get", _wrap_quadfile_t_healpix_get, METH_O, NULL},
33384 	 { "quadfile_t_hpnside_set", _wrap_quadfile_t_hpnside_set, METH_VARARGS, NULL},
33385 	 { "quadfile_t_hpnside_get", _wrap_quadfile_t_hpnside_get, METH_O, NULL},
33386 	 { "quadfile_t_fb_set", _wrap_quadfile_t_fb_set, METH_VARARGS, NULL},
33387 	 { "quadfile_t_fb_get", _wrap_quadfile_t_fb_get, METH_O, NULL},
33388 	 { "quadfile_t_quadarray_set", _wrap_quadfile_t_quadarray_set, METH_VARARGS, NULL},
33389 	 { "quadfile_t_quadarray_get", _wrap_quadfile_t_quadarray_get, METH_O, NULL},
33390 	 { "new_quadfile_t", _wrap_new_quadfile_t, METH_NOARGS, NULL},
33391 	 { "delete_quadfile_t", _wrap_delete_quadfile_t, METH_O, NULL},
33392 	 { "quadfile_t_swigregister", quadfile_t_swigregister, METH_O, NULL},
33393 	 { "quadfile_t_swiginit", quadfile_t_swiginit, METH_VARARGS, NULL},
33394 	 { "quadfile_open", _wrap_quadfile_open, METH_O, NULL},
33395 	 { "quadfile_open_fits", _wrap_quadfile_open_fits, METH_O, NULL},
33396 	 { "quadfile_get_filename", _wrap_quadfile_get_filename, METH_O, NULL},
33397 	 { "quadfile_open_for_writing", _wrap_quadfile_open_for_writing, METH_O, NULL},
33398 	 { "quadfile_open_in_memory", _wrap_quadfile_open_in_memory, METH_NOARGS, NULL},
33399 	 { "quadfile_switch_to_reading", _wrap_quadfile_switch_to_reading, METH_O, NULL},
33400 	 { "quadfile_close", _wrap_quadfile_close, METH_O, NULL},
33401 	 { "quadfile_check", _wrap_quadfile_check, METH_O, NULL},
33402 	 { "quadfile_get_stars", _wrap_quadfile_get_stars, METH_VARARGS, NULL},
33403 	 { "quadfile_write_quad", _wrap_quadfile_write_quad, METH_O, NULL},
33404 	 { "quadfile_dimquads", _wrap_quadfile_dimquads, METH_O, NULL},
33405 	 { "quadfile_nquads", _wrap_quadfile_nquads, METH_O, NULL},
33406 	 { "quadfile_fix_header", _wrap_quadfile_fix_header, METH_O, NULL},
33407 	 { "quadfile_write_header", _wrap_quadfile_write_header, METH_O, NULL},
33408 	 { "quadfile_get_index_scale_upper_arcsec", _wrap_quadfile_get_index_scale_upper_arcsec, METH_O, NULL},
33409 	 { "quadfile_get_index_scale_lower_arcsec", _wrap_quadfile_get_index_scale_lower_arcsec, METH_O, NULL},
33410 	 { "quadfile_get_header", _wrap_quadfile_get_header, METH_O, NULL},
33411 	 { "quadfile_write_header_to", _wrap_quadfile_write_header_to, METH_VARARGS, NULL},
33412 	 { "quadfile_write_all_quads_to", _wrap_quadfile_write_all_quads_to, METH_VARARGS, NULL},
33413 	 { "codetree_t_tree_set", _wrap_codetree_t_tree_set, METH_VARARGS, NULL},
33414 	 { "codetree_t_tree_get", _wrap_codetree_t_tree_get, METH_O, NULL},
33415 	 { "codetree_t_header_set", _wrap_codetree_t_header_set, METH_VARARGS, NULL},
33416 	 { "codetree_t_header_get", _wrap_codetree_t_header_get, METH_O, NULL},
33417 	 { "codetree_t_inverse_perm_set", _wrap_codetree_t_inverse_perm_set, METH_VARARGS, NULL},
33418 	 { "codetree_t_inverse_perm_get", _wrap_codetree_t_inverse_perm_get, METH_O, NULL},
33419 	 { "new_codetree_t", _wrap_new_codetree_t, METH_NOARGS, NULL},
33420 	 { "delete_codetree_t", _wrap_delete_codetree_t, METH_O, NULL},
33421 	 { "codetree_t_swigregister", codetree_t_swigregister, METH_O, NULL},
33422 	 { "codetree_t_swiginit", codetree_t_swiginit, METH_VARARGS, NULL},
33423 	 { "codetree_open", _wrap_codetree_open, METH_O, NULL},
33424 	 { "codetree_open_fits", _wrap_codetree_open_fits, METH_O, NULL},
33425 	 { "codetree_get", _wrap_codetree_get, METH_VARARGS, NULL},
33426 	 { "codetree_N", _wrap_codetree_N, METH_O, NULL},
33427 	 { "codetree_nodes", _wrap_codetree_nodes, METH_O, NULL},
33428 	 { "codetree_D", _wrap_codetree_D, METH_O, NULL},
33429 	 { "codetree_get_permuted", _wrap_codetree_get_permuted, METH_VARARGS, NULL},
33430 	 { "codetree_header", _wrap_codetree_header, METH_O, NULL},
33431 	 { "codetree_close", _wrap_codetree_close, METH_O, NULL},
33432 	 { "codetree_new", _wrap_codetree_new, METH_NOARGS, NULL},
33433 	 { "codetree_append_to", _wrap_codetree_append_to, METH_VARARGS, NULL},
33434 	 { "codetree_write_to_file", _wrap_codetree_write_to_file, METH_VARARGS, NULL},
33435 	 { "codetree_write_to_file_flipped", _wrap_codetree_write_to_file_flipped, METH_VARARGS, NULL},
33436 	 { "startree_t_tree_set", _wrap_startree_t_tree_set, METH_VARARGS, NULL},
33437 	 { "startree_t_tree_get", _wrap_startree_t_tree_get, METH_O, NULL},
33438 	 { "startree_t_header_set", _wrap_startree_t_header_set, METH_VARARGS, NULL},
33439 	 { "startree_t_header_get", _wrap_startree_t_header_get, METH_O, NULL},
33440 	 { "startree_t_inverse_perm_set", _wrap_startree_t_inverse_perm_set, METH_VARARGS, NULL},
33441 	 { "startree_t_inverse_perm_get", _wrap_startree_t_inverse_perm_get, METH_O, NULL},
33442 	 { "startree_t_sweep_set", _wrap_startree_t_sweep_set, METH_VARARGS, NULL},
33443 	 { "startree_t_sweep_get", _wrap_startree_t_sweep_get, METH_O, NULL},
33444 	 { "startree_t_writing_set", _wrap_startree_t_writing_set, METH_VARARGS, NULL},
33445 	 { "startree_t_writing_get", _wrap_startree_t_writing_get, METH_O, NULL},
33446 	 { "startree_t_tagalong_set", _wrap_startree_t_tagalong_set, METH_VARARGS, NULL},
33447 	 { "startree_t_tagalong_get", _wrap_startree_t_tagalong_get, METH_O, NULL},
33448 	 { "new_startree_t", _wrap_new_startree_t, METH_NOARGS, NULL},
33449 	 { "delete_startree_t", _wrap_delete_startree_t, METH_O, NULL},
33450 	 { "startree_t_swigregister", startree_t_swigregister, METH_O, NULL},
33451 	 { "startree_t_swiginit", startree_t_swiginit, METH_VARARGS, NULL},
33452 	 { "startree_open", _wrap_startree_open, METH_O, NULL},
33453 	 { "startree_open_fits", _wrap_startree_open_fits, METH_O, NULL},
33454 	 { "startree_search_for", _wrap_startree_search_for, METH_VARARGS, NULL},
33455 	 { "startree_search_for_radec", _wrap_startree_search_for_radec, METH_VARARGS, NULL},
33456 	 { "startree_search", _wrap_startree_search, METH_VARARGS, NULL},
33457 	 { "startree_get_data_column", _wrap_startree_get_data_column, METH_VARARGS, NULL},
33458 	 { "startree_get_data_column_int64", _wrap_startree_get_data_column_int64, METH_VARARGS, NULL},
33459 	 { "startree_get_data_column_array", _wrap_startree_get_data_column_array, METH_VARARGS, NULL},
33460 	 { "startree_free_data_column", _wrap_startree_free_data_column, METH_VARARGS, NULL},
33461 	 { "startree_has_tagalong", _wrap_startree_has_tagalong, METH_O, NULL},
33462 	 { "startree_get_tagalong", _wrap_startree_get_tagalong, METH_O, NULL},
33463 	 { "startree_get_tagalong_column_names", _wrap_startree_get_tagalong_column_names, METH_VARARGS, NULL},
33464 	 { "startree_get_tagalong_N_columns", _wrap_startree_get_tagalong_N_columns, METH_O, NULL},
33465 	 { "startree_get_tagalong_column_name", _wrap_startree_get_tagalong_column_name, METH_VARARGS, NULL},
33466 	 { "startree_get_tagalong_column_fits_type", _wrap_startree_get_tagalong_column_fits_type, METH_VARARGS, NULL},
33467 	 { "startree_get_tagalong_column_array_size", _wrap_startree_get_tagalong_column_array_size, METH_VARARGS, NULL},
33468 	 { "startree_get_cut_nside", _wrap_startree_get_cut_nside, METH_O, NULL},
33469 	 { "startree_get_cut_nsweeps", _wrap_startree_get_cut_nsweeps, METH_O, NULL},
33470 	 { "startree_get_cut_dedup", _wrap_startree_get_cut_dedup, METH_O, NULL},
33471 	 { "startree_get_cut_band", _wrap_startree_get_cut_band, METH_O, NULL},
33472 	 { "startree_get_cut_margin", _wrap_startree_get_cut_margin, METH_O, NULL},
33473 	 { "startree_get_jitter", _wrap_startree_get_jitter, METH_O, NULL},
33474 	 { "startree_set_jitter", _wrap_startree_set_jitter, METH_VARARGS, NULL},
33475 	 { "startree_get_sweep", _wrap_startree_get_sweep, METH_VARARGS, NULL},
33476 	 { "startree_N", _wrap_startree_N, METH_O, NULL},
33477 	 { "startree_nodes", _wrap_startree_nodes, METH_O, NULL},
33478 	 { "startree_D", _wrap_startree_D, METH_O, NULL},
33479 	 { "startree_header", _wrap_startree_header, METH_O, NULL},
33480 	 { "startree_get", _wrap_startree_get, METH_VARARGS, NULL},
33481 	 { "startree_get_radec", _wrap_startree_get_radec, METH_VARARGS, NULL},
33482 	 { "startree_close", _wrap_startree_close, METH_O, NULL},
33483 	 { "startree_compute_inverse_perm", _wrap_startree_compute_inverse_perm, METH_O, NULL},
33484 	 { "startree_check_inverse_perm", _wrap_startree_check_inverse_perm, METH_O, NULL},
33485 	 { "startree_new", _wrap_startree_new, METH_NOARGS, NULL},
33486 	 { "startree_write_to_file", _wrap_startree_write_to_file, METH_VARARGS, NULL},
33487 	 { "startree_write_to_file_flipped", _wrap_startree_write_to_file_flipped, METH_VARARGS, NULL},
33488 	 { "startree_append_to", _wrap_startree_append_to, METH_VARARGS, NULL},
33489 	 { "code_alloc", _wrap_code_alloc, METH_O, NULL},
33490 	 { "code_free", _wrap_code_free, METH_O, NULL},
33491 	 { "code_get", _wrap_code_get, METH_VARARGS, NULL},
33492 	 { "codekd_addr", _wrap_codekd_addr, METH_O, NULL},
33493 	 { "starkd_addr", _wrap_starkd_addr, METH_O, NULL},
33494 	 { "quadfile_addr", _wrap_quadfile_addr, METH_O, NULL},
33495 	 { "healpix_xy_to_ring", _wrap_healpix_xy_to_ring, METH_VARARGS, NULL},
33496 	 { "healpix_ring_to_xy", _wrap_healpix_ring_to_xy, METH_VARARGS, NULL},
33497 	 { "healpix_xy_to_nested", _wrap_healpix_xy_to_nested, METH_VARARGS, NULL},
33498 	 { "healpix_nested_to_xy", _wrap_healpix_nested_to_xy, METH_VARARGS, NULL},
33499 	 { "healpix_decompose_ring", _wrap_healpix_decompose_ring, METH_VARARGS, NULL},
33500 	 { "healpix_compose_ring", _wrap_healpix_compose_ring, METH_VARARGS, NULL},
33501 	 { "healpix_decompose_xy", _wrap_healpix_decompose_xy, METH_VARARGS, NULL},
33502 	 { "healpix_decompose_xyl", _wrap_healpix_decompose_xyl, METH_VARARGS, NULL},
33503 	 { "healpix_compose_xy", _wrap_healpix_compose_xy, METH_VARARGS, NULL},
33504 	 { "healpix_compose_xyl", _wrap_healpix_compose_xyl, METH_VARARGS, NULL},
33505 	 { "healpix_convert_xy_nside", _wrap_healpix_convert_xy_nside, METH_VARARGS, NULL},
33506 	 { "healpix_convert_nside", _wrap_healpix_convert_nside, METH_VARARGS, NULL},
33507 	 { "radectohealpix", _wrap_radectohealpix, METH_VARARGS, NULL},
33508 	 { "radectohealpixf", _wrap_radectohealpixf, METH_VARARGS, NULL},
33509 	 { "radectohealpixl", _wrap_radectohealpixl, METH_VARARGS, NULL},
33510 	 { "radectohealpixlf", _wrap_radectohealpixlf, METH_VARARGS, NULL},
33511 	 { "radecdegtohealpix", _wrap_radecdegtohealpix, METH_VARARGS, NULL},
33512 	 { "radecdegtohealpixf", _wrap_radecdegtohealpixf, METH_VARARGS, NULL},
33513 	 { "radecdegtohealpixl", _wrap_radecdegtohealpixl, METH_VARARGS, NULL},
33514 	 { "radecdegtohealpixlf", _wrap_radecdegtohealpixlf, METH_VARARGS, NULL},
33515 	 { "xyztohealpix", _wrap_xyztohealpix, METH_VARARGS, NULL},
33516 	 { "xyztohealpixl", _wrap_xyztohealpixl, METH_VARARGS, NULL},
33517 	 { "xyztohealpixf", _wrap_xyztohealpixf, METH_VARARGS, NULL},
33518 	 { "xyztohealpixlf", _wrap_xyztohealpixlf, METH_VARARGS, NULL},
33519 	 { "xyzarrtohealpix", _wrap_xyzarrtohealpix, METH_VARARGS, NULL},
33520 	 { "xyzarrtohealpixl", _wrap_xyzarrtohealpixl, METH_VARARGS, NULL},
33521 	 { "xyzarrtohealpixf", _wrap_xyzarrtohealpixf, METH_VARARGS, NULL},
33522 	 { "healpix_to_xyz", _wrap_healpix_to_xyz, METH_VARARGS, NULL},
33523 	 { "healpix_to_xyzarr", _wrap_healpix_to_xyzarr, METH_VARARGS, NULL},
33524 	 { "healpix_to_radec", _wrap_healpix_to_radec, METH_VARARGS, NULL},
33525 	 { "healpix_to_radecdeg", _wrap_healpix_to_radecdeg, METH_VARARGS, NULL},
33526 	 { "healpixl_to_radecdeg", _wrap_healpixl_to_radecdeg, METH_VARARGS, NULL},
33527 	 { "healpix_to_radecarr", _wrap_healpix_to_radecarr, METH_VARARGS, NULL},
33528 	 { "healpix_to_radecdegarr", _wrap_healpix_to_radecdegarr, METH_VARARGS, NULL},
33529 	 { "healpix_side_length_arcmin", _wrap_healpix_side_length_arcmin, METH_O, NULL},
33530 	 { "healpix_nside_for_side_length_arcmin", _wrap_healpix_nside_for_side_length_arcmin, METH_O, NULL},
33531 	 { "healpix_get_neighbours", _wrap_healpix_get_neighbours, METH_VARARGS, NULL},
33532 	 { "healpix_get_neighboursl", _wrap_healpix_get_neighboursl, METH_VARARGS, NULL},
33533 	 { "healpix_get_neighbours_within_range", _wrap_healpix_get_neighbours_within_range, METH_VARARGS, NULL},
33534 	 { "healpix_get_neighbours_within_range_radec", _wrap_healpix_get_neighbours_within_range_radec, METH_VARARGS, NULL},
33535 	 { "healpix_distance_to_radec", _wrap_healpix_distance_to_radec, METH_VARARGS, NULL},
33536 	 { "healpix_distance_to_xyz", _wrap_healpix_distance_to_xyz, METH_VARARGS, NULL},
33537 	 { "healpix_within_range_of_radec", _wrap_healpix_within_range_of_radec, METH_VARARGS, NULL},
33538 	 { "healpix_within_range_of_xyz", _wrap_healpix_within_range_of_xyz, METH_VARARGS, NULL},
33539 	 { "healpix_radec_bounds", _wrap_healpix_radec_bounds, METH_VARARGS, NULL},
33540 	 { "healpix_rangesearch_xyz", _wrap_healpix_rangesearch_xyz, METH_VARARGS, NULL},
33541 	 { "healpix_rangesearch_xyz_approx", _wrap_healpix_rangesearch_xyz_approx, METH_VARARGS, NULL},
33542 	 { "healpix_rangesearch_radec_approx", _wrap_healpix_rangesearch_radec_approx, METH_VARARGS, NULL},
33543 	 { "healpix_rangesearch_radec", _wrap_healpix_rangesearch_radec, METH_VARARGS, NULL},
33544 	 { "healpix_region_search", _wrap_healpix_region_search, METH_VARARGS, NULL},
33545 	 { "anwcs_wcslib_to_string", _wrap_anwcs_wcslib_to_string, METH_O, NULL},
33546 	 { "anwcs_t_type_set", _wrap_anwcs_t_type_set, METH_VARARGS, NULL},
33547 	 { "anwcs_t_type_get", _wrap_anwcs_t_type_get, METH_O, NULL},
33548 	 { "anwcs_t_data_set", _wrap_anwcs_t_data_set, METH_VARARGS, NULL},
33549 	 { "anwcs_t_data_get", _wrap_anwcs_t_data_get, METH_O, NULL},
33550 	 { "new_anwcs_t", _wrap_new_anwcs_t, METH_VARARGS, NULL},
33551 	 { "delete_anwcs_t", _wrap_delete_anwcs_t, METH_O, NULL},
33552 	 { "anwcs_t_pixel_scale", _wrap_anwcs_t_pixel_scale, METH_O, NULL},
33553 	 { "anwcs_t_get_center", _wrap_anwcs_t_get_center, METH_O, NULL},
33554 	 { "anwcs_t_get_radius", _wrap_anwcs_t_get_radius, METH_O, NULL},
33555 	 { "anwcs_t_is_inside", _wrap_anwcs_t_is_inside, METH_VARARGS, NULL},
33556 	 { "anwcs_t_get_width", _wrap_anwcs_t_get_width, METH_O, NULL},
33557 	 { "anwcs_t_get_height", _wrap_anwcs_t_get_height, METH_O, NULL},
33558 	 { "anwcs_t_set_width", _wrap_anwcs_t_set_width, METH_VARARGS, NULL},
33559 	 { "anwcs_t_set_height", _wrap_anwcs_t_set_height, METH_VARARGS, NULL},
33560 	 { "anwcs_t_pixelxy2radec", _wrap_anwcs_t_pixelxy2radec, METH_VARARGS, NULL},
33561 	 { "anwcs_t_radec2pixelxy", _wrap_anwcs_t_radec2pixelxy, METH_VARARGS, NULL},
33562 	 { "anwcs_t_write_to", _wrap_anwcs_t_write_to, METH_VARARGS, NULL},
33563 	 { "anwcs_t_swigregister", anwcs_t_swigregister, METH_O, NULL},
33564 	 { "anwcs_t_swiginit", anwcs_t_swiginit, METH_VARARGS, NULL},
33565 	 { "anwcs_walk_outline", _wrap_anwcs_walk_outline, METH_VARARGS, NULL},
33566 	 { "anwcs_wcslib_from_string", _wrap_anwcs_wcslib_from_string, METH_VARARGS, NULL},
33567 	 { "anwcs_open", _wrap_anwcs_open, METH_VARARGS, NULL},
33568 	 { "anwcs_open_wcslib", _wrap_anwcs_open_wcslib, METH_VARARGS, NULL},
33569 	 { "anwcs_open_wcstools", _wrap_anwcs_open_wcstools, METH_VARARGS, NULL},
33570 	 { "anwcs_wcstools_from_string", _wrap_anwcs_wcstools_from_string, METH_VARARGS, NULL},
33571 	 { "anwcs_open_sip", _wrap_anwcs_open_sip, METH_VARARGS, NULL},
33572 	 { "anwcs_open_tan", _wrap_anwcs_open_tan, METH_VARARGS, NULL},
33573 	 { "anwcs_new_sip", _wrap_anwcs_new_sip, METH_O, NULL},
33574 	 { "anwcs_new_tan", _wrap_anwcs_new_tan, METH_O, NULL},
33575 	 { "anwcs_create_box", _wrap_anwcs_create_box, METH_VARARGS, NULL},
33576 	 { "anwcs_create_box_upsidedown", _wrap_anwcs_create_box_upsidedown, METH_VARARGS, NULL},
33577 	 { "anwcs_create_mercator", _wrap_anwcs_create_mercator, METH_VARARGS, NULL},
33578 	 { "anwcs_create_mercator_2", _wrap_anwcs_create_mercator_2, METH_VARARGS, NULL},
33579 	 { "anwcs_create_mollweide", _wrap_anwcs_create_mollweide, METH_VARARGS, NULL},
33580 	 { "anwcs_create_cea_wcs", _wrap_anwcs_create_cea_wcs, METH_VARARGS, NULL},
33581 	 { "anwcs_create_hammer_aitoff", _wrap_anwcs_create_hammer_aitoff, METH_VARARGS, NULL},
33582 	 { "anwcs_create_allsky_hammer_aitoff", _wrap_anwcs_create_allsky_hammer_aitoff, METH_VARARGS, NULL},
33583 	 { "anwcs_create_allsky_hammer_aitoff2", _wrap_anwcs_create_allsky_hammer_aitoff2, METH_VARARGS, NULL},
33584 	 { "anwcs_write", _wrap_anwcs_write, METH_VARARGS, NULL},
33585 	 { "anwcs_write_to", _wrap_anwcs_write_to, METH_VARARGS, NULL},
33586 	 { "anwcs_add_to_header", _wrap_anwcs_add_to_header, METH_VARARGS, NULL},
33587 	 { "anwcs_radec2pixelxy", _wrap_anwcs_radec2pixelxy, METH_VARARGS, NULL},
33588 	 { "anwcs_pixelxy2radec", _wrap_anwcs_pixelxy2radec, METH_VARARGS, NULL},
33589 	 { "anwcs_pixelxy2xyz", _wrap_anwcs_pixelxy2xyz, METH_VARARGS, NULL},
33590 	 { "anwcs_xyz2pixelxy", _wrap_anwcs_xyz2pixelxy, METH_VARARGS, NULL},
33591 	 { "anwcs_radec_is_inside_image", _wrap_anwcs_radec_is_inside_image, METH_VARARGS, NULL},
33592 	 { "anwcs_get_cd_matrix", _wrap_anwcs_get_cd_matrix, METH_O, NULL},
33593 	 { "anwcs_get_radec_bounds", _wrap_anwcs_get_radec_bounds, METH_VARARGS, NULL},
33594 	 { "anwcs_print", _wrap_anwcs_print, METH_VARARGS, NULL},
33595 	 { "anwcs_print_stdout", _wrap_anwcs_print_stdout, METH_O, NULL},
33596 	 { "anwcs_get_radec_center_and_radius", _wrap_anwcs_get_radec_center_and_radius, METH_O, NULL},
33597 	 { "anwcs_walk_image_boundary", _wrap_anwcs_walk_image_boundary, METH_VARARGS, NULL},
33598 	 { "anwcs_find_discontinuity", _wrap_anwcs_find_discontinuity, METH_VARARGS, NULL},
33599 	 { "anwcs_is_discontinuous", _wrap_anwcs_is_discontinuous, METH_VARARGS, NULL},
33600 	 { "anwcs_walk_discontinuity", _wrap_anwcs_walk_discontinuity, METH_VARARGS, NULL},
33601 	 { "anwcs_overlaps", _wrap_anwcs_overlaps, METH_VARARGS, NULL},
33602 	 { "anwcs_imagew", _wrap_anwcs_imagew, METH_O, NULL},
33603 	 { "anwcs_imageh", _wrap_anwcs_imageh, METH_O, NULL},
33604 	 { "anwcs_set_size", _wrap_anwcs_set_size, METH_VARARGS, NULL},
33605 	 { "anwcs_scale_wcs", _wrap_anwcs_scale_wcs, METH_VARARGS, NULL},
33606 	 { "anwcs_rotate_wcs", _wrap_anwcs_rotate_wcs, METH_VARARGS, NULL},
33607 	 { "anwcs_pixel_scale", _wrap_anwcs_pixel_scale, METH_O, NULL},
33608 	 { "anwcs_free", _wrap_anwcs_free, METH_O, NULL},
33609 	 { "anwcs_get_sip", _wrap_anwcs_get_sip, METH_O, NULL},
33610 	 { "dimquad2dimcode", _wrap_dimquad2dimcode, METH_O, NULL},
33611 	 { "rad2deg", _wrap_rad2deg, METH_O, NULL},
33612 	 { "rad2arcmin", _wrap_rad2arcmin, METH_O, NULL},
33613 	 { "rad2arcsec", _wrap_rad2arcsec, METH_O, NULL},
33614 	 { "deg2rad", _wrap_deg2rad, METH_O, NULL},
33615 	 { "deg2arcmin", _wrap_deg2arcmin, METH_O, NULL},
33616 	 { "deg2arcsec", _wrap_deg2arcsec, METH_O, NULL},
33617 	 { "arcmin2rad", _wrap_arcmin2rad, METH_O, NULL},
33618 	 { "arcmin2deg", _wrap_arcmin2deg, METH_O, NULL},
33619 	 { "arcmin2arcsec", _wrap_arcmin2arcsec, METH_O, NULL},
33620 	 { "arcsec2rad", _wrap_arcsec2rad, METH_O, NULL},
33621 	 { "arcsec2deg", _wrap_arcsec2deg, METH_O, NULL},
33622 	 { "arcsec2arcmin", _wrap_arcsec2arcmin, METH_O, NULL},
33623 	 { "mjdtojd", _wrap_mjdtojd, METH_O, NULL},
33624 	 { "jdtomjd", _wrap_jdtomjd, METH_O, NULL},
33625 	 { "xy2ra", _wrap_xy2ra, METH_VARARGS, NULL},
33626 	 { "z2dec", _wrap_z2dec, METH_O, NULL},
33627 	 { "atora", _wrap_atora, METH_O, NULL},
33628 	 { "atodec", _wrap_atodec, METH_O, NULL},
33629 	 { "mag2flux", _wrap_mag2flux, METH_O, NULL},
33630 	 { "radecrange2xyzrange", _wrap_radecrange2xyzrange, METH_VARARGS, NULL},
33631 	 { "radec2xyz", _wrap_radec2xyz, METH_VARARGS, NULL},
33632 	 { "xyz2radec", _wrap_xyz2radec, METH_VARARGS, NULL},
33633 	 { "xyzarr2radec", _wrap_xyzarr2radec, METH_O, NULL},
33634 	 { "xyzarr2radecarr", _wrap_xyzarr2radecarr, METH_VARARGS, NULL},
33635 	 { "radec2xyzarr", _wrap_radec2xyzarr, METH_VARARGS, NULL},
33636 	 { "radec2xyzarrmany", _wrap_radec2xyzarrmany, METH_VARARGS, NULL},
33637 	 { "radecdeg2xyz", _wrap_radecdeg2xyz, METH_VARARGS, NULL},
33638 	 { "xyzarr2radecdeg", _wrap_xyzarr2radecdeg, METH_O, NULL},
33639 	 { "xyzarr2radecdegarr", _wrap_xyzarr2radecdegarr, METH_VARARGS, NULL},
33640 	 { "radecdeg2xyzarr", _wrap_radecdeg2xyzarr, METH_VARARGS, NULL},
33641 	 { "radecdegarr2xyzarr", _wrap_radecdegarr2xyzarr, METH_VARARGS, NULL},
33642 	 { "radecdeg2xyzarrmany", _wrap_radecdeg2xyzarrmany, METH_VARARGS, NULL},
33643 	 { "radec_derivatives", _wrap_radec_derivatives, METH_VARARGS, NULL},
33644 	 { "distsq_between_radecdeg", _wrap_distsq_between_radecdeg, METH_VARARGS, NULL},
33645 	 { "arcsec_between_radecdeg", _wrap_arcsec_between_radecdeg, METH_VARARGS, NULL},
33646 	 { "deg_between_radecdeg", _wrap_deg_between_radecdeg, METH_VARARGS, NULL},
33647 	 { "ra2mercx", _wrap_ra2mercx, METH_O, NULL},
33648 	 { "dec2mercy", _wrap_dec2mercy, METH_O, NULL},
33649 	 { "ra2hms", _wrap_ra2hms, METH_VARARGS, NULL},
33650 	 { "dec2dms", _wrap_dec2dms, METH_VARARGS, NULL},
33651 	 { "hms2ra", _wrap_hms2ra, METH_VARARGS, NULL},
33652 	 { "dms2dec", _wrap_dms2dec, METH_VARARGS, NULL},
33653 	 { "ra2hmsstring", _wrap_ra2hmsstring, METH_VARARGS, NULL},
33654 	 { "dec2dmsstring", _wrap_dec2dmsstring, METH_VARARGS, NULL},
33655 	 { "project_hammer_aitoff_x", _wrap_project_hammer_aitoff_x, METH_VARARGS, NULL},
33656 	 { "project_equal_area", _wrap_project_equal_area, METH_VARARGS, NULL},
33657 	 { "distsq2arc", _wrap_distsq2arc, METH_O, NULL},
33658 	 { "distsq2rad", _wrap_distsq2rad, METH_O, NULL},
33659 	 { "distsq2deg", _wrap_distsq2deg, METH_O, NULL},
33660 	 { "dist2rad", _wrap_dist2rad, METH_O, NULL},
33661 	 { "distsq2arcsec", _wrap_distsq2arcsec, METH_O, NULL},
33662 	 { "dist2arcsec", _wrap_dist2arcsec, METH_O, NULL},
33663 	 { "rad2distsq", _wrap_rad2distsq, METH_O, NULL},
33664 	 { "rad2dist", _wrap_rad2dist, METH_O, NULL},
33665 	 { "arcsec2distsq", _wrap_arcsec2distsq, METH_O, NULL},
33666 	 { "arcsec2dist", _wrap_arcsec2dist, METH_O, NULL},
33667 	 { "deg2dist", _wrap_deg2dist, METH_O, NULL},
33668 	 { "deg2distsq", _wrap_deg2distsq, METH_O, NULL},
33669 	 { "arcmin2dist", _wrap_arcmin2dist, METH_O, NULL},
33670 	 { "arcmin2distsq", _wrap_arcmin2distsq, METH_O, NULL},
33671 	 { "dist2deg", _wrap_dist2deg, METH_O, NULL},
33672 	 { "make_rand_star", _wrap_make_rand_star, METH_VARARGS, NULL},
33673 	 { "star_coords", _wrap_star_coords, METH_VARARGS, NULL},
33674 	 { "star_midpoint", _wrap_star_midpoint, METH_VARARGS, NULL},
33675 	 { "qfits_header_debug_dump", _wrap_qfits_header_debug_dump, METH_O, NULL},
33676 	 { "qfits_header_list", _wrap_qfits_header_list, METH_VARARGS, NULL},
33677 	 { "qfits_header_new", _wrap_qfits_header_new, METH_NOARGS, NULL},
33678 	 { "qfits_header_default", _wrap_qfits_header_default, METH_NOARGS, NULL},
33679 	 { "qfits_header_n", _wrap_qfits_header_n, METH_O, NULL},
33680 	 { "qfits_header_add", _wrap_qfits_header_add, METH_VARARGS, NULL},
33681 	 { "qfits_header_add_after", _wrap_qfits_header_add_after, METH_VARARGS, NULL},
33682 	 { "qfits_header_append", _wrap_qfits_header_append, METH_VARARGS, NULL},
33683 	 { "qfits_header_del", _wrap_qfits_header_del, METH_VARARGS, NULL},
33684 	 { "qfits_header_sort", _wrap_qfits_header_sort, METH_O, NULL},
33685 	 { "qfits_header_copy", _wrap_qfits_header_copy, METH_O, NULL},
33686 	 { "qfits_header_mod", _wrap_qfits_header_mod, METH_VARARGS, NULL},
33687 	 { "qfits_header_destroy", _wrap_qfits_header_destroy, METH_O, NULL},
33688 	 { "qfits_header_getstr", _wrap_qfits_header_getstr, METH_VARARGS, NULL},
33689 	 { "qfits_header_getstr_pretty", _wrap_qfits_header_getstr_pretty, METH_VARARGS, NULL},
33690 	 { "qfits_header_getitem", _wrap_qfits_header_getitem, METH_VARARGS, NULL},
33691 	 { "qfits_header_setitem", _wrap_qfits_header_setitem, METH_VARARGS, NULL},
33692 	 { "qfits_header_getcom", _wrap_qfits_header_getcom, METH_VARARGS, NULL},
33693 	 { "qfits_header_getint", _wrap_qfits_header_getint, METH_VARARGS, NULL},
33694 	 { "qfits_header_getdouble", _wrap_qfits_header_getdouble, METH_VARARGS, NULL},
33695 	 { "qfits_header_getboolean", _wrap_qfits_header_getboolean, METH_VARARGS, NULL},
33696 	 { "qfits_header_dump", _wrap_qfits_header_dump, METH_VARARGS, NULL},
33697 	 { "qfits_header_findmatch", _wrap_qfits_header_findmatch, METH_VARARGS, NULL},
33698 	 { "qfits_header_write_line", _wrap_qfits_header_write_line, METH_VARARGS, NULL},
33699 	 { "qfits_header_read_hdr_string", _wrap_qfits_header_read_hdr_string, METH_O, NULL},
33700 	 { "qfits_zeropad", _wrap_qfits_zeropad, METH_O, NULL},
33701 	 { "qfits_is_fits", _wrap_qfits_is_fits, METH_O, NULL},
33702 	 { "is_blank_line", _wrap_is_blank_line, METH_O, NULL},
33703 	 { "wcs_pv2sip_header", _wrap_wcs_pv2sip_header, METH_VARARGS, NULL},
33704 	 { "wcs_pv2sip", _wrap_wcs_pv2sip, METH_VARARGS, NULL},
33705 	 { "tan_t_crval_set", _wrap_tan_t_crval_set, METH_VARARGS, NULL},
33706 	 { "tan_t_crval_get", _wrap_tan_t_crval_get, METH_O, NULL},
33707 	 { "tan_t_crpix_set", _wrap_tan_t_crpix_set, METH_VARARGS, NULL},
33708 	 { "tan_t_crpix_get", _wrap_tan_t_crpix_get, METH_O, NULL},
33709 	 { "tan_t_cd_set", _wrap_tan_t_cd_set, METH_VARARGS, NULL},
33710 	 { "tan_t_cd_get", _wrap_tan_t_cd_get, METH_O, NULL},
33711 	 { "tan_t_imagew_set", _wrap_tan_t_imagew_set, METH_VARARGS, NULL},
33712 	 { "tan_t_imagew_get", _wrap_tan_t_imagew_get, METH_O, NULL},
33713 	 { "tan_t_imageh_set", _wrap_tan_t_imageh_set, METH_VARARGS, NULL},
33714 	 { "tan_t_imageh_get", _wrap_tan_t_imageh_get, METH_O, NULL},
33715 	 { "tan_t_sin_set", _wrap_tan_t_sin_set, METH_VARARGS, NULL},
33716 	 { "tan_t_sin_get", _wrap_tan_t_sin_get, METH_O, NULL},
33717 	 { "new_tan_t", _wrap_new_tan_t, METH_VARARGS, NULL},
33718 	 { "delete_tan_t", _wrap_delete_tan_t, METH_O, NULL},
33719 	 { "tan_t_set", _wrap_tan_t_set, METH_VARARGS, NULL},
33720 	 { "tan_t_is_inside", _wrap_tan_t_is_inside, METH_VARARGS, NULL},
33721 	 { "tan_t_scale", _wrap_tan_t_scale, METH_VARARGS, NULL},
33722 	 { "tan_t_rotate", _wrap_tan_t_rotate, METH_VARARGS, NULL},
33723 	 { "tan_t_get_width", _wrap_tan_t_get_width, METH_O, NULL},
33724 	 { "tan_t_get_height", _wrap_tan_t_get_height, METH_O, NULL},
33725 	 { "tan_t_set_width", _wrap_tan_t_set_width, METH_VARARGS, NULL},
33726 	 { "tan_t_set_height", _wrap_tan_t_set_height, METH_VARARGS, NULL},
33727 	 { "tan_t_pixel_scale", _wrap_tan_t_pixel_scale, METH_O, NULL},
33728 	 { "tan_t_radec_center", _wrap_tan_t_radec_center, METH_O, NULL},
33729 	 { "tan_t_radius", _wrap_tan_t_radius, METH_O, NULL},
33730 	 { "tan_t_xyzcenter", _wrap_tan_t_xyzcenter, METH_O, NULL},
33731 	 { "tan_t_pixelxy2xyz", _wrap_tan_t_pixelxy2xyz, METH_VARARGS, NULL},
33732 	 { "tan_t_pixelxy2radec", _wrap_tan_t_pixelxy2radec, METH_VARARGS, NULL},
33733 	 { "tan_t_radec2pixelxy", _wrap_tan_t_radec2pixelxy, METH_VARARGS, NULL},
33734 	 { "tan_t_iwc2pixelxy", _wrap_tan_t_iwc2pixelxy, METH_VARARGS, NULL},
33735 	 { "tan_t_pixelxy2iwc", _wrap_tan_t_pixelxy2iwc, METH_VARARGS, NULL},
33736 	 { "tan_t_iwc2radec", _wrap_tan_t_iwc2radec, METH_VARARGS, NULL},
33737 	 { "tan_t_radec2iwc", _wrap_tan_t_radec2iwc, METH_VARARGS, NULL},
33738 	 { "tan_t_xyz2pixelxy", _wrap_tan_t_xyz2pixelxy, METH_VARARGS, NULL},
33739 	 { "tan_t_write_to", _wrap_tan_t_write_to, METH_VARARGS, NULL},
33740 	 { "tan_t_set_crval", _wrap_tan_t_set_crval, METH_VARARGS, NULL},
33741 	 { "tan_t_set_crpix", _wrap_tan_t_set_crpix, METH_VARARGS, NULL},
33742 	 { "tan_t_set_cd", _wrap_tan_t_set_cd, METH_VARARGS, NULL},
33743 	 { "tan_t_set_imagesize", _wrap_tan_t_set_imagesize, METH_VARARGS, NULL},
33744 	 { "tan_t_swigregister", tan_t_swigregister, METH_O, NULL},
33745 	 { "tan_t_swiginit", tan_t_swiginit, METH_VARARGS, NULL},
33746 	 { "sip_t_wcstan_set", _wrap_sip_t_wcstan_set, METH_VARARGS, NULL},
33747 	 { "sip_t_wcstan_get", _wrap_sip_t_wcstan_get, METH_O, NULL},
33748 	 { "sip_t_a_order_set", _wrap_sip_t_a_order_set, METH_VARARGS, NULL},
33749 	 { "sip_t_a_order_get", _wrap_sip_t_a_order_get, METH_O, NULL},
33750 	 { "sip_t_b_order_set", _wrap_sip_t_b_order_set, METH_VARARGS, NULL},
33751 	 { "sip_t_b_order_get", _wrap_sip_t_b_order_get, METH_O, NULL},
33752 	 { "sip_t_a_set", _wrap_sip_t_a_set, METH_VARARGS, NULL},
33753 	 { "sip_t_a_get", _wrap_sip_t_a_get, METH_O, NULL},
33754 	 { "sip_t_b_set", _wrap_sip_t_b_set, METH_VARARGS, NULL},
33755 	 { "sip_t_b_get", _wrap_sip_t_b_get, METH_O, NULL},
33756 	 { "sip_t_ap_order_set", _wrap_sip_t_ap_order_set, METH_VARARGS, NULL},
33757 	 { "sip_t_ap_order_get", _wrap_sip_t_ap_order_get, METH_O, NULL},
33758 	 { "sip_t_bp_order_set", _wrap_sip_t_bp_order_set, METH_VARARGS, NULL},
33759 	 { "sip_t_bp_order_get", _wrap_sip_t_bp_order_get, METH_O, NULL},
33760 	 { "sip_t_ap_set", _wrap_sip_t_ap_set, METH_VARARGS, NULL},
33761 	 { "sip_t_ap_get", _wrap_sip_t_ap_get, METH_O, NULL},
33762 	 { "sip_t_bp_set", _wrap_sip_t_bp_set, METH_VARARGS, NULL},
33763 	 { "sip_t_bp_get", _wrap_sip_t_bp_get, METH_O, NULL},
33764 	 { "new_sip_t", _wrap_new_sip_t, METH_VARARGS, NULL},
33765 	 { "delete_sip_t", _wrap_delete_sip_t, METH_O, NULL},
33766 	 { "sip_t_get_subimage", _wrap_sip_t_get_subimage, METH_VARARGS, NULL},
33767 	 { "sip_t_scale", _wrap_sip_t_scale, METH_VARARGS, NULL},
33768 	 { "sip_t_pixel_scale", _wrap_sip_t_pixel_scale, METH_O, NULL},
33769 	 { "sip_t_radec_center", _wrap_sip_t_radec_center, METH_O, NULL},
33770 	 { "sip_t_radius", _wrap_sip_t_radius, METH_O, NULL},
33771 	 { "sip_t_write_to", _wrap_sip_t_write_to, METH_VARARGS, NULL},
33772 	 { "sip_t_ensure_inverse_polynomials", _wrap_sip_t_ensure_inverse_polynomials, METH_O, NULL},
33773 	 { "sip_t_pixelxy2xyz", _wrap_sip_t_pixelxy2xyz, METH_VARARGS, NULL},
33774 	 { "sip_t_pixelxy2radec", _wrap_sip_t_pixelxy2radec, METH_VARARGS, NULL},
33775 	 { "sip_t_radec2pixelxy", _wrap_sip_t_radec2pixelxy, METH_VARARGS, NULL},
33776 	 { "sip_t_iwc2pixelxy", _wrap_sip_t_iwc2pixelxy, METH_VARARGS, NULL},
33777 	 { "sip_t_pixelxy2iwc", _wrap_sip_t_pixelxy2iwc, METH_VARARGS, NULL},
33778 	 { "sip_t_iwc2radec", _wrap_sip_t_iwc2radec, METH_VARARGS, NULL},
33779 	 { "sip_t_radec2iwc", _wrap_sip_t_radec2iwc, METH_VARARGS, NULL},
33780 	 { "sip_t_xyz2pixelxy", _wrap_sip_t_xyz2pixelxy, METH_VARARGS, NULL},
33781 	 { "sip_t_is_inside", _wrap_sip_t_is_inside, METH_VARARGS, NULL},
33782 	 { "sip_t_set_a_term", _wrap_sip_t_set_a_term, METH_VARARGS, NULL},
33783 	 { "sip_t_set_b_term", _wrap_sip_t_set_b_term, METH_VARARGS, NULL},
33784 	 { "sip_t_set_ap_term", _wrap_sip_t_set_ap_term, METH_VARARGS, NULL},
33785 	 { "sip_t_set_bp_term", _wrap_sip_t_set_bp_term, METH_VARARGS, NULL},
33786 	 { "sip_t_get_a_term", _wrap_sip_t_get_a_term, METH_VARARGS, NULL},
33787 	 { "sip_t_get_b_term", _wrap_sip_t_get_b_term, METH_VARARGS, NULL},
33788 	 { "sip_t_get_ap_term", _wrap_sip_t_get_ap_term, METH_VARARGS, NULL},
33789 	 { "sip_t_get_bp_term", _wrap_sip_t_get_bp_term, METH_VARARGS, NULL},
33790 	 { "sip_t_set_width", _wrap_sip_t_set_width, METH_VARARGS, NULL},
33791 	 { "sip_t_set_height", _wrap_sip_t_set_height, METH_VARARGS, NULL},
33792 	 { "sip_t_get_width", _wrap_sip_t_get_width, METH_O, NULL},
33793 	 { "sip_t_get_height", _wrap_sip_t_get_height, METH_O, NULL},
33794 	 { "sip_t_get_distortion", _wrap_sip_t_get_distortion, METH_VARARGS, NULL},
33795 	 { "sip_t_get_undistortion", _wrap_sip_t_get_undistortion, METH_VARARGS, NULL},
33796 	 { "sip_t_swigregister", sip_t_swigregister, METH_O, NULL},
33797 	 { "sip_t_swiginit", sip_t_swiginit, METH_VARARGS, NULL},
33798 	 { "sip_create", _wrap_sip_create, METH_NOARGS, NULL},
33799 	 { "sip_free", _wrap_sip_free, METH_O, NULL},
33800 	 { "sip_copy", _wrap_sip_copy, METH_VARARGS, NULL},
33801 	 { "sip_wrap_tan", _wrap_sip_wrap_tan, METH_VARARGS, NULL},
33802 	 { "sip_imagew", _wrap_sip_imagew, METH_O, NULL},
33803 	 { "sip_imageh", _wrap_sip_imageh, METH_O, NULL},
33804 	 { "sip_pixelxy2radec", _wrap_sip_pixelxy2radec, METH_VARARGS, NULL},
33805 	 { "sip_pixelxy2xyzarr", _wrap_sip_pixelxy2xyzarr, METH_VARARGS, NULL},
33806 	 { "sip_radec2pixelxy", _wrap_sip_radec2pixelxy, METH_VARARGS, NULL},
33807 	 { "sip_radec2pixelxy_check", _wrap_sip_radec2pixelxy_check, METH_VARARGS, NULL},
33808 	 { "sip_xyzarr2pixelxy", _wrap_sip_xyzarr2pixelxy, METH_VARARGS, NULL},
33809 	 { "sip_xyz2pixelxy", _wrap_sip_xyz2pixelxy, METH_VARARGS, NULL},
33810 	 { "sip_pixelxy2iwc", _wrap_sip_pixelxy2iwc, METH_VARARGS, NULL},
33811 	 { "tan_det_cd", _wrap_tan_det_cd, METH_O, NULL},
33812 	 { "sip_det_cd", _wrap_sip_det_cd, METH_O, NULL},
33813 	 { "tan_pixel_scale", _wrap_tan_pixel_scale, METH_O, NULL},
33814 	 { "sip_pixel_scale", _wrap_sip_pixel_scale, METH_O, NULL},
33815 	 { "sip_calc_inv_distortion", _wrap_sip_calc_inv_distortion, METH_VARARGS, NULL},
33816 	 { "sip_calc_distortion", _wrap_sip_calc_distortion, METH_VARARGS, NULL},
33817 	 { "sip_pixel_distortion", _wrap_sip_pixel_distortion, METH_VARARGS, NULL},
33818 	 { "sip_pixel_undistortion", _wrap_sip_pixel_undistortion, METH_VARARGS, NULL},
33819 	 { "tan_pixelxy2xyzarr", _wrap_tan_pixelxy2xyzarr, METH_VARARGS, NULL},
33820 	 { "tan_pixelxy2radec", _wrap_tan_pixelxy2radec, METH_VARARGS, NULL},
33821 	 { "tan_pixelxy2radecarr", _wrap_tan_pixelxy2radecarr, METH_VARARGS, NULL},
33822 	 { "tan_radec2pixelxy", _wrap_tan_radec2pixelxy, METH_VARARGS, NULL},
33823 	 { "tan_xyzarr2pixelxy", _wrap_tan_xyzarr2pixelxy, METH_VARARGS, NULL},
33824 	 { "tan_iwc2pixelxy", _wrap_tan_iwc2pixelxy, METH_VARARGS, NULL},
33825 	 { "tan_iwc2xyzarr", _wrap_tan_iwc2xyzarr, METH_VARARGS, NULL},
33826 	 { "tan_iwc2radec", _wrap_tan_iwc2radec, METH_VARARGS, NULL},
33827 	 { "tan_pixelxy2iwc", _wrap_tan_pixelxy2iwc, METH_VARARGS, NULL},
33828 	 { "tan_xyzarr2iwc", _wrap_tan_xyzarr2iwc, METH_VARARGS, NULL},
33829 	 { "tan_radec2iwc", _wrap_tan_radec2iwc, METH_VARARGS, NULL},
33830 	 { "sip_xyzarr2iwc", _wrap_sip_xyzarr2iwc, METH_VARARGS, NULL},
33831 	 { "sip_radec2iwc", _wrap_sip_radec2iwc, METH_VARARGS, NULL},
33832 	 { "sip_iwc2pixelxy", _wrap_sip_iwc2pixelxy, METH_VARARGS, NULL},
33833 	 { "sip_iwc2radec", _wrap_sip_iwc2radec, METH_VARARGS, NULL},
33834 	 { "sip_print", _wrap_sip_print, METH_O, NULL},
33835 	 { "sip_print_to", _wrap_sip_print_to, METH_VARARGS, NULL},
33836 	 { "tan_print", _wrap_tan_print, METH_O, NULL},
33837 	 { "tan_print_to", _wrap_tan_print_to, METH_VARARGS, NULL},
33838 	 { "sip_get_crval", _wrap_sip_get_crval, METH_O, NULL},
33839 	 { "tan_get_orientation", _wrap_tan_get_orientation, METH_O, NULL},
33840 	 { "sip_get_orientation", _wrap_sip_get_orientation, METH_O, NULL},
33841 	 { "sip_get_image_size", _wrap_sip_get_image_size, METH_VARARGS, NULL},
33842 	 { "sip_read_tan_or_sip_header_file_ext", _wrap_sip_read_tan_or_sip_header_file_ext, METH_VARARGS, NULL},
33843 	 { "sip_create_header", _wrap_sip_create_header, METH_O, NULL},
33844 	 { "tan_create_header", _wrap_tan_create_header, METH_O, NULL},
33845 	 { "sip_add_to_header", _wrap_sip_add_to_header, METH_VARARGS, NULL},
33846 	 { "tan_add_to_header", _wrap_tan_add_to_header, METH_VARARGS, NULL},
33847 	 { "sip_read_header_file", _wrap_sip_read_header_file, METH_VARARGS, NULL},
33848 	 { "sip_read_header_file_ext", _wrap_sip_read_header_file_ext, METH_VARARGS, NULL},
33849 	 { "sip_read_header_file_ext_only", _wrap_sip_read_header_file_ext_only, METH_VARARGS, NULL},
33850 	 { "tan_read_header_file", _wrap_tan_read_header_file, METH_VARARGS, NULL},
33851 	 { "tan_read_header_file_ext", _wrap_tan_read_header_file_ext, METH_VARARGS, NULL},
33852 	 { "tan_read_header_file_ext_only", _wrap_tan_read_header_file_ext_only, METH_VARARGS, NULL},
33853 	 { "sip_read_header", _wrap_sip_read_header, METH_VARARGS, NULL},
33854 	 { "tan_read_header", _wrap_tan_read_header, METH_VARARGS, NULL},
33855 	 { "sip_from_string", _wrap_sip_from_string, METH_VARARGS, NULL},
33856 	 { "tan_write_to", _wrap_tan_write_to, METH_VARARGS, NULL},
33857 	 { "sip_write_to", _wrap_sip_write_to, METH_VARARGS, NULL},
33858 	 { "sip_write_to_file", _wrap_sip_write_to_file, METH_VARARGS, NULL},
33859 	 { "tan_write_to_file", _wrap_tan_write_to_file, METH_VARARGS, NULL},
33860 	 { "wcs_pixel_center_for_size", _wrap_wcs_pixel_center_for_size, METH_O, NULL},
33861 	 { "sip_ensure_inverse_polynomials", _wrap_sip_ensure_inverse_polynomials, METH_O, NULL},
33862 	 { "sip_compute_inverse_polynomials", _wrap_sip_compute_inverse_polynomials, METH_VARARGS, NULL},
33863 	 { "sip_filter_stars_in_field", _wrap_sip_filter_stars_in_field, METH_VARARGS, NULL},
33864 	 { "sip_get_radec_bounds", _wrap_sip_get_radec_bounds, METH_VARARGS, NULL},
33865 	 { "sip_walk_image_boundary", _wrap_sip_walk_image_boundary, METH_VARARGS, NULL},
33866 	 { "sip_get_radec_center", _wrap_sip_get_radec_center, METH_O, NULL},
33867 	 { "tan_get_radec_center", _wrap_tan_get_radec_center, METH_O, NULL},
33868 	 { "sip_get_radius_deg", _wrap_sip_get_radius_deg, METH_O, NULL},
33869 	 { "tan_get_radius_deg", _wrap_tan_get_radius_deg, METH_O, NULL},
33870 	 { "sip_get_radec_center_hms", _wrap_sip_get_radec_center_hms, METH_VARARGS, NULL},
33871 	 { "sip_pixel_is_inside_image", _wrap_sip_pixel_is_inside_image, METH_VARARGS, NULL},
33872 	 { "sip_is_inside_image", _wrap_sip_is_inside_image, METH_VARARGS, NULL},
33873 	 { "sip_get_radec_center_hms_string", _wrap_sip_get_radec_center_hms_string, METH_VARARGS, NULL},
33874 	 { "sip_get_field_size", _wrap_sip_get_field_size, METH_VARARGS, NULL},
33875 	 { "sip_shift", _wrap_sip_shift, METH_VARARGS, NULL},
33876 	 { "tan_pixel_is_inside_image", _wrap_tan_pixel_is_inside_image, METH_VARARGS, NULL},
33877 	 { "tan_is_inside_image", _wrap_tan_is_inside_image, METH_VARARGS, NULL},
33878 	 { "tan_transform", _wrap_tan_transform, METH_VARARGS, NULL},
33879 	 { "tan_scale", _wrap_tan_scale, METH_VARARGS, NULL},
33880 	 { "sip_scale", _wrap_sip_scale, METH_VARARGS, NULL},
33881 	 { "tan_rotate", _wrap_tan_rotate, METH_VARARGS, NULL},
33882 	 { "coadd_add_numpy", _wrap_coadd_add_numpy, METH_VARARGS, NULL},
33883 	 { "coadd_get_snapshot_numpy", _wrap_coadd_get_snapshot_numpy, METH_VARARGS, NULL},
33884 	 { "fit_sip_wcs_py", _wrap_fit_sip_wcs_py, METH_VARARGS, NULL},
33885 	 { "broadcast_2to2ok", _wrap_broadcast_2to2ok, METH_VARARGS, NULL},
33886 	 { "broadcast_2to2", _wrap_broadcast_2to2, METH_VARARGS, NULL},
33887 	 { "broadcast_2to2i", _wrap_broadcast_2to2i, METH_VARARGS, NULL},
33888 	 { "tan_rd2xy_wrapper", _wrap_tan_rd2xy_wrapper, METH_VARARGS, NULL},
33889 	 { "sip_rd2xy_wrapper", _wrap_sip_rd2xy_wrapper, METH_VARARGS, NULL},
33890 	 { "anwcs_rd2xy_wrapper", _wrap_anwcs_rd2xy_wrapper, METH_VARARGS, NULL},
33891 	 { "tan_iwc2xy_wrapper", _wrap_tan_iwc2xy_wrapper, METH_VARARGS, NULL},
33892 	 { "sip_iwc2xy_wrapper", _wrap_sip_iwc2xy_wrapper, METH_VARARGS, NULL},
33893 	 { "tan_xy2iwc_wrapper", _wrap_tan_xy2iwc_wrapper, METH_VARARGS, NULL},
33894 	 { "sip_xy2iwc_wrapper", _wrap_sip_xy2iwc_wrapper, METH_VARARGS, NULL},
33895 	 { "tan_iwc2rd_wrapper", _wrap_tan_iwc2rd_wrapper, METH_VARARGS, NULL},
33896 	 { "sip_iwc2rd_wrapper", _wrap_sip_iwc2rd_wrapper, METH_VARARGS, NULL},
33897 	 { "tan_rd2iwc_wrapper", _wrap_tan_rd2iwc_wrapper, METH_VARARGS, NULL},
33898 	 { "sip_rd2iwc_wrapper", _wrap_sip_rd2iwc_wrapper, METH_VARARGS, NULL},
33899 	 { "tan_xy2rd_wrapper", _wrap_tan_xy2rd_wrapper, METH_VARARGS, NULL},
33900 	 { "sip_xy2rd_wrapper", _wrap_sip_xy2rd_wrapper, METH_VARARGS, NULL},
33901 	 { "anwcs_xy2rd_wrapper", _wrap_anwcs_xy2rd_wrapper, METH_VARARGS, NULL},
33902 	 { "tan_wcs_resample", _wrap_tan_wcs_resample, METH_VARARGS, NULL},
33903 	 { "tan_numpy_xyz2pixelxy", _wrap_tan_numpy_xyz2pixelxy, METH_VARARGS, NULL},
33904 	 { "an_tally", _wrap_an_tally, METH_VARARGS, NULL},
33905 	 { "fits_use_error_system", _wrap_fits_use_error_system, METH_NOARGS, NULL},
33906 	 { "fits_to_string", _wrap_fits_to_string, METH_VARARGS, NULL},
33907 	 { "fits_write_float_image", _wrap_fits_write_float_image, METH_VARARGS, NULL},
33908 	 { "fits_write_u8_image", _wrap_fits_write_u8_image, METH_VARARGS, NULL},
33909 	 { "fits_write_i16_image", _wrap_fits_write_i16_image, METH_VARARGS, NULL},
33910 	 { "fits_get_header_for_image", _wrap_fits_get_header_for_image, METH_VARARGS, NULL},
33911 	 { "fits_get_header_for_image2", _wrap_fits_get_header_for_image2, METH_VARARGS, NULL},
33912 	 { "fits_get_header_for_image3", _wrap_fits_get_header_for_image3, METH_VARARGS, NULL},
33913 	 { "fits_write_header", _wrap_fits_write_header, METH_VARARGS, NULL},
33914 	 { "fits_write_header_and_image", _wrap_fits_write_header_and_image, METH_VARARGS, NULL},
33915 	 { "fits_get_double_val", _wrap_fits_get_double_val, METH_VARARGS, NULL},
33916 	 { "fits_is_table_header", _wrap_fits_is_table_header, METH_O, NULL},
33917 	 { "fits_is_primary_header", _wrap_fits_is_primary_header, METH_O, NULL},
33918 	 { "fits_copy_non_table_headers", _wrap_fits_copy_non_table_headers, METH_VARARGS, NULL},
33919 	 { "fits_get_dupstring", _wrap_fits_get_dupstring, METH_VARARGS, NULL},
33920 	 { "fits_get_long_string", _wrap_fits_get_long_string, METH_VARARGS, NULL},
33921 	 { "fits_header_addf", _wrap_fits_header_addf, METH_VARARGS, NULL},
33922 	 { "fits_header_addf_longstring", _wrap_fits_header_addf_longstring, METH_VARARGS, NULL},
33923 	 { "fits_header_add_longstring_boilerplate", _wrap_fits_header_add_longstring_boilerplate, METH_O, NULL},
33924 	 { "fits_header_modf", _wrap_fits_header_modf, METH_VARARGS, NULL},
33925 	 { "fits_header_add_int", _wrap_fits_header_add_int, METH_VARARGS, NULL},
33926 	 { "fits_header_add_double", _wrap_fits_header_add_double, METH_VARARGS, NULL},
33927 	 { "fits_header_set_double", _wrap_fits_header_set_double, METH_VARARGS, NULL},
33928 	 { "fits_header_set_int", _wrap_fits_header_set_int, METH_VARARGS, NULL},
33929 	 { "fits_header_mod_int", _wrap_fits_header_mod_int, METH_VARARGS, NULL},
33930 	 { "fits_header_mod_double", _wrap_fits_header_mod_double, METH_VARARGS, NULL},
33931 	 { "fits_update_value", _wrap_fits_update_value, METH_VARARGS, NULL},
33932 	 { "fits_copy_table", _wrap_fits_copy_table, METH_O, NULL},
33933 	 { "an_fits_copy_header", _wrap_an_fits_copy_header, METH_VARARGS, NULL},
33934 	 { "fits_copy_all_headers", _wrap_fits_copy_all_headers, METH_VARARGS, NULL},
33935 	 { "fits_append_all_headers", _wrap_fits_append_all_headers, METH_VARARGS, NULL},
33936 	 { "fits_add_args", _wrap_fits_add_args, METH_VARARGS, NULL},
33937 	 { "fits_add_long_comment", _wrap_fits_add_long_comment, METH_VARARGS, NULL},
33938 	 { "fits_append_long_comment", _wrap_fits_append_long_comment, METH_VARARGS, NULL},
33939 	 { "fits_add_long_history", _wrap_fits_add_long_history, METH_VARARGS, NULL},
33940 	 { "fits_blocks_needed", _wrap_fits_blocks_needed, METH_O, NULL},
33941 	 { "fits_bytes_needed", _wrap_fits_bytes_needed, METH_O, NULL},
33942 	 { "fits_pad_file_with", _wrap_fits_pad_file_with, METH_VARARGS, NULL},
33943 	 { "fits_pad_file", _wrap_fits_pad_file, METH_O, NULL},
33944 	 { "fits_pad_file_name", _wrap_fits_pad_file_name, METH_O, NULL},
33945 	 { "fits_fill_endian_string", _wrap_fits_fill_endian_string, METH_O, NULL},
33946 	 { "fits_get_endian_string", _wrap_fits_get_endian_string, METH_NOARGS, NULL},
33947 	 { "fits_check_endian", _wrap_fits_check_endian, METH_O, NULL},
33948 	 { "fits_check_uint_size", _wrap_fits_check_uint_size, METH_O, NULL},
33949 	 { "fits_check_double_size", _wrap_fits_check_double_size, METH_O, NULL},
33950 	 { "fits_add_endian", _wrap_fits_add_endian, METH_O, NULL},
33951 	 { "fits_add_reverse_endian", _wrap_fits_add_reverse_endian, METH_O, NULL},
33952 	 { "fits_mod_reverse_endian", _wrap_fits_mod_reverse_endian, METH_O, NULL},
33953 	 { "fits_add_uint_size", _wrap_fits_add_uint_size, METH_O, NULL},
33954 	 { "fits_add_double_size", _wrap_fits_add_double_size, METH_O, NULL},
33955 	 { "fits_find_column", _wrap_fits_find_column, METH_VARARGS, NULL},
33956 	 { "fits_find_table_column", _wrap_fits_find_table_column, METH_VARARGS, NULL},
33957 	 { "fits_get_table_column", _wrap_fits_get_table_column, METH_VARARGS, NULL},
33958 	 { "fits_add_column", _wrap_fits_add_column, METH_VARARGS, NULL},
33959 	 { "fits_offset_of_column", _wrap_fits_offset_of_column, METH_VARARGS, NULL},
33960 	 { "fits_write_data_A", _wrap_fits_write_data_A, METH_VARARGS, NULL},
33961 	 { "fits_write_data_B", _wrap_fits_write_data_B, METH_VARARGS, NULL},
33962 	 { "fits_write_data_D", _wrap_fits_write_data_D, METH_VARARGS, NULL},
33963 	 { "fits_write_data_E", _wrap_fits_write_data_E, METH_VARARGS, NULL},
33964 	 { "fits_write_data_I", _wrap_fits_write_data_I, METH_VARARGS, NULL},
33965 	 { "fits_write_data_J", _wrap_fits_write_data_J, METH_VARARGS, NULL},
33966 	 { "fits_write_data_K", _wrap_fits_write_data_K, METH_VARARGS, NULL},
33967 	 { "fits_write_data_L", _wrap_fits_write_data_L, METH_VARARGS, NULL},
33968 	 { "fits_write_data_X", _wrap_fits_write_data_X, METH_VARARGS, NULL},
33969 	 { "fits_write_data", _wrap_fits_write_data, METH_VARARGS, NULL},
33970 	 { "fits_write_data_array", _wrap_fits_write_data_array, METH_VARARGS, NULL},
33971 	 { "collapsing_find_minlabel", _wrap_collapsing_find_minlabel, METH_VARARGS, NULL},
33972 	 { "dfind2", _wrap_dfind2, METH_VARARGS, NULL},
33973 	 { "dfind2_u8", _wrap_dfind2_u8, METH_VARARGS, NULL},
33974 	 { "dselip", _wrap_dselip, METH_VARARGS, NULL},
33975 	 { "dselip_cleanup", _wrap_dselip_cleanup, METH_NOARGS, NULL},
33976 	 { "dsmooth", _wrap_dsmooth, METH_VARARGS, NULL},
33977 	 { "dsmooth2", _wrap_dsmooth2, METH_VARARGS, NULL},
33978 	 { "dsmooth2_u8", _wrap_dsmooth2_u8, METH_VARARGS, NULL},
33979 	 { "dsmooth2_i16", _wrap_dsmooth2_i16, METH_VARARGS, NULL},
33980 	 { "dobjects", _wrap_dobjects, METH_VARARGS, NULL},
33981 	 { "dmask", _wrap_dmask, METH_VARARGS, NULL},
33982 	 { "dpeaks", _wrap_dpeaks, METH_VARARGS, NULL},
33983 	 { "dcen3x3", _wrap_dcen3x3, METH_O, NULL},
33984 	 { "dsigma", _wrap_dsigma, METH_VARARGS, NULL},
33985 	 { "dsigma_u8", _wrap_dsigma_u8, METH_VARARGS, NULL},
33986 	 { "dmedsmooth", _wrap_dmedsmooth, METH_VARARGS, NULL},
33987 	 { "dallpeaks", _wrap_dallpeaks, METH_VARARGS, NULL},
33988 	 { "dallpeaks_u8", _wrap_dallpeaks_u8, METH_VARARGS, NULL},
33989 	 { "dallpeaks_i16", _wrap_dallpeaks_i16, METH_VARARGS, NULL},
33990 	 { "dcen3x3b", _wrap_dcen3x3b, METH_VARARGS, NULL},
33991 	 { NULL, NULL, 0, NULL }
33992 };
33993 
33994 static PyMethodDef SwigMethods_proxydocs[] = {
33995 	 { NULL, NULL, 0, NULL }
33996 };
33997 
33998 
33999 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
34000 
34001 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
34002 static swig_type_info _swigt__p_PyArrayObject = {"_p_PyArrayObject", "PyArrayObject *", 0, 0, (void*)0, 0};
34003 static swig_type_info _swigt__p_a_10__double = {"_p_a_10__double", "double (*)[10]", 0, 0, (void*)0, 0};
34004 static swig_type_info _swigt__p_a_2__double = {"_p_a_2__double", "double (*)[2]", 0, 0, (void*)0, 0};
34005 static swig_type_info _swigt__p_anqfits_t = {"_p_anqfits_t", "anqfits_t *", 0, 0, (void*)0, 0};
34006 static swig_type_info _swigt__p_anwcs_t = {"_p_anwcs_t", "struct anwcs_t *|anwcs_t *", 0, 0, (void*)0, 0};
34007 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
34008 static swig_type_info _swigt__p_coadd_t = {"_p_coadd_t", "coadd_t *", 0, 0, (void*)0, 0};
34009 static swig_type_info _swigt__p_codetree_t = {"_p_codetree_t", "codetree_t *", 0, 0, (void*)0, 0};
34010 static swig_type_info _swigt__p_dl = {"_p_dl", "dl *", 0, 0, (void*)0, 0};
34011 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
34012 static swig_type_info _swigt__p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double = {"_p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double", "double (*)(double,double,float const *,float const *,int,int,double *,void *)|double (*)(double,double,number const *,number const *,int,int,double *,void *)", 0, 0, (void*)0, 0};
34013 static swig_type_info _swigt__p_f_int_p_void__int = {"_p_f_int_p_void__int", "int (*)(int,void *)", 0, 0, (void*)0, 0};
34014 static swig_type_info _swigt__p_f_p_q_const__sip_t_double_double_double_double_p_void__void = {"_p_f_p_q_const__sip_t_double_double_double_double_p_void__void", "void (*)(sip_t const *,double,double,double,double,void *)", 0, 0, (void*)0, 0};
34015 static swig_type_info _swigt__p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void = {"_p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void", "void (*)(struct anwcs_t const *,double,double,double,double,void *)|void (*)(anwcs_t const *,double,double,double,double,void *)", 0, 0, (void*)0, 0};
34016 static swig_type_info _swigt__p_f_p_q_const__void_double_double_p_double_p_double__int = {"_p_f_p_q_const__void_double_double_p_double_p_double__int", "f_2to2i|int (*)(void const *,double,double,double *,double *)", 0, 0, (void*)0, 0};
34017 static swig_type_info _swigt__p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char = {"_p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char", "unsigned char (*)(void const *,double,double,double *,double *)|f_2to2ok", 0, 0, (void*)0, 0};
34018 static swig_type_info _swigt__p_f_p_q_const__void_double_double_p_double_p_double__void = {"_p_f_p_q_const__void_double_double_p_double_p_double__void", "f_2to2|void (*)(void const *,double,double,double *,double *)", 0, 0, (void*)0, 0};
34019 static swig_type_info _swigt__p_fitsbin_t = {"_p_fitsbin_t", "fitsbin_t *", 0, 0, (void*)0, 0};
34020 static swig_type_info _swigt__p_fitstable_t = {"_p_fitstable_t", "fitstable_t *", 0, 0, (void*)0, 0};
34021 static swig_type_info _swigt__p_float = {"_p_float", "number *|float *", 0, 0, (void*)0, 0};
34022 static swig_type_info _swigt__p_il = {"_p_il", "il *", 0, 0, (void*)0, 0};
34023 static swig_type_info _swigt__p_index_t = {"_p_index_t", "index_t *", 0, 0, (void*)0, 0};
34024 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
34025 static swig_type_info _swigt__p_int16_t = {"_p_int16_t", "int16_t *", 0, 0, (void*)0, 0};
34026 static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *|dimage_label_t *", 0, 0, (void*)0, 0};
34027 static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *", 0, 0, (void*)0, 0};
34028 static swig_type_info _swigt__p_kdtree_t = {"_p_kdtree_t", "kdtree_t *", 0, 0, (void*)0, 0};
34029 static swig_type_info _swigt__p_lanczos_args_t = {"_p_lanczos_args_t", "lanczos_args_t *", 0, 0, (void*)0, 0};
34030 static swig_type_info _swigt__p_off_t = {"_p_off_t", "off_t *", 0, 0, (void*)0, 0};
34031 static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
34032 static swig_type_info _swigt__p_p_double = {"_p_p_double", "double **", 0, 0, (void*)0, 0};
34033 static swig_type_info _swigt__p_p_int = {"_p_p_int", "int **", 0, 0, (void*)0, 0};
34034 static swig_type_info _swigt__p_p_qfits_header = {"_p_p_qfits_header", "qfits_header **", 0, 0, (void*)0, 0};
34035 static swig_type_info _swigt__p_pl = {"_p_pl", "pl *", 0, 0, (void*)0, 0};
34036 static swig_type_info _swigt__p_qfits_header = {"_p_qfits_header", "qfits_header *", 0, 0, (void*)0, 0};
34037 static swig_type_info _swigt__p_qfits_table = {"_p_qfits_table", "qfits_table *", 0, 0, (void*)0, 0};
34038 static swig_type_info _swigt__p_qfitsdumper = {"_p_qfitsdumper", "qfitsdumper *", 0, 0, (void*)0, 0};
34039 static swig_type_info _swigt__p_quadfile_t = {"_p_quadfile_t", "quadfile_t *", 0, 0, (void*)0, 0};
34040 static swig_type_info _swigt__p_sip_t = {"_p_sip_t", "sip_t *", 0, 0, (void*)0, 0};
34041 static swig_type_info _swigt__p_sl = {"_p_sl", "sl *", 0, 0, (void*)0, 0};
34042 static swig_type_info _swigt__p_startree_t = {"_p_startree_t", "startree_t *", 0, 0, (void*)0, 0};
34043 static swig_type_info _swigt__p_tan_t = {"_p_tan_t", "tan_t *", 0, 0, (void*)0, 0};
34044 static swig_type_info _swigt__p_tfits_type = {"_p_tfits_type", "tfits_type *", 0, 0, (void*)0, 0};
34045 static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0};
34046 static swig_type_info _swigt__p_uint8_t = {"_p_uint8_t", "uint8_t *", 0, 0, (void*)0, 0};
34047 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "uchar *|unsigned char *|anbool *", 0, 0, (void*)0, 0};
34048 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0};
34049 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
34050 
34051 static swig_type_info *swig_type_initial[] = {
34052   &_swigt__p_FILE,
34053   &_swigt__p_PyArrayObject,
34054   &_swigt__p_a_10__double,
34055   &_swigt__p_a_2__double,
34056   &_swigt__p_anqfits_t,
34057   &_swigt__p_anwcs_t,
34058   &_swigt__p_char,
34059   &_swigt__p_coadd_t,
34060   &_swigt__p_codetree_t,
34061   &_swigt__p_dl,
34062   &_swigt__p_double,
34063   &_swigt__p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double,
34064   &_swigt__p_f_int_p_void__int,
34065   &_swigt__p_f_p_q_const__sip_t_double_double_double_double_p_void__void,
34066   &_swigt__p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void,
34067   &_swigt__p_f_p_q_const__void_double_double_p_double_p_double__int,
34068   &_swigt__p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char,
34069   &_swigt__p_f_p_q_const__void_double_double_p_double_p_double__void,
34070   &_swigt__p_fitsbin_t,
34071   &_swigt__p_fitstable_t,
34072   &_swigt__p_float,
34073   &_swigt__p_il,
34074   &_swigt__p_index_t,
34075   &_swigt__p_int,
34076   &_swigt__p_int16_t,
34077   &_swigt__p_int32_t,
34078   &_swigt__p_int64_t,
34079   &_swigt__p_kdtree_t,
34080   &_swigt__p_lanczos_args_t,
34081   &_swigt__p_off_t,
34082   &_swigt__p_p_char,
34083   &_swigt__p_p_double,
34084   &_swigt__p_p_int,
34085   &_swigt__p_p_qfits_header,
34086   &_swigt__p_pl,
34087   &_swigt__p_qfits_header,
34088   &_swigt__p_qfits_table,
34089   &_swigt__p_qfitsdumper,
34090   &_swigt__p_quadfile_t,
34091   &_swigt__p_sip_t,
34092   &_swigt__p_sl,
34093   &_swigt__p_startree_t,
34094   &_swigt__p_tan_t,
34095   &_swigt__p_tfits_type,
34096   &_swigt__p_uint32_t,
34097   &_swigt__p_uint8_t,
34098   &_swigt__p_unsigned_char,
34099   &_swigt__p_unsigned_int,
34100   &_swigt__p_void,
34101 };
34102 
34103 static swig_cast_info _swigc__p_FILE[] = {  {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
34104 static swig_cast_info _swigc__p_PyArrayObject[] = {  {&_swigt__p_PyArrayObject, 0, 0, 0},{0, 0, 0, 0}};
34105 static swig_cast_info _swigc__p_a_10__double[] = {  {&_swigt__p_a_10__double, 0, 0, 0},{0, 0, 0, 0}};
34106 static swig_cast_info _swigc__p_a_2__double[] = {  {&_swigt__p_a_2__double, 0, 0, 0},{0, 0, 0, 0}};
34107 static swig_cast_info _swigc__p_anqfits_t[] = {  {&_swigt__p_anqfits_t, 0, 0, 0},{0, 0, 0, 0}};
34108 static swig_cast_info _swigc__p_anwcs_t[] = {  {&_swigt__p_anwcs_t, 0, 0, 0},{0, 0, 0, 0}};
34109 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
34110 static swig_cast_info _swigc__p_coadd_t[] = {  {&_swigt__p_coadd_t, 0, 0, 0},{0, 0, 0, 0}};
34111 static swig_cast_info _swigc__p_codetree_t[] = {  {&_swigt__p_codetree_t, 0, 0, 0},{0, 0, 0, 0}};
34112 static swig_cast_info _swigc__p_dl[] = {  {&_swigt__p_dl, 0, 0, 0},{0, 0, 0, 0}};
34113 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
34114 static swig_cast_info _swigc__p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double[] = {  {&_swigt__p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double, 0, 0, 0},{0, 0, 0, 0}};
34115 static swig_cast_info _swigc__p_f_int_p_void__int[] = {  {&_swigt__p_f_int_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
34116 static swig_cast_info _swigc__p_f_p_q_const__sip_t_double_double_double_double_p_void__void[] = {  {&_swigt__p_f_p_q_const__sip_t_double_double_double_double_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
34117 static swig_cast_info _swigc__p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void[] = {  {&_swigt__p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
34118 static swig_cast_info _swigc__p_f_p_q_const__void_double_double_p_double_p_double__int[] = {  {&_swigt__p_f_p_q_const__void_double_double_p_double_p_double__int, 0, 0, 0},{0, 0, 0, 0}};
34119 static swig_cast_info _swigc__p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char[] = {  {&_swigt__p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
34120 static swig_cast_info _swigc__p_f_p_q_const__void_double_double_p_double_p_double__void[] = {  {&_swigt__p_f_p_q_const__void_double_double_p_double_p_double__void, 0, 0, 0},{0, 0, 0, 0}};
34121 static swig_cast_info _swigc__p_fitsbin_t[] = {  {&_swigt__p_fitsbin_t, 0, 0, 0},{0, 0, 0, 0}};
34122 static swig_cast_info _swigc__p_fitstable_t[] = {  {&_swigt__p_fitstable_t, 0, 0, 0},{0, 0, 0, 0}};
34123 static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
34124 static swig_cast_info _swigc__p_il[] = {  {&_swigt__p_il, 0, 0, 0},{0, 0, 0, 0}};
34125 static swig_cast_info _swigc__p_index_t[] = {  {&_swigt__p_index_t, 0, 0, 0},{0, 0, 0, 0}};
34126 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
34127 static swig_cast_info _swigc__p_int16_t[] = {  {&_swigt__p_int16_t, 0, 0, 0},{0, 0, 0, 0}};
34128 static swig_cast_info _swigc__p_int32_t[] = {  {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}};
34129 static swig_cast_info _swigc__p_int64_t[] = {  {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}};
34130 static swig_cast_info _swigc__p_kdtree_t[] = {  {&_swigt__p_kdtree_t, 0, 0, 0},{0, 0, 0, 0}};
34131 static swig_cast_info _swigc__p_lanczos_args_t[] = {  {&_swigt__p_lanczos_args_t, 0, 0, 0},{0, 0, 0, 0}};
34132 static swig_cast_info _swigc__p_off_t[] = {  {&_swigt__p_off_t, 0, 0, 0},{0, 0, 0, 0}};
34133 static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
34134 static swig_cast_info _swigc__p_p_double[] = {  {&_swigt__p_p_double, 0, 0, 0},{0, 0, 0, 0}};
34135 static swig_cast_info _swigc__p_p_int[] = {  {&_swigt__p_p_int, 0, 0, 0},{0, 0, 0, 0}};
34136 static swig_cast_info _swigc__p_p_qfits_header[] = {  {&_swigt__p_p_qfits_header, 0, 0, 0},{0, 0, 0, 0}};
34137 static swig_cast_info _swigc__p_pl[] = {  {&_swigt__p_pl, 0, 0, 0},{0, 0, 0, 0}};
34138 static swig_cast_info _swigc__p_qfits_header[] = {  {&_swigt__p_qfits_header, 0, 0, 0},{0, 0, 0, 0}};
34139 static swig_cast_info _swigc__p_qfits_table[] = {  {&_swigt__p_qfits_table, 0, 0, 0},{0, 0, 0, 0}};
34140 static swig_cast_info _swigc__p_qfitsdumper[] = {  {&_swigt__p_qfitsdumper, 0, 0, 0},{0, 0, 0, 0}};
34141 static swig_cast_info _swigc__p_quadfile_t[] = {  {&_swigt__p_quadfile_t, 0, 0, 0},{0, 0, 0, 0}};
34142 static swig_cast_info _swigc__p_sip_t[] = {  {&_swigt__p_sip_t, 0, 0, 0},{0, 0, 0, 0}};
34143 static swig_cast_info _swigc__p_sl[] = {  {&_swigt__p_sl, 0, 0, 0},{0, 0, 0, 0}};
34144 static swig_cast_info _swigc__p_startree_t[] = {  {&_swigt__p_startree_t, 0, 0, 0},{0, 0, 0, 0}};
34145 static swig_cast_info _swigc__p_tan_t[] = {  {&_swigt__p_tan_t, 0, 0, 0},{0, 0, 0, 0}};
34146 static swig_cast_info _swigc__p_tfits_type[] = {  {&_swigt__p_tfits_type, 0, 0, 0},{0, 0, 0, 0}};
34147 static swig_cast_info _swigc__p_uint32_t[] = {  {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
34148 static swig_cast_info _swigc__p_uint8_t[] = {  {&_swigt__p_uint8_t, 0, 0, 0},{0, 0, 0, 0}};
34149 static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
34150 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
34151 static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
34152 
34153 static swig_cast_info *swig_cast_initial[] = {
34154   _swigc__p_FILE,
34155   _swigc__p_PyArrayObject,
34156   _swigc__p_a_10__double,
34157   _swigc__p_a_2__double,
34158   _swigc__p_anqfits_t,
34159   _swigc__p_anwcs_t,
34160   _swigc__p_char,
34161   _swigc__p_coadd_t,
34162   _swigc__p_codetree_t,
34163   _swigc__p_dl,
34164   _swigc__p_double,
34165   _swigc__p_f_double_double_p_q_const__float_p_q_const__float_int_int_p_double_p_void__double,
34166   _swigc__p_f_int_p_void__int,
34167   _swigc__p_f_p_q_const__sip_t_double_double_double_double_p_void__void,
34168   _swigc__p_f_p_q_const__struct_anwcs_t_double_double_double_double_p_void__void,
34169   _swigc__p_f_p_q_const__void_double_double_p_double_p_double__int,
34170   _swigc__p_f_p_q_const__void_double_double_p_double_p_double__unsigned_char,
34171   _swigc__p_f_p_q_const__void_double_double_p_double_p_double__void,
34172   _swigc__p_fitsbin_t,
34173   _swigc__p_fitstable_t,
34174   _swigc__p_float,
34175   _swigc__p_il,
34176   _swigc__p_index_t,
34177   _swigc__p_int,
34178   _swigc__p_int16_t,
34179   _swigc__p_int32_t,
34180   _swigc__p_int64_t,
34181   _swigc__p_kdtree_t,
34182   _swigc__p_lanczos_args_t,
34183   _swigc__p_off_t,
34184   _swigc__p_p_char,
34185   _swigc__p_p_double,
34186   _swigc__p_p_int,
34187   _swigc__p_p_qfits_header,
34188   _swigc__p_pl,
34189   _swigc__p_qfits_header,
34190   _swigc__p_qfits_table,
34191   _swigc__p_qfitsdumper,
34192   _swigc__p_quadfile_t,
34193   _swigc__p_sip_t,
34194   _swigc__p_sl,
34195   _swigc__p_startree_t,
34196   _swigc__p_tan_t,
34197   _swigc__p_tfits_type,
34198   _swigc__p_uint32_t,
34199   _swigc__p_uint8_t,
34200   _swigc__p_unsigned_char,
34201   _swigc__p_unsigned_int,
34202   _swigc__p_void,
34203 };
34204 
34205 
34206 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
34207 
34208 static swig_const_info swig_const_table[] = {
34209 {0, 0, 0, 0.0, 0, 0}};
34210 
34211 #ifdef __cplusplus
34212 }
34213 #endif
34214 /* -----------------------------------------------------------------------------
34215  * Type initialization:
34216  * This problem is tough by the requirement that no dynamic
34217  * memory is used. Also, since swig_type_info structures store pointers to
34218  * swig_cast_info structures and swig_cast_info structures store pointers back
34219  * to swig_type_info structures, we need some lookup code at initialization.
34220  * The idea is that swig generates all the structures that are needed.
34221  * The runtime then collects these partially filled structures.
34222  * The SWIG_InitializeModule function takes these initial arrays out of
34223  * swig_module, and does all the lookup, filling in the swig_module.types
34224  * array with the correct data and linking the correct swig_cast_info
34225  * structures together.
34226  *
34227  * The generated swig_type_info structures are assigned statically to an initial
34228  * array. We just loop through that array, and handle each type individually.
34229  * First we lookup if this type has been already loaded, and if so, use the
34230  * loaded structure instead of the generated one. Then we have to fill in the
34231  * cast linked list. The cast data is initially stored in something like a
34232  * two-dimensional array. Each row corresponds to a type (there are the same
34233  * number of rows as there are in the swig_type_initial array). Each entry in
34234  * a column is one of the swig_cast_info structures for that type.
34235  * The cast_initial array is actually an array of arrays, because each row has
34236  * a variable number of columns. So to actually build the cast linked list,
34237  * we find the array of casts associated with the type, and loop through it
34238  * adding the casts to the list. The one last trick we need to do is making
34239  * sure the type pointer in the swig_cast_info struct is correct.
34240  *
34241  * First off, we lookup the cast->type name to see if it is already loaded.
34242  * There are three cases to handle:
34243  *  1) If the cast->type has already been loaded AND the type we are adding
34244  *     casting info to has not been loaded (it is in this module), THEN we
34245  *     replace the cast->type pointer with the type pointer that has already
34246  *     been loaded.
34247  *  2) If BOTH types (the one we are adding casting info to, and the
34248  *     cast->type) are loaded, THEN the cast info has already been loaded by
34249  *     the previous module so we just ignore it.
34250  *  3) Finally, if cast->type has not already been loaded, then we add that
34251  *     swig_cast_info to the linked list (because the cast->type) pointer will
34252  *     be correct.
34253  * ----------------------------------------------------------------------------- */
34254 
34255 #ifdef __cplusplus
34256 extern "C" {
34257 #if 0
34258 } /* c-mode */
34259 #endif
34260 #endif
34261 
34262 #if 0
34263 #define SWIGRUNTIME_DEBUG
34264 #endif
34265 
34266 
34267 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)34268 SWIG_InitializeModule(void *clientdata) {
34269   size_t i;
34270   swig_module_info *module_head, *iter;
34271   int init;
34272 
34273   /* check to see if the circular list has been setup, if not, set it up */
34274   if (swig_module.next==0) {
34275     /* Initialize the swig_module */
34276     swig_module.type_initial = swig_type_initial;
34277     swig_module.cast_initial = swig_cast_initial;
34278     swig_module.next = &swig_module;
34279     init = 1;
34280   } else {
34281     init = 0;
34282   }
34283 
34284   /* Try and load any already created modules */
34285   module_head = SWIG_GetModule(clientdata);
34286   if (!module_head) {
34287     /* This is the first module loaded for this interpreter */
34288     /* so set the swig module into the interpreter */
34289     SWIG_SetModule(clientdata, &swig_module);
34290   } else {
34291     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
34292     iter=module_head;
34293     do {
34294       if (iter==&swig_module) {
34295         /* Our module is already in the list, so there's nothing more to do. */
34296         return;
34297       }
34298       iter=iter->next;
34299     } while (iter!= module_head);
34300 
34301     /* otherwise we must add our module into the list */
34302     swig_module.next = module_head->next;
34303     module_head->next = &swig_module;
34304   }
34305 
34306   /* When multiple interpreters are used, a module could have already been initialized in
34307        a different interpreter, but not yet have a pointer in this interpreter.
34308        In this case, we do not want to continue adding types... everything should be
34309        set up already */
34310   if (init == 0) return;
34311 
34312   /* Now work on filling in swig_module.types */
34313 #ifdef SWIGRUNTIME_DEBUG
34314   printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
34315 #endif
34316   for (i = 0; i < swig_module.size; ++i) {
34317     swig_type_info *type = 0;
34318     swig_type_info *ret;
34319     swig_cast_info *cast;
34320 
34321 #ifdef SWIGRUNTIME_DEBUG
34322     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
34323 #endif
34324 
34325     /* if there is another module already loaded */
34326     if (swig_module.next != &swig_module) {
34327       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
34328     }
34329     if (type) {
34330       /* Overwrite clientdata field */
34331 #ifdef SWIGRUNTIME_DEBUG
34332       printf("SWIG_InitializeModule: found type %s\n", type->name);
34333 #endif
34334       if (swig_module.type_initial[i]->clientdata) {
34335         type->clientdata = swig_module.type_initial[i]->clientdata;
34336 #ifdef SWIGRUNTIME_DEBUG
34337         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
34338 #endif
34339       }
34340     } else {
34341       type = swig_module.type_initial[i];
34342     }
34343 
34344     /* Insert casting types */
34345     cast = swig_module.cast_initial[i];
34346     while (cast->type) {
34347       /* Don't need to add information already in the list */
34348       ret = 0;
34349 #ifdef SWIGRUNTIME_DEBUG
34350       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
34351 #endif
34352       if (swig_module.next != &swig_module) {
34353         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
34354 #ifdef SWIGRUNTIME_DEBUG
34355         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
34356 #endif
34357       }
34358       if (ret) {
34359         if (type == swig_module.type_initial[i]) {
34360 #ifdef SWIGRUNTIME_DEBUG
34361           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
34362 #endif
34363           cast->type = ret;
34364           ret = 0;
34365         } else {
34366           /* Check for casting already in the list */
34367           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
34368 #ifdef SWIGRUNTIME_DEBUG
34369           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
34370 #endif
34371           if (!ocast) ret = 0;
34372         }
34373       }
34374 
34375       if (!ret) {
34376 #ifdef SWIGRUNTIME_DEBUG
34377         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
34378 #endif
34379         if (type->cast) {
34380           type->cast->prev = cast;
34381           cast->next = type->cast;
34382         }
34383         type->cast = cast;
34384       }
34385       cast++;
34386     }
34387     /* Set entry in modules->types array equal to the type */
34388     swig_module.types[i] = type;
34389   }
34390   swig_module.types[i] = 0;
34391 
34392 #ifdef SWIGRUNTIME_DEBUG
34393   printf("**** SWIG_InitializeModule: Cast List ******\n");
34394   for (i = 0; i < swig_module.size; ++i) {
34395     int j = 0;
34396     swig_cast_info *cast = swig_module.cast_initial[i];
34397     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
34398     while (cast->type) {
34399       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
34400       cast++;
34401       ++j;
34402     }
34403     printf("---- Total casts: %d\n",j);
34404   }
34405   printf("**** SWIG_InitializeModule: Cast List ******\n");
34406 #endif
34407 }
34408 
34409 /* This function will propagate the clientdata field of type to
34410 * any new swig_type_info structures that have been added into the list
34411 * of equivalent types.  It is like calling
34412 * SWIG_TypeClientData(type, clientdata) a second time.
34413 */
34414 SWIGRUNTIME void
SWIG_PropagateClientData(void)34415 SWIG_PropagateClientData(void) {
34416   size_t i;
34417   swig_cast_info *equiv;
34418   static int init_run = 0;
34419 
34420   if (init_run) return;
34421   init_run = 1;
34422 
34423   for (i = 0; i < swig_module.size; i++) {
34424     if (swig_module.types[i]->clientdata) {
34425       equiv = swig_module.types[i]->cast;
34426       while (equiv) {
34427         if (!equiv->converter) {
34428           if (equiv->type && !equiv->type->clientdata)
34429           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
34430         }
34431         equiv = equiv->next;
34432       }
34433     }
34434   }
34435 }
34436 
34437 #ifdef __cplusplus
34438 #if 0
34439 {
34440   /* c-mode */
34441 #endif
34442 }
34443 #endif
34444 
34445 
34446 
34447 #ifdef __cplusplus
34448 extern "C" {
34449 #endif
34450 
34451   /* Python-specific SWIG API */
34452 #define SWIG_newvarlink()                             SWIG_Python_newvarlink()
34453 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
34454 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
34455 
34456   /* -----------------------------------------------------------------------------
34457    * global variable support code.
34458    * ----------------------------------------------------------------------------- */
34459 
34460   typedef struct swig_globalvar {
34461     char       *name;                  /* Name of global variable */
34462     PyObject *(*get_attr)(void);       /* Return the current value */
34463     int       (*set_attr)(PyObject *); /* Set the value */
34464     struct swig_globalvar *next;
34465   } swig_globalvar;
34466 
34467   typedef struct swig_varlinkobject {
34468     PyObject_HEAD
34469     swig_globalvar *vars;
34470   } swig_varlinkobject;
34471 
34472   SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject * SWIGUNUSEDPARM (v))34473   swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
34474 #if PY_VERSION_HEX >= 0x03000000
34475     return PyUnicode_InternFromString("<Swig global variables>");
34476 #else
34477     return PyString_FromString("<Swig global variables>");
34478 #endif
34479   }
34480 
34481   SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject * v)34482   swig_varlink_str(swig_varlinkobject *v) {
34483 #if PY_VERSION_HEX >= 0x03000000
34484     PyObject *str = PyUnicode_InternFromString("(");
34485     PyObject *tail;
34486     PyObject *joined;
34487     swig_globalvar *var;
34488     for (var = v->vars; var; var=var->next) {
34489       tail = PyUnicode_FromString(var->name);
34490       joined = PyUnicode_Concat(str, tail);
34491       Py_DecRef(str);
34492       Py_DecRef(tail);
34493       str = joined;
34494       if (var->next) {
34495         tail = PyUnicode_InternFromString(", ");
34496         joined = PyUnicode_Concat(str, tail);
34497         Py_DecRef(str);
34498         Py_DecRef(tail);
34499         str = joined;
34500       }
34501     }
34502     tail = PyUnicode_InternFromString(")");
34503     joined = PyUnicode_Concat(str, tail);
34504     Py_DecRef(str);
34505     Py_DecRef(tail);
34506     str = joined;
34507 #else
34508     PyObject *str = PyString_FromString("(");
34509     swig_globalvar *var;
34510     for (var = v->vars; var; var=var->next) {
34511       PyString_ConcatAndDel(&str,PyString_FromString(var->name));
34512       if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
34513     }
34514     PyString_ConcatAndDel(&str,PyString_FromString(")"));
34515 #endif
34516     return str;
34517   }
34518 
34519   SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject * v)34520   swig_varlink_dealloc(swig_varlinkobject *v) {
34521     swig_globalvar *var = v->vars;
34522     while (var) {
34523       swig_globalvar *n = var->next;
34524       free(var->name);
34525       free(var);
34526       var = n;
34527     }
34528   }
34529 
34530   SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject * v,char * n)34531   swig_varlink_getattr(swig_varlinkobject *v, char *n) {
34532     PyObject *res = NULL;
34533     swig_globalvar *var = v->vars;
34534     while (var) {
34535       if (strcmp(var->name,n) == 0) {
34536         res = (*var->get_attr)();
34537         break;
34538       }
34539       var = var->next;
34540     }
34541     if (res == NULL && !PyErr_Occurred()) {
34542       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
34543     }
34544     return res;
34545   }
34546 
34547   SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject * v,char * n,PyObject * p)34548   swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
34549     int res = 1;
34550     swig_globalvar *var = v->vars;
34551     while (var) {
34552       if (strcmp(var->name,n) == 0) {
34553         res = (*var->set_attr)(p);
34554         break;
34555       }
34556       var = var->next;
34557     }
34558     if (res == 1 && !PyErr_Occurred()) {
34559       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
34560     }
34561     return res;
34562   }
34563 
34564   SWIGINTERN PyTypeObject*
swig_varlink_type(void)34565   swig_varlink_type(void) {
34566     static char varlink__doc__[] = "Swig var link object";
34567     static PyTypeObject varlink_type;
34568     static int type_init = 0;
34569     if (!type_init) {
34570       const PyTypeObject tmp = {
34571 #if PY_VERSION_HEX >= 0x03000000
34572         PyVarObject_HEAD_INIT(NULL, 0)
34573 #else
34574         PyObject_HEAD_INIT(NULL)
34575         0,                                  /* ob_size */
34576 #endif
34577         "swigvarlink",                      /* tp_name */
34578         sizeof(swig_varlinkobject),         /* tp_basicsize */
34579         0,                                  /* tp_itemsize */
34580         (destructor) swig_varlink_dealloc,  /* tp_dealloc */
34581         0,                                  /* tp_print */
34582         (getattrfunc) swig_varlink_getattr, /* tp_getattr */
34583         (setattrfunc) swig_varlink_setattr, /* tp_setattr */
34584         0,                                  /* tp_compare */
34585         (reprfunc) swig_varlink_repr,       /* tp_repr */
34586         0,                                  /* tp_as_number */
34587         0,                                  /* tp_as_sequence */
34588         0,                                  /* tp_as_mapping */
34589         0,                                  /* tp_hash */
34590         0,                                  /* tp_call */
34591         (reprfunc) swig_varlink_str,        /* tp_str */
34592         0,                                  /* tp_getattro */
34593         0,                                  /* tp_setattro */
34594         0,                                  /* tp_as_buffer */
34595         0,                                  /* tp_flags */
34596         varlink__doc__,                     /* tp_doc */
34597         0,                                  /* tp_traverse */
34598         0,                                  /* tp_clear */
34599         0,                                  /* tp_richcompare */
34600         0,                                  /* tp_weaklistoffset */
34601         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
34602         0,                                  /* tp_del */
34603         0,                                  /* tp_version_tag */
34604 #if PY_VERSION_HEX >= 0x03040000
34605         0,                                  /* tp_finalize */
34606 #endif
34607 #if PY_VERSION_HEX >= 0x03080000
34608         0,                                  /* tp_vectorcall */
34609 #endif
34610 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
34611         0,                                  /* tp_print */
34612 #endif
34613 #ifdef COUNT_ALLOCS
34614         0,                                  /* tp_allocs */
34615         0,                                  /* tp_frees */
34616         0,                                  /* tp_maxalloc */
34617         0,                                  /* tp_prev */
34618         0                                   /* tp_next */
34619 #endif
34620       };
34621       varlink_type = tmp;
34622       type_init = 1;
34623       if (PyType_Ready(&varlink_type) < 0)
34624       return NULL;
34625     }
34626     return &varlink_type;
34627   }
34628 
34629   /* Create a variable linking object for use later */
34630   SWIGINTERN PyObject *
SWIG_Python_newvarlink(void)34631   SWIG_Python_newvarlink(void) {
34632     swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
34633     if (result) {
34634       result->vars = 0;
34635     }
34636     return ((PyObject*) result);
34637   }
34638 
34639   SWIGINTERN void
SWIG_Python_addvarlink(PyObject * p,const char * name,PyObject * (* get_attr)(void),int (* set_attr)(PyObject * p))34640   SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
34641     swig_varlinkobject *v = (swig_varlinkobject *) p;
34642     swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
34643     if (gv) {
34644       size_t size = strlen(name)+1;
34645       gv->name = (char *)malloc(size);
34646       if (gv->name) {
34647         memcpy(gv->name, name, size);
34648         gv->get_attr = get_attr;
34649         gv->set_attr = set_attr;
34650         gv->next = v->vars;
34651       }
34652     }
34653     v->vars = gv;
34654   }
34655 
34656   SWIGINTERN PyObject *
SWIG_globals(void)34657   SWIG_globals(void) {
34658     static PyObject *globals = 0;
34659     if (!globals) {
34660       globals = SWIG_newvarlink();
34661     }
34662     return globals;
34663   }
34664 
34665   /* -----------------------------------------------------------------------------
34666    * constants/methods manipulation
34667    * ----------------------------------------------------------------------------- */
34668 
34669   /* Install Constants */
34670   SWIGINTERN void
SWIG_Python_InstallConstants(PyObject * d,swig_const_info constants[])34671   SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
34672     PyObject *obj = 0;
34673     size_t i;
34674     for (i = 0; constants[i].type; ++i) {
34675       switch(constants[i].type) {
34676       case SWIG_PY_POINTER:
34677         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
34678         break;
34679       case SWIG_PY_BINARY:
34680         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
34681         break;
34682       default:
34683         obj = 0;
34684         break;
34685       }
34686       if (obj) {
34687         PyDict_SetItemString(d, constants[i].name, obj);
34688         Py_DECREF(obj);
34689       }
34690     }
34691   }
34692 
34693   /* -----------------------------------------------------------------------------*/
34694   /* Fix SwigMethods to carry the callback ptrs when needed */
34695   /* -----------------------------------------------------------------------------*/
34696 
34697   SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef * methods,swig_const_info * const_table,swig_type_info ** types,swig_type_info ** types_initial)34698   SWIG_Python_FixMethods(PyMethodDef *methods,
34699     swig_const_info *const_table,
34700     swig_type_info **types,
34701     swig_type_info **types_initial) {
34702     size_t i;
34703     for (i = 0; methods[i].ml_name; ++i) {
34704       const char *c = methods[i].ml_doc;
34705       if (!c) continue;
34706       c = strstr(c, "swig_ptr: ");
34707       if (c) {
34708         int j;
34709         swig_const_info *ci = 0;
34710         const char *name = c + 10;
34711         for (j = 0; const_table[j].type; ++j) {
34712           if (strncmp(const_table[j].name, name,
34713               strlen(const_table[j].name)) == 0) {
34714             ci = &(const_table[j]);
34715             break;
34716           }
34717         }
34718         if (ci) {
34719           void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
34720           if (ptr) {
34721             size_t shift = (ci->ptype) - types;
34722             swig_type_info *ty = types_initial[shift];
34723             size_t ldoc = (c - methods[i].ml_doc);
34724             size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
34725             char *ndoc = (char*)malloc(ldoc + lptr + 10);
34726             if (ndoc) {
34727               char *buff = ndoc;
34728               memcpy(buff, methods[i].ml_doc, ldoc);
34729               buff += ldoc;
34730               memcpy(buff, "swig_ptr: ", 10);
34731               buff += 10;
34732               SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
34733               methods[i].ml_doc = ndoc;
34734             }
34735           }
34736         }
34737       }
34738     }
34739   }
34740 
34741   /* -----------------------------------------------------------------------------
34742    * Method creation and docstring support functions
34743    * ----------------------------------------------------------------------------- */
34744 
34745   /* -----------------------------------------------------------------------------
34746    * Function to find the method definition with the correct docstring for the
34747    * proxy module as opposed to the low-level API
34748    * ----------------------------------------------------------------------------- */
34749 
SWIG_PythonGetProxyDoc(const char * name)34750   SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) {
34751     /* Find the function in the modified method table */
34752     size_t offset = 0;
34753     int found = 0;
34754     while (SwigMethods_proxydocs[offset].ml_meth != NULL) {
34755       if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {
34756         found = 1;
34757         break;
34758       }
34759       offset++;
34760     }
34761     /* Use the copy with the modified docstring if available */
34762     return found ? &SwigMethods_proxydocs[offset] : NULL;
34763   }
34764 
34765   /* -----------------------------------------------------------------------------
34766    * Wrapper of PyInstanceMethod_New() used in Python 3
34767    * It is exported to the generated module, used for -fastproxy
34768    * ----------------------------------------------------------------------------- */
34769 
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)34770   SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
34771     if (PyCFunction_Check(func)) {
34772       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
34773       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
34774       if (ml)
34775       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
34776     }
34777 #if PY_VERSION_HEX >= 0x03000000
34778     return PyInstanceMethod_New(func);
34779 #else
34780     return PyMethod_New(func, NULL, NULL);
34781 #endif
34782   }
34783 
34784   /* -----------------------------------------------------------------------------
34785    * Wrapper of PyStaticMethod_New()
34786    * It is exported to the generated module, used for -fastproxy
34787    * ----------------------------------------------------------------------------- */
34788 
SWIG_PyStaticMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)34789   SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
34790     if (PyCFunction_Check(func)) {
34791       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
34792       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
34793       if (ml)
34794       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
34795     }
34796     return PyStaticMethod_New(func);
34797   }
34798 
34799 #ifdef __cplusplus
34800 }
34801 #endif
34802 
34803 /* -----------------------------------------------------------------------------*
34804  *  Partial Init method
34805  * -----------------------------------------------------------------------------*/
34806 
34807 #ifdef __cplusplus
34808 extern "C"
34809 #endif
34810 
34811 SWIGEXPORT
34812 #if PY_VERSION_HEX >= 0x03000000
34813 PyObject*
34814 #else
34815 void
34816 #endif
SWIG_init(void)34817 SWIG_init(void) {
34818   PyObject *m, *d, *md, *globals;
34819 
34820 #if PY_VERSION_HEX >= 0x03000000
34821   static struct PyModuleDef SWIG_module = {
34822     PyModuleDef_HEAD_INIT,
34823     SWIG_name,
34824     NULL,
34825     -1,
34826     SwigMethods,
34827     NULL,
34828     NULL,
34829     NULL,
34830     NULL
34831   };
34832 #endif
34833 
34834 #if defined(SWIGPYTHON_BUILTIN)
34835   static SwigPyClientData SwigPyObject_clientdata = {
34836     0, 0, 0, 0, 0, 0, 0
34837   };
34838   static PyGetSetDef this_getset_def = {
34839     (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
34840   };
34841   static SwigPyGetSet thisown_getset_closure = {
34842     SwigPyObject_own,
34843     SwigPyObject_own
34844   };
34845   static PyGetSetDef thisown_getset_def = {
34846     (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
34847   };
34848   PyTypeObject *builtin_pytype;
34849   int builtin_base_count;
34850   swig_type_info *builtin_basetype;
34851   PyObject *tuple;
34852   PyGetSetDescrObject *static_getset;
34853   PyTypeObject *metatype;
34854   PyTypeObject *swigpyobject;
34855   SwigPyClientData *cd;
34856   PyObject *public_interface, *public_symbol;
34857   PyObject *this_descr;
34858   PyObject *thisown_descr;
34859   PyObject *self = 0;
34860   int i;
34861 
34862   (void)builtin_pytype;
34863   (void)builtin_base_count;
34864   (void)builtin_basetype;
34865   (void)tuple;
34866   (void)static_getset;
34867   (void)self;
34868 
34869   /* Metaclass is used to implement static member variables */
34870   metatype = SwigPyObjectType();
34871   assert(metatype);
34872 #endif
34873 
34874   (void)globals;
34875 
34876   /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
34877   SWIG_This();
34878   SWIG_Python_TypeCache();
34879   SwigPyPacked_type();
34880 #ifndef SWIGPYTHON_BUILTIN
34881   SwigPyObject_type();
34882 #endif
34883 
34884   /* Fix SwigMethods to carry the callback ptrs when needed */
34885   SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
34886 
34887 #if PY_VERSION_HEX >= 0x03000000
34888   m = PyModule_Create(&SWIG_module);
34889 #else
34890   m = Py_InitModule(SWIG_name, SwigMethods);
34891 #endif
34892 
34893   md = d = PyModule_GetDict(m);
34894   (void)md;
34895 
34896   SWIG_InitializeModule(0);
34897 
34898 #ifdef SWIGPYTHON_BUILTIN
34899   swigpyobject = SwigPyObject_TypeOnce();
34900 
34901   SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
34902   assert(SwigPyObject_stype);
34903   cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
34904   if (!cd) {
34905     SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
34906     SwigPyObject_clientdata.pytype = swigpyobject;
34907   } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
34908     PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
34909 # if PY_VERSION_HEX >= 0x03000000
34910     return NULL;
34911 # else
34912     return;
34913 # endif
34914   }
34915 
34916   /* All objects have a 'this' attribute */
34917   this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
34918   (void)this_descr;
34919 
34920   /* All objects have a 'thisown' attribute */
34921   thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
34922   (void)thisown_descr;
34923 
34924   public_interface = PyList_New(0);
34925   public_symbol = 0;
34926   (void)public_symbol;
34927 
34928   PyDict_SetItemString(md, "__all__", public_interface);
34929   Py_DECREF(public_interface);
34930   for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
34931   SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
34932   for (i = 0; swig_const_table[i].name != 0; ++i)
34933   SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
34934 #endif
34935 
34936   SWIG_InstallConstants(d,swig_const_table);
34937 
34938 
34939   // numpy
34940   import_array();
34941 
34942   SWIG_Python_SetConstant(d, "TRUE",SWIG_From_int((int)(1)));
34943   SWIG_Python_SetConstant(d, "FALSE",SWIG_From_int((int)(0)));
34944   SWIG_Python_SetConstant(d, "L",SWIG_From_int((int)(5)));
34945   SWIG_Python_SetConstant(d, "DEFAULT_INDEX_JITTER",SWIG_From_double((double)(1.0)));
34946   SWIG_Python_SetConstant(d, "INDEX_ONLY_LOAD_METADATA",SWIG_From_int((int)(2)));
34947   SWIG_Python_SetConstant(d, "AN_FILETYPE_CODETREE",SWIG_FromCharPtr("CKDT"));
34948   SWIG_Python_SetConstant(d, "CODETREE_NAME",SWIG_FromCharPtr("codes"));
34949   SWIG_Python_SetConstant(d, "AN_FILETYPE_STARTREE",SWIG_FromCharPtr("SKDT"));
34950   SWIG_Python_SetConstant(d, "AN_FILETYPE_TAGALONG",SWIG_FromCharPtr("TAGALONG"));
34951   SWIG_Python_SetConstant(d, "STARTREE_NAME",SWIG_FromCharPtr("stars"));
34952   SWIG_Python_SetConstant(d, "HP_MAX_INT_NSIDE",SWIG_From_int((int)(13377)));
34953   SWIG_Python_SetConstant(d, "ANWCS_TYPE_WCSLIB",SWIG_From_int((int)(1)));
34954   SWIG_Python_SetConstant(d, "ANWCS_TYPE_SIP",SWIG_From_int((int)(2)));
34955   SWIG_Python_SetConstant(d, "ANWCS_TYPE_WCSTOOLS",SWIG_From_int((int)(3)));
34956   SWIG_Python_SetConstant(d, "DIM_STARS",SWIG_From_int((int)(3)));
34957   SWIG_Python_SetConstant(d, "DIM_XY",SWIG_From_int((int)(2)));
34958   SWIG_Python_SetConstant(d, "DQMAX",SWIG_From_int((int)(5)));
34959   SWIG_Python_SetConstant(d, "DCMAX",SWIG_From_int((int)(6)));
34960   SWIG_Python_SetConstant(d, "ONE_OVER_SIXTY",SWIG_From_double((double)(0.016666666666666666)));
34961   SWIG_Python_SetConstant(d, "RAD_PER_DEG",SWIG_From_double((double)(0.017453292519943295)));
34962   SWIG_Python_SetConstant(d, "RAD_PER_ARCMIN",SWIG_From_double((double)(0.00029088820866572158)));
34963   SWIG_Python_SetConstant(d, "RAD_PER_ARCSEC",SWIG_From_double((double)(4.8481368110953598e-06)));
34964   SWIG_Python_SetConstant(d, "DEG_PER_RAD",SWIG_From_double((double)(57.295779513082323)));
34965   SWIG_Python_SetConstant(d, "DEG_PER_ARCMIN",SWIG_From_double((double)(0.016666666666666666)));
34966   SWIG_Python_SetConstant(d, "DEG_PER_ARCSEC",SWIG_From_double((double)(0.00027777777777777778)));
34967   SWIG_Python_SetConstant(d, "ARCMIN_PER_RAD",SWIG_From_double((double)(3437.7467707849396)));
34968   SWIG_Python_SetConstant(d, "ARCMIN_PER_DEG",SWIG_From_double((double)(60.0)));
34969   SWIG_Python_SetConstant(d, "ARCMIN_PER_ARCSEC",SWIG_From_double((double)(0.016666666666666666)));
34970   SWIG_Python_SetConstant(d, "ARCSEC_PER_RAD",SWIG_From_double((double)(206264.80624709636)));
34971   SWIG_Python_SetConstant(d, "ARCSEC_PER_DEG",SWIG_From_double((double)(3600.0)));
34972   SWIG_Python_SetConstant(d, "ARCSEC_PER_ARCMIN",SWIG_From_double((double)(60.0)));
34973   SWIG_Python_SetConstant(d, "MJD_JD_OFFSET",SWIG_From_double((double)(2400000.5)));
34974   SWIG_Python_SetConstant(d, "HELP_ERR",SWIG_From_int((int)(-101)));
34975   SWIG_Python_SetConstant(d, "OPT_ERR",SWIG_From_int((int)(-201)));
34976   SWIG_Python_SetConstant(d, "SIP_MAXORDER",SWIG_From_int((int)(10)));
34977 #if PY_VERSION_HEX >= 0x03000000
34978   return m;
34979 #else
34980   return;
34981 #endif
34982 }
34983 
34984