Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6377e25 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
moisbo committed Aug 20, 2024
0 parents commit a3f8c15
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 0 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
socrates-soil.net
1 change: 1 addition & 0 deletions assets/index-d8799daf.css

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions assets/index-dc7cb662.js

Large diffs are not rendered by default.

Binary file added favicon.ico
Binary file not shown.
Binary file added images/edit_help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ife_main_colour-300x59.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SOCRATES Web</title>
<script type="module" crossorigin src="./assets/index-dc7cb662.js"></script>
<link rel="stylesheet" href="./assets/index-d8799daf.css">
</head>
<body>
<div id="app"></div>

<!-- Single Page Apps for GitHub Pages -->
<!-- <script type="text/javascript" src="/spa_github.js"></script>-->
</body>
</html>
52 changes: 52 additions & 0 deletions parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"cn_rate_1": 0.84,
"cn_rate_2": 0.07,
"cn_rate_3": 0.055,
"cn_rate_4": 0.0009,
"cn_rate_5": 0.95,
"labile": 2,
"stable": 98,
"pasture_mf": 0.16,
"fallow_mf": 0.9,
"crop_mf": 0.26,
"bd": 1.3,
"dlayr": 10,
"depth30_10": 2.33,
"cn": 60,
"cnl": 40,
"porghum": 0.03,
"grz": 0.6,
"root_grz": 0.55,
"root_p": 0.5,
"root_gl": 0.4,
"root_wgt": 0.4,
"hi_0": 0.42,
"hi_1": 0.42,
"hi_2": 0.42,
"hi_3": 0.42,
"hi_4": 0.35,
"hi_5": 1,
"hi_6": 1,
"hi_7": 1,
"stored_hfc": 3,
"temp_amplitude": 30,
"rain_amplitude": 30,
"temp_rand": 20,
"precip_rand": 30,
"annpar": 75,
"heavy_retained": 40,
"light_retained": 70,
"base_retained": 88,
"nurate": 0.2,
"tam": 48.5,
"ef1": 0.01,
"ef2": 0.0035,
"n2o_n": 1.57,
"gwpn2o": 265,
"co2_c": 3.67,
"fracf": 0.1,
"fracu": 0.2,
"fracl": 0.3,
"ch4_sheep": 8,
"gwp_ch4": 28
}
65 changes: 65 additions & 0 deletions sample-data-20-year.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": "1",
"soil": {
"soil_properties": 7,
"cec": 80,
"initial_oc": 1.15
},
"simulation": {
"start_year": 1963,
"period_length": 20,
"rotation_length": 3
},
"climate": {
"climate_method_data_entry": 1,
"average_annual_rainfall": 600,
"annual_mean_temperature": 16.7,
"randomize_rain_and_temperature": 0,
"annual_rainfall": [
{
"rainfall": 1
},
{
"rainfall": 1
}
],
"month_rain_temp": [
{
"rainfall": null,
"temperature": null
},
{
"rainfall": null,
"temperature": null
}
]
},
"rotation": [
{
"year": 1,
"plant": 6,
"stubble": null,
"graze": null,
"fertiliser": 0
},
{
"year": 2,
"plant": 0,
"stubble": 0,
"graze": null,
"fertiliser": 200
},
{
"year": 3,
"plant": 5,
"stubble": null,
"graze": 1,
"fertiliser": 0
}
],
"yields": {
"yields_method_data_entry": 1,
"annual_yields": [
]
}
}
20 changes: 20 additions & 0 deletions spa_github.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script checks to see if a redirect is present in the query string,
// converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function (l) {
if (l.search[1] === '/') {
var decoded = l.search.slice(1).split('&').map(function (s) {
return s.replace(/~and~/g, '&');
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location));

0 comments on commit a3f8c15

Please sign in to comment.