This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.kfs_pl_haselton_1983 <- function(Kfs, Pl, P, ...){ Pl <- tpf.recalc_minaral("PL",Pl); Kfs <- tpf.recalc_minaral("KFS",Kfs); X <- Pl$K_pfu / (Pl$K_pfu + Pl$Na_pfu + Pl$Ca_pfu); Y <- Pl$Na_pfu / (Pl$K_pfu + Pl$Na_pfu + Pl$Ca_pfu); Z <- Pl$Ca_pfu / (Pl$K_pfu + Pl$Na_pfu + Pl$Ca_pfu); A <- Kfs$K_pfu / (Kfs$K_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfufs$Ca_pfu); B <- Kfs$K_pfufs$Na_pfu / (Kfs$K_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfufs$Ca_pfu); C <- Kfs$K_pfufs$Ca_pfu / (Kfs$K_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfufs$Ca_pfu); K <- log(Y^2 * (2 - Y) / B); T <- (A^2 * (18810 + 17030 * B + 0.364 * P * 1000) - Z^2 * (28230 - 39520 * Y)) / (10.3 * A^2 + 8.3143 * K) - 273; return(data.frame(Name=paste0(Pl$Name,"-", Kfs$Name),P=P,T_calc=T)); } sensors.t.kfs_pl_haselton_1983.args <- function(){ ars <- list(); ars$minerals <- c("Kfs", "Pl"); ars$ranges <- c("P"); return(ars); } #sensors.t.kfs_pl_haselton_1983.test <- function(){ # #}