FORS Pipeline Reference Manual  5.0.9
fors_cpl_wcs.h
1 /* $Id: fors_cpl_wcs.h,v 1.5 2010-09-14 07:49:30 cizzo Exp $
2  *
3  * This file is part of the ESO Common Pipeline Library
4  * Copyright (C) 2002-2010 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: cizzo $
23  * $Date: 2010-09-14 07:49:30 $
24  * $Revision: 1.5 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 
29 #ifndef FORS_CPL_WCS_H
30 #define FORS_CPL_WCS_H
31 
32 #include "cpl_error.h"
33 #include "cpl_propertylist.h"
34 #include "cpl_matrix.h"
35 #include "cpl_array.h"
36 
37 /* Definition of WCS structure */
38 
39 typedef struct _fors_cpl_wcs_ fors_cpl_wcs;
40 
41 /* Enumerate the modes available for the convert routine */
42 
43 enum fors_cpl_wcs_trans_mode {
44  FORS_CPL_WCS_PHYS2WORLD,
45  FORS_CPL_WCS_WORLD2PHYS,
46  FORS_CPL_WCS_PHYS2STD,
47  FORS_CPL_WCS_WORLD2STD};
48 
49 typedef enum fors_cpl_wcs_trans_mode fors_cpl_wcs_trans_mode;
50 
51 /* Function prototypes */
52 
53 fors_cpl_wcs *fors_cpl_wcs_new_from_propertylist(const cpl_propertylist *plist);
55 cpl_error_code fors_cpl_wcs_convert(const fors_cpl_wcs *wcs, const cpl_matrix *from,
56  cpl_matrix **to, cpl_array **status,
57  fors_cpl_wcs_trans_mode transform);
58 
59 #endif /* FORS_CPL_WCS_H */
void fors_cpl_wcs_delete(fors_cpl_wcs *wcs)
Destroy a WCS structure.
Definition: fors_cpl_wcs.c:367