nb_header.h

Go to the documentation of this file.
00001 /***********************************************************************
00002  *
00003  * nb_header.h
00004  *
00005  * Copyright by:        Dr. Claudio Klein
00006  *                      X-ray Research GmbH, Hamburg
00007  *
00008  * Version:     1.0
00009  * Date:        05/07/1996
00010  *
00011  ***********************************************************************/
00012 
00013 #define MAX_NBMODE      4
00014 
00015 typedef struct {
00016 
00017         int     byteorder;              /* Always 1234 */
00018 
00019         short   scanner;                /* Scanner serial no. */
00020         short   mode;                   /* No. of scan modes  */
00021         short   size  [MAX_NBMODE];     /* No. of pixels in 1 dimension */
00022         short   x     [MAX_NBMODE];     /* X-coordinate of 1. pixel */
00023         short   y     [MAX_NBMODE];     /* Y-coordinate of 1. pixel */
00024         short   skip  [MAX_NBMODE];     /* offset of scan           */
00025         short   roff  [MAX_NBMODE];     /* offset of scan           */
00026         int     fpos  [MAX_NBMODE];     /* File position at 1. pixel */
00027         int     pixels[MAX_NBMODE];     /* Current pixel in mode */
00028 
00029         int     subpixels   ;           /* No. of subpixels/pixel */
00030         int     tot_pixels  ;           /* No. of pixels total */
00031         int     nbs         ;           /* No. of neighbours total */
00032         float   pixel_length;           /* Length of 1 pixel */
00033         float   pixel_height;           /* Height of 1 pixel */
00034 
00035         float   scale;                  /* Contrib. scale factor */
00036         float   phioff;                 /* PHI offset                */
00037         float   cutoff;                 /* NB  offset                */
00038         float   gain  ;                 /* Gain of detector          */
00039 
00040         /* Program of production */
00041         char    program[16];            /* Program       */
00042         char    version[8];             /* Program version */
00043 
00044         /* Time of production */
00045         char    date[24];               /* Creation date */
00046 
00047 } MARNB_HEADER;
00048