Next: , Previous: Header Formats, Up: Image Formats


A.3 The Contents of Headers

Image header contents are specific to the grid scheme.

A.3.1 ‘rectrect

The C structure definition of this header is found in spatquant.h. It is reproduced below:

     typedef struct
     {
       size_t ni, nj;
       long i_min, j_min;
       double x0, y0;
       double x_sz, y_sz;
     } RectRectImage;
ni
The number of rows
nj
The number of cols
i_min
j_min
the minimum i and j indices of the matrix
x0
y0
the x and y values corresponding to i = j = 0.
x_sz
y_sz
the extent of the bins in the x and y directions.

A.3.2 ‘rectcirc

The C structure definition of this header is found in spatquant.h. It is reproduced below:

     typedef struct
     {
       size_t ni, nj;
       long i_min, j_min;
       double x0, y0;
       double diameter;
       double x_sp, y_sp;
     } RectCircImage;
ni
The number of rows
nj
The number of cols
i_min
j_min
the minimum i and j indices of the matrix
x0
y0
the x and y values corresponding to i = j = 0.
diameter
the diameter of the bins
x_sp
the spacing between bins in the x direction.
y_sp
the spacing between bins in the y direction.

A.3.3 ‘hexcirc

The C structure definition of this header is found in spatquant.h. It is reproduced below:

     typedef struct
     {
       size_t ni, nj;
       long i_min, j_min;
       double x0, y0;
       double diameter, spacing;
       double x_sp, y_sp;
     } HexCircImage;
ni
The number of rows
nj
The number of cols
i_min
j_min
the minimum i and j indices of the matrix
x0
y0
the x and y values corresponding to i = j = 0.
diameter
the diameter of the bins
spacing
the distance between centers of adjacent bins
x_sp
the spacing between bins in the x direction. This is the same as the variable spacing.
y_sp
the spacing between bins in the y direction. This is just