====== Grt-Hbl: Graham, Powell, 1984 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_hbl_graham_powell_1984 <- function(Grt, Hbl, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Hbl <- tpf.recalc_minaral("HBL",Hbl);
X <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu);
Y <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu);
Z <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Mn);
M <- Grt$Mn_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
F <- (Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu) / (Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu + Hbl$Mg_pfu);
H <- Hbl$Mg_pfu / (Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu + Hbl$Mg_pfu);
if (M<0.1) {
TT <- (2880 + 3280 * Z) / (log(X * H / Y / F) + 2.426) - 273.15;
if (TT<850.000) {
T <- TT;
}
if (TT>850) {
warning(" CANNOT BE USED FOR T>850 (C)");
}
}
if (M>0.1) {
warning(" CANNOT BE USED FOR MN/(FE+MG+CA+MN)>0.1 IN GRT");
}
return(data.frame(Name=paste0(Hbl$Name,"-", Grt$Name),T_calc=T));
}
sensors.t.grt_hbl_graham_powell_1984.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Hbl");
ars$ranges <- c();
return(ars);
}
#sensors.t.grt_hbl_graham_powell_1984.test <- function(){
#
#}
{{tag> tpf Hbl Grt }}