This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.grt_opx_brey_nickel_kogarko_1986_a <- function(Grt, Opx, P, ...){ Opx <- tpf.recalc_minaral("OPX",Opx); X <- (Opx$Al_c4_pfu + Opx$Al_c6_pfu - Opx$Cr_pfu - 2 * Opx$Ti_pfu + Opx$Na_pfu) / 2; Y <- Opx$Ca_pfu; if (P<50) { if (P>14.9999) { T <- 2126 - 68.6 * log(X) + 340.5 * log(Y); if (T>900) { if (T<1570) { if (T<900) { warning(" IS NOT TO BE USED FOR T<900 C"); } if (T>1570) { warning(" IS NOT TO BE USED FOR T>1570 C"); } } } if (P>50) { warning(" IS NOT TO BE USED FOR P>50 KBAR"); } if (P<14.9999) { warning(" IS NOT TO BE USED FOR P<15 KBAR"); }}} return(data.frame(Name=paste0(Opx$Name),P=P,T_calc=T)); } sensors.t.grt_opx_brey_nickel_kogarko_1986_a.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Opx"); ars$ranges <- c("P"); return(ars); } #sensors.t.grt_opx_brey_nickel_kogarko_1986_a.test <- function(){ # #}