Press to Close

Application Grid

Grid is a Fortran 77 program written by Knappertsbusch, which allows to calculate a bivariate frequency diagram of data points from their cartesian coordinates. The input file contains the cartesian coordinates as pairs of x and y values. Each point is in a new line.
 
The program generates a grid with cell-size of DX µm and DY elements, and counts the number of points (=variable FREQ) per grid-cell. It calls for the name of the input file and for an output file, where the results are written to.
 
This folder contains the application (Grid1_2.out for Macintosh), the source code (Grid 1_2.f) and a test file Test to illustrate the format of the input file.
 
DView Grid Directory
 
Example:
Double click on the icon for Grid1_2 and enter the name of the input file (Test). The filename may have no more than 20 characters. Then enter the name of the output file (also up to 20 characters in length).
The enter the maximum value for the X and Y values (for example 14,55), and then the dimension of the grid-cell (DX and DY, for example 1,2). The result file gives a matrix containing the frequency of points per grid-cell. In the horizonal direction, DX (=Diameter in the case of C. leptoporus) is increased by DX micrometer per column. In the vertical direction (=number of elements in the case of C. leptoporus) is increasing by DY elements per row.
 
The program is set to satisfy the dimensions of the coccoliths found during the C. leptoporus study of Knappertsbusch (2000). In that study the following settings were applied:
 
Xmin=0, Xmax=14, DeltaX=1
Ymin=0, Ymax=55, DeltaY=2
 
The dimensions of the output matrix are limited to a 60x60 matrix.
If these dimensions need to be changed, the source code must be extended accordingly and recompiled with a fortran compiler.