This file is indexed.

/usr/include/cpl_wcs.h is in libcpl-dev 5.3.1-1.

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
/* $Id: cpl_wcs.h,v 1.13 2010/11/11 10:32:10 llundin Exp $
 *
 * This file is part of the ESO Common Pipeline Library
 * Copyright (C) 2001-2005 European Southern Observatory
 *
 * This program 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; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

/*
 * $Author: llundin $
 * $Date: 2010/11/11 10:32:10 $
 * $Revision: 1.13 $
 * $Name: cpl-5_3_0-BRANCH $
 */


#ifndef CPL_WCS_H
#define CPL_WCS_H

#include "cpl_error.h"
#include "cpl_propertylist.h"
#include "cpl_matrix.h"
#include "cpl_array.h"

/* Definition of WCS structure */

typedef struct _cpl_wcs_ cpl_wcs;

/* Enumerate the modes available for the convert routine */

enum cpl_wcs_trans_mode {
    CPL_WCS_PHYS2WORLD,
    CPL_WCS_WORLD2PHYS,
    CPL_WCS_PHYS2STD,
    CPL_WCS_WORLD2STD};

typedef enum cpl_wcs_trans_mode cpl_wcs_trans_mode;

/* Enumerate the modes available for the plate solution routine */

enum cpl_wcs_platesol_fitmode {
    CPL_WCS_PLATESOL_6,
    CPL_WCS_PLATESOL_4};

typedef enum cpl_wcs_platesol_fitmode cpl_wcs_platesol_fitmode;

enum cpl_wcs_platesol_outmode {
    CPL_WCS_MV_CRVAL,
    CPL_WCS_MV_CRPIX};

typedef enum cpl_wcs_platesol_outmode cpl_wcs_platesol_outmode;

/* Function prototypes */

cpl_wcs *cpl_wcs_new_from_propertylist(const cpl_propertylist *plist)
    CPL_ATTR_ALLOC;
void cpl_wcs_delete(cpl_wcs *wcs);
cpl_error_code cpl_wcs_convert(const cpl_wcs *wcs, const cpl_matrix *from,
                               cpl_matrix **to, cpl_array **status,
                               cpl_wcs_trans_mode transform);
cpl_error_code cpl_wcs_platesol(const cpl_propertylist *ilist,
                                const cpl_matrix *cel,
                                const cpl_matrix *xy, int niter, float thresh,
                                cpl_wcs_platesol_fitmode fitmode,
                                cpl_wcs_platesol_outmode outmode,
                                cpl_propertylist **olist);

/* Accessor routines */

int cpl_wcs_get_image_naxis(const cpl_wcs *wcs);
const cpl_array *cpl_wcs_get_image_dims(const cpl_wcs *wcs);
const cpl_array *cpl_wcs_get_crval(const cpl_wcs *wcs);
const cpl_array *cpl_wcs_get_crpix(const cpl_wcs *wcs);
const cpl_matrix *cpl_wcs_get_cd(const cpl_wcs *wcs);

#endif /* CPL_WCS_H */