====== Cal-Dol: Anovitz, Essene, 1987 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.cal_dol_anovitz_essene_1987 <- function(Cal, Dol, ...){
Cal <- tpf.recalc_minaral("CAL",Cal);
X <- (Cal$Fe_p2_pfu + Cal$Fe_p3_pfu) / (Cal$Fe_p2_pfu + Cal$Fe_p3_pfu + Cal$Mg_pfu + Cal$Ca_pfu);
Y <- Cal$Mg_pfu / (Cal$Fe_p2_pfu + Cal$Fe_p3_pfu + Cal$Mg_pfu + Cal$Ca_pfu);
K <- - 2360 * Y - 0.01345 / Y^2 + 2620 * Y^2 + 2608 * sqrt(Y) + 334;
T <- K + 1780 * X - 10610 * X^2 + 22.49 * X / Y - 26260 * Y * X + 1.333 * (X / Y)^2 + 0.32837 * 10^7 * (Y * X)^2 - 273;
return(data.frame(Name=paste0(Cal$Name),T_calc=T));
}
sensors.t.cal_dol_anovitz_essene_1987.args <- function(){
ars <- list();
ars$minerals <- c("Cal", "Dol");
ars$ranges <- c();
return(ars);
}
#sensors.t.cal_dol_anovitz_essene_1987.test <- function(){
#
#}
{{tag> tpf Cal }}