Grt-Bt: Krogh, 1990

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

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

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

Source

source("utilities_tpf.r");

sensors.t.grt_bt_krogh_1990 <- function(Grt, Bt, P, ...){
    Bt <- tpf.recalc_minaral("BT",Bt);
    Grt <- tpf.recalc_minaral("GRT",Grt);

    Y <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    X <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    Z <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    F <- Grt$Mn_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    M <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
    N <- (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu) / Bt$Mg_pfu;
    T <- (3824 + 1341 * (Z + F) + 20.7 * P) / (log(M / N) + 2.868) - 273;
    return(data.frame(Name=paste0(Grt$Name,"-", Bt$Name),P=P,T_calc=T));
}

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

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