Skip to content
Snippets Groups Projects
Commit 0ea6688e authored by rhenry2's avatar rhenry2
Browse files

Merge branch 'master' of https://git.ecdf.ed.ac.uk/lul/plumv2 into master

parents c4ffabd2 93d48c43
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ PLUMv2 was developed to inform policy making about interaction between policy me
PLUM was developed by Kerstin Engström team and collaborators in 2016. It is open-source (except GAMS license) and mainly implemented in java and the post processing is usually implemented in the R software.
```{r, animation.hook='gifski', width = 2000, height = 1600, delay = 0.1, progress = TRUE, loop = FALSE, echo=FALSE, message=FALSE, warning = FALSE}
output_path<-"C:/Users/jmaire/Development/plumv2/output/Baseline_test/"
output_path<-"C:/Users/jmaire/Development/plumv2_juliette_local/output/Baseline_test/"
for (i in 2011:2012){
test<-fread((paste0(output_path,i,"/LandCoverFract.txt")))
test<-test %>%
......@@ -491,6 +491,9 @@ $$
### *2019* {#DEV20190}
* Addition of DEMAND_PRICE_IMPORT_AND_PROD_COST
# **INSTALLATION**{.tabset .tabset-fade .tabset-pills}
## INSTALLATION and RUNNING ON LAPTOP {#LAPTOP}
......@@ -644,6 +647,14 @@ Create the following files:
* lc_concat.txt
* price_concat.txt
#### **Check log file for errors**
The log file written by PLUMv2 is call log.txt. On the eddie terminal type and change **"ssp11"** with the name of the output folder created.:
```{r, eval=F}
find -O3 '/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/ssp11/' -name "*log.txt" -exec grep -i " Error" '{}' \; -print
OR
find -O3 '/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/ssp11/' -name "*log.txt" -exec grep -i " Critical" '{}' \; -print
```
#### **Plot results**
Get the concatenated results file (lc_concat.txt) and point ProcessClusterRes.R to it.
......
......@@ -1290,6 +1290,192 @@ window.buildTabsets = function(tocID) {
}
});
</script>
<style type="text/css">
.lightable-minimal {
border-collapse: separate;
border-spacing: 16px 1px;
width: 100%;
margin-bottom: 10px;
}
.lightable-minimal td {
margin-left: 5px;
margin-right: 5px;
}
.lightable-minimal th {
margin-left: 5px;
margin-right: 5px;
}
.lightable-minimal thead tr:last-child th {
border-bottom: 2px solid #00000050;
empty-cells: hide;
}
.lightable-minimal tbody tr:first-child td {
padding-top: 0.5em;
}
.lightable-minimal.lightable-hover tbody tr:hover {
background-color: #f5f5f5;
}
.lightable-minimal.lightable-striped tbody tr:nth-child(even) {
background-color: #f5f5f5;
}
.lightable-classic {
border-top: 0.16em solid #111111;
width: 100%;
margin-bottom: 10px;
margin: 10px 5px;
}
.lightable-classic caption {
color: #222222;
}
.lightable-classic td {
padding-left: 5px;
padding-right: 5px;
color: #222222;
}
.lightable-classic th {
padding-left: 5px;
padding-right: 5px;
font-weight: normal;
color: #222222;
}
.lightable-classic thead tr:last-child th {
border-bottom: 0.10em solid #111111;
}
.lightable-classic tbody tr:last-child td {
border-bottom: 0.14em solid #111111;
}
.lightable-classic.lightable-hover tbody tr:hover {
background-color: #F9EEC1;
}
.lightable-classic.lightable-striped tbody tr:nth-child(even) {
background-color: #f5f5f5;
}
.lightable-classic-2 {
border-top: 3px double #111111;
width: 100%;
margin-bottom: 10px;
}
.lightable-classic-2 caption {
color: #222222;
}
.lightable-classic-2 td {
padding-left: 5px;
padding-right: 5px;
color: #222222;
}
.lightable-classic-2 th {
padding-left: 5px;
padding-right: 5px;
font-weight: normal;
color: #222222;
}
.lightable-classic-2 tbody tr:last-child td {
border-bottom: 3px double #111111;
}
.lightable-classic-2 thead tr:last-child th {
border-bottom: 1px solid #111111;
}
.lightable-classic-2.lightable-hover tbody tr:hover {
background-color: #F9EEC1;
}
.lightable-classic-2.lightable-striped tbody tr:nth-child(even) {
background-color: #f5f5f5;
}
.lightable-material {
min-width: 100%;
white-space: nowrap;
table-layout: fixed;
font-family: Roboto, sans-serif;
border: 1px solid #EEE;
border-collapse: collapse;
margin-bottom: 10px;
}
.lightable-material th {
height: 56px;
padding-left: 16px;
padding-right: 16px;
}
.lightable-material td {
height: 52px;
padding-left: 16px;
padding-right: 16px;
border-top: 1px solid #eeeeee;
}
.lightable-material.lightable-hover tbody tr:hover {
background-color: #f5f5f5;
}
.lightable-material.lightable-striped tbody tr:nth-child(even) {
background-color: #f5f5f5;
}
.lightable-material.lightable-striped tbody td {
border: 0;
}
.lightable-material.lightable-striped thead tr:last-child th {
border-bottom: 1px solid #ddd;
}
.lightable-material-dark {
min-width: 100%;
white-space: nowrap;
table-layout: fixed;
font-family: Roboto, sans-serif;
border: 1px solid #FFFFFF12;
border-collapse: collapse;
margin-bottom: 10px;
background-color: #363640;
}
.lightable-material-dark th {
height: 56px;
padding-left: 16px;
padding-right: 16px;
color: #FFFFFF60;
}
.lightable-material-dark td {
height: 52px;
padding-left: 16px;
padding-right: 16px;
color: #FFFFFF;
border-top: 1px solid #FFFFFF12;
}
.lightable-material-dark.lightable-hover tbody tr:hover {
background-color: #FFFFFF12;
}
.lightable-material-dark.lightable-striped tbody tr:nth-child(even) {
background-color: #FFFFFF12;
}
.lightable-material-dark.lightable-striped tbody td {
border: 0;
}
.lightable-material-dark.lightable-striped thead tr:last-child th {
border-bottom: 1px solid #FFFFFF12;
}
.lightable-paper {
width: 100%;
margin-bottom: 10px;
color: #444;
}
.lightable-paper thead tr:last-child th {
color: #666;
vertical-align: bottom;
border-bottom: 1px solid #00000020;
line-height: 1.15em;
padding: 10px 5px;
}
.lightable-paper td {
vertical-align: middle;
border-bottom: 1px solid #00000010;
line-height: 1.15em;
padding: 7px 5px;
}
.lightable-paper.lightable-hover tbody tr:hover {
background-color: #F9EEC1;
}
.lightable-paper.lightable-striped tbody tr:nth-child(even) {
background-color: #00000008;
}
.lightable-paper.lightable-striped tbody td {
border: 0;
}
</style>
 
 
<style type="text/css">code{white-space: pre;}</style>
......@@ -3016,6 +3202,9 @@ where\;B(\alpha,\beta)=\frac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha)+\Gamma(
</div>
<div id="DEV20190" class="section level3">
<h3><em>2019</em></h3>
<ul>
<li>Addition of DEMAND_PRICE_IMPORT_AND_PROD_COST</li>
</ul>
</div>
</div>
</div>
......@@ -3157,11 +3346,18 @@ This script created the appropriate <strong>config.properties</strong> file with
<li>price_concat.txt</li>
</ul>
</div>
<div id="check-log-file-for-errors" class="section level4">
<h4><strong>Check log file for errors</strong></h4>
<p>The log file written by PLUMv2 is call log.txt. On the eddie terminal type and change <strong>“ssp11”</strong> with the name of the output folder created.:</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb14-1" title="1">find <span class="op">-</span>O3 <span class="st">&#39;/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/ssp11/&#39;</span> <span class="op">-</span>name <span class="st">&quot;*log.txt&quot;</span> <span class="op">-</span>exec grep <span class="op">-</span>i <span class="st">&quot; Error&quot;</span> <span class="st">&#39;{}&#39;</span> \; <span class="op">-</span>print</a>
<a class="sourceLine" id="cb14-2" title="2">OR</a>
<a class="sourceLine" id="cb14-3" title="3">find <span class="op">-</span>O3 <span class="st">&#39;/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/ssp11/&#39;</span> <span class="op">-</span>name <span class="st">&quot;*log.txt&quot;</span> <span class="op">-</span>exec grep <span class="op">-</span>i <span class="st">&quot; Critical&quot;</span> <span class="st">&#39;{}&#39;</span> \; <span class="op">-</span>print</a></code></pre></div>
</div>
<div id="plot-results" class="section level4">
<h4><strong>Plot results</strong></h4>
<p>Get the concatenated results file (lc_concat.txt) and point ProcessClusterRes.R to it.</p>
<p>To facilitate usage on the EDDIE. Add script folder to $PATH on EDDIE. In home directory find file .bash_profile. Open with the texte editor and changed the path to</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb14-1" title="1">PATH=<span class="er">$</span>PATH<span class="op">:</span><span class="er">$</span>HOME<span class="op">/</span>bin<span class="op">:</span><span class="er">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>gams<span class="op">/</span>gams24<span class="fl">.7</span>_linux_x64_<span class="dv">64</span>_sfx<span class="op">:</span><span class="er">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts</a></code></pre></div>
<div class="sourceCode" id="cb15"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb15-1" title="1">PATH=<span class="er">$</span>PATH<span class="op">:</span><span class="er">$</span>HOME<span class="op">/</span>bin<span class="op">:</span><span class="er">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>gams<span class="op">/</span>gams24<span class="fl">.7</span>_linux_x64_<span class="dv">64</span>_sfx<span class="op">:</span><span class="er">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts</a></code></pre></div>
</div>
</div>
<div id="creation-of-new-scenarios-shocks-storylines" class="section level3">
......@@ -3172,21 +3368,21 @@ This script created the appropriate <strong>config.properties</strong> file with
<li>Create a parameter distribution file. For each ensemble, need same parameters. Change parameter values according to required settings. For yield shocks include YIELD_SHOCKS_MULTIPLIER and set to 1 for same frequency of historic shocks, 2 for double the frequency etc. Set to 0 for no yield shocks. If you want to manually specify shocks then set to 0 and create a yield shock file manually in the run directories.</li>
<li>Run the ‘MonteCarloStuff.R’ R script using parameter distribution file, this generates an ensemble list. Name the ensemble list file in the 2nd argument of the call to generateScenarios</li>
</ol>
<div class="sourceCode" id="cb15"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb15-1" title="1"><span class="kw">generateScenarios</span>(nameOfParameterDistributionFile, NameofEnsembleListFile, </a>
<a class="sourceLine" id="cb15-2" title="2"> NumberOfScenariosOfEachEnsemble, NameForEnsembleRuns<span class="op">/</span>FolderNameOnCluster)</a>
<a class="sourceLine" id="cb15-3" title="3">E.G. <span class="kw">generateScenarios</span>(<span class="st">&quot;params.csv&quot;</span>, <span class="st">&quot;ensembleRuns.csv&quot;</span>, <span class="dv">5</span>, <span class="dt">ensemblePrefix=</span><span class="st">&quot;ensembleRuns/&quot;</span>)</a></code></pre></div>
<div class="sourceCode" id="cb16"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb16-1" title="1"><span class="kw">generateScenarios</span>(nameOfParameterDistributionFile, NameofEnsembleListFile, </a>
<a class="sourceLine" id="cb16-2" title="2"> NumberOfScenariosOfEachEnsemble, NameForEnsembleRuns<span class="op">/</span>FolderNameOnCluster)</a>
<a class="sourceLine" id="cb16-3" title="3">E.G. <span class="kw">generateScenarios</span>(<span class="st">&quot;params.csv&quot;</span>, <span class="st">&quot;ensembleRuns.csv&quot;</span>, <span class="dv">5</span>, <span class="dt">ensemblePrefix=</span><span class="st">&quot;ensembleRuns/&quot;</span>)</a></code></pre></div>
<ol start="2" style="list-style-type: decimal">
<li>Open the ensemble list file using Notepad++ <strong>NOT excel</strong> and go to Edit &gt; EOL conversion &gt; Unix. Save the file.</li>
<li>Add the ensemble list file to <strong>/exports/csce/eddie/geos/groups/LURG/models/PLUM/</strong> on the cluster.</li>
<li>Make a folder in <strong>/exports/csce/eddie/geos/groups/LURG/models/PLUM/output</strong> with the same name as the ‘ensemblePrefix’ e.g. here that would be ‘ensembleRuns’</li>
<li>On the cluster command line change your directory using</li>
</ol>
<div class="sourceCode" id="cb16"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb16-1" title="1">cd <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM</a></code></pre></div>
<div class="sourceCode" id="cb17"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb17-1" title="1">cd <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM</a></code></pre></div>
<ol start="6" style="list-style-type: decimal">
<li>Check the common_properties file (<strong>/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/</strong>) is pointing to the right calibration run, and the no. of timesteps.</li>
<li>On the cluster command line submit</li>
</ol>
<div class="sourceCode" id="cb17"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb17-1" title="1">qsub <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>createScenarios.sh fc_trialrun.csv –ys1 –O</a></code></pre></div>
<div class="sourceCode" id="cb18"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb18-1" title="1">qsub <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>createScenarios.sh fc_trialrun.csv –ys1 –O</a></code></pre></div>
<p><em>[note: when copy and paste, the formatting goes bad for –ys1 –O … its best ot retype the flags]</em></p>
<p>This says run the createScenarios.sh script taking the ensemble list file and the –ys flag says setting yield shocks = TRUE if you don’t include the –ys flag it won’t create a yieldShocks.csv file in the directories for plum to use. Use flag –ys1 to make all the runs use the same shocks, otherwise the default is that between ensembles the shock files will differ. The –O flag says if scenarios already exist in the output directory then overwrite them.</p>
<ul>
......@@ -3204,16 +3400,16 @@ This script created the appropriate <strong>config.properties</strong> file with
<ol start="9" style="list-style-type: decimal">
<li>On the cluster command line submit</li>
</ol>
<div class="sourceCode" id="cb18"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb18-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>scheduleScenarios.sh <span class="op">-</span>t fc_trialrun.csv –b frances</a></code></pre></div>
<div class="sourceCode" id="cb19"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb19-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>scheduleScenarios.sh <span class="op">-</span>t fc_trialrun.csv –b frances</a></code></pre></div>
<ol start="10" style="list-style-type: decimal">
<li>Check your runs are running using qstat, if they have failed check the qlogs directory in the output folder to see why</li>
<li>Concatenate the output! Run this in command line of cluster, after cd to the directory where the run outputs are(i.e. fc_trailruns/).</li>
</ol>
<div class="sourceCode" id="cb19"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb19-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>roslyns_build_area<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>concatOutputLc.sh fc_trialruns<span class="op">/</span></a></code></pre></div>
<div class="sourceCode" id="cb20"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb20-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>roslyns_build_area<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>concatOutputLc.sh fc_trialruns<span class="op">/</span></a></code></pre></div>
<p>This code gets all the output files for 2030,50, 100 including the geo-spatial land use information…good for make maps for comparisons. Run in command line of cluster:</p>
<div class="sourceCode" id="cb20"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb20-1" title="1">find <span class="op">-</span>O3 . <span class="op">-</span>name <span class="st">&quot;2030&quot;</span> <span class="op">-</span>o <span class="op">-</span>name <span class="st">&quot;2050&quot;</span> <span class="op">-</span>o <span class="op">-</span>name <span class="st">&quot;2100&quot;</span> <span class="op">|</span><span class="st"> </span>xargs tar <span class="op">-</span>czvf test.tar.gz</a></code></pre></div>
<div class="sourceCode" id="cb21"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb21-1" title="1">find <span class="op">-</span>O3 . <span class="op">-</span>name <span class="st">&quot;2030&quot;</span> <span class="op">-</span>o <span class="op">-</span>name <span class="st">&quot;2050&quot;</span> <span class="op">-</span>o <span class="op">-</span>name <span class="st">&quot;2100&quot;</span> <span class="op">|</span><span class="st"> </span>xargs tar <span class="op">-</span>czvf test.tar.gz</a></code></pre></div>
<p>For maps, might only want the median run (s1):</p>
<div class="sourceCode" id="cb21"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb21-1" title="1">find <span class="op">-</span>O3 . <span class="op">-</span>name <span class="st">&quot;2018&quot;</span> <span class="op">-</span>o <span class="op">-</span>name <span class="st">&quot;2100&quot;</span> <span class="op">|</span><span class="st"> </span>grep <span class="st">&#39;s1/&#39;</span> <span class="op">|</span><span class="st"> </span>xargs tar <span class="op">-</span>czvf test.tar.gz</a></code></pre></div>
<div class="sourceCode" id="cb22"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb22-1" title="1">find <span class="op">-</span>O3 . <span class="op">-</span>name <span class="st">&quot;2018&quot;</span> <span class="op">-</span>o <span class="op">-</span>name <span class="st">&quot;2100&quot;</span> <span class="op">|</span><span class="st"> </span>grep <span class="st">&#39;s1/&#39;</span> <span class="op">|</span><span class="st"> </span>xargs tar <span class="op">-</span>czvf test.tar.gz</a></code></pre></div>
</div>
<div id="shocks-generation" class="section level4">
<h4><strong>Shocks generation:</strong></h4>
......@@ -3513,20 +3709,20 @@ SSP5
<div id="for-running-the-storylines" class="section level4">
<h4><strong>For running the storylines</strong></h4>
<p>Calibration run:</p>
<div class="sourceCode" id="cb22"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb22-1" title="1">qsub <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>runPlum.sh <span class="op">-</span>s calib_fc <span class="op">-</span>b frances</a></code></pre></div>
<div class="sourceCode" id="cb23"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb23-1" title="1">qsub <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>runPlum.sh <span class="op">-</span>s calib_fc <span class="op">-</span>b frances</a></code></pre></div>
<p>Run this to check if fruitveg problem still there:</p>
<div class="sourceCode" id="cb23"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb23-1" title="1">qsub <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>runPlum.sh <span class="op">-</span>s fc_STP1<span class="op">/</span>BAU_noshocks<span class="op">/</span>s1 <span class="op">-</span>b frances</a></code></pre></div>
<div class="sourceCode" id="cb24"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb24-1" title="1">qsub <span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>runPlum.sh <span class="op">-</span>s fc_STP1<span class="op">/</span>BAU_noshocks<span class="op">/</span>s1 <span class="op">-</span>b frances</a></code></pre></div>
<ul>
<li>STEP 1: Edit paramsExample.csv for the scenarios required</li>
<li>STEP 2: Run the MonteCarloStuff.R on your PC to create *.csv file</li>
<li>STEP 3: Copy the *.csv file to the cluster; amend shockProbabilities.csv file and run:</li>
</ul>
<div class="sourceCode" id="cb24"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb24-1" title="1">createScenarios.sh <span class="op">*</span>.csv –s</a></code></pre></div>
<div class="sourceCode" id="cb25"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb25-1" title="1">createScenarios.sh <span class="op">*</span>.csv –s</a></code></pre></div>
<ul>
<li>STEP 4: Make additional changes to the shock.csv files within each folder of the generate output folder on the cluster.</li>
<li>STEP 5: Run the scenarios on the cluster (after change the CD to PLUM):</li>
</ul>
<div class="sourceCode" id="cb25"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb25-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>scheduleScenarios.sh <span class="op">-</span>t trendRunsExample.csv <span class="op">-</span>b frances</a></code></pre></div>
<div class="sourceCode" id="cb26"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb26-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>scheduleScenarios.sh <span class="op">-</span>t trendRunsExample.csv <span class="op">-</span>b frances</a></code></pre></div>
</div>
</div>
</div>
......@@ -3586,7 +3782,7 @@ SSP5
<ol style="list-style-type: decimal">
<li>Might need to change BASE_DIR path in debug_config.properties to:</li>
</ol>
<div class="sourceCode" id="cb26"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb26-1" title="1">BASE_DIR=C<span class="op">:</span><span class="er">/</span>Users<span class="op">/</span>jmaire<span class="op">/</span>Development<span class="op">/</span>plumv2 </a></code></pre></div>
<div class="sourceCode" id="cb27"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb27-1" title="1">BASE_DIR=C<span class="op">:</span><span class="er">/</span>Users<span class="op">/</span>jmaire<span class="op">/</span>Development<span class="op">/</span>plumv2 </a></code></pre></div>
<ol start="2" style="list-style-type: decimal">
<li>If error can’t run any thing, run only Modelmain.java to set as main class file</li>
<li>Remove error search marketplace for .csv follow <a href="https://stackoverflow.com/questions/39698357/disable-marketplace-from-eclipse">these instructions</a>: Windows&gt;Preferences&gt; add in files types&gt; *.csv&gt; add in associate editor Text editor&gt;apply</li>
......@@ -3601,7 +3797,7 @@ SSP5
<li>Currently uses Roslyn’s version of plum (roslyns_build_area)…bear in mind for the future when it might be changed to use Peter’s version (just changing the file path).</li>
<li>If need to cancel a lot of runs, use this line… with first and last job numbers:</li>
</ol>
<div class="sourceCode" id="cb27"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb27-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>roslyns_build_area<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>stopRange.sh <span class="dv">2435600</span> <span class="dv">2435609</span></a></code></pre></div>
<div class="sourceCode" id="cb28"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb28-1" title="1"><span class="op">/</span>exports<span class="op">/</span>csce<span class="op">/</span>eddie<span class="op">/</span>geos<span class="op">/</span>groups<span class="op">/</span>LURG<span class="op">/</span>models<span class="op">/</span>PLUM<span class="op">/</span>roslyns_build_area<span class="op">/</span>plumv2<span class="op">/</span>scripts<span class="op">/</span>stopRange.sh <span class="dv">2435600</span> <span class="dv">2435609</span></a></code></pre></div>
<ol start="4" style="list-style-type: decimal">
<li>Can change the ‘common_properties’ file before running the scenario creation, just remember to change back again. Also, double check the created config.properties file in case anything is amiss.</li>
<li>For code on looking at the output, look at PLUMscripts/debugging.rmd from bitbucket.</li>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment