This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.p.grt_pl_qtz_ky_ghent_1976 <- function(Grt, Pl, Qtz, Ky, Temp, ...){ T <- Temp; Pl <- tpf.recalc_minaral("PL",Pl); Grt <- tpf.recalc_minaral("GRT",Grt); Y <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); X <- Pl$Ca_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu); TT <- T + 273; A <- 3 * log(Y * exp(1000 * (1 - Y)^2 / 1.98721 / TT)); P <- (1 + (8.3969 - 3272 / TT + A - 3 * log(1.28 * X)) * TT / 0.3448) / 1000; return(data.frame(Name=paste0(Pl$Name,"-", Grt$Name),Temp=Temp,P_calc=P)); } sensors.p.grt_pl_qtz_ky_ghent_1976.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Pl", "Qtz", "Ky"); ars$ranges <- c("Temp"); return(ars); } #sensors.p.grt_pl_qtz_ky_ghent_1976.test <- function(){ # #}