This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.bt_ms_hoisch_1989 <- function(Bt, Ms, P, usePFU = FALSE, ...){ if(!usePFU) { Bt <- tpf.recalc_minaral("BT",Bt); Ms <- tpf.recalc_minaral("MS",Ms); } MB <- Bt$Mg_pfu / 3; AB <- Bt$Al_c6_pfu / 3; MM <- Ms$Mg_pfu / 2; AM <- Ms$Al_c6_pfu / 2; K <- 27 * MM / AM / (MB / AB); T <- (500.11 + 0.014789 * P * 1000 - 878.745 * (MB - AB) - 4532.67 * MM * (MM - 2)) / (1 + 0.0237527 * 8.3144 * log(K)) - 273; return(data.frame(Name=paste0(Ms$Name,"-", Bt$Name),P=P,T_calc=T)); } sensors.t.bt_ms_hoisch_1989.args <- function(){ ars <- list(); ars$minerals <- c("Bt", "Ms"); ars$ranges <- c("P"); return(ars); } #sensors.t.bt_ms_hoisch_1989.test <- function(){ # #}