This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.grt_bt_hoinkes_1986 <- function(Grt, Bt, P, ...){ Bt <- tpf.recalc_minaral("BT",Bt); Grt <- tpf.recalc_minaral("GRT",Grt); Z <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); X <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); Y <- Bt$Mg_pfu / (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu); T <- (2089 + 0.00956 * P * 1000) / (0.7821 - log(X / Y) - 2.978 * Z + 5.906 * Z^2) - 273; return(data.frame(Name=paste0(Grt$Name,"-", Bt$Name),P=P,T_calc=T)); } sensors.t.grt_bt_hoinkes_1986.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Bt"); ars$ranges <- c("P"); return(ars); } #sensors.t.grt_bt_hoinkes_1986.test <- function(){ # #}