Calculates proportion of phases in each sub-increment
Calculates proportion of phases in each sub-increment
Function that takes the matrix of sub-increment positions and the matrix of phases and calculates the amount of pixels of each phase that is contained in each sub-increment based on pixelsize and phase characteristics. de Winter, N. J. (2017) doi:10.5194/gmd-2017-137
IncG: Matrix of X- and Y-coordinates of all interpolated sub-increments
phasemat: matrix of phases of each pixel sorted by X- and Y-coordinate of the pixel
pixelsize: size of pixels in the phase map in millimeter
phases: Matrix containing colour and trace element data of the phases in the XRF phase map
Details
For every sub-increment, all pixels that cover area in the sub-increment are identified based on the pixel size of the phase map and the X- and Y-positions of the sub-increments. The amount of pixels of each phase in the sub-increment is saved in a new matrix of phases per sub-increment
Returns
A matrix of the amount of pixels for each phase found in every sub-increment - phase_mat: Matrix of amounts of pixels of each phase per sub-increment
References
de Winter, N. J.: ShellTrace v1.0 ? A new approach for modelling growth and trace element uptake in marine bivalve shells: Model verification on pacific oyster shells (Crassostrea gigas), Geosci. Model Dev. Discuss., https://doi.org/10.5194/gmd-2017-137, in review, 2017.
Author(s)
Niels J. de Winter
Note
Please cite Geoscientific Model Development paper dealing with the ShellTrace model