00001 /*********************************************************************** 00002 * 00003 * mar345_header.h 00004 * 00005 * Copyright by: Dr. Claudio Klein 00006 * X-ray Research GmbH, Hamburg 00007 * 00008 * Version: 1.5 00009 * Date: 06/09/1999 00010 * 00011 * History: 00012 * Version Date Changes 00013 * ______________________________________________________________________ 00014 * 00015 * 1.5 06/09/99 Element gap extended (8 values: gap 1-2 ) 00016 * 1.4 14/05/98 Element gap introduced 00017 * 00018 ***********************************************************************/ 00019 00020 #define N_GAPS 8 00021 00022 typedef struct { 00023 00024 int byteorder; /* Always = 1234 */ 00025 char version[8]; /* Program version */ 00026 char program[16]; /* Program name */ 00027 00028 /* Scanner specific things */ 00029 short scanner; /* Scanner serial no. */ 00030 short size; /* No. of pixels in 1 dimension */ 00031 char format; /* Image format */ 00032 char mode; /* Exposure mode */ 00033 int high; /* No. high intensity pixels */ 00034 int pixels; /* No. of pixels in image */ 00035 int adc_A; /* Offset from channel A of ADC */ 00036 int adc_B; /* Offset from channel B of ADC */ 00037 int add_A; /* ADD to channel A of ADC */ 00038 int add_B; /* ADD to channel B of ADC */ 00039 int gap[N_GAPS]; /* GAP1+2 position seen by controller */ 00040 00041 float pixel_length; /* Length of 1 pixel */ 00042 float pixel_height; /* Height of 1 pixel */ 00043 float multiplier; /* Multiplication factor */ 00044 float xcen; /* Center x of transf. image */ 00045 float ycen; /* Center y of transf. image */ 00046 float roff; /* Radial offset */ 00047 float toff; /* Tangential offset */ 00048 float gain; /* Gain of detector */ 00049 00050 /* Experimental conditions for this image */ 00051 float time; /* Exposure time in secs */ 00052 float dosebeg; /* Dose at start of expose */ 00053 float doseend; /* Dose at end of expose */ 00054 float dosemin; /* Min. dose during expose */ 00055 float dosemax; /* Max. dose during expose */ 00056 float doseavg; /* Avg. dose during expose */ 00057 float dosesig; /* Sig. dose during expose */ 00058 float wave; /* Wavelength [Ang.] */ 00059 float dist; /* Distance [mm] */ 00060 float resol; /* Max. resolution */ 00061 float phibeg; /* Starting PHI */ 00062 float phiend; /* Ending PHI */ 00063 float omebeg; /* Starting Omega */ 00064 float omeend; /* Ending Omega */ 00065 float theta; /* Two theta */ 00066 float chi; /* Chi */ 00067 int phiosc; /* Phi oscillations */ 00068 int omeosc; /* Omega oscillations */ 00069 int dosen; /* No. of X-ray readings */ 00070 00071 /* Generator settings */ 00072 char source[32]; /* Type of source */ 00073 float kV; /* Generator: kV */ 00074 float mA; /* Generator: mA */ 00075 00076 /* Monochromator */ 00077 char filter[32]; /* Type of monochromator */ 00078 float polar; /* Beam polarization factor */ 00079 float slitx; /* Slit width */ 00080 float slity; /* Slit height */ 00081 00082 /* Image statistics */ 00083 int valmin; /* Min. pixel value */ 00084 int valmax; /* Max. pixel value */ 00085 float valavg; /* Avg. pixel value */ 00086 float valsig; /* Sig. pixel value */ 00087 int histbeg; /* Start of histogram */ 00088 int histend; /* End of histogram */ 00089 int histmax; /* Max. of histogram */ 00090 00091 /* Remark */ 00092 char remark[56]; /* Remark */ 00093 00094 /* Time of production */ 00095 char date[24]; /* Creation date */ 00096 00097 } MAR345_HEADER; 00098