This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.grt_cpx_fonarev_1994_a <- function(Grt, Cpx, P, ...){ Grt <- tpf.recalc_minaral("GRT",Grt); Cpx <- tpf.recalc_minaral("CPX",Cpx); X <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu; Y <- (Cpx$Fe_p2_pfu + Cpx$Fe_p3_pfu) / Cpx$Mg_pfu; Z <- Grt$Ca_pfu / (Grt$Ca_pfu + Grt$Mg_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); M <- Grt$MnO_wtp; if (M<5.0) { T <- (2790 + 10 * P + 3140 * Z) / (1.735 + log(X / Y)) - 273.15; } if (M>5.0) { warning(" CANNOT BE USED FOR MNO IN GRT >5 WT."); } return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T)); } sensors.t.grt_cpx_fonarev_1994_a.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Cpx"); ars$ranges <- c("P"); return(ars); } #sensors.t.grt_cpx_fonarev_1994_a.test <- function(){ # #}