====== Grt-Crd: Bhattacharya, 1988 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_crd_bhattacharya_1988 <- function(Grt, Crd, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Crd <- tpf.recalc_minaral("CRD",Crd);
X <- Crd$Mg_pfu / (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu + Crd$Mg_pfu);
Y <- (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu) / (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu + Crd$Mg_pfu);
A <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
B <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
C <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
D <- Grt$Mn_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
K <- log(Y / X * A / B);
T <- (1814 + 0.0152 * P * 1000 + 1122 * (X - Y) - 1258 * (A - B) + 1510 * (C + D)) / (1.028 - K) - 273;
warning(" ACCURACY +/-65 C");
return(data.frame(Name=paste0(Crd$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_crd_bhattacharya_1988.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Crd");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_crd_bhattacharya_1988.test <- function(){
#
#}
{{tag> tpf Crd Grt }}