====== Ol-Spl: Fujii, Scarfe, 1982 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.ol_spl_fujii_scarfe_1982 <- function(Ol, Spl, ...){
Spl <- tpf.recalc_minaral("SPL",Spl);
Ol <- tpf.recalc_minaral("OL",Ol);
X <- Spl$Fe_p3_pfu / (Spl$Fe_p3_pfu + Spl$Cr_pfu + Spl$Al_pfu);
Y <- Spl$Cr_pfu / (Spl$Fe_p3_pfu + Spl$Cr_pfu + Spl$Al_pfu);
A <- Spl$Fe_p2_pfu / Spl$Mg_pfu;
B <- (Ol$Fe_p2_pfu + Ol$Fe_p3_pfu) / Ol$Mg_pfu;
Z <- Ol$Mg_pfu / (Ol$Mg_pfu + Ol$Fe_p2_pfu + Ol$Fe_p3_pfu);
K <- log(A / B);
T <- (4 * X - (1 - 2 * Z) * 1000 + 2941 + 3644 * Y) / (1.98721 * K + 1.87 + 0.15 * Y) - 273;
return(data.frame(Name=paste0(Spl$Name,"-", Ol$Name),T_calc=T));
}
sensors.t.ol_spl_fujii_scarfe_1982.args <- function(){
ars <- list();
ars$minerals <- c("Ol", "Spl");
ars$ranges <- c();
return(ars);
}
#sensors.t.ol_spl_fujii_scarfe_1982.test <- function(){
#
#}
{{tag> tpf Spl Ol }}