#include <Python.h>#include "datatypes.h"

Go to the source code of this file.
Functions | |
| double | get_conv (char *units) |
| Return numeric scaling factor associated with the input units. | |
| void | get_coordinfo (PyObject *arg, coordset *coord) |
| void | get_recinfo (PyObject *arg, char *filename, coordset *coord1, coordset *coord2, int *reclen) |
| void | gobble (char *filename, coordset coord1, coordset coord2, int reclen, CartesianSet cart[], IndexedList declist[]) |
| int | count_records (char *filename, int reclen) |
| char * | makeoutname (int i1, int i2, char *path) |
| void | write_pointers (char *filename, int *pp, int nrec) |
| Write the pointer array to the given file name. | |
| void | read_pointers (char *filename, int *pp, int nrec) |
| Read the pointer array from the given filename. | |
| int count_records | ( | char * | filename, | |
| int | reclen | |||
| ) |
Count the number of records in the given file for the given record length
Referenced by create_merge_table(), and prepare_detections_list().
| double get_conv | ( | char * | units | ) |
Return numeric scaling factor associated with the input units.
Referenced by gobble().
| void get_coordinfo | ( | PyObject * | arg, | |
| coordset * | coord | |||
| ) |
Extract coordinate (eg RA and DEC) information from the Python tuple object and place it in the structure. The information to be extract comprises: the first byte on the record, the word size, and a string representing the units
Referenced by get_recinfo().
| void get_recinfo | ( | PyObject * | arg, | |
| char * | filename, | |||
| coordset * | coord1, | |||
| coordset * | coord2, | |||
| int * | reclen | |||
| ) |
From the input python tuple object, extract the filename, the coordinate set structures for RA and DEC and the record length
References get_coordinfo().
Referenced by prepare_detections_list().
| void gobble | ( | char * | filename, | |
| coordset | coord1, | |||
| coordset | coord2, | |||
| int | reclen, | |||
| CartesianSet | cart[], | |||
| IndexedList | declist[] | |||
| ) |
Read the entire file into an array of cartesion coordinates and an indexed list of declinations
References CartesianSet::cx, CartesianSet::cy, CartesianSet::cz, coordset::firstbyte, get_conv(), IndexedList::index, coordset::units, IndexedList::value, and coordset::wdsize.
Referenced by prepare_detections_list().
| char* makeoutname | ( | int | i1, | |
| int | i2, | |||
| char * | path | |||
| ) |
Make up a string giving the name of the out pointer files for input passbands i1 and i2
Referenced by multiPair().
| void read_pointers | ( | char * | filename, | |
| int * | pp, | |||
| int | nrec | |||
| ) |
Read the pointer array from the given filename.
Referenced by create_merge_table().
| void write_pointers | ( | char * | filename, | |
| int * | pp, | |||
| int | nrec | |||
| ) |
Write the pointer array to the given file name.
Referenced by create_pointer_files().
1.6.3