====== Grt-Ms: Krogh, Raheim, 1978 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_ms_krogh_raheim_1978 <- function(Grt, Ms, P, ...){
Ms <- tpf.recalc_minaral("MS",Ms);
Grt <- tpf.recalc_minaral("GRT",Grt);
X <- Grt$Fe_p2_pfu / Grt$Mg_pfu;
Y <- Ms$Fe_p2_pfu / Ms$Mg_pfu;
T <- (3685 + 77.1 * P) / (log(X / Y) + 3.52) - 273;
return(data.frame(Name=paste0(Ms$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_ms_krogh_raheim_1978.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Ms");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_ms_krogh_raheim_1978.test <- function(){
#
#}
{{tag> tpf Ms Grt }}