This sensor from TPF collection
| Article | |
|---|---|
| Collibration | |
| Precision | |
| Ranges | |
| Renew sensors |
source("utilities_tpf.r");
sensors.t.grt_cpx_ellis_green_1979 <- function(Grt, Cpx, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Cpx <- tpf.recalc_minaral("CPX",Cpx);
X <- Grt$Fe_p2_pfu / Grt$Mg_pfu;
Y <- Cpx$Fe_p2_pfu / Cpx$Mg_pfu;
Z <- Grt$Ca_pfu / (Grt$Ca_pfu + Grt$Mg_pfu + Grt$Fe_p2_pfu);
T <- (3104 * Z + 3030 + 10.86 * P) / (log(X / Y) + 1.9034) - 273.15;
warning(" ACCURACY: +/-40 C");
return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_cpx_ellis_green_1979.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Cpx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_cpx_ellis_green_1979.test <- function(){
#
#}