This sensor from TPF collection
| Article | |
|---|---|
| Collibration | |
| Precision | |
| Ranges | |
| Renew sensors |
source("utilities_tpf.r");
sensors.t.chd_grt_perchuk_1989 <- function(Chd, Grt, ...){
Chd <- tpf.recalc_minaral("CHD",Chd);
Grt <- tpf.recalc_minaral("GRT",Grt);
X <- Chd$Mg_pfu / (Chd$Mg_pfu + Chd$Fe_p2_pfu + Chd$Fe_p3_pfu + Chd$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 <- 2150.5 / (K + 1.773) - 273;
warning(" CAN BE USED ONLY FOR 350<T(C)<700.");
return(data.frame(Name=paste0(Chd$Name,"-", Grt$Name),T_calc=T));
}
sensors.t.chd_grt_perchuk_1989.args <- function(){
ars <- list();
ars$minerals <- c("Chd", "Grt");
ars$ranges <- c();
return(ars);
}
#sensors.t.chd_grt_perchuk_1989.test <- function(){
#
#}