====== Cpx-Ilm: Bishop, 1980 ====== === Details === This sensor from [[:about_tpf|TPF]] collection ^ Article | | ^ Collibration | | ^ Precision | | ^ Ranges | | ^ Renew sensors | | * заголовок * краткое описание * статья * ссылка * карточка * подробное описание * код * тест === Source === 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(){ # #} {{tag> tpf Cpx Ilm }}