-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3250 from hut104/SoilNutrientIncrementalMerge
First batch of files to merge for Soil Nutrient
- Loading branch information
Showing
6 changed files
with
281 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16856,3 +16856,102 @@ @article{rubilar2018advances | |
year={2018}, | ||
publisher={Springer} | ||
} | ||
|
||
@article{Young2009_HudsonCarbon, | ||
Author = {Young, R. R. and Wilson, B. and Harden, S. and Bernardi, A.}, | ||
Title = {{Accumulation of soil carbon under zero tillage cropping and perennial | ||
vegetation on the Liverpool Plains, eastern Australia}}, | ||
Journal = {{AUSTRALIAN JOURNAL OF SOIL RESEARCH}}, | ||
Year = {{2009}}, | ||
Volume = {{47}}, | ||
Number = {{3}}, | ||
Pages = {{273-285}}, | ||
Publisher = {{CSIRO PUBLISHING}}, | ||
Address = {{150 OXFORD ST, PO BOX 1139, COLLINGWOOD, VICTORIA 3066, AUSTRALIA}}, | ||
Type = {{Article}}, | ||
Language = {{English}}, | ||
Affiliation = {{Young, RR (Reprint Author), Tamworth Agr Inst, NSW Dept Primary Ind, 4 Marsden Pk Rd, Calala, NSW 2340, Australia. | ||
Young, R. R.; Harden, S.; Bernardi, A., Tamworth Agr Inst, NSW Dept Primary Ind, Calala, NSW 2340, Australia. | ||
Wilson, B., Univ New England, NSW Dept Environm \& Climate Change, Armidale, NSW 2351, Australia. | ||
Wilson, B., Univ New England, Sch Environm \& Rural Sci, Armidale, NSW 2351, Australia.}}, | ||
DOI = {{10.1071/SR08104}}, | ||
ISSN = {{0004-9573}}, | ||
Keywords-Plus = {{NEW-SOUTH-WALES; ORGANIC-CARBON; NO-TILL; CONSERVATION TILLAGE; | ||
SUBTROPICAL ACRISOL; STUBBLE MANAGEMENT; SEQUESTRATION; NITROGEN; | ||
SYSTEMS; MATTER}}, | ||
Research-Areas = {{Agriculture}}, | ||
Web-of-Science-Categories = {{Soil Science}}, | ||
Author-Email = {{[email protected]}}, | ||
ResearcherID-Numbers = {{Wilson, Brian/G-4996-2011 | ||
Management, Ecosystem/C-2259-2011 | ||
}}, | ||
Journal-ISO = {{Aust. J. Soil Res.}}, | ||
} | ||
|
||
@article{Rolston1984, | ||
author = {Rolston, D.E.; Rao, P.S.C.; Davidson, J.M.; Jessup, R.E.}, | ||
title = {Simulation of denitrification losses of Nitrate fertiliser applied to uncropped, cropped, and manure-amended field plots}, | ||
journal = {Soil Science}, | ||
volume = {137}, | ||
number = {270-278}, | ||
year = {1984}, | ||
type = {Journal Article} | ||
} | ||
@article{Reddy1980, | ||
author = {Reddy, K.R.; Khaleel, R.; Overcash, M.R.}, | ||
title = {Carbon transformations in land areas receiving organic wastes in relation to nonpoint source pollution: A conceptual model}, | ||
journal = {Journal of Environmental Quality}, | ||
volume = {9}, | ||
number = {434-442}, | ||
year = {1980}, | ||
type = {Journal Article} | ||
} | ||
|
||
@article{Schultz1995, | ||
author = {Schultz, J.E.}, | ||
title = {Crop production in a rotation trial at Tarlee, South Australia}, | ||
journal = {Australian Journal of Experimental Agriculture}, | ||
volume = {35}, | ||
number = {865-876}, | ||
year = {1995}, | ||
type = {Journal Article} | ||
} | ||
|
||
@article{Skjemstad2004, | ||
author = {Skjemstad, J.O., Spouncer, L.R., Cowie, B., Swift, R.S.}, | ||
title = {Calibration of the Rothamsted organic carbon turnover model (RothC ver.26.3), using measurable soil organic carbon pools}, | ||
journal = {Australian Journal of Soil Research}, | ||
volume = {42}, | ||
number = {79-88}, | ||
year = {2004}, | ||
type = {Journal Article} | ||
} | ||
|
||
@article{PARTON1998, | ||
title = "DAYCENT and its land surface submodel: description and testing", | ||
journal = "Global and Planetary Change", | ||
volume = "19", | ||
number = "1", | ||
pages = "35 - 48", | ||
year = "1998", | ||
issn = "0921-8181", | ||
doi = "https://doi.org/10.1016/S0921-8181(98)00040-X", | ||
url = "http://www.sciencedirect.com/science/article/pii/S092181819800040X", | ||
author = "William J. Parton and Melannie Hartman and Dennis Ojima and David Schimel", | ||
keywords = "soil water, ecological models, soil temperature, latent heat flux, DAYCENT, water flow, trace gas flux" | ||
} | ||
|
||
@article{THORBURN2010, | ||
title = "Using the APSIM model to estimate nitrous oxide emissions from diverse Australian sugarcane production systems", | ||
journal = "Agriculture, Ecosystems & Environment", | ||
volume = "136", | ||
number = "3", | ||
pages = "343 - 350", | ||
year = "2010", | ||
note = "Estimation of nitrous oxide emission from ecosystems and its mitigation technologies", | ||
issn = "0167-8809", | ||
doi = "https://doi.org/10.1016/j.agee.2009.12.014", | ||
url = "http://www.sciencedirect.com/science/article/pii/S0167880909003740", | ||
author = "P.J. Thorburn and J.S. Biggs and K. Collins and M.E. Probert", | ||
keywords = "Crop residues, Denitrification, Nitrification, Greenhouse gas, Nitrogen fertiliser, Irrigation" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Models.Core; | ||
|
||
|
||
namespace Models.Functions | ||
{ | ||
/// <summary>Value returned is determined according to given criteria</summary> | ||
[Serializable] | ||
[Description("Tests if value of a string property is equal to a given value and returns a value depending on the result.")] | ||
[ViewName("UserInterface.Views.GridView")] | ||
[PresenterName("UserInterface.Presenters.PropertyPresenter")] | ||
public class StringComparisonFunction : Model, IFunction, ICustomDocumentation | ||
{ | ||
|
||
/// <summary>The propertyname</summary> | ||
[Description("Name of string property to compare")] | ||
public string PropertyName { get; set; } | ||
|
||
/// <summary>The string value</summary> | ||
[Description("Text string for comparison to the property value")] | ||
public string StringValue { get; set; } | ||
|
||
/// <summary>The True Value</summary> | ||
[Link] | ||
IFunction TrueValue = null; | ||
|
||
/// <summary>The False Value</summary> | ||
[Link] | ||
IFunction FalseValue = null; | ||
|
||
[Link] | ||
private ILocator locator = null; | ||
|
||
/// <summary>Gets the value.</summary> | ||
/// <value>The value.</value> | ||
public double Value(int arrayIndex = -1) | ||
{ | ||
object s = locator.Get(PropertyName); | ||
|
||
string PropertyString; | ||
if (s == null) | ||
PropertyString = ""; | ||
else if (s is Array) | ||
PropertyString = (string)(s as Array).GetValue(arrayIndex); | ||
else if (s is IFunction) | ||
PropertyString = (s as IFunction).Value(arrayIndex).ToString(); | ||
else | ||
PropertyString = (string)s; | ||
|
||
bool stringCompareTrue = PropertyString.Equals(StringValue, StringComparison.CurrentCultureIgnoreCase); | ||
|
||
if (stringCompareTrue) | ||
return TrueValue.Value(arrayIndex); | ||
else | ||
return FalseValue.Value(arrayIndex); | ||
} | ||
|
||
/// <summary>Writes documentation for this function by adding to the list of documentation tags.</summary> | ||
/// <param name="tags">The list of tags to add to.</param> | ||
/// <param name="headingLevel">The level (e.g. H2) of the headings.</param> | ||
/// <param name="indent">The level of indentation 1, 2, 3 etc.</param> | ||
public void Document(List<AutoDocumentation.ITag> tags, int headingLevel, int indent) | ||
{ | ||
if (IncludeInDocumentation) | ||
{ | ||
|
||
// add a heading. | ||
tags.Add(new AutoDocumentation.Heading(Name, headingLevel)); | ||
|
||
// write memos. | ||
foreach (IModel memo in Apsim.Children(this, typeof(Memo))) | ||
AutoDocumentation.DocumentModel(memo, tags, headingLevel + 1, indent); | ||
|
||
tags.Add(new AutoDocumentation.Paragraph("If " + PropertyName + " = " + StringValue + " Then", indent)); | ||
AutoDocumentation.DocumentModel(TrueValue as IModel,tags, headingLevel+1, indent+1); | ||
|
||
tags.Add(new AutoDocumentation.Paragraph("Else", indent)); | ||
AutoDocumentation.DocumentModel(FalseValue as IModel, tags, headingLevel+1, indent+1); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.