====== Grt-Pl-Qtz-And: Reymer, 1984 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.p.grt_pl_qtz_and_reymer_1984 <- function(Grt, Pl, Qtz, And, Temp, ...){
T <- Temp;
Pl <- tpf.recalc_minaral("PL",Pl);
Grt <- tpf.recalc_minaral("GRT",Grt);
X <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
Y <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
Z <- (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);
N <- Pl$Ca_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu);
TT <- T + 273;
AAN <- N * 2;
AGR <- X * exp((3300 - 1.5 * TT) * (Y^2 + Y * Z) / TT / 1.9872);
C <- - ( - 1.3 + 1.087 * X);
RTLNK <- 3 * 1.9872 * TT * log(AAN / AGR);
P <- (10330 - 31.878 * TT + RTLNK) / ( - C) / 1000;
return(data.frame(Name=paste0(Pl$Name,"-", Grt$Name),Temp=Temp,P_calc=P));
}
sensors.p.grt_pl_qtz_and_reymer_1984.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Pl", "Qtz", "And");
ars$ranges <- c("Temp");
return(ars);
}
#sensors.p.grt_pl_qtz_and_reymer_1984.test <- function(){
#
#}
{{tag> tpf Pl Grt }}