From d185adc844bebacde7c9b64f0f61a06788514ac8 Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Fri, 5 Feb 2016 23:06:17 -0500 Subject: [PATCH] Added leaf status, ssh.net --- Core/Core.csproj | 5 ++++ Core/DAL/DataService.cs | 7 ++++- ...t_all_October2015_with_joins_corrected.csv | 26 +++++++++---------- Core/DAL/LeafWebContext.cs | 1 + Core/Models/LeafInput.cs | 4 +++ Core/Models/LeafInputStatus.cs | 16 ++++++++++++ 6 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 Core/Models/LeafInputStatus.cs diff --git a/Core/Core.csproj b/Core/Core.csproj index e289ff7..ac6f7a6 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -46,6 +46,10 @@ ..\packages\fasterflect.2.1.3\lib\net40\Fasterflect.dll True + + ..\packages\SSH.NET.2013.4.7\lib\net40\Renci.SshNet.dll + True + @@ -73,6 +77,7 @@ + diff --git a/Core/DAL/DataService.cs b/Core/DAL/DataService.cs index 629569d..42f3e3c 100644 --- a/Core/DAL/DataService.cs +++ b/Core/DAL/DataService.cs @@ -39,13 +39,18 @@ namespace LeafWeb.Core.DAL #endregion - #region Fluxnet Sites + #region LeafInput Sites public IQueryable GetLeafInputs() { return _db.LeafInputs; } + public LeafInput GetLeafInput(int id) + { + return _db.LeafInputs.FirstOrDefault(li => li.Id == id); + } + public void AddLeafInput(LeafInput leafInput) { leafInput.Created = DateTime.Now; diff --git a/Core/DAL/InitialData/fluxnet_site_list_all_October2015_with_joins_corrected.csv b/Core/DAL/InitialData/fluxnet_site_list_all_October2015_with_joins_corrected.csv index 5499988..6d9c44d 100644 --- a/Core/DAL/InitialData/fluxnet_site_list_all_October2015_with_joins_corrected.csv +++ b/Core/DAL/InitialData/fluxnet_site_list_all_October2015_with_joins_corrected.csv @@ -1,7 +1,7 @@ -siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year_began,network1,network2,network3,npp_land_c,plant_func,network1_i,year_beg_1,GTOPO,NLCD_Class,NLCD_Descr,FAO_Value,FAO_Descri,Koppen_cod,Koppen_Des,IGBP_Value,IGBP_Descr,LAI_fPAR_V,LAIfPAR_De,UMD_Value,UMD_Descri +siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year_began,network1,network2,network3,npp_land_c,plant_func,network1_i,year_beg_1,GTOPO,NLCD_Class,NLCD_Descr,FAO_Value,FAO_Descri,Koppen_cod,Koppen_Des,IGBP_Value,IGBP_Descr,LAI_fPAR_V,LAIfPAR_De,UMD_Value,UMD_Descri 9,AR-Lac,ar.laciguena.01,La Ciguena Santa Fe,Argentina,South America,Active,-29.264,-61.028,"2,004.00",Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,19,"2,004.00",53,0, ,79,MOLLIC SOLONETZ,14,Cfa - Temperate/Without dry season/Hot Summer,12,Croplands,3,Broadleaf Crops,12,Croplands -12,AT-Lan,at.langenfeld.01,Langenfeld,Austria,Europe,Inactive,47.061221,10.963454,"2,005.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,005.00","1,347",0, ,53,ORTHIC LUVISOL,31,ET - Polar/Tundra,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest 13,AT-Leu,at.leutasch.01,Leutasch,Austria,Europe,Inactive,47.378036,11.16278,"2,005.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Grass,40,"2,005.00","1,078",0, ,22,RENDZINA,29,ET - Polar/Tundra,5,Mixed Forest,7,Evergreen Needle Leaf Forest,5,Mixed Forests +12,AT-Lan,at.langenfeld.01,Langenfeld,Austria,Europe,Inactive,47.061221,10.963454,"2,005.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,005.00","1,347",0, ,53,ORTHIC LUVISOL,31,ET - Polar/Tundra,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest 14,AT-Neu,at.neustift.01,Neustift/Stubai Valley,Austria,Europe,Active,47.116669,11.3175,"2,002.00",CarboExtreme (EU-FP7),Carbomont (EU-FP5),Carbomont (EU-FP5),Evergreen Broadleaf Vegetation,Evergreen Broadleaf Trees,35,"2,002.00","1,184",0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest 15,AT-Sch,at.schlitters.01,Schlitters,Austria,Europe,Inactive,47.387291,11.247935,"2,005.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,005.00",986,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,14,Cropland-Natural Vegetation Mosaic,3,Broadleaf Crops,12,Croplands 17,AU-Cas,au.cairns_sugarcane.01,Burdekin Delta,Australia,Australia/Oceania,Active,-19.566667,147.4,"2,000.00",OzFlux,(null),(null),Urban,Urban and built up,18,"2,000.00",5,0, ,49,CHROMIC LUVISOL,11,Temperate/Dry Summer/Cold Summer,13,Urban and Built-up,10,Urban,13,Urban and Built-Up @@ -554,7 +554,7 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "2,881.00",NZ-Kop,(null),Kopuatai,New Zealand,Australia/Oceania,Active,-37.387917,175.553889,"2,011.00",Unaffiliated,(null),(null),Evergreen Broadleaf Vegetation,Evergreen Broadleaf Trees,19,"2,011.00",3,0, ,83,OCHRIC ANDOSOL,15,Cfb - Temperate/Without dry season/Warm Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs "2,900.00",CL-ACP,(null),Alerce Costero National Park,Chile,(null),Active,-40.172267,-73.445203,"2,014.00",Unaffiliated,(null),(null),Evergreen Broadleaf Vegetation,Evergreen Broadleaf Trees,19,"2,014.00",610,0, ,7,DYSTRIC CAMBISOL,15,Cfb - Temperate/Without dry season/Warm Summer,2,Evergreen Broadleaf Forest,5,Evergreen Broad Leaf Forest,2,Evergreen Broad Leaf Forest "4,000.00",AT-Fue,(null),Fuegen,Austria,Europe,Inactive,47.367374,11.854709,"2,005.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Shrub,40,"2,005.00",543,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,14,Cropland-Natural Vegetation Mosaic,1,Grasses/Cereal Crops,12,Croplands -"4,001.00",AT-Hnb,(null),Höllengebirge,Austria,Europe,Inactive,47.803333,13.591389,"2,011.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,011.00",971,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest +"4,001.00",AT-Hnb,(null),Höllengebirge,Austria,Europe,Inactive,47.803333,13.591389,"2,011.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,011.00",971,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,002.00",AT-Rtz,(null),Rotholz,Austria,Europe,Inactive,47.394722,11.804722,"2,008.00",European Unaffiliated,(null),(null),Deciduous Broadleaf Vegetation,Deciduous Broadleaf Trees,40,"2,008.00",514,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,14,Cropland-Natural Vegetation Mosaic,1,Grasses/Cereal Crops,12,Croplands "4,003.00",AT-StA,(null),Stubai Abandoned,Austria,Europe,Inactive,47.12528,11.28944,0,European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,0,"2,016",0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,004.00",AT-StM,(null),Stubai Meadow,Austria,Europe,Inactive,47.12889,11.30583,0,European Unaffiliated,(null),(null),Deciduous Broadleaf Vegetation,Deciduous Broadleaf Trees,40,0,"1,556",0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,10,Grasslands,1,Grasses/Cereal Crops,10,Grasslands @@ -583,7 +583,7 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "4,030.00",EE-Aar,(null),Aardlapalu grassland,Estonia,Asia,Inactive,58.31305,26.74388,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Shrub,40,"2,012.00",33,0, ,20,EUTRIC PODZOLUVISOL,26,Dfb - Cold/Without dry season/Warm Summer,14,Cropland-Natural Vegetation Mosaic,1,Grasses/Cereal Crops,12,Croplands "4,031.00",EE-Hi1,(null),Hiiesoo abandoned peat extraction,Estonia,Asia,Inactive,59.3505,27.1008,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",43,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,032.00",EE-Hi2,(null),Hiiesoo active peat extraction,Estonia,Asia,Inactive,59.3519,27.1016,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",43,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,033.00",EE-Jvs,(null),Järvselja,Estonia,Asia,Inactive,58.274211,27.309952,"2,008.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,008.00",48,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,5,Mixed Forest,6,Deciduous Broad Leaf Forest,5,Mixed Forests +"4,033.00",EE-Jvs,(null),Järvselja,Estonia,Asia,Inactive,58.274211,27.309952,"2,008.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,008.00",48,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,5,Mixed Forest,6,Deciduous Broad Leaf Forest,5,Mixed Forests "4,034.00",EE-Ka1,(null),Kasesoo abandoned peat extraction,Estonia,Asia,Inactive,59.1411,27.6531,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",27,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,035.00",EE-Ka2,(null),Kasesoo active peat extraction,Estonia,Asia,Inactive,59.1459,27.6636,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",29,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,036.00",EE-Ka3,(null),Kasesoo bog,Estonia,Asia,Inactive,59.1417,27.6778,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",30,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest @@ -600,8 +600,8 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "4,047.00",EE-San,(null),Sangla bog forest,Estonia,Asia,Inactive,58.32704,26.21819,"2,012.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,012.00",47,0, ,20,EUTRIC PODZOLUVISOL,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,048.00",EE-Vg1,(null),Valgeraba bog forest,Estonia,Asia,Inactive,58.43507,25.23629,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",31,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,5,Mixed Forest,5,Evergreen Broad Leaf Forest,5,Mixed Forests "4,049.00",EE-Vg2,(null),Valgeraba bog,Estonia,Asia,Inactive,58.43662,25.23675,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",31,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,11,Permanent Wetlands,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,050.00",ES-AP1,(null),Almodóvar del Pinar 1,Spain,Europe,Active,39.680985,-1.842411,"2,010.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,010.00",973,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs -"4,051.00",ES-AP2,(null),Almodóvar del Pinar 2,Spain,Europe,Active,39.67727,-1.848309,"2,011.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,011.00",973,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs +"4,050.00",ES-AP1,(null),Almodóvar del Pinar 1,Spain,Europe,Active,39.680985,-1.842411,"2,010.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,010.00",973,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs +"4,051.00",ES-AP2,(null),Almodóvar del Pinar 2,Spain,Europe,Active,39.67727,-1.848309,"2,011.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,011.00",973,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,052.00",ES-CMb,(null),Cuenca Las Majadas burned,Spain,Europe,Active,40.258306,-1.968061,"2,011.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Shrub,40,"2,011.00","1,380",0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,053.00",ES-CMu,(null),Cuenca Las Majadas unburned,Spain,Europe,Active,40.252069,-1.964783,"2,011.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,011.00","1,353",0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,054.00",ES-CPa,(null),Cortes de Pallas,Spain,Europe,Inactive,39.22417,-0.90305,"2,009.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Grass,40,"2,009.00",800,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs @@ -609,7 +609,7 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "4,056.00",ES-EBn,(null),El Bonillo,Spain,Europe,Active,38.937066,-2.644023,"2,011.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Shrub,40,"2,011.00",951,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,10,Grasslands,1,Grasses/Cereal Crops,10,Grasslands "4,057.00",ES-LBr,(null),La Bertolina,Spain,Europe,Active,42.098889,1.661389,"2,011.00",European Unaffiliated,(null),(null),Evergreen Broadleaf Vegetation,Shrub,40,"2,011.00","1,078",0, ,40,LITHOSOL,15,Cfb - Temperate/Without dry season/Warm Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,058.00",ES-LgS,(null),Laguna Seca,Spain,Europe,Inactive,37.097936,-2.965833,"2,007.00",GHG-Europe (EU-FP7),(null),(null),Annual Grass Vegetation,Evergreen Needleleaf Trees,37,"2,007.00","2,300",0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs -"4,059.00",ES-Ln1,(null),Lanjaron-Non intervention,Spain,Europe,Inactive,36.972098,-3.473851,"2,008.00",GHG-Europe (EU-FP7),(null),(null),Annual Broadleaf Vegetation,Shrub,37,"2,008.00","2,354",0, ,0,WATER/OCEAN/LAKE,8,Temperate/Dry Summer/Hot Summer,7,Open Shrubland,2,Shrubs,7,Open Shrubland +"4,059.00",ES-Ln1,(null),Lanjaron-Non intervention,Spain,Europe,Inactive,36.9720 98,-3.473851,"2,008.00",GHG-Europe (EU-FP7),(null),(null),Annual Broadleaf Vegetation,Shrub,37,"2,008.00","2,354",0, ,0,WATER/OCEAN/LAKE,8,Temperate/Dry Summer/Hot Summer,7,Open Shrubland,2,Shrubs,7,Open Shrubland "4,060.00",ES-Ln2,(null),Lanjaron-Salvage logging,Spain,Europe,Inactive,36.969502,-3.475819,"2,009.00",GHG-Europe (EU-FP7),(null),(null),Annual Broadleaf Vegetation,Shrub,37,"2,009.00","2,186",0, ,0,WATER/OCEAN/LAKE,8,Temperate/Dry Summer/Hot Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,061.00",ES-Pdu,(null),Padul,Spain,Europe,Inactive,37.016975,-3.609228,"2,011.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,011.00",709,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,062.00",ES-PRt,(null),Pla de Riart,Spain,Europe,Active,42.063333,1.513333,"2,010.00",European Unaffiliated,(null),(null),Evergreen Broadleaf Vegetation,Shrub,40,"2,010.00",941,0, ,40,LITHOSOL,15,Cfb - Temperate/Without dry season/Warm Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs @@ -617,15 +617,15 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "4,064.00",ES-Yst,(null),Yeste,Spain,Europe,Active,38.338934,-2.350605,"2,012.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Grass,40,"2,012.00",952,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,065.00",FI-Jo2,(null),Jokioinen2,Finland,Europe,Inactive,60.89903,23.5128,"1,999.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Broadleaf crop,40,"1,999.00",112,0, ,13,VERTIC CAMBISOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,066.00",FI-Jo3,(null),Jokioinen3,Finland,Europe,Inactive,60.8988,23.5131,"1,999.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Broadleaf crop,40,"1,999.00",112,0, ,13,VERTIC CAMBISOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,067.00",FI-Ken,(null),Kenttärova,Finland,Europe,Inactive,67.98723,24.24305,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",331,0, ,61,DYSTRIC HISTOSOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest +"4,067.00",FI-Ken,(null),Kenttärova,Finland,Europe,Inactive,67.98723,24.24305,"2,012.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,012.00",331,0, ,61,DYSTRIC HISTOSOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,068.00",FI-Kns,(null),Kalevansuo,Finland,Europe,Inactive,60.646833,24.356167,"2,004.00",GHG-Europe (EU-FP7),(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,37,"2,004.00",129,0, ,68,ORTHIC PODZOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,069.00",FI-Let,(null),Lettosuo,Finland,Europe,Inactive,60.641833,23.9597,"2,009.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,009.00",107,0, ,13,VERTIC CAMBISOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,070.00",FI-Lom,(null),Lompolojänkkä,Finland,Europe,Inactive,67.9972,24.209183,"2,005.00",GHG-Europe (EU-FP7),(null),(null),Evergreen Needleleaf Vegetation,Grass,37,"2,005.00",280,0, ,61,DYSTRIC HISTOSOL,27,Dfc - Cold/Without dry season/Cold Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs +"4,070.00",FI-Lom,(null),Lompolojänkkä,Finland,Europe,Inactive,67.9972,24.209183,"2,005.00",GHG-Europe (EU-FP7),(null),(null),Evergreen Needleleaf Vegetation,Grass,37,"2,005.00",280,0, ,61,DYSTRIC HISTOSOL,27,Dfc - Cold/Without dry season/Cold Summer,8,Woody Savannas,4,Savannah,8,Woody Savannahs "4,071.00",FI-Skj,(null),Siikajoki,Finland,Europe,Inactive,64.7807,24.6515,"2,002.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,002.00",9,0, ,68,ORTHIC PODZOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,072.00",FI-Ves,(null),Vesijako,Finland,Europe,Inactive,61.3716,25.1055,"2,001.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,001.00",130,0, ,68,ORTHIC PODZOL,27,Dfc - Cold/Without dry season/Cold Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,073.00",FR-EM1,(null),Estr??es-Mons,France,Europe,Inactive,49.872337,3.019182,"2,008.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,008.00",87,0, ,53,ORTHIC LUVISOL,15,Cfb - Temperate/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands +"4,073.00",FR-EM1,(null),Estrées-Mons,France,Europe,Inactive,49.872337,3.019182,"2,008.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,008.00",87,0, ,53,ORTHIC LUVISOL,15,Cfb - Temperate/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,074.00",FR-FBn,(null),Font-Blanche,France,Europe,Inactive,43.240833,5.679167,"2,007.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,007.00",406,0, ,22,RENDZINA,9,Temperate/Dry Summer/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,075.00",FR-Fgs,(null),Fougères,France,Europe,Inactive,48.38,-1.18,"2,008.00",European Unaffiliated,(null),(null),Deciduous Broadleaf Vegetation,Deciduous Broadleaf Trees,40,"2,008.00",177,0, ,53,ORTHIC LUVISOL,15,Cfb - Temperate/Without dry season/Warm Summer,4,Deciduous Broadleaf Forest,6,Deciduous Broad Leaf Forest,4,Deciduous Broad Leaf Forest +"4,075.00",FR-Fgs,(null),Fougères,France,Europe,Inactive,48.38,-1.18,"2,008.00",European Unaffiliated,(null),(null),Deciduous Broadleaf Vegetation,Deciduous Broadleaf Trees,40,"2,008.00",177,0, ,53,ORTHIC LUVISOL,15,Cfb - Temperate/Without dry season/Warm Summer,4,Deciduous Broadleaf Forest,6,Deciduous Broad Leaf Forest,4,Deciduous Broad Leaf Forest "4,076.00",FR-Mau,(null),Mauzac,France,Europe,Inactive,43.385278,1.292222,"2,005.00","CNRM/GAME (METEO-FRANCE, CNRS)",(null),(null),Annual Grass Vegetation,Cereal crop,36,"2,005.00",221,0, ,8,EUTRIC CAMBISOL,15,Cfb - Temperate/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,077.00",GR-Vcs,(null),Vocals,Greece,Europe,Active,40.889737,24.84893,"2,013.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Grass,40,"2,013.00",1,0, ,0,WATER/OCEAN/LAKE,0, ,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,078.00",HU-Spr,(null),Sopron,Hungary,Europe,Inactive,47.655873,16.454474,"2,010.00",European Unaffiliated,(null),(null),Deciduous Broadleaf Vegetation,Deciduous Broadleaf Trees,40,"2,010.00",517,0, ,51,GLEYIC LUVISOL,26,Dfb - Cold/Without dry season/Warm Summer,5,Mixed Forest,6,Deciduous Broad Leaf Forest,5,Mixed Forests @@ -663,7 +663,7 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "4,111.00",NL-Re2,(null),Reeuwijk 2,Netherlands,Europe,Inactive,51.9,4.5,"2,004.00",European Unaffiliated,(null),(null),Urban,Urban and built up,40,"2,004.00",-2,0, ,41,CALCARIC FLUVISOL,15,Cfb - Temperate/Without dry season/Warm Summer,13,Urban and Built-up,10,Urban,13,Urban and Built-Up "4,112.00",NL-Waa,(null),Oostwaard,Netherlands,Europe,Inactive,52.831594,4.909122,"2,008.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,008.00",-2,0, ,0,WATER/OCEAN/LAKE,15,Cfb - Temperate/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,113.00",NL-Zee,(null),Zeewolde,Netherlands,Europe,Inactive,52.334803,5.372589,"2,008.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,008.00",-3,0, ,66,HUMIC PODZOL,15,Cfb - Temperate/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands -"4,114.00",NO-And,(null),Andøya,Norway,Europe,Inactive,69.14278,16.02222,"2,009.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Shrub,40,"2,009.00",16,0, ,0,WATER/OCEAN/LAKE,0, ,7,Open Shrubland,2,Shrubs,7,Open Shrubland +"4,114.00",NO-And,(null),Andøya,Norway,Europe,Inactive,69.14278,16.02222,"2,009.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Shrub,40,"2,009.00",16,0, ,0,WATER/OCEAN/LAKE,0, ,7,Open Shrubland,2,Shrubs,7,Open Shrubland "4,115.00",NO-Blv,(null),"Bayelva, Spitsbergen",Norway,Europe,Active,78.921631,11.831085,"2,008.00",European Unaffiliated,(null),(null),Non-Vegetated Land,Snow and Ice,40,"2,008.00",53,0, ,0,WATER/OCEAN/LAKE,29,ET - Polar/Tundra,7,Open Shrubland,2,Shrubs,7,Open Shrubland "4,116.00",PH-RIf,(null),Philippines Rice Institute flooded,Philippines,Australia/Oceania,Inactive,14.14119,121.26526,"2,009.00",European Unaffiliated,(null),(null),Annual Broadleaf Vegetation,Broadleaf crop,40,"2,009.00",81,0, ,59,EUTRIC NITOSOL,2,Am - Tropical/Monsoon,14,Cropland-Natural Vegetation Mosaic,3,Broadleaf Crops,12,Croplands "4,117.00",PH-RIn,(null),Philippines Rice Institute not-flooded,Philippines,Australia/Oceania,Inactive,14.14503,121.26094,"2,009.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Grass,40,"2,009.00",71,0, ,59,EUTRIC NITOSOL,2,Am - Tropical/Monsoon,14,Cropland-Natural Vegetation Mosaic,3,Broadleaf Crops,12,Croplands @@ -696,7 +696,7 @@ siteid,fluxnetid,keyid,sitename,country,land_unit,status,latitude,longitude,year "4,152.00",DE-RuS,(null),Selhausen Juelich,Germany,Europe,Active,50.865737,6.447232,"2,011.00",European Unaffiliated,(null),(null),Urban,Urban and built up,40,"2,011.00",108,0, ,7,DYSTRIC CAMBISOL,15,Cfb - Temperate/Without dry season/Warm Summer,13,Urban and Built-up,10,Urban,13,Urban and Built-Up "4,153.00",DE-RuW,(null),Wuestebach,Germany,Europe,Active,50.504907,6.331019,"2,010.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,010.00",619,0, ,7,DYSTRIC CAMBISOL,15,Cfb - Temperate/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest "4,154.00",DE-SfN,(null),Schechenfilz Nord,Germany,Europe,Active,47.806389,11.3275,"2,010.00",European Unaffiliated,(null),(null),Evergreen Needleleaf Vegetation,Evergreen Needleleaf Trees,40,"2,010.00",594,0, ,22,RENDZINA,26,Dfb - Cold/Without dry season/Warm Summer,1,Evergreen Needleleaf Forest,7,Evergreen Needle Leaf Forest,1,Evergreen Needle Leaf Forest -"4,155.00",DK-RCW,(null),Risø Campus Willow,Denmark,Europe,Active,55.680682,12.101398,"2,012.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,012.00",15,0, ,0,WATER/OCEAN/LAKE,26,Dfb - Cold/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands +"4,155.00",DK-RCW,(null),Risø Campus Willow,Denmark,Europe,Active,55.680682,12.101398,"2,012.00",European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,"2,012.00",15,0, ,0,WATER/OCEAN/LAKE,26,Dfb - Cold/Without dry season/Warm Summer,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,156.00",ES-Gdn,(null),Guadiana,Spain,Europe,Inactive,37.910917,-3.228444,0,European Unaffiliated,(null),(null),Annual Grass Vegetation,Cereal crop,40,0,358,0, ,12,CALCIC CAMBISOL,7,BSk - Arid/Steppe/Cold,12,Croplands,1,Grasses/Cereal Crops,12,Croplands "4,157.00",IT-Isp,(null),Ispra ABC-IS,Italy,Europe,Active,45.812643,8.633579,"2,013.00",European Unaffiliated,(null),(null),Deciduous Broadleaf Vegetation,Deciduous Broadleaf Trees,40,"2,013.00",208,0, ,31,EUTRIC GLEYSOL,26,Dfb - Cold/Without dry season/Warm Summer,14,Cropland-Natural Vegetation Mosaic,4,Savannah,8,Woody Savannahs "4,158.00",IT-PCm,(null),Parco Urbano di Capodimonte,Italy,Europe,Active,40.8741,14.2504,"2,014.00",European Unaffiliated,(null),(null),Urban,Urban and built up,40,"2,014.00",95,0, ,0,WATER/OCEAN/LAKE,8,Temperate/Dry Summer/Hot Summer,13,Urban and Built-up,10,Urban,13,Urban and Built-Up diff --git a/Core/DAL/LeafWebContext.cs b/Core/DAL/LeafWebContext.cs index 42ea908..81fd45b 100644 --- a/Core/DAL/LeafWebContext.cs +++ b/Core/DAL/LeafWebContext.cs @@ -8,6 +8,7 @@ namespace LeafWeb.Core.DAL { public DbSet LeafInputs { get; set; } public DbSet LeafInputFiles { get; set; } + public DbSet LeafInputStatus { get; set; } public DbSet FluxnetSites { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) diff --git a/Core/Models/LeafInput.cs b/Core/Models/LeafInput.cs index b562356..00bf975 100644 --- a/Core/Models/LeafInput.cs +++ b/Core/Models/LeafInput.cs @@ -9,6 +9,7 @@ namespace LeafWeb.Core.Models public int Id { get; set; } public virtual ICollection LeafInputFiles { get; set; } + public virtual ICollection LeafInputStatuses { get; set; } [Required(ErrorMessage = "Name required")] public string Name { get; set; } @@ -25,5 +26,8 @@ namespace LeafWeb.Core.Models [DataType(DataType.Date)] [Required] public DateTime Created { get; set; } + + [DataType(DataType.Date)] + public DateTime? Processed { get; set; } } } \ No newline at end of file diff --git a/Core/Models/LeafInputStatus.cs b/Core/Models/LeafInputStatus.cs new file mode 100644 index 0000000..d89209b --- /dev/null +++ b/Core/Models/LeafInputStatus.cs @@ -0,0 +1,16 @@ +using System; + +namespace LeafWeb.Core.Models +{ + /// + /// Status of processing LeafInput + /// + public class LeafInputStatus + { + public int Id { get; set; } + public virtual LeafInput LeafInput { get; set; } + public string Status { get; set; } + public string Description { get; set; } + public DateTime DateTime { get; set; } + } +} \ No newline at end of file