00001 /* $Id: fors_cpl_wcs.h,v 1.5 2010/09/14 07:49:30 cizzo Exp $ 00002 * 00003 * This file is part of the ESO Common Pipeline Library 00004 * Copyright (C) 2002-2010 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* 00022 * $Author: cizzo $ 00023 * $Date: 2010/09/14 07:49:30 $ 00024 * $Revision: 1.5 $ 00025 * $Name: fors-4_8_6 $ 00026 */ 00027 00028 00029 #ifndef FORS_CPL_WCS_H 00030 #define FORS_CPL_WCS_H 00031 00032 #include "cpl_error.h" 00033 #include "cpl_propertylist.h" 00034 #include "cpl_matrix.h" 00035 #include "cpl_array.h" 00036 00037 /* Definition of WCS structure */ 00038 00039 typedef struct _fors_cpl_wcs_ fors_cpl_wcs; 00040 00041 /* Enumerate the modes available for the convert routine */ 00042 00043 enum fors_cpl_wcs_trans_mode { 00044 FORS_CPL_WCS_PHYS2WORLD, 00045 FORS_CPL_WCS_WORLD2PHYS, 00046 FORS_CPL_WCS_PHYS2STD, 00047 FORS_CPL_WCS_WORLD2STD}; 00048 00049 typedef enum fors_cpl_wcs_trans_mode fors_cpl_wcs_trans_mode; 00050 00051 /* Function prototypes */ 00052 00053 fors_cpl_wcs *fors_cpl_wcs_new_from_propertylist(const cpl_propertylist *plist); 00054 void fors_cpl_wcs_delete(fors_cpl_wcs *wcs); 00055 cpl_error_code fors_cpl_wcs_convert(const fors_cpl_wcs *wcs, const cpl_matrix *from, 00056 cpl_matrix **to, cpl_array **status, 00057 fors_cpl_wcs_trans_mode transform); 00058 00059 #endif /* FORS_CPL_WCS_H */