Oyster_phase_matrix_TIF: Function that calculates phase matrix

Description Usage Arguments Details Value Note Author(s) Source References See Also Examples

View source: R/Oyster_phase_matrix_TIF.R

Description

Function that calculates a matrix of phase numbers for every pixel in the imported TIF file. de Winter, N. J. (2017) <doi:10.5194/gmd-2017-137>

Usage

1

Arguments

TIF

"TIF" file representing the TIF(F) image in R session

phases

Matrix containing colour and trace element data of the phases in the XRF phase map

Details

This function compares the colour data from the "TIF" object with colour codes of phases in "phases" table to assign a phase to every pixel in the TIF(F)

Value

phasemat

matrix of phases of each pixel sorted by X- and Y-coordinate of the pixel

Note

Please cite Geoscientific Model Development paper dealing with the ShellTrace model

Author(s)

Niels J. de Winter

Source

GitHub
Manuscript
Supplementary data
Author website

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.

See Also

"Oyster_av_thickness"

Examples

1
2
3
4
  ## Not run: 
    phasemat<-Oyster_phase_matrix_TIF(TIF, O1_phase)
  
## End(Not run)

shelltrace documentation built on May 2, 2019, 2:25 a.m.