-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kateryna Derhaus <[email protected]>
- Loading branch information
Showing
11,601 changed files
with
19,947 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
Standalone_GCBM/documentation/GCBM_Config_Examples/Modules - CBMAggregatorLibPQXXWriter.txt
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,13 @@ | ||
{ | ||
"Modules": { | ||
"CBMAggregatorLibPQXXWriter": { | ||
"library": "moja.modules.cbm", | ||
"order": 13, | ||
"enabled": true, | ||
"settings": { | ||
"connection_string": "host=localhost port=5432 dbname=postgres user=postgres password=$1welcome", | ||
"schema": "libpqxx_testing" | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
Standalone_GCBM/documentation/GCBM_Config_Examples/Modules - WriteVariableGeotiff.txt
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,27 @@ | ||
{ | ||
"Libraries": { | ||
"moja.modules.gdal": "external" | ||
} | ||
} | ||
|
||
{ | ||
"Modules": { | ||
"WriteVariableGeotiff": { | ||
"enabled": true, | ||
"order": 11, | ||
"library": "moja.modules.gdal", | ||
"settings": { | ||
"items": [ | ||
{ | ||
"data_name": "Age", | ||
"enabled": true, | ||
"variable_data_type": "Int16", | ||
"on_notification": "OutputStep", | ||
"variable_name": "age" | ||
} | ||
], | ||
"output_path": "output" | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
Standalone_GCBM/documentation/GCBM_Config_Examples/Scheduling - By block.txt
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,15 @@ | ||
"landscape": { | ||
"num_threads": 4, | ||
"iteration_type": "BlockIndex", | ||
"blocks": [ | ||
{ | ||
"tile_index": 12674, | ||
"block_index": 51 | ||
} | ||
], | ||
"y_pixels": 4000, | ||
"provider": "RasterTiled", | ||
"x_pixels": 4000, | ||
"tile_size_x": 1.0, | ||
"tile_size_y": 1.0 | ||
} |
16 changes: 16 additions & 0 deletions
16
Standalone_GCBM/documentation/GCBM_Config_Examples/Scheduling - By cell.txt
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,16 @@ | ||
"landscape": { | ||
"num_threads": 4, | ||
"iteration_type": "CellIndex", | ||
"cells": [ | ||
{ | ||
"tile_index": 12674, | ||
"block_index": 51, | ||
"cell_index": 1 | ||
} | ||
], | ||
"y_pixels": 4000, | ||
"provider": "RasterTiled", | ||
"x_pixels": 4000, | ||
"tile_size_x": 1.0, | ||
"tile_size_y": 1.0 | ||
} |
14 changes: 14 additions & 0 deletions
14
Standalone_GCBM/documentation/GCBM_Config_Examples/Scheduling - By tile lat lon.txt
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,14 @@ | ||
"landscape": { | ||
"num_threads": 4, | ||
"tiles": [ | ||
{ | ||
"x": -106, | ||
"y": 55 | ||
} | ||
], | ||
"y_pixels": 4000, | ||
"provider": "RasterTiled", | ||
"x_pixels": 4000, | ||
"tile_size_x": 1.0, | ||
"tile_size_y": 1.0 | ||
} |
36 changes: 36 additions & 0 deletions
36
...lone_GCBM/documentation/GCBM_Config_Examples/Tiler - Last pass disturbance timeseries.txt
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,36 @@ | ||
Last pass disturbance timeseries is autoconfigured in GCBM with Feb. 2019 and later | ||
versions of update_gcbm_config.py. For this to work, tile last pass disturbance layers | ||
the same way as disturbance layers, but include the tag "last_pass_disturbance". | ||
|
||
For example: | ||
|
||
# Last pass disturbance timeseries for spinup | ||
for i in range(1, 4, 1): | ||
layers.append(DisturbanceLayer( | ||
rule_manager, | ||
VectorLayer("spinup_disturbances_{}".format(i), | ||
os.path.join(layer_root, "spinup_disturbances", "spinup_disturbances.shp"), | ||
[ | ||
Attribute("lastpass_{}".format(i)) | ||
]), | ||
year=Attribute("lastpass_{}".format(i)), | ||
disturbance_type="Wild Fire", | ||
tags=["last_pass_disturbance"])) | ||
|
||
GCBM configuration looks like: | ||
|
||
"SpinupVariables": { | ||
"last_pass_disturbance_timeseries": { | ||
"transform": { | ||
"allow_nulls": "true", | ||
"type": "CompositeTransform", | ||
"library": "internal.flint", | ||
"vars": [ | ||
"spinup_disturbances_2", | ||
"spinup_disturbances_1", | ||
"spinup_disturbances_3" | ||
], | ||
"format": "long" | ||
} | ||
} | ||
}, |
34 changes: 34 additions & 0 deletions
34
Standalone_GCBM/documentation/GCBM_Config_Examples/Variables - Timeseries.txt
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,34 @@ | ||
{ | ||
"Variables": { | ||
"mean_annual_temperature": { | ||
"transform": { | ||
"library": "internal.flint", | ||
"type": "TimeSeriesIdxFromFlintDataTransform", | ||
"provider": "RasterTiled", | ||
"data_id": "mean_annual_temperature", | ||
"sub_same": "true", | ||
"start_year": 0, | ||
"data_per_year": 1, | ||
"n_years": 10 | ||
} | ||
} | ||
} | ||
} | ||
|
||
{ | ||
"Variables": { | ||
"mean_annual_temperature": { | ||
"transform": { | ||
"library": "internal.flint", | ||
"type": "TimeSeriesIdxFromFlintDataTransform", | ||
"provider": "RasterTiled", | ||
"data_id": "tmean", | ||
"sub_same": "true", | ||
"origin": "calendar", | ||
"start_year": 1990, | ||
"data_per_year": 1, | ||
"n_years": 26 | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
43 changes: 43 additions & 0 deletions
43
Standalone_GCBM/documentation/disturbance_type_queries.txt
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,43 @@ | ||
-- Queries for the GCBM SQLite input database | ||
|
||
-- List available disturbance types for the spatial unit. | ||
SELECT DISTINCT dt.name AS disturbance_type | ||
FROM disturbance_type dt | ||
INNER JOIN disturbance_matrix_association dma | ||
ON dt.id = dma.disturbance_type_id | ||
INNER JOIN spatial_unit spu | ||
ON dma.spatial_unit_id = spu.id | ||
INNER JOIN admin_boundary a | ||
ON spu.admin_boundary_id = a.id | ||
INNER JOIN eco_boundary e | ||
ON spu.eco_boundary_id = e.id | ||
WHERE LOWER(a.name) LIKE LOWER('British Columbia') -- The default admin boundary for the sample project. | ||
AND LOWER(e.name) LIKE LOWER('Taiga Plains') -- The default eco boundary for the sample project. | ||
ORDER BY dt.id; | ||
|
||
-- List available disturbance matrices for the spatial unit. | ||
SELECT | ||
dt.name, | ||
src.name AS from_pool, | ||
dst.name AS to_pool, | ||
dmv.proportion | ||
FROM disturbance_type dt | ||
INNER JOIN disturbance_matrix_association dma | ||
ON dt.id = dma.disturbance_type_id | ||
INNER JOIN disturbance_matrix dm | ||
ON dm.id = dma.disturbance_matrix_id | ||
INNER JOIN disturbance_matrix_value dmv | ||
ON dm.id = dmv.disturbance_matrix_id | ||
INNER JOIN pool src | ||
ON dmv.source_pool_id = src.id | ||
INNER JOIN pool dst | ||
ON dmv.sink_pool_id = dst.id | ||
INNER JOIN spatial_unit spu | ||
ON dma.spatial_unit_id = spu.id | ||
INNER JOIN admin_boundary a | ||
ON spu.admin_boundary_id = a.id | ||
INNER JOIN eco_boundary e | ||
ON spu.eco_boundary_id = e.id | ||
WHERE LOWER(a.name) LIKE LOWER('British Columbia') -- The default admin boundary for the sample project. | ||
AND LOWER(e.name) LIKE LOWER('Taiga Plains') -- The default eco boundary for the sample project. | ||
ORDER BY dt.id; |
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,107 @@ | ||
10% commercial thinning | ||
15% commercial thinning | ||
20% commercial thinning | ||
25% commercial thinning | ||
30% commercial thinning | ||
35% commercial thinning | ||
40% commercial thinning | ||
45% commercial thinning | ||
50% commercial thinning | ||
55% commercial thinning | ||
60% commercial thinning | ||
65% commercial thinning | ||
70% commercial thinning | ||
75% commercial thinning | ||
85% precommercial thinning | ||
97% clear-cut | ||
Afforestation | ||
Aspen Defoliators — Type A | ||
Aspen Defoliators — Type B | ||
Aspen Defoliators — Type C | ||
Aspen Defoliators — Type D | ||
Aspen Defoliators — Type E | ||
Aspen Defoliators — Type F | ||
Clear-cut with slash-burn | ||
Clearcut harvesting with salvage | ||
Clearcut harvesting without salvage | ||
Deforestation | ||
Deforestation — Agriculture — Salvage, uprooting and burn | ||
Deforestation — Agriculture — Salvage, uprooting and decay | ||
Deforestation — Forestry — Salvage, uprooting and burn | ||
Deforestation — Forestry — Salvage, uprooting and decay | ||
Deforestation — Hydro reservoir — Burn | ||
Deforestation — Hydro reservoir — No salvage or burn | ||
Deforestation — Hydro reservoir — Salvage and decay | ||
Deforestation — Hydro reservoir — salvage and burn | ||
Deforestation — Hydro — Right-of-way — Salvage and burn | ||
Deforestation — Hydro — Right-of-way — Salvage and decay | ||
Deforestation — Industry — Salvage, uprooting and burn | ||
Deforestation — Industry — Salvage, uprooting and decay | ||
Deforestation — Mining — Salvage, uprooting and burn | ||
Deforestation — Mining — Salvage, uprooting and decay | ||
Deforestation — Municipal — Salvage, uprooting and burn | ||
Deforestation — Municipal — Salvage, uprooting and decay | ||
Deforestation — Oil and gas — Salvage and burn | ||
Deforestation — Oil and gas — Salvage and decay | ||
Deforestation — Oil and gas — Salvage, uprooting and burn | ||
Deforestation — Oil and gas — Salvage, uprooting and decay | ||
Deforestation — Peat mining — Uprooting and burn | ||
Deforestation — Peat mining — Uprooting and decay | ||
Deforestation — Recreation — Salvage and burn | ||
Deforestation — Recreation — Salvage and decay | ||
Deforestation — Recreation — Salvage, uprooting and burn | ||
Deforestation — Recreation — Salvage, uprooting and decay | ||
Deforestation — Transportation — Salvage, uprooting and burn | ||
Deforestation — Transportation — Salvage, uprooting and decay | ||
Eastern hemlock looper — Light defoliation | ||
Eastern hemlock looper — Moderate defoliation | ||
Eastern hemlock looper — Severe cumulative defoliation | ||
Eastern hemlock looper — Severe defoliation | ||
Fire with salvage logging | ||
Firewood Collection - HW | ||
Firewood Collection - SW | ||
Firewood Collection - post logging | ||
Firewood Collection - post natural disturbance | ||
Generic 10% mortality | ||
Generic 15% mortality | ||
Generic 20% mortality | ||
Generic 25% mortality | ||
Generic 30% mortality | ||
Generic 35% mortality | ||
Generic 40% mortality | ||
Generic 45% mortality | ||
Generic 5% mortality | ||
Generic 50% mortality | ||
Generic 55% mortality | ||
Generic 60% mortality | ||
Generic 65% mortality | ||
Generic 70% mortality | ||
Generic 75% mortality | ||
Generic 80% mortality | ||
Generic 85% mortality | ||
Generic 90% mortality | ||
Generic 95% mortality | ||
Insect disturbance | ||
Insect disturbance with salvage logging | ||
Mountain pine beetle — Low impact | ||
Mountain pine beetle — Moderate impact | ||
Mountain pine beetle — Severe impact | ||
Mountain pine beetle — Very severe impact | ||
Natural nonforest rehabilitation | ||
Natural succession | ||
Old default fire | ||
Partial cutting | ||
Planting | ||
Roads and landings | ||
Salvage logging after fire | ||
Salvage logging after insects | ||
Spruce beetle — 10% mortality | ||
Spruce beetle — 2% mortality | ||
Spruce beetle — 20% mortality | ||
Stand–replacing natural succession | ||
Unknown | ||
WJPBW — Year 1 of outbreak | ||
WJPBW — Year 2 of outbreak | ||
WJPBW — Year 3 of outbreak | ||
WJPBW — Year 4 of outbreak | ||
Wildfire |
Oops, something went wrong.