Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pergerch committed Jan 13, 2021
1 parent 3b8af19 commit c466782
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,34 @@

Batch script to run the hardbone extraction in parallel.

## Adjust the path variables
## Adjust the variables in appsettings

1) Open `Program.cs` in `/src/HardboneBatcher` for editing
1) Open `appsettings.json` for editing
2) Modify top variables according to your environment:

```csharp
public class Program
```json
{
// Maximum number of parallel processes; 0 to use processor count
private const int Parallelism = 0;
// Maximum number of parallel processes; 0 to use processor count
"Parallelism": 0,

// Path to the ArcPy executable
private const string PythonPath = @"C:\Python27\ArcGIS10.8\python.exe";
// Path to the ArcPy executable
"PythonPath": "C:/Python27/ArcGIS10.8/python.exe",

// Root directory to the geodatabases
private const string RootPath = @"C:\temp\CLCplus\Testsite_Sweden\01_input_data\SE";
// Root directory to the geo-databases
"RootPath": "C:/temp/CLCplus/hardbones/Testsite_Sweden/01_input_data/SE",

// Location of the ArcPy script
private const string ScriptPath = @"C:\temp\CLCplus\HardboneIntegration_v1_0_withParams.py";
// Location of the ArcPy script
"ScriptPath": "C:/temp/CLCplus/hardbones/HardboneIntegration_v1_0.py",

// Path to the batch shapefile
private const string ShapePath =
@"C:\temp\CLCplus\Testsite_Sweden\02_grid_cells\europe_25km_10km_Sweden_testsite_v2\europe_25km_10km_Sweden_testsite_v2.shp";
// Path to the batch shapefile
"ShapePath": "C:/temp/CLCplus/hardbones/Testsite_Sweden/02_grid_cells/europe_25km_10km_Sweden_testsite_v2/europe_25km_10km_Sweden_testsite_v2.shp",

// Do not close the console window after completed workflow
"WaitForUserInputAfterCompletion": true,

...
```

## How to use?

1) Download and install the .NET Core 3.1 SDK [https://dotnet.microsoft.com/download](https://dotnet.microsoft.com/download)
2) Download and extract the sourcecode or clone the repo
3) Open a command shell in the `/src/HardboneBatcher` directory
4) Run `dotnet restore` and then `dotnet run`

## Known issues

Sometimes when cancelling the run, some Python processes are stuck and keep running. Kill them in Task Manager.
Expand Down

0 comments on commit c466782

Please sign in to comment.