This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.cal_dol_patric_evans_1989 <- function(Cal, Dol, P, ...){ Cal <- tpf.recalc_minaral("CAL",Cal); X <- Cal$Mg_pfu / (Cal$Mg_pfu + Cal$Ca_pfu + Cal$Fe_p2_pfu + Cal$Fe_p3_pfu); if (P<3.001) { T <- 1 / ( - log(X) / 3800 + 0.0004704) - 273; } if (P>3.001) { if (P<8.999) { warning(" CANNOT BE USED FOR 3<P(KBAR)<9"); } } if (P>8.999) { if (P<11.001) { T <- 1 / ( - log(X) / 3800 + 0.0004704) - 273; XX <- X - (1.8 * T / 1000 - 0.03) / 100; T <- 1 / ( - log(XX) / 3800 + 0.0004704) - 273; } } if (P>11.001) { warning(" CANNOT BE USED FOR P> 11 KBAR"); } return(data.frame(Name=paste0(Cal$Name),P=P,T_calc=T)); } sensors.t.cal_dol_patric_evans_1989.args <- function(){ ars <- list(); ars$minerals <- c("Cal", "Dol"); ars$ranges <- c("P"); return(ars); } #sensors.t.cal_dol_patric_evans_1989.test <- function(){ # #}