====== Grt-Chl: Patric, Evans, 1989 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
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(){
#
#}
{{tag> tpf Chl Grt }}