This sensor from TPF collection
| Article | |
|---|---|
| Collibration | |
| Precision | |
| Ranges | |
| Renew sensors |
source("utilities_tpf.r");
sensors.t.cpx_ilm_bishop_1980 <- function(Cpx, Ilm, P, ...){
Ilm <- tpf.recalc_minaral("ILM",Ilm);
Cpx <- tpf.recalc_minaral("CPX",Cpx);
F <- Cpx$Mg_pfu / (Cpx$Mg_pfu + Cpx$Fe_p2_pfu);
X <- Ilm$Fe_p2_pfu / (Ilm$Fe_p2_pfu + Ilm$Mg_pfu);
Y <- Cpx$Mg_pfu / Cpx$Fe_p2_pfu;
Z <- Ilm$Mg_pfu / Ilm$Fe_p2_pfu;
T <- (748 + 2745 * F + 817 * (2 * X - 1) + 0.0124 * 1000 * P) / log(Y / Z) - 273;
return(data.frame(Name=paste0(Cpx$Name,"-", Ilm$Name),P=P,T_calc=T));
}
sensors.t.cpx_ilm_bishop_1980.args <- function(){
ars <- list();
ars$minerals <- c("Cpx", "Ilm");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.cpx_ilm_bishop_1980.test <- function(){
#
#}