Grt-Spl: Aranovich, Kosyakova, 1980

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

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

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

Source

source("utilities_tpf.r");

sensors.t.grt_spl_aranovich_kosyakova_1980 <- function(Grt, Spl, ...){
    Spl <- tpf.recalc_minaral("SPL",Spl);
    Grt <- tpf.recalc_minaral("GRT",Grt);

    X <- Grt$Al_pfu / (Grt$Al_pfu + Grt$Cr_pfu);
    Y <- Grt$Cr_pfu / (Grt$Al_pfu + Grt$Cr_pfu);
    Z <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Ca_pfu + Grt$Na_pfu + Grt$K_pfu);
    M <- Grt$Fe_p2_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Ca_pfu + Grt$Na_pfu + Grt$K_pfu);
    N <- Spl$Al_pfu / (Spl$Al_pfu + Spl$Fe_p3_pfu + Spl$Cr_pfu);
    K <- Spl$Cr_pfu / (Spl$Al_pfu + Spl$Fe_p3_pfu + Spl$Cr_pfu);
    F <- Spl$Fe_p2_pfu / (Spl$Mg_pfu + Spl$Fe_p2_pfu);
    L <- Spl$Mg_pfu / (Spl$Mg_pfu + Spl$Fe_p2_pfu);
    if (Y>0.05) {
    T <- (1895.9 + 29229 * (Z + M) + 4890 * F) / (0.647 + 11.88 * (Z + M) +        0.5 * F - 2 * 1.987 * log(Y * N / X / K)) - 273.15;
    }
    if (Y<0.05) {
    warning(" IS NOT TO BE USED FOR CR/(AL+CR) IN GRT < 0.05");
    }
    return(data.frame(Name=paste0(Spl$Name,"-", Grt$Name),T_calc=T));
}

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

#sensors.t.grt_spl_aranovich_kosyakova_1980.test <- function(){
#
#}
, ,
  • sensors/t/grt_spl_aranovich_kosyakova_1980.txt
  • Последние изменения: 2018/11/12 15:08
  • (внешнее изменение)