This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.st_grt_perchuk_1989 <- function(St, Grt, P, ...){ St <- tpf.recalc_minaral("ST",St); Grt <- tpf.recalc_minaral("GRT",Grt); X <- St$Mg_pfu / (St$Mg_pfu + St$Fe_p2_pfu + St$Fe_p3_pfu + St$Mn_pfu); Y <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu); K <- - log(Y * (1 - X) / (1 - Y) / X); T <- (2713 + 0.0091 * (P * 1000 - 6000)) / (K + 2.799) - 273; warning(" CAN BE USED ONLY FOR 350<T(C)<700."); return(data.frame(Name=paste0(St$Name,"-", Grt$Name),P=P,T_calc=T)); } sensors.t.st_grt_perchuk_1989.args <- function(){ ars <- list(); ars$minerals <- c("St", "Grt"); ars$ranges <- c("P"); return(ars); } #sensors.t.st_grt_perchuk_1989.test <- function(){ # #}