This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.p.grt_pl_qtz_ky_aranovich_podlesskii_1980 <- function(Grt, Pl, Qtz, Ky, Temp, ...){ T <- Temp; Pl <- tpf.recalc_minaral("PL",Pl); Grt <- tpf.recalc_minaral("GRT",Grt); X <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); Y <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); Z <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu) / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu); N <- Pl$Ca_pfu / (Pl$Ca_pfu + Pl$Na_pfu); TT <- T + 273; P <- 1.896 * ( - 3027 + TT * (11.87 - 1.9872 * log(N / X)) + 3200 * Y^2 - 1000 * Z^2 + 2200 * Y * Z - 48.57 - 2206.5 * (1 - N)^2) / 1000; return(data.frame(Name=paste0(Pl$Name,"-", Grt$Name),Temp=Temp,P_calc=P)); } sensors.p.grt_pl_qtz_ky_aranovich_podlesskii_1980.args <- function(){ ars <- list(); ars$minerals <- c("Grt", "Pl", "Qtz", "Ky"); ars$ranges <- c("Temp"); return(ars); } #sensors.p.grt_pl_qtz_ky_aranovich_podlesskii_1980.test <- function(){ # #}