====== Hbl-Cpx: Plusnina, 1986 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.hbl_cpx_plusnina_1986 <- function(Hbl, Cpx, ...){
Cpx <- tpf.recalc_minaral("CPX",Cpx);
Hbl <- tpf.recalc_minaral("HBL",Hbl);
Y <- Cpx$Mg_pfu / (Cpx$Mg_pfu + Cpx$Fe_p2_pfu + Cpx$Fe_p3_pfu);
X <- Hbl$Mg_pfu / (Hbl$Mg_pfu + Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu);
if (X<0.3000) {
warning(" cannot be used for MG/(MG+FE) in HBL <0.3");
}
if (X>0.7000) {
warning(" cannot be used for MG/(MG+FE) in HBL >0.7");
}
if (X>0.2999) {
if (X<0.7001) {
T <- 1000 * (Y / X - 1 - 0.052899 * (X^2 - 1) - 2.050816 * (X - 1)) / (0.402664 * (X^2 - 1) - 3.264111 * (X - 1)) - 273;
}
}
return(data.frame(Name=paste0(Hbl$Name,"-", Cpx$Name),T_calc=T));
}
sensors.t.hbl_cpx_plusnina_1986.args <- function(){
ars <- list();
ars$minerals <- c("Hbl", "Cpx");
ars$ranges <- c();
return(ars);
}
#sensors.t.hbl_cpx_plusnina_1986.test <- function(){
#
#}
{{tag> tpf Hbl Cpx }}