This file is indexed.

/usr/include/astrometry/quadfile.h is in astrometry.net 0.46-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
  This file is part of the Astrometry.net suite.
  Copyright 2006, 2007 Dustin Lang, Keir Mierle and Sam Roweis.
  Copyright 2009, 2010 Dustin Lang.

  The Astrometry.net suite is free software; you can redistribute
  it and/or modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation, version 2.

  The Astrometry.net suite is distributed in the hope that it will be
  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with the Astrometry.net suite ; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
*/

#ifndef QUADFILE_H
#define QUADFILE_H

#include <sys/types.h>
#include <stdint.h>

#include "qfits_header.h"
#include "fitsbin.h"
#include "anqfits.h"

struct quadfile {
	unsigned int numquads;
	unsigned int numstars;
    int dimquads;
	// upper bound of AB distance of quads in this index
	double index_scale_upper;
	// lower bound
	double index_scale_lower;
	// unique ID of this index
	int indexid;
	// healpix covered by this index
	int healpix;
    // Nside of the healpixelization
    int hpnside;

	fitsbin_t* fb;
	// when reading:
	uint32_t* quadarray;
};
typedef struct quadfile quadfile;

quadfile* quadfile_open(const char* fname);
quadfile* quadfile_open_fits(anqfits_t* fits);

char* quadfile_get_filename(const quadfile* qf);

quadfile* quadfile_open_for_writing(const char* quadfname);

quadfile* quadfile_open_in_memory(void);

int quadfile_switch_to_reading(quadfile* qf);

int quadfile_close(quadfile* qf);

// Look at each quad, and ensure that the star ids it contains are all
// less than the number of stars ("numstars").  Returns 0=ok, -1=problem
int quadfile_check(const quadfile* qf);

// Copies the star ids of the stars that comprise quad "quadid".
// There will be qf->dimquads such stars.
// (this will be less than starutil.h : DQMAX, for ease of static
// allocation of arrays that will hold quads of stars)
int quadfile_get_stars(const quadfile* qf, unsigned int quadid,
                       unsigned int* stars);

int quadfile_write_quad(quadfile* qf, unsigned int* stars);

int quadfile_dimquads(const quadfile* qf);

int quadfile_nquads(const quadfile* qf);

int quadfile_fix_header(quadfile* qf);

int quadfile_write_header(quadfile* qf);

double quadfile_get_index_scale_upper_arcsec(const quadfile* qf);

double quadfile_get_index_scale_lower_arcsec(const quadfile* qf);

qfits_header* quadfile_get_header(const quadfile* qf);

int quadfile_write_header_to(quadfile* qf, FILE* fid);

int quadfile_write_all_quads_to(quadfile* qf, FILE* fid);

#endif