Grt-Bt: Ferry, Spear, 1978 <B>

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

Использовать Проверить

  • заголовок
  • краткое описание
  • статья
  • ссылка
  • карточка
  • подробное описание
  • код
  • тест

Source

source("utilities_tpf.r");

sensors.t.grt_bt_ferry_spear_1978_b <- function(Grt, Bt, P, ...){
    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 <- ( - 12454 - 0.057 * P * 1000) / (3 * 1.98721 * log(X / Y) - 4.662) - 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),P=P,T_calc=T));
}

sensors.t.grt_bt_ferry_spear_1978_b.args <- function(){
    ars <- list();
    ars$minerals <- c("Grt", "Bt");
    ars$ranges <- c("P");
    return(ars);
}

#sensors.t.grt_bt_ferry_spear_1978_b.test <- function(){
#
#}
, ,