Commit 69b9ba2f authored by patrick.lambert's avatar patrick.lambert
Browse files

update of gitignore

Showing with 53 additions and 188 deletions
+53 -188
...@@ -100,29 +100,31 @@ target ...@@ -100,29 +100,31 @@ target
.classpath .classpath
.project .project
org.* org.*
/src/main/java/environment/*.ucls
/src/main/java/environment/TestShape.java
/src/main/java/species/testAlea.java
/src/main/java/species/Essai.java
/src/main/java/miscellaneous/Essai.java /src/main/java/miscellaneous/Essai.java
>>>>>>> master
/exploration/R/.Rhistory
/exploration/R/.RData
/outcmaesaxlen.dat /outcmaesaxlen.dat
/outcmaesdisp.dat /outcmaesdisp.dat
/outcmaesfit.dat /outcmaesfit.dat
/outcmaesstddev.dat /outcmaesstddev.dat
/outcmaesxmean.dat /outcmaesxmean.dat
/outcmaesxrecentbest.dat /outcmaesxrecentbest.dat
/exploration/scriptR/BruchPrg.R.orig
.Rproj.user # R: files
/exploration/scriptR/.RData *.Rproj
/exploration/scriptR/*.Rproj *.Rhistory
/exploration/scriptR/.Rhistory *.RData
/exploration/scriptR/scriptR.Rproj *.Rproj.user
/exploration/scriptR/.Rproj.user/ *.~lock.*
/exploration/scriptR/.RData
/src/main/java/environment/*.ucls # qgis file
/src/main/java/environment/TestShape.java *.qix
/src/main/java/species/testAlea.java
/data/input/northeastamerica/shape/*.qix
/src/main/java/species/Essai.java
/exploration/GR3D_Rdescription/.RData
/exploration/GR3D_Rdescription/.Rhistory
/exploration/GR3D_Rdescription/.~lock.*
<hashtable> <hashtable>
<entry>
<!--
<java-class>fr.cemagref.simaqualife.kernel.AquaticWorld</java-class>-->
<java-class>environment.RIOBasinNetworkWithContinent</java-class>
<fr.cemagref.observation.kernel.ObservablesHandler>
<observers>
<environment.RIOBasinNetworkObserverWithContinent>
<title>North East America</title>
<threshold>1000000</threshold>
<colorScaleEnum>RedsScale</colorScaleEnum>
</environment.RIOBasinNetworkObserverWithContinent>
<environment.RIOBasinNetworkObserverPresence>
<title>Shad presence in North East America</title>
<presenceFileName>data/input/northeastamerica/nea_presence.csv</presenceFileName>
<period>obs_1900_1950</period>
</environment.RIOBasinNetworkObserverPresence>
</observers>
</fr.cemagref.observation.kernel.ObservablesHandler>
</entry>
<entry>
<java-class>species.DiadromousFishGroup</java-class>
<fr.cemagref.observation.kernel.ObservablesHandler>
<observers>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Number of colonized
basins
</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>number of basins</yAxisLabel>
<variableName>getNbColonizedBasins</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Total Abundance</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>number of fishes</yAxisLabel>
<variableName>getFishEffective</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Abundance of spawners</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>number
of fishes
</yAxisLabel>
<variableName>getSpawnerEffective</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Abundance of male spawners</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>number of fishes</yAxisLabel>
<variableName>getMaleSpawnerEffective</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Abundance of female spawners</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>number
of fishes
</yAxisLabel>
<variableName>getFemaleSpawnerEffective</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<observer.TemporalRangeSerieChart>
<title>Range distribution</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>latitude</yAxisLabel>
<variableName>getRangeDistributionWithLat</variableName>
</observer.TemporalRangeSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Mean age at first reproduction for female</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>age (year)</yAxisLabel>
<variableName>getMeanAgeOfFirstReprodutionForFemale</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Mean age at first reproduction
for male
</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>age (year)</yAxisLabel>
<variableName>getMeanAgeOfFirstReprodutionForMale</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Statistic for male spawners age</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel></yAxisLabel>
<variableName>computeMaleSpawnerForFirstTimeSummaryStatistic</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Statistic for female
spawners age
</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel></yAxisLabel>
<variableName>computeFemaleSpawnerForFirstTimeSummaryStatistic</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Mean length at first reproduction for female</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>length (cm)</yAxisLabel>
<variableName>getMeanLengthOfFirstReprodutionForFemale</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
<graphType>LINE</graphType>
<title>Mean length at first
reproduction for male
</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>length (cm)</yAxisLabel>
<variableName>getMeanLengthOfFirstReprodutionForMale</variableName>
</fr.cemagref.observation.observers.jfreechart.TemporalSerieChart>
</observers>
</fr.cemagref.observation.kernel.ObservablesHandler>
</entry>
<entry>
<java-class>environment.RiverBasin</java-class>
<fr.cemagref.observation.kernel.ObservablesHandler>
<observers>
<observer.TemporalSerieChartForBasin>
<graphType>LINE</graphType>
<title>Number of juveniles</title>
<xAxisLabel>Time
(season)
</xAxisLabel>
<yAxisLabel>number of juveniles</yAxisLabel>
<variableName>getJuvenileNumber</variableName>
</observer.TemporalSerieChartForBasin>
<observer.TemporalSerieChartForBasin>
<graphType>LINE</graphType>
<title>% Autochtone</title>
<xAxisLabel>Time (season)</xAxisLabel>
<yAxisLabel>% Autochtone</yAxisLabel>
<variableName>getLastPercentageOfAutochtone</variableName>
</observer.TemporalSerieChartForBasin>
</observers>
</fr.cemagref.observation.kernel.ObservablesHandler>
</entry>
</hashtable> </hashtable>
\ No newline at end of file
...@@ -6,22 +6,25 @@ rm(list=ls()) ...@@ -6,22 +6,25 @@ rm(list=ls())
set.seed(1) set.seed(1)
# parameters and prios=rs of parameters to be fitted # # parameters and prios=rs of parameters to be fitted
inputData = yaml.load_file("ABC_seq_2param_3stats_NewAfterSA.yaml") # inputData = yaml.load_file("ABC_seq_2param_3stats_NewAfterSA.yaml")
# load prior # # load prior
prior = list() # prior = list()
for (i in 1:length(inputData$parameters)) { # for (i in 1:length(inputData$parameters)) {
p = inputData$parameters[[i]] # p = inputData$parameters[[i]]
prior[[i]] = unlist(p$prior) # prior[[i]] = unlist(p$prior)
} # }
#
parametersNames = list() # parametersNames = list()
for (i in 1:length(inputData$parameters)) { # for (i in 1:length(inputData$parameters)) {
parametersNames = c(parametersNames, inputData$parameters[[i]]$javapath) # parametersNames = c(parametersNames, inputData$parameters[[i]]$javapath)
} # }
# parametersNames = unlist(parametersNames)
thetas = c(0.45, 10.5) parametersNames = c("processes.processesEachStep.8.tempMinRep",
"processes.processesEachStep.8.ratioS95_S50",
"processes.processesEachStep.6.pHomingAfterEquil")
thetas = c(10, 2, 0.7)
# path to outputs # path to outputs
outputDir = "simus/" outputDir = "simus/"
...@@ -33,19 +36,26 @@ timeStepDuration =1 ...@@ -33,19 +36,26 @@ timeStepDuration =1
seed = 1 seed = 1
## to have the same working diretory as GR3D
setwd("../..")
arguments = c('','-simDuration',simDuration, '-simBegin',simBegin,
arguments = c('-d','-simDuration',simDuration, '-simBegin',simBegin,
'-timeStepDuration',timeStepDuration, '-timeStepDuration',timeStepDuration,
'-RNGStatusIndex', format(seed,scientific = FALSE), '-RNGStatusIndex', format(seed,scientific = FALSE),
'-groups',"../../data/input/northeastamerica/fishRIOBasin_Sapidissima_PL.xml", '-groups',"data/input/northeastamerica/fishRIOBasin_Sapidissima_Rjava.xml",
'-env',"../../data/input/northeastamerica/RIOBNneaBasins.xml", '-env',"data/input/northeastamerica/RIOBNneaBasins_Rjava.xml",
'-observers',"../../data/input/northeastamerica/RIO_obs_empty.xml") '-observers',"data/input/northeastamerica/RIO_obs_empty.xml")
outputFile = paste0(outputDir,"output",seed) outputFile = paste0(outputDir,"output",seed)
.jinit(classpath = jarfile, force.init = TRUE) .jinit(classpath = jarfile, force.init = TRUE)
.jcall("miscellaneous.EasyRun","V","runSimulation",arguments, outputFile,.jarray(unlist(parametersNames)),.jarray(thetas)) .jcall("miscellaneous.EasyRun","V","runSimulation",arguments, outputFile,.jarray(parametersNames),.jarray(thetas))
# return a function to run the model with parameters as arguments # return a function to run the model with parameters as arguments
salrun <- function(jarfile, simDuration, simBegin, timeStepDuration = 1) { salrun <- function(jarfile, simDuration, simBegin, timeStepDuration = 1) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment