====== Pl-Hbl-Qtz: Blundy, Holland, 1990 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.pl_hbl_qtz_blundy_holland_1990 <- function(Pl, Hbl, Qtz, P, ...){
Pl <- tpf.recalc_minaral("PL",Pl);
Hbl <- tpf.recalc_minaral("HBL",Hbl);
X <- 13 / (Hbl$Si_pfu + Hbl$Al_c4_pfu + Hbl$Al_c6_pfu + Hbl$Ti_pfu + Hbl$Cr_pfu + Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu + Hbl$Mg_pfu + Hbl$Mn_pfu);
XX <- 15 / (Hbl$Si_pfu + Hbl$Al_c4_pfu + Hbl$Al_c6_pfu + Hbl$Ti_pfu + Hbl$Cr_pfu + Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu + Hbl$Mg_pfu + Hbl$Mn_pfu + Hbl$Ca_pfu);
S <- Hbl$Si_pfu;
A <- Pl$Na_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu);
SS <- (X + XX) / 2 * S;
if (A>0.49999) {
T <- (0.677 * P - 48.98) / ( - 0.0429 - 0.008314 * log((SS - 4) / (8 - SS) * A)) - 273;
warning(" ACCURACY +/-75 C");
}
if (A<0.49999) {
T <- (0.677 * P - 48.98 - 8.06 + 25.5 * (1 - A)^2) / ( - 0.0429 - 0.008314 * log((SS - 4) / (8 - SS) * A)) - 273;
warning(" ACCURACY +/-75 C");
}
return(data.frame(Name=paste0(Hbl$Name,"-", Pl$Name),P=P,T_calc=T));
}
sensors.t.pl_hbl_qtz_blundy_holland_1990.args <- function(){
ars <- list();
ars$minerals <- c("Pl", "Hbl", "Qtz");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.pl_hbl_qtz_blundy_holland_1990.test <- function(){
#
#}
{{tag> tpf Hbl Pl }}