pairing.c File Reference

#include "dataio.h"
#include "match.h"
#include "merge.h"
#include "quicksort.h"
#include "datatypes.h"
#include <Python.h>
Include dependency graph for pairing.c:
This graph shows which files directly or indirectly include 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)
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.

Detailed Description

Author:
Ian Bond, IfA, University of Edinburgh

Function Documentation

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.

Parameters:
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]

References create_merge_table().

Referenced by initpairing().

static PyObject* multiPair ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]
static PyObject* pairOff ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]
int prepare_detections_list ( PyObject *  input,
CartesianSet **  cart,
IndexedList **  dec 
)

Reads in a list of detections specified by the Python arguments.

Parameters:
input Python argument list
Return values:
cart List of detection cartesian coordinates
dec List of detection declinations
Returns:
Number of records read

References count_records(), get_recinfo(), gobble(), and quicksort().

Referenced by multiPair(), and pairOff().

Generated on Mon Oct 4 10:39:53 2010 for WsaTools by  doxygen 1.6.3