====== Opx-Spl: Mercier, 1980 ====== === Details === This sensor from [[:about_tpf|TPF]] collection ^ Article | | ^ Collibration | | ^ Precision | | ^ Ranges | | ^ Renew sensors | | * заголовок * краткое описание * статья * ссылка * карточка * подробное описание * код * тест === Source === source("utilities_tpf.r"); sensors.p.opx_spl_mercier_1980_b <- function(Opx, Spl, ...){ Opx <- tpf.recalc_minaral("OPX",Opx); A <- (Opx$Al_c4_pfu + Opx$Al_c6_pfu - Opx$Na_pfu) / 2; W <- Opx$Ca_pfu / (Opx$Ca_pfu + Opx$Mg_pfu + Opx$Mn_pfu + Opx$Fe_p2_pfu + Opx$Fe_p2_pfu); FCR <- Opx$Cr_pfu / (Opx$Al_c4_pfu + Opx$Al_c6_pfu + Opx$Cr_pfu - Opx$Na_pfu); XKW <- 6 * W / (1 - 2 * W); XKA <- A / (1 - A) / ((1 - 2.87 * FCR)^2); D <- log(XKA) * log(XKW) - 8.6751 * log(XKW) + 2.2595 * log(XKA) + 24.568; P <- (351.32 * log(XKW) - 706.14 * log(XKA) + 299.13) / D; return(data.frame(Name=paste0(Opx$Name),P_calc=P)); } sensors.p.opx_spl_mercier_1980_b.args <- function(){ ars <- list(); ars$minerals <- c("Opx", "Spl"); ars$ranges <- c(); return(ars); } #sensors.p.opx_spl_mercier_1980_b.test <- function(){ # #} {{tag> tpf Opx }}