This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.kfs_pl_powell_powell_1977 <- function(Kfs, Pl, P, ...){ Pl <- tpf.recalc_minaral("PL",Pl); Kfs <- tpf.recalc_minaral("KFS",Kfs); X <- Kfs$K_pfu / (Kfs$K_pfufs$Ca_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfu); Y <- Kfs$K_pfufs$Na_pfu / (Kfs$K_pfufs$Ca_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfu); Z <- Pl$Na_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu); T <- (( - X^2 * (6330 + 0.093 * P * 1000 + 2 * Y * (1340 + 0.019 * P * 1000))) / (1.9872 * log(Y / Z) + X^2 * (1.54 * Y - 4.63))) - 273; return(data.frame(Name=paste0(Pl$Name,"-", Kfs$Name),P=P,T_calc=T)); } sensors.t.kfs_pl_powell_powell_1977.args <- function(){ ars <- list(); ars$minerals <- c("Kfs", "Pl"); ars$ranges <- c("P"); return(ars); } #sensors.t.kfs_pl_powell_powell_1977.test <- function(){ # #}