Main Page   Modules   Data Structures   File List   Data Fields   Globals  

incl/items.h

Go to the documentation of this file.
00001 /* === Doxygen File Comment ============================== */
00012 /* ======================================================= */
00013 
00014 /*____________________________________ SPECTRUM ______________________________*/
00015 
00016 typedef struct            
00017 {
00018     char   name[lg_name+1];  /* name of data frame            */
00019     int    imno;             /* image number                  */
00020     short  file_type;        /* type of file (1D frame)       */
00021     short  data_format;      /* data format                   */
00022     int    iomode;           /* I_MODE, O_MODE, IO_MODE       */
00023     char   history[lg_hist+1];/* history                      */
00024     void   *external_info;   /* for FITS descriptors          */
00025     char   ident[lg_ident+1];/* identifier                    */
00026     char   cunit[lg_unit+1]; /* unit                          */
00027     int    npts;             /* length                        */
00028     double start;            /* start coordinates             */
00029     double end;              /* end of spectrum               */
00030     double step;             /* step size                     */
00031     double wstart;           /* window start                  */
00032     double wend;             /* window end                    */
00033     int    iwstart;          /* window pixel start            */
00034     int    iwend;            /* window pixel end              */
00035     double min;              /* min & max of intensity        */
00036     double max;       
00037     double wmin;             /* min & max of intensity        */
00038     double wmax;       
00039     short  data_type;        /* data_type                     */
00040     union {
00041       short  *s_data;        /* pointer to first data         */
00042       long   *l_data;        /* pointer to first data         */
00043       float  *f_data;        /* pointer to first data         */
00044       double *d_data;        /* pointer to first data         */
00045     } data;
00046     unsigned long *quality;  /* pointer to quality flags      */
00047     
00048 } SPECTRUM;
00049 
00050 #define IMAGE1D SPECTRUM
00051 
00052 /*____________________________________ IMAGE 2D ______________________________*/
00053 
00054 typedef struct          
00055 {
00056     char   name[lg_name+1];  /* name of data frame            */
00057     int    imno;             /* image number                  */
00058     short  file_type;        /* type of file (2D frame)       */
00059     short  data_format;      /* data format                   */
00060     int    iomode;           /* I_MODE, O_MODE, IO_MODE       */
00061     char   history[lg_hist+1];/* history                      */
00062     void   *external_info;   /* for FITS descriptors          */
00063     char   ident[lg_ident+1];/* identifier                    */
00064     char   cunit[lg_unit+1]; /* unit                          */
00065     int    nx;               /* size in x-dimension           */
00066     int    ny;               /* size in y-dimension           */
00067     double startx;           /* start coordinate in x         */
00068     double starty;           /* start coordinate in y         */
00069     double endx;             /* end coordinate in x           */
00070     double endy;             /* end coordinate in y           */
00071     double stepx;            /* step size in x                */
00072     double stepy;            /* step size in y                */
00073     double min;              /* min & max of intensity        */
00074     double max;       
00075     short  data_type;        /* data type                     */
00076     union {
00077       short  *s_data;        /* pointer to first data         */
00078       long   *l_data;        /* pointer to first data         */
00079       float  *f_data;        /* pointer to first data         */
00080       double *d_data;        /* pointer to first data         */
00081     } data;
00082     unsigned long *quality;  /* pointer to quality flags      */
00083 } IMAGE2D;
00084 
00085 /*____________________________________ IMAGE 3D ______________________________*/
00086 
00087 typedef struct
00088 {
00089     char   name[lg_name+1];  /* name of data frame            */
00090     int    imno;             /* image number                  */
00091     short  file_type;        /* type of file (3D frame)       */
00092     short  data_format;      /* data format                   */
00093     int    iomode;           /* I_MODE, O_MODE, IO_MODE       */
00094     char   history[lg_hist+1];/* history                      */
00095     void   *external_info;   /* for FITS descriptors          */
00096     char   ident[lg_ident+1];/* identifier                    */
00097     char   cunit[lg_unit+1]; /* unit                          */
00098     int    nx;               /* size in x-dimension           */
00099     int    ny;               /* size in y-dimension           */
00100     int    nz;               /* size in z-dimension           */
00101     double startx;           /* start coordinate in x         */
00102     double starty;           /* start coordinate in y         */
00103     double startz;           /* start coordinate in y         */
00104     double endx;             /* end coordinate in x           */
00105     double endy;             /* end coordinate in y           */
00106     double endz;             /* end coordinate in y           */
00107     double stepx;            /* step size in x                */
00108     double stepy;            /* step size in y                */
00109     double stepz;            /* step size in y                */
00110     double min;              /* min & max of intensity        */
00111     double max;
00112     short  data_type;        /* data type                     */
00113     union {
00114       short  *s_data;        /* pointer to first data         */
00115       long   *l_data;        /* pointer to first data         */
00116       float  *f_data;        /* pointer to first data         */
00117       double *d_data;        /* pointer to first data         */
00118     } data;
00119     unsigned long *quality;  /* pointer to quality flags      */
00120 } IMAGE3D;
00121 
00122 /*____________________________________ TABLE _________________________________*/
00123 
00124 typedef struct         
00125 {
00126     char  name[lg_name+1];   /* name of table                 */
00127     int   imno;              /* table identifier              */
00128     short file_type;         /* type of file (table)          */
00129     short data_format;       /* data format                   */
00130     int   iomode;            /* I_MODE, O_MODE, IO_MODE       */
00131     char  history[lg_hist+1];/* history                       */
00132     void  *external_info;    /* used for FITS descriptors     */
00133     char  ident[lg_ident+1]; /* identifier                    */
00134     int   col;               /* number of column              */
00135     int   row;               /* selected number of row        */
00136     int   allrow;            /* total number of row           */
00137     int   select_flag;       /* selection flag TRUE=enable    */
00138                              /*                FALSE=not      */
00139     int   *sel_row;          /* line cross reference when     */
00140                              /* select_flag=TRUE              */
00141     
00142 } TABLE;
00143 
00144 /*____________________________________ Anyfile _______________________________*/
00145 
00146 typedef struct           
00147 {
00148     char  name[lg_name+1];   /* filename                      */
00149     int   imno;              /* file descriptor               */
00150     short file_type;         /* type of file (frame or table) */
00151     short data_format;       /* data format                   */
00152     int   iomode;            /* I_MODE, O_MODE, IO_MODE       */
00153     char  history[lg_hist+1];/* history                       */
00154         void  *external_info;    /* used for FITS descriptors     */
00155 
00156 } Anyfile;
00157 
00158 /*__________________________________ Descriptors _____________________________*/
00159 
00160 /* (only for FITS and TIGER formats) */
00161 
00162 typedef struct            
00163 {
00164     char   *descr_name;      /* name of descriptor            */
00165     short  data_type;        /* data type                     */
00166     int    nb_values;        /* number of values in array     */
00167     union {
00168       char   *c_data;        /* pointer to first data         */
00169       short  *s_data;        /* pointer to first data         */
00170       long   *l_data;        /* pointer to first data         */
00171       float  *f_data;        /* pointer to first data         */
00172       double *d_data;        /* pointer to first data         */
00173         } descr_value;
00174 
00175 } Descriptor;
00176 
00177 typedef struct            
00178 {
00179     int nb_descr;             /* number of user defined descriptors    */ 
00180     Descriptor *descr_list;   /* list of currently defined descriptors */
00181         
00182 } Descr_Items;
00183 
00184 #include <iofuncdecl.h>

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