Main Page   Modules   Data Structures   File List   Data Fields   Globals  

incl/gendef.h

Go to the documentation of this file.
00001 /* === Doxygen File Comment ============================== */
00012 /* ======================================================= */
00013 
00014 #include <fcntl.h>
00015 #include <unistd.h>
00016 #include <stdio.h>
00017 #include <string.h>
00018 #include <limits.h>
00019 #include <float.h>
00020 
00021 #ifndef MAXSHORT
00022 #define MINSHORT        SHRT_MIN
00023 #define MININT          INT_MIN
00024 #define MINLONG         LONG_MIN
00025 #define MAXSHORT        SHRT_MAX
00026 #define MAXINT          INT_MAX
00027 #define MAXLONG         LONG_MAX
00028 #define MAXDOUBLE       DBL_MAX
00029 #define MAXFLOAT        FLT_MAX
00030 #define MINDOUBLE       DBL_MIN
00031 #define MINFLOAT        FLT_MIN
00032 #define DMINEXP         DBL_MIN_EXP
00033 #define FMINEXP         FLT_MIN_EXP
00034 #define DMAXEXP         DBL_MAX_EXP
00035 #define FMAXEXP         FLT_MAX_EXP
00036 #endif
00037 
00038 #include <alloc.h>
00039 #include <malloc.h>
00040 #include <macro.h>
00041 #include <funcdef.h>
00042 #include <funcdecl.h>
00043 #include <soft_version.h>
00044 #include <error_codes.h>
00045 
00046 #define lg_name        80L
00047 #define lg_ident       72L
00048 #define lg_unit        48L
00049 #define lg_label       16L
00050 #define lg_hist        1024L
00051 #define lg_version     4L
00052 
00053                                                         /* default tables size */
00054 #define tble_nb_row   450L  /* number of rows        */
00055 #define tble_nb_col   256L  /* number of columns           */
00056 
00057 #ifndef TRUE
00058 #define TRUE  1
00059 #define FALSE 0
00060 #endif
00061 /*            debug  dynamic allocations          */
00062 #ifdef Debug    
00063 /* #include <dbmalloc.h> */
00064 #endif
00065 
00066 /*        General File type definitions:                             */
00067 
00068 #define IMA_TYPE  'I'      /* type for image files */
00069 #define TBL_TYPE  'T'      /* type for table files */
00070 
00071                         /* type of file */
00072 
00073 #define T_IMA1D  's'      /* type for 1D image */
00074 #define T_IMA2D  'i'      /* type for 2D image */
00075 #define T_TABLE  't'      /* type for table */
00076 #define T_TIGER  'T'      /* type for tiger data cube */
00077 #define T_TIGMAX 'M'      /* type for tiger maxima */
00078 
00079         /* content of the frame */
00080 
00081 #define DONT_KNOW       0       /* unknown */
00082 #define RAW_MPUP        1       /* raw micro-pupils */
00083 #define PRE_MPUP        2       /* preprocessed micro-pupils */
00084 #define RAW_CAL_FRAME   3       /* raw calibration frame */
00085 #define PRE_CAL_FRAME   4       /* preprocessed calibration frame */
00086 #define RAW_CAL_CUBE    5       /* raw calibration datacube */
00087 #define WAV_CAL_CUBE    6       /* wavelength calib calibration datacube */
00088 #define RAW_CON_FRAME   7       /* raw continuum frame */
00089 #define PRE_CON_FRAME   8       /* preprocessed continuum frame */
00090 #define RAW_CON_CUBE    9       /* raw continuum datacube */
00091 #define WAV_CON_CUBE    10      /* wavelength calib continuum datacube */
00092 #define FLA_CON_CUBE    11      /* flat field continuum datacube */
00093 #define FLAT_CUBE       30      /* Flat cube */
00094 #define RAW_SKY_FRAME   12      /* raw sky frame */ 
00095 #define PRE_SKY_FRAME   13      /* preprocessed sky frame */
00096 #define RAW_SKY_CUBE    14      /* raw sky datacube */
00097 #define WAV_SKY_CUBE    15      /* wavelength calib sky datacube */
00098 #define FLA_SKY_CUBE    16      /* flat fielded sky datacube */
00099 #define RAW_OBJ_FRAME   17      /* raw object frame */
00100 #define PRE_OBJ_FRAME   18      /* preprocessed object frame */
00101 #define RAW_OBJ_CUBE    19      /* raw object datacube */
00102 #define WAV_OBJ_CUBE    20      /* wavelength calib object datacube */
00103 #define FLA_OBJ_CUBE    21      /* flat fielded object datacube */
00104 #define COS_OBJ_CUBE    22      /* cosmic removed object datacube */
00105 #define FLX_OBJ_CUBE    23      /* flux calib object datacube */
00106 #define THR_SPEC        32      /* Throughput Spectrum */
00107 #define RAW_BIAS        24      /* Raw Bias frame */
00108 #define DARK_FRAME      25      /* Dark frame */
00109 #define TBL_FILE        26      /* Table */
00110 #define TBL_FILE_CAL    29      /* Table of wavelength calibrated cube */
00111 #define TBL_FILE_REF    31      /* Table of Reference Wavelength */
00112 #define MSK_FILE        27      /* Mask */
00113 #define MAX_FILE        28      /* Maxima */
00114 #define REC_IMAGE       33      /* Reconstructed Image */
00115 #define MER_OBJ_CUBE    35      /* Merged Datacube */
00116 #define DEBUG_FILE      36      /* Debug File */
00117 #define BIAS_FRAME      37      /* Bias frame without overscan window */
00118 #define SKY_OBJ_CUBE    38      /* sky subtracted object datacube */
00119 #define LOSVD_RAW       39      /* Raw LOSVD */
00120 #define LOSVD_FIT       40      /* Fitted LOSVD */
00121 #define TBL_FLUX_REF    41      /* Table of Reference Flux */
00122 #define SKY_FILE_REF    42      /* Sky spectrum */
00123 #define SKY_FILE_VAR    43      /* Sky spectrum (variance) */
00124 #define COS_CON_CUBE    44      /* cosmic removed continuum datacube */
00125 #define COS_SKY_CUBE    45      /* cosmic removed sky datacube */
00126 #define HF_FLAT         46      /* HF Flat-field */
00127 #define FLT_CON_FRAME   47      /* flat-fielded continuum frame */
00128 #define FLT_CAL_FRAME   48      /* flat-fielded calibration frame */
00129 #define FLT_SKY_FRAME   49      /* flat-fielded sky frame */
00130 #define FLT_OBJ_FRAME   50      /* flat-fielded object frame */
00131 #define SUPER_CLASS     99      /* SuperClass */
00132 
00133 /*                      34         Frame Catalog (used by TCL/Tk) */
00134 
00135                                 /* global variables */
00136 
00137 extern int DEBUG;
00138 extern int VERBOSE;
00139 extern int TK;
00140 extern int ASK;
00141 extern int ASK_BACK;

Generated on Tue Jul 1 17:35:45 2003 for IFU_C_iolibs by doxygen1.3