aw7152: namespace change
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
using CarbonService.Models;
|
||||
using FarmMapsAPI.Carbon;
|
||||
using CarbonLib.Carbon;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace CarbonConsoleApp
|
||||
{
|
||||
class Program
|
||||
@@ -10,7 +9,7 @@ namespace CarbonConsoleApp
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var configPath = "config25";
|
||||
ICarbonCalculation carbonCalc = new FarmMapsAPI.Carbon.CarbonCalculation25(configPath);
|
||||
ICarbonCalculation carbonCalc = new CarbonLib.Carbon.CarbonCalculation25(configPath);
|
||||
var request = new CarbonRequest();
|
||||
using (var reader = new StreamReader("input.txt"))
|
||||
{
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using CarbonService.Models;
|
||||
using FarmMapsAPI.Carbon;
|
||||
using FarmMapsAPI.Carbon.Models;
|
||||
using CarbonLib.Carbon;
|
||||
using CarbonService.Models;
|
||||
using CarbonLib.Carbon.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CarbonLib
|
||||
{
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
//using Base.Core.Common;
|
||||
//using Base.Core.Common.Geometry;
|
||||
using CarbonLib;
|
||||
using CarbonService.Models;
|
||||
using FarmMapsAPI.Carbon.Models;
|
||||
using NetTopologySuite.Geometries;
|
||||
using OSGeo.OGR;
|
||||
using CarbonService.Models;
|
||||
using CarbonLib.Carbon.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon
|
||||
namespace CarbonLib.Carbon
|
||||
{
|
||||
public class CarbonCalculation24 : ICarbonCalculation
|
||||
{
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
//using Base.Core.Common.Geometry;
|
||||
using CarbonLib;
|
||||
using CarbonLib.Carbon;
|
||||
using CarbonService.Models;
|
||||
using FarmMapsAPI.Carbon.Models;
|
||||
using CarbonLib.Carbon.Models;
|
||||
using NetTopologySuite.Geometries;
|
||||
using OSGeo.OGR;
|
||||
using System;
|
||||
@@ -12,7 +13,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon
|
||||
namespace CarbonLib.Carbon
|
||||
{
|
||||
public class CarbonCalculation25 : ICarbonCalculation
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon
|
||||
namespace CarbonLib.Carbon
|
||||
{
|
||||
public class GamsSets
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using CarbonService.Models;
|
||||
using FarmMapsAPI.Carbon.Models;
|
||||
using CarbonLib.Carbon.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon
|
||||
namespace CarbonLib.Carbon
|
||||
{
|
||||
public interface ICarbonCalculation
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class CarbonSummary
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class ClimateVariable
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class ColumnValue
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class CropCoverMonthsModel
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class CropPropertyModel
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class StrawCrp
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class YearData
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class ManureSourcesLiv
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Runtime.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class FarmMapsCarbonRequest
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class GIS_Soils_Sets
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class GamsThreeKeyParameter
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class ManCcontModel
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class MappingCropFarmmapsMiterraRothC
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class MappingGreenManureFarmmapsMiterraRothC
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class ParameterSet
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class KNMIZoneReg
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class SoilBulkDensityType
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class SoilPropertyType
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FarmMapsAPI.Carbon.Models
|
||||
namespace CarbonLib.Carbon.Models
|
||||
{
|
||||
public class YieldGreenManureModel
|
||||
{
|
||||
|
||||
19
README.md
19
README.md
@@ -1,3 +1,22 @@
|
||||
# CarbonLib
|
||||
|
||||
#
|
||||
|
||||
Library with model based on the scientifically acknowledged carbon model RothC.
|
||||
This code in .NET Core c# is adapted from a a project written in GEMS.
|
||||
|
||||
An test console app is included with an example input request. The output in written a a file.
|
||||
|
||||
|
||||
## Building a sample
|
||||
|
||||
Build the sample using the .NET Core CLI, which is installed with [the .NET Core SDK](https://www.microsoft.com/net/download). Then run
|
||||
these commands from the CLI in the directory of the CarbonConsoleApp:
|
||||
|
||||
```console
|
||||
dotnet build
|
||||
dotnet run
|
||||
```
|
||||
|
||||
These will install any needed dependencies, build the project, and run
|
||||
the project respectively.
|
||||
|
||||
Reference in New Issue
Block a user