00001 /* 00002 * This file is part of the ESO UVES Pipeline 00003 * Copyright (C) 2004,2005 European Southern Observatory 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA 00018 */ 00019 00020 /* 00021 * $Author: amodigli $ 00022 * $Date: 2010/09/24 09:32:02 $ 00023 * $Revision: 1.9 $ 00024 * $Name: uves-5_0_0 $ 00025 * $Log: uves_chip.h,v $ 00026 * Revision 1.9 2010/09/24 09:32:02 amodigli 00027 * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data 00028 * 00029 * Revision 1.7 2007/06/06 08:17:33 amodigli 00030 * replace tab with 4 spaces 00031 * 00032 * Revision 1.6 2007/01/16 10:26:19 jmlarsen 00033 * Removed obsolete declaration 00034 * 00035 * Revision 1.5 2007/01/10 12:35:31 jmlarsen 00036 * Added uves_chip_tochar 00037 * 00038 * Revision 1.4 2006/08/17 13:56:52 jmlarsen 00039 * Reduced max line length 00040 * 00041 * Revision 1.3 2006/02/28 09:15:22 jmlarsen 00042 * Minor update 00043 * 00044 * Revision 1.2 2005/12/19 16:17:56 jmlarsen 00045 * Replaced bool -> int 00046 * 00047 */ 00048 #ifndef UVES_CHIP_H 00049 #define UVES_CHIP_H 00050 00051 #include <cpl.h> 00052 #include <stdbool.h> 00053 00054 enum uves_chip { UVES_CHIP_BLUE = 43542, 00055 UVES_CHIP_REDL = 6813, 00056 UVES_CHIP_REDU = 11280, 00057 UVES_CHIP_INVALID = 3243}; 00058 /* Decrease the chance that the user erroneously uses the integer values (which 00059 the user should not) by defining 'random' enumeration values */ 00060 00061 enum uves_chip uves_chip_get_first(bool blue); 00062 enum uves_chip uves_chip_get_next(enum uves_chip chip); 00063 00064 int uves_chip_get_index(enum uves_chip chip); 00065 00066 const char *uves_chip_tostring_lower(enum uves_chip chip); 00067 const char *uves_chip_tostring_upper(enum uves_chip chip); 00068 00069 const char *uves_chip_get_det(enum uves_chip chip); 00070 char uves_chip_tochar(enum uves_chip chip); 00071 00072 #endif /* UVES_CHIP_H */