Pairing shared-object library code for interface with Python. More...
#include <Python.h>#include "datatypes.h"
Go to the source code of this file.
Functions | |
| void | initpairing (void) | 
| This initialises the module and all its member functions.   | |
| static PyObject * | multiPair (PyObject *self, PyObject *args, PyObject *kwds) | 
| static PyObject * | pairOff (PyObject *self, PyObject *args, PyObject *kwds) | 
| static PyObject * | merge (PyObject *self, PyObject *args, PyObject *kwds) | 
| Create a single merge table from a list of pair pointer files.   | |
| int | prepare_detections_list (PyObject *input, CartesianSet **cart, IndexedList **dec) | 
| Reads in a list of detections specified by the Python arguments.   | |
| void | create_pointer_files (CartesianSet cart1[], IndexedList dec1[], int nrec1, CartesianSet cart2[], IndexedList dec2[], int nrec2, double matchradius, char *outfile1, char *outfile2) | 
| Performs source association between detection lists, creating pointer files.   | |
Pairing shared-object library code for interface with Python.
| void create_pointer_files | ( | CartesianSet | cart1[], | |
| IndexedList | dec1[], | |||
| int | nrec1, | |||
| CartesianSet | cart2[], | |||
| IndexedList | dec2[], | |||
| int | nrec2, | |||
| double | matchradius, | |||
| char * | outfile1, | |||
| char * | outfile2 | |||
| ) | 
Performs source association between detection lists, creating pointer files.
| cart1 | First list of detection cartesian coordinates | |
| dec1 | First list of detection declinations | |
| nrec1 | Number of records in first list of detections | |
| cart2 | Second list of detection cartesian coordinates | |
| dec2 | Second list of detection declinations | |
| nrec2 | Number of records in second list of detections | |
| matchradius | Search radius for source association | |
| outfile1 | File name for output of forward-matches pointer file | |
| outfile2 | File name for output of reverse-matches pointer file | 
References handshake(), matchpairs(), timestamp(), and write_pointers().
Referenced by multiPair(), and pairOff().
| void initpairing | ( | void | ) | 
This initialises the module and all its member functions.
References merge(), multiPair(), and pairOff().
| static PyObject* merge | ( | PyObject * | self, | |
| PyObject * | args, | |||
| PyObject * | kwds | |||
| ) |  [static] | 
        
Create a single merge table from a list of pair pointer files.
| static PyObject* multiPair | ( | PyObject * | self, | |
| PyObject * | args, | |||
| PyObject * | kwds | |||
| ) |  [static] | 
        
Make all combinations of pair pointer arrays for the input list of passband data.
| static PyObject* pairOff | ( | PyObject * | self, | |
| PyObject * | args, | |||
| PyObject * | kwds | |||
| ) |  [static] | 
        
Produces pair pointer array for two input data files. Not suitable if there are more than two input files - in this case use multiPair instead.
| int prepare_detections_list | ( | PyObject * | input, | |
| CartesianSet ** | cart, | |||
| IndexedList ** | dec | |||
| ) | 
Reads in a list of detections specified by the Python arguments.
| input | Python argument list | 
| cart | List of detection cartesian coordinates | |
| dec | List of detection declinations | 
References count_records(), get_recinfo(), gobble(), and quicksort().
Referenced by multiPair(), and pairOff().
 1.6.3