====== Grt-Bt: Pigage, Greenwood, 1982 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_bt_pigage_greenwood_1982 <- function(Grt, Bt, P, ...){
Bt <- tpf.recalc_minaral("BT",Bt);
Grt <- tpf.recalc_minaral("GRT",Grt);
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);
N <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
M <- Bt$Mg_pfu / (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu);
T <- ((1586 * Z + 1308 * F + 2089 + 0.00956 * P * 1000) / (0.78198 - log(N / M))) - 273;
return(data.frame(Name=paste0(Grt$Name,"-", Bt$Name),P=P,T_calc=T));
}
sensors.t.grt_bt_pigage_greenwood_1982.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Bt");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_bt_pigage_greenwood_1982.test <- function(){
#
#}
{{tag> tpf Grt Bt }}