File: startree.h

package info (click to toggle)
astrometry.net 0.93%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,372 kB
  • sloc: ansic: 163,192; python: 18,357; makefile: 1,522; sh: 138; cpp: 78; pascal: 67; awk: 56; perl: 9
file content (33 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/

#ifndef STARTREE2_H
#define STARTREE2_H

#include "astrometry/starkd.h"
#include "astrometry/fitstable.h"
#include "astrometry/an-bool.h"

/**
 Given a FITS BINTABLE, pulls out RA,Dec columns and builds a kd-tree
 out of them.
 */
startree_t* startree_build(fitstable_t* intable,
						   const char* racol, const char* deccol,
						   // KDT_DATA_*, KDT_TREE_*
						   int datatype, int treetype,
						   // KD_BUILD_*
						   int buildopts,
						   int Nleaf,
						   char** args, int argc);

anbool startree_has_tagalong_data(const fitstable_t* intab);

int startree_write_tagalong_table(fitstable_t* intable, fitstable_t* outtable,
                                  const char* racol, const char* deccol,
                                  int* indices,
                                  anbool remove_radec_columns);

#endif