====== Hbl-Pl: Jaques, 1982* ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.hbl_pl_jaques_1982* <- function(Hbl, Pl, ...){
Hbl <- tpf.recalc_minaral("HBL1",Hbl);
Pl <- tpf.recalc_minaral("PL",Pl);
XPL <- Pl$Ca_pfu / Pl$Na_pfu;
CA4 <- Hbl$Ca_pfu;
NA0 <- Hbl$Na_pfu;
if (CA4 + NA0>2.00) {
NA4 <- 2 - CA4;
XH <- CA4 / NA4;
K <- XPL / XH;
T <- 9752 / (7.407 - log(K)) - 273.15;
}
if (CA4 + NA0<2.00) {
NA4 <- NA0;
XH <- CA4 / NA4;
K <- XPL / XH;
T <- 9752 / (7.407 - log(K)) - 273.15;
}
return(data.frame(Name=paste0(Pl$Name,"-", Hbl$Name),T_calc=T));
}
sensors.t.hbl_pl_jaques_1982*.args <- function(){
ars <- list();
ars$minerals <- c("Hbl", "Pl");
ars$ranges <- c();
return(ars);
}
#sensors.t.hbl_pl_jaques_1982*.test <- function(){
#
#}
{{tag> tpf Pl Hbl }}