This sensor from TPF collection
| Article | |
|---|---|
| Collibration | |
| Precision | |
| Ranges | |
| Renew sensors |
source("utilities_tpf.r");
sensors.t.grt_bt_ferry_spear_1978_a <- function(Grt, Bt, ...){
Bt <- tpf.recalc_minaral("BT",Bt);
Grt <- tpf.recalc_minaral("GRT",Grt);
X <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
Y <- Bt$Mg_pfu / (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu);
Z <- (Grt$Ca_pfu + Grt$Mn_pfu) / (Grt$Ca_pfu + Grt$Mn_pfu + Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
F <- (Bt$Al_c6_pfu + Bt$Ti_pfu) / (Bt$Al_c6_pfu + Bt$Ti_pfu + Bt$Mg_pfu + Bt$Fe_p2_pfu + Bt$Fe_p3_pfu);
if (Z<0.2) {
if (F<0.15) {
T <- - 2109 / (log(X / Y) - 0.782) - 273.15;
}
if (F>0.15) {
warning(" IS NOT TO BE USED FOR (AL6+TI)/(AL6+TI+MG+FE2+FE3) IN BT >0.15");
}
}
if (Z>0.2) {
warning(" IS NOT TO BE USED FOR (CA+MN)/(CA+MN+MG+FE2+FE3) IN GRT >0.2");
}
return(data.frame(Name=paste0(Grt$Name,"-", Bt$Name),T_calc=T));
}
sensors.t.grt_bt_ferry_spear_1978_a.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Bt");
ars$ranges <- c();
return(ars);
}
#sensors.t.grt_bt_ferry_spear_1978_a.test <- function(){
#
#}