This sensor from TPF collection
| Article | |
|---|---|
| Collibration | |
| Precision | |
| Ranges | |
| Renew sensors |
source("utilities_tpf.r");
sensors.t.grt_chl_patric_evans_1989 <- function(Grt, Chl, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Chl <- tpf.recalc_minaral("CHL",Chl);
G <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
GR <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
C <- Chl$Mg_pfu / (Chl$Fe_p2_pfu + Chl$Fe_p3_pfu);
T <- (55841 + 0.212 * P * 1000 + 49500 * GR) / (10.76 - 15 * 1.9872 * log(G / C) + 22.5 * GR) - 273;
return(data.frame(Name=paste0(Chl$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_chl_patric_evans_1989.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Chl");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_chl_patric_evans_1989.test <- function(){
#
#}