From a7fdbe62639e19bca268cf8181706b54e00977d3 Mon Sep 17 00:00:00 2001 From: Moises Sacal Date: Tue, 21 Nov 2023 11:31:30 +1100 Subject: [PATCH] fixed help, parameters, rotation and some styles --- package.json | 2 +- public/parameters.json | 51 ++++ public/sample-data-20-year.json | 106 +------- src/components/About.vue | 73 +++--- src/components/Contact.vue | 44 ++-- src/components/Help.vue | 360 +++++++++++++------------- src/components/Input.vue | 112 +++++--- src/components/layouts/BaseHeader.vue | 8 +- src/defaults.js | 54 +--- src/model.service.js | 20 +- src/store.js | 10 +- 11 files changed, 396 insertions(+), 444 deletions(-) create mode 100644 public/parameters.json diff --git a/package.json b/package.json index 1189d04..f581b94 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "socrates-web", "private": true, - "version": "0.0.28", + "version": "0.0.29", "type": "module", "homepage": "https://soil-and-land.github.io/socrates-web/", "scripts": { diff --git a/public/parameters.json b/public/parameters.json new file mode 100644 index 0000000..265c265 --- /dev/null +++ b/public/parameters.json @@ -0,0 +1,51 @@ +{ + "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, + "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": 296, + "co2_c": 3.67, + "fracf": 0.1, + "fracu": 0.2, + "fracl": 0.3, + "ch4_sheep": 8, + "gwp_ch4": 34 +} diff --git a/public/sample-data-20-year.json b/public/sample-data-20-year.json index 8d81334..bd6c2e1 100644 --- a/public/sample-data-20-year.json +++ b/public/sample-data-20-year.json @@ -2,7 +2,7 @@ "soil": { "soil_properties": 7, "cec": 80, - "initial_oc": 1.2 + "initial_oc": 1.15 }, "simulation": { "start_year": 1963, @@ -45,7 +45,7 @@ "year": 2, "plant": 0, "stubble": 0, - "graze": null, + "graze": 0, "fertiliser": 200 }, { @@ -57,108 +57,8 @@ } ], "yields": { - "yields_method_data_entry": 0, + "yields_method_data_entry": 1, "annual_yields": [ - { - "year": 1963, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1964, - "rotation": "Wheat", - "yield": 3311 - }, - { - "year": 1965, - "rotation": "Legume Pasture", - "yield": 3638 - }, - { - "year": 1966, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1967, - "rotation": "Wheat", - "yield": 1195 - }, - { - "year": 1968, - "rotation": "Legume Pasture", - "yield": 7357 - }, - { - "year": 1969, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1970, - "rotation": "Wheat", - "yield": 2724 - }, - { - "year": 1971, - "rotation": "Legume Pasture", - "yield": 3034 - }, - { - "year": 1972, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1973, - "rotation": "Wheat", - "yield": 1682 - }, - { - "year": 1974, - "rotation": "Legume Pasture", - "yield": 5208 - }, - { - "year": 1975, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1976, - "rotation": "Wheat", - "yield": 2912 - }, - { - "year": 1977, - "rotation": "Legume Pasture", - "yield": 2034 - }, - { - "year": 1978, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1979, - "rotation": "Wheat", - "yield": 2238 - }, - { - "year": 1980, - "rotation": "Legume Pasture", - "yield": 1273 - }, - { - "year": 1981, - "rotation": "Fallow", - "yield": 0 - }, - { - "year": 1982, - "rotation": "Wheat", - "yield": 1768 - } ] } } diff --git a/src/components/About.vue b/src/components/About.vue index c90c48e..25dacc6 100644 --- a/src/components/About.vue +++ b/src/components/About.vue @@ -3,34 +3,49 @@ diff --git a/src/components/Contact.vue b/src/components/Contact.vue index 9eba67e..c1e8543 100644 --- a/src/components/Contact.vue +++ b/src/components/Contact.vue @@ -3,26 +3,32 @@