mapMCDA issueshttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues2024-03-15T16:30:17+01:00https://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/58Raster processing: crop-scale or scale-crop?2024-03-15T16:30:17+01:00Facundo MuñozRaster processing: crop-scale or scale-crop?Check in what order mapMCDA processes rasters.
I think [1] it first scales linearly from 0 to 100 the input raster and then it crops to the target region.
Arguably, it should be the converse.
[1] After seeing the processing of the anim...Check in what order mapMCDA processes rasters.
I think [1] it first scales linearly from 0 to 100 the input raster and then it crops to the target region.
Arguably, it should be the converse.
[1] After seeing the processing of the animal-density raster in Nigeria.mapMCDA hackathonFacundo MuñozFacundo Muñozhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/40Undeclared dependency on package {fs}2024-03-15T14:39:43+01:00Facundo MuñozUndeclared dependency on package {fs}Currently using `fs::path_home()` in `server.R`.
Consider (and test) whether it can be replaced by `base::path.expand("~")` or either declare the dependency.
The difference is in Windows only. `path_home` points to `C:\Users\<user>` whil...Currently using `fs::path_home()` in `server.R`.
Consider (and test) whether it can be replaced by `base::path.expand("~")` or either declare the dependency.
The difference is in Windows only. `path_home` points to `C:\Users\<user>` while `path.expand()` points to the `Documents` folder within the former.mapMCDA hackathonSylvain VillaudySylvain Villaudyhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/39Correlation matrix of risk factors2024-03-15T14:40:16+01:00Facundo MuñozCorrelation matrix of risk factorsAutomatically compute and display a correlation matrix of risk factors.
Warn whenever two factors are highly correlated (define highly). Suggest possible actions (e.g. remove one, or compute a summary of both).Automatically compute and display a correlation matrix of risk factors.
Warn whenever two factors are highly correlated (define highly). Suggest possible actions (e.g. remove one, or compute a summary of both).mapMCDA hackathonFacundo MuñozFacundo Muñozhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/38Compute and display the Consistency Ratio of the pairwise comparison matrix.2024-03-18T16:31:01+01:00Facundo MuñozCompute and display the Consistency Ratio of the pairwise comparison matrix.While the user fills the pairwise comparison matrix, compute and display its Consistency Ratio (CR, Saaty, 1987; Drobne and Lisec, 2009) in real time.
Include some guidance text to help interpreting the CR.
Ideally, identify in the matri...While the user fills the pairwise comparison matrix, compute and display its Consistency Ratio (CR, Saaty, 1987; Drobne and Lisec, 2009) in real time.
Include some guidance text to help interpreting the CR.
Ideally, identify in the matrix which particular values are most responsible for the eventual inconsistencies of the matrix.mapMCDA hackathonDavid PleydellDavid Pleydellhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/37Test coverage2024-03-15T14:40:16+01:00Facundo MuñozTest coverage*Created by: famuvie*
Set up systematic test coverage analysis (`covr`)*Created by: famuvie*
Set up systematic test coverage analysis (`covr`)mapMCDA hackathonhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/25Save a log/report with inputs and parameters used in the analysis2024-03-15T14:40:15+01:00Facundo MuñozSave a log/report with inputs and parameters used in the analysis*Created by: famuvie*
It would be useful to display in console the R code generated in RShiny interface and/or to produce a log report, ie. with layers considered, link used for standardisation, weights computed for each risk factors, c...*Created by: famuvie*
It would be useful to display in console the R code generated in RShiny interface and/or to produce a log report, ie. with layers considered, link used for standardisation, weights computed for each risk factors, consistency ratio, destination references to produced files (for archiving or further modifications)
Feature requested by @vporphyre in #19mapMCDA hackathonhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/21Alternative risk-scaling functions2024-03-18T14:52:59+01:00Facundo MuñozAlternative risk-scaling functions*Created by: famuvie*
Currently, the only scaling functions are linear, with the option to be reversed.
Please add radio buttons to choose various links for standardization (see code at the end of this post, as a suggestion only)
Feat...*Created by: famuvie*
Currently, the only scaling functions are linear, with the option to be reversed.
Please add radio buttons to choose various links for standardization (see code at the end of this post, as a suggestion only)
Feature requested by @vporphyre in #19
```r
# function link_fun (à integrer dans risk_layer à la place de lin_fun) BETA VERSION (V.Porphyre) ####
# arg invert à associer au bouton 'Inverser'
# x1 and x2 Threshold values
lin_fun <- function(r, type="linear", invert=FALSE, x1=0, x2=0, source=scale_source, target=scale_target){
if (type=="linear"){
slope <- diff(target)/diff(source)
ans <- target[1] + slope * (r - source[1])
}
if (type=="crisp"){ tmp <- r
if (invert==FALSE) {
tmp[tmp<x1] <- target[1]
tmp[tmp>=x1] <- target[2]
}
if (invert==TRUE){
tmp[tmp<x1] <- target[2]
tmp[tmp>=x1] <- target[1]
}
ans <- tmp
}
if (type=="double"){ tmp <- r
if(invert==FALSE){
tmp[tmp<x1] <- target[1]
tmp[tmp>=x1 & tmp<x2] <- target[2]
tmp[tmp>=x2] <- target[1]}
if(invert==TRUE){
tmp[tmp<x1] <- target[2]
tmp[tmp>=x1 & tmp<x2] <- target[1]
tmp[tmp>=x2] <- target[2]
}
ans <- tmp
}
# if (type=="fuzzy"){} # to be developped
# if (type=="sigmoid"){
# #ans <- target[2]*(1/(1 + ((1/target[1])-1)*exp(-x1*r)))
# } # WRONG
return(ans)
}
```mapMCDA hackathonhttps://forgemia.inra.fr/umr-astre/mapMCDA/-/issues/20Add button to reset file list2024-03-19T11:33:31+01:00Facundo MuñozAdd button to reset file list*Created by: famuvie*
Feature request by @vporphyre in #19*Created by: famuvie*
Feature request by @vporphyre in #19mapMCDA hackathon