This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.grt_crd_wells_1979 <- function(Grt, Crd, P, ...){ Grt <- tpf.recalc_minaral("GRT",Grt); Crd <- tpf.recalc_minaral("CRD",Crd); X <- Crd$Mg_pfu / (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu); Y <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu; T <- (33248 - 0.1768 * (P * 1000 - 1)) / (10.94 + 6 * 1.9872 * log(X * Y)) - 273.15; return(data.frame(Name=paste0(Crd$Name,"-", Grt$Name),P=P,T_calc=T)); } sensors.t.grt_crd_wells_1979.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Crd"); ars$ranges <- c("P"); return(ars); } #sensors.t.grt_crd_wells_1979.test <- function(){ # #}