This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.grt_opx_harley_1984_a <- function(Grt, Opx, P, ...){ Opx <- tpf.recalc_minaral("OPX",Opx); Grt <- tpf.recalc_minaral("GRT",Grt); X <- Grt$Ca_pfu / (Grt$Ca_pfu + Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); Y <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu; Z <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / Opx$Mg_pfu; T <- (3740 + 1400 * X + 22.86 * P) / (1.987 * log(Y / Z) + 1.96) - 273; return(data.frame(Name=paste0(Grt$Name,"-", Opx$Name),P=P,T_calc=T)); } sensors.t.grt_opx_harley_1984_a.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Opx"); ars$ranges <- c("P"); return(ars); } #sensors.t.grt_opx_harley_1984_a.test <- function(){ # #}