Skip to content

Commit

Permalink
Merge pull request #33 from ed2014/Wheat_SSER_ATLAS
Browse files Browse the repository at this point in the history
Wheat sser atlas
  • Loading branch information
ed2014 authored Jan 4, 2024
2 parents a73a712 + 74e2217 commit 105a05f
Showing 1 changed file with 168 additions and 157 deletions.
325 changes: 168 additions & 157 deletions Prototypes/Wheat_NZ_SSER/WheatSSER.apsimx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,106 @@
"Name": "Block",
"ResourceName": null,
"Children": [
{
"$type": "Models.Core.Folder, Models",
"ShowInDocs": true,
"GraphsPerPage": 6,
"Name": "ManagerFolder",
"ResourceName": null,
"Children": [
{
"$type": "Models.Manager, Models",
"CodeArray": [
"using Models.Soils;",
"using Models.Core;",
"using System;",
"",
"namespace Models",
"{",
" [Serializable]",
" public class Script : Model",
" {",
" //> Links to other Apsim models",
" [Link] Clock Clock;",
" [Link] ISummary mySummary;",
"",
" //> User inputs from properties tab",
" [Separator(\"Tags used to defined simulation factors\")]",
" [Description(\"Agent number: \")]",
" public string AGENT_NO { get; set; }",
" [Description(\"Latitude: \")]",
" public string Lat { get; set; }",
" [Description(\"Longitude: \")]",
" public string Lon { get; set; }",
" [Description(\"SoilStamp: \")]",
" public string SoilStamp { get; set; }",
" [Description(\"GCM: \")]",
" public string GCM { get; set; }",
" [Description(\"RCP: \")]",
" public string RCP { get; set; }",
" [Description(\"Time slice: \")]",
" public string TS { get; set; }",
"",
" //> Internal variables",
" private string someVar;",
" ",
" [EventSubscribe(\"DoManagementCalculations\")]",
" private void OnDoManagementCalculations(object sender, EventArgs e)",
" {",
" // Sort out time slice classification",
" if ((Clock.Today.Date.Year <= 2005))",
" {",
" TS = \"Baseline\";",
" }",
" else",
" {",
" TS = \"Future\";",
" }",
" }",
" }",
"}",
""
],
"Parameters": [
{
"Key": "AGENT_NO",
"Value": "999"
},
{
"Key": "Lat",
"Value": "999"
},
{
"Key": "Lon",
"Value": "999"
},
{
"Key": "SoilStamp",
"Value": "999"
},
{
"Key": "GCM",
"Value": "GCM"
},
{
"Key": "RCP",
"Value": "RCP"
},
{
"Key": "TS",
"Value": "TS"
}
],
"Name": "FactorLabels",
"ResourceName": null,
"Children": [],
"Enabled": true,
"ReadOnly": false
}
],
"Enabled": true,
"ReadOnly": false
},
{
"$type": "Models.Report, Models",
"VariableNames": [
Expand Down Expand Up @@ -253,95 +353,6 @@
"Enabled": true,
"ReadOnly": false
},
{
"$type": "Models.Manager, Models",
"CodeArray": [
"using Models.Soils;",
"using Models.Core;",
"using System;",
"",
"namespace Models",
"{",
" [Serializable]",
" public class Script : Model",
" {",
" //> Links to other Apsim models",
" [Link] Clock Clock;",
" [Link] ISummary mySummary;",
"",
" //> User inputs from properties tab",
" [Separator(\"Tags used to defined simulation factors\")]",
" [Description(\"Agent number: \")]",
" public string AGENT_NO { get; set; }",
" [Description(\"Latitude: \")]",
" public string Lat { get; set; }",
" [Description(\"Longitude: \")]",
" public string Lon { get; set; }",
" [Description(\"SoilStamp: \")]",
" public string SoilStamp { get; set; }",
" [Description(\"GCM: \")]",
" public string GCM { get; set; }",
" [Description(\"RCP: \")]",
" public string RCP { get; set; }",
" [Description(\"Time slice: \")]",
" public string TS { get; set; }",
"",
" //> Internal variables",
" private string someVar;",
" ",
" [EventSubscribe(\"DoManagementCalculations\")]",
" private void OnDoManagementCalculations(object sender, EventArgs e)",
" {",
" // Sort out time slice classification",
" if ((Clock.Today.Date.Year <= 2005))",
" {",
" TS = \"Baseline\";",
" }",
" else",
" {",
" TS = \"Future\";",
" }",
" }",
" }",
"}",
""
],
"Parameters": [
{
"Key": "AGENT_NO",
"Value": "999"
},
{
"Key": "Lat",
"Value": "999"
},
{
"Key": "Lon",
"Value": "999"
},
{
"Key": "SoilStamp",
"Value": "999"
},
{
"Key": "GCM",
"Value": "GCM"
},
{
"Key": "RCP",
"Value": "RCP"
},
{
"Key": "TS",
"Value": "TS"
}
],
"Name": "FactorLabels",
"ResourceName": null,
"Children": [],
"Enabled": true,
"ReadOnly": false
},
{
"$type": "Models.Manager, Models",
"CodeArray": [
Expand Down Expand Up @@ -1159,74 +1170,6 @@
],
"Enabled": true,
"ReadOnly": false
},
{
"$type": "Models.Graph, Models",
"Caption": null,
"Axis": [
{
"$type": "APSIM.Shared.Graphing.Axis, APSIM.Shared",
"Title": "Yield",
"Position": 2,
"Inverted": false,
"CrossesAtZero": false,
"LabelOnOneLine": false,
"Minimum": null,
"Maximum": null,
"Interval": null
},
{
"$type": "APSIM.Shared.Graphing.Axis, APSIM.Shared",
"Title": "Clock.Today",
"Position": 1,
"Inverted": false,
"CrossesAtZero": false,
"LabelOnOneLine": false,
"Minimum": null,
"Maximum": null,
"Interval": null
}
],
"LegendPosition": 0,
"LegendOrientation": 0,
"AnnotationLocation": 0,
"DisabledSeries": [],
"LegendOutsideGraph": false,
"Name": "Graph",
"ResourceName": null,
"Children": [
{
"$type": "Models.Series, Models",
"Type": 0,
"XAxis": 1,
"YAxis": 2,
"ColourArgb": -16777216,
"FactorToVaryColours": null,
"FactorToVaryMarkers": null,
"FactorToVaryLines": null,
"Marker": 0,
"MarkerSize": 0,
"Line": 0,
"LineThickness": 0,
"TableName": "Output",
"XFieldName": "Clock.Today",
"YFieldName": "Yield",
"X2FieldName": null,
"Y2FieldName": null,
"ShowInLegend": true,
"IncludeSeriesNameInLegend": false,
"Cumulative": false,
"CumulativeX": false,
"Filter": null,
"Name": "Series",
"ResourceName": null,
"Children": [],
"Enabled": true,
"ReadOnly": false
}
],
"Enabled": true,
"ReadOnly": false
}
],
"Enabled": true,
Expand All @@ -1235,6 +1178,74 @@
],
"Enabled": true,
"ReadOnly": false
},
{
"$type": "Models.Graph, Models",
"Caption": null,
"Axis": [
{
"$type": "APSIM.Shared.Graphing.Axis, APSIM.Shared",
"Title": null,
"Position": 3,
"Inverted": false,
"CrossesAtZero": false,
"LabelOnOneLine": false,
"Minimum": null,
"Maximum": null,
"Interval": null
},
{
"$type": "APSIM.Shared.Graphing.Axis, APSIM.Shared",
"Title": null,
"Position": 0,
"Inverted": false,
"CrossesAtZero": false,
"LabelOnOneLine": false,
"Minimum": null,
"Maximum": null,
"Interval": null
}
],
"LegendPosition": 0,
"LegendOrientation": 0,
"AnnotationLocation": 0,
"DisabledSeries": [],
"LegendOutsideGraph": false,
"Name": "Graph",
"ResourceName": null,
"Children": [
{
"$type": "Models.Series, Models",
"Type": 1,
"XAxis": 3,
"YAxis": 0,
"ColourArgb": -16777216,
"FactorToVaryColours": "SimulationName",
"FactorToVaryMarkers": null,
"FactorToVaryLines": null,
"Marker": 0,
"MarkerSize": 0,
"Line": 2,
"LineThickness": 0,
"TableName": "Output",
"XFieldName": "Year",
"YFieldName": "Wheat.AboveGround.Wt",
"X2FieldName": null,
"Y2FieldName": null,
"ShowInLegend": true,
"IncludeSeriesNameInLegend": false,
"Cumulative": false,
"CumulativeX": false,
"Filter": null,
"Name": "Series",
"ResourceName": null,
"Children": [],
"Enabled": true,
"ReadOnly": false
}
],
"Enabled": true,
"ReadOnly": false
}
],
"Enabled": true,
Expand Down

0 comments on commit 105a05f

Please sign in to comment.