This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.p.grt_pl_qtz_sil_aranovich_1983 <- function(Grt, Pl, Qtz, Sil, 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); N <- Pl$Ca_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu); TT <- T + 273; A <- log(N) + 2 * log(1 + N) - log(X); B <- (5704 - 1.242 * TT) * Y * (1 - X) + (2404 + 0.258 * TT) * X * (2 - X); P <- (8867 - 36.818 * TT + 5.961 * TT * A + 3 * (1 - N)^2 * (2050 + 9392 * N) - 3 * B) / ( - 1.230 - 4.567 * (0.2 - X)^2) / 1000; return(data.frame(Name=paste0(Pl$Name,"-", Grt$Name),Temp=Temp,P_calc=P)); } sensors.p.grt_pl_qtz_sil_aranovich_1983.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Pl", "Qtz", "Sil"); ars$ranges <- c("Temp"); return(ars); } #sensors.p.grt_pl_qtz_sil_aranovich_1983.test <- function(){ # #}