Debian Codegraph @

cextern/astrometry.net/healpix-utils.h

raw
1 /*
2 # This file is part of the Astrometry.net suite.
3 # Licensed under a 3-clause BSD style license - see LICENSE
4 */
5
6 #ifndef HEALPIX_UTILS_H
7 #define HEALPIX_UTILS_H
8
9 #include "bl.h"
10
11 /**
12 Returns healpixes that are / may be within range of the given point, resp.
13 */
14 il* healpix_rangesearch_xyz(const double* xyz, double radius, int Nside, il* hps);
15 il* healpix_rangesearch_xyz_approx(const double* xyz, double radius, int Nside, il* hps);
16 il* healpix_rangesearch_radec_approx(double ra, double dec, double radius, int Nside, il* hps);
17 il* healpix_rangesearch_radec(double ra, double dec, double radius, int Nside, il* hps);
18 int64_t healpix_rangesearch_radec_simple(double ra, double dec, double radius, int Nside, int approx, int64_t **indices);
19
20 /**
21 Starting from a "seed" or list of "seeds" healpixes, grows a region
22 by looking at healpix neighbours. Accepts healpixes for which the
23 "accept" function returns 1. Returns the healpixes that are
24 accepted. The accepted results are placed in "accepted", if
25 non-NULL, or in a newly-allocated list.
26
27 If "rejected" is non-NULL, the healpixes that are rejected will be
28 put there.
29
30 If "depth" is non-zero, that number of neighbour steps will be taken.
31 Zero means no limit.
32
33 NOTE that any existing entries in the "accepted" list will be treated
34 as having already been accepted: when the search reaches them, their
35 neighbours will not be added to the frontier to explore.
36 */
37 il* healpix_region_search(int seed, il* seeds, int Nside,
38 il* accepted, il* rejected,
39 int (*accept)(int hp, void* token),
40 void* token,
41 int depth);
42
43
44 #endif