====== Grt-Bt: Ganguly, Saxena, 1984 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_bt_ganguly_saxena_1984 <- function(Grt, Bt, P, ...){
Bt <- tpf.recalc_minaral("BT",Bt);
Grt <- tpf.recalc_minaral("GRT",Grt);
Y <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
X <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
Z <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
F <- Grt$Mn_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
M <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
N <- (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu) / Bt$Mg_pfu;
K <- (2500 * Y / (X + Y) + 200 * X / (Y + X)) * (Y - X) + 3000 * (Z + F);
T <- (1175 + 9.45 * P + 1 / 1.987 * K) / (log(M / N) + 0.782) - 273;
return(data.frame(Name=paste0(Grt$Name,"-", Bt$Name),P=P,T_calc=T));
}
sensors.t.grt_bt_ganguly_saxena_1984.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Bt");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_bt_ganguly_saxena_1984.test <- function(){
#
#}
{{tag> tpf Grt Bt }}