====== Grt-Cpx: Krogh, 1988 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_cpx_krogh_1988 <- function(Grt, Cpx, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Cpx <- tpf.recalc_minaral("CPX",Cpx);
CG <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Mg_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
KG <- Grt$Fe_p2_pfu / Grt$Mg_pfu;
KC <- Cpx$Fe_p2_pfu / Cpx$Mg_pfu;
K <- KG / KC;
T <- ( - 6173 * CG^2 + 6731 * CG + 1879 + 10 * P) / (log(K) + 1.393) - 273;
return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_cpx_krogh_1988.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Cpx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_cpx_krogh_1988.test <- function(){
#
#}
{{tag> tpf Cpx Grt }}