This file is indexed.

/usr/include/rtd/RtdCoords.icc is in skycat 3.1.2+starlink1~b-3.

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
// -*-c++-*-
#ifndef _RtdCoords_h_
#define _RtdCoords_h_

/*
 * E.S.O. - VLT project 
 * "@(#) $Id: RtdCoords.icc,v 1.1.1.1 2009/03/31 14:11:52 cguirao Exp $" 
 *
 * RtdCoords.h - definitions for the Rtdimage coordinate conversion methods
 * 
 * who             when      what
 * --------------  --------  ----------------------------------------
 * Allan Brighton  05/10/95  Created
 * pbiereic        01/03/01  created (copied from RtdImage.h)
 */
public:

// coordinate conversion types
enum CoordinateType {
    CT_NONE = 	0, 
    CT_IMAGE =	'i',
    CT_CANVAS = 'c',
    CT_SCREEN = 's',
    CT_WCS = 	'w',
    CT_DEG = 	'd',
    CT_CHIP = 	'C'
};

// return the enum CoordinateType value given the string name
CoordinateType getCoordinateType(const char* s);

// convert coords from string form
int convertCoordsStr(int dist_flag, 
		     const char* inx_buf, const char* iny_buf,
		     char* outx_buf, char* outy_buf,
		     double& x, double& y,
		     const char* in_type, const char* out_type);

// convert coords from doubles
int convertCoords(int dist_flag, double& x, double& y, 
		  const char* in_type, const char* out_type);

// convert coords as doubles (for WCS, assumes equinox of image, 
// coord type only specifies first letter and no equinox).
int convertCoords(int dist_flag, double& x, double& y, 
		  char in_type, char out_type);

// Utility method to change the equinox of ra and dec if dist_flag is 0
void changeEquinox(int dist_flag, double& ra, double& dec, 
		   const char* in_equinox, const char* out_equinox);

// utility methods to convert between different coordinate systems
int canvasToChipCoords		(double& x, double& y, int dist_flag);
int canvasToImageCoords		(double& x, double& y, int dist_flag);
int canvasToScreenCoords	(double& x, double& y, int dist_flag);
int canvasToWorldCoords		(double& x, double& y, int dist_flag);
int chipToCanvasCoords		(double& x, double& y, int dist_flag);
int chipToImageCoords		(double& x, double& y, int dist_flag);
int chipToScreenCoords		(double& x, double& y, int dist_flag);
int chipToWorldCoords		(double& x, double& y, int dist_flag);
int imageToCanvasCoords		(double& x, double& y, int dist_flag);
int imageToChipCoords		(double& x, double& y, int dist_flag);
int imageToScreenCoords		(double& x, double& y, int dist_flag);
int imageToWorldCoords		(double& x, double& y, int dist_flag);
int screenToCanvasCoords	(double& x, double& y, int dist_flag);
int screenToChipCoords		(double& x, double& y, int dist_flag);
int screenToImageCoords		(double& x, double& y, int dist_flag);
int screenToWorldCoords		(double& x, double& y, int dist_flag);
int worldToCanvasCoords		(double& x, double& y, int dist_flag);
int worldToChipCoords		(double& x, double& y, int dist_flag);
int worldToImageCoords		(double& x, double& y, int dist_flag);
int worldToScreenCoords		(double& x, double& y, int dist_flag);

    // -- short cuts --

protected:

// these coordinate conversion methods are only needed internally
int   screenToXImageCoords	(double& x, double& y);
int   xImageToImageCoords	(double& x, double& y, int dist_flag);
int   imageToRawImageCoords	(double& x, double& y);
void  coordsToDist		(double& x, double& y);
void  distToCoords		(double& x, double& y);
void  doTrans			(double& x, double& y, int distFlag = 0);
void  undoTrans			(double& x, double& y, int distFlag = 0);

#endif /* _RtdCoords_h_ */