This file is indexed.

/usr/include/astrometry/tycho2.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
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
  This file is part of the Astrometry.net suite.
  Copyright 2006, 2007 Dustin Lang, Keir Mierle and Sam Roweis.

  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
*/

/*
  Parses Tycho-2 data files, which are available here:
    http://www.astro.ku.dk/~cf/CD/data/
*/

#ifndef TYCHO2_H
#define TYCHO2_H

#include <stdint.h>

#include "starutil.h"

// 206 bytes of data, but each record is supposed to be terminated
// by \r\n, making...
#define TYCHO_RECORD_SIZE_RAW 206

// ... 208 bytes total!
#define TYCHO_RECORD_SIZE 208

#define TYCHO_SUPPLEMENT_RECORD_SIZE_RAW 122
#define TYCHO_SUPPLEMENT_RECORD_SIZE 124

struct tycho2_entry {
	// together these form the star ID.
	int16_t tyc1;  // [1, 9537] in main catalog; [2, 9529] in suppl.
	int16_t tyc2;  // [1, 12121] main; [1,12112] suppl.
	uint8_t tyc3;  // [1, 3] main, [1, 4] suppl.

	// flag "P": photo-center of two stars was used for position
	anbool photo_center;
	// flag "X": no mean position, no proper motion
	anbool no_motion;
	// flag "T"
	anbool tycho1_star;
	// flag "D"
	anbool double_star;
	// flag "P" ( DP)
	anbool photo_center_treatment;
	// flag "H" (in supplements)
	anbool hipparcos_star;

	// [degrees]
	double ra;         // RAdeg
	double dec;        // DEdeg
	double mean_ra;     // mRAdeg
	double mean_dec;    // mDEdeg

	// [degrees]
	float sigma_ra;    // mas2deg(e_RA*)
	float sigma_dec;   // mas2deg(e_DE)
	float sigma_mean_ra;   // mas2deg(e_mRA*)
	float sigma_mean_dec;  // mas2deg(e_mDE)

	// [arcsec/yr]
	float pm_ra;        // pmRA* / 1000
    // (note that this is actually a change in RA*cos(Dec))
	float pm_dec;       // pmDE / 1000

	// [arcsec/yr]
	float sigma_pm_ra;  // e_pmRA* / 1000
	float sigma_pm_dec; // e_pmDE / 1000

	// [yr]
	float epoch_ra;    // epRA + 1990
	float epoch_dec;   // epDE + 1990
	float epoch_mean_ra;   // mepRA
	float epoch_mean_dec;  // mepDE
	//
	uint8_t nobs; // Num

	// "goodness"
	float goodness_mean_ra;  // g_mRA
	float goodness_mean_dec; // g_mDEC
	float goodness_pm_ra;  // g_pmRA
	float goodness_pm_dec; // g_pmDEC

	// [mag] (0.0 means unavailable)
	float mag_BT;        // BT
	float mag_VT;        // VT
	float sigma_BT;      // e_BT
	float sigma_VT;      // e_VT

	// [mag] supplements only: Hp magnitude
	float mag_HP;        // HP
	float sigma_HP;      // e_HP

	// [degrees], -1.0 for null.
	float prox;

	float correlation;

	int32_t hipparcos_id;    // [1, 120404] (or zero for null)
	char hip_ccdm[4];     // (up to three chars; null-terminated.)
};
typedef struct tycho2_entry tycho2_entry;

int tycho2_guess_is_supplement(const char* line);

int tycho2_parse_entry(const char* line, tycho2_entry* entry);

int tycho2_supplement_parse_entry(const char* line, tycho2_entry* entry);

#endif