Grt-Ms: Hanes, Forest, 1988 <A>

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

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

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

Source

source("utilities_tpf.r");

sensors.t.grt_ms_hanes_forest_1988_a <- function(Grt, Ms, ...){
    Ms <- tpf.recalc_minaral("MS",Ms);
    Grt <- tpf.recalc_minaral("GRT",Grt);

    X <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu + Grt$Mg_pfu);
    Y <- Grt$Mn_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu + Grt$Mg_pfu);
    Z <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu + Grt$Mg_pfu);
    C <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu + Grt$Mg_pfu);
    N <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    M <- Ms$Mg_pfu / (Ms$Fe_p2_pfu + Ms$Fe_p3_pfu);
    A <- log(M / N) + 4.13;
    B <- 4790 + 2.978 * 844 * C - ((0.8 - X + Z) * (200 * Z + 2500 * X) / (Z + X) - 3000 * Y) / 1.9872;
    D <- 5.906 * 844^2 * C^2;
    T <- (B + sqrt(B^2 - 4 * A * D)) / 2 / A - 273;
    warning(" PRESSURE IS NOT TAKEN INTO ACCOUNT");
    return(data.frame(Name=paste0(Ms$Name,"-", Grt$Name),T_calc=T));
}

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

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