Skip to content

Commit 580ec4a

Browse files
committed
Add Standalone_GCBM
Signed-off-by: Kateryna Derhaus <kdergaus@gmail.com>
1 parent 99aa3c0 commit 580ec4a

File tree

11,601 files changed

+19947
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,601 files changed

+19947
-0
lines changed

Standalone_GCBM/EULA.txt

7.83 KB
Binary file not shown.
215 KB
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"Modules": {
3+
"CBMAggregatorLibPQXXWriter": {
4+
"library": "moja.modules.cbm",
5+
"order": 13,
6+
"enabled": true,
7+
"settings": {
8+
"connection_string": "host=localhost port=5432 dbname=postgres user=postgres password=$1welcome",
9+
"schema": "libpqxx_testing"
10+
}
11+
}
12+
}
13+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"Libraries": {
3+
"moja.modules.gdal": "external"
4+
}
5+
}
6+
7+
{
8+
"Modules": {
9+
"WriteVariableGeotiff": {
10+
"enabled": true,
11+
"order": 11,
12+
"library": "moja.modules.gdal",
13+
"settings": {
14+
"items": [
15+
{
16+
"data_name": "Age",
17+
"enabled": true,
18+
"variable_data_type": "Int16",
19+
"on_notification": "OutputStep",
20+
"variable_name": "age"
21+
}
22+
],
23+
"output_path": "output"
24+
}
25+
}
26+
}
27+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"landscape": {
2+
"num_threads": 4,
3+
"iteration_type": "BlockIndex",
4+
"blocks": [
5+
{
6+
"tile_index": 12674,
7+
"block_index": 51
8+
}
9+
],
10+
"y_pixels": 4000,
11+
"provider": "RasterTiled",
12+
"x_pixels": 4000,
13+
"tile_size_x": 1.0,
14+
"tile_size_y": 1.0
15+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"landscape": {
2+
"num_threads": 4,
3+
"iteration_type": "CellIndex",
4+
"cells": [
5+
{
6+
"tile_index": 12674,
7+
"block_index": 51,
8+
"cell_index": 1
9+
}
10+
],
11+
"y_pixels": 4000,
12+
"provider": "RasterTiled",
13+
"x_pixels": 4000,
14+
"tile_size_x": 1.0,
15+
"tile_size_y": 1.0
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"landscape": {
2+
"num_threads": 4,
3+
"tiles": [
4+
{
5+
"x": -106,
6+
"y": 55
7+
}
8+
],
9+
"y_pixels": 4000,
10+
"provider": "RasterTiled",
11+
"x_pixels": 4000,
12+
"tile_size_x": 1.0,
13+
"tile_size_y": 1.0
14+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Last pass disturbance timeseries is autoconfigured in GCBM with Feb. 2019 and later
2+
versions of update_gcbm_config.py. For this to work, tile last pass disturbance layers
3+
the same way as disturbance layers, but include the tag "last_pass_disturbance".
4+
5+
For example:
6+
7+
# Last pass disturbance timeseries for spinup
8+
for i in range(1, 4, 1):
9+
layers.append(DisturbanceLayer(
10+
rule_manager,
11+
VectorLayer("spinup_disturbances_{}".format(i),
12+
os.path.join(layer_root, "spinup_disturbances", "spinup_disturbances.shp"),
13+
[
14+
Attribute("lastpass_{}".format(i))
15+
]),
16+
year=Attribute("lastpass_{}".format(i)),
17+
disturbance_type="Wild Fire",
18+
tags=["last_pass_disturbance"]))
19+
20+
GCBM configuration looks like:
21+
22+
"SpinupVariables": {
23+
"last_pass_disturbance_timeseries": {
24+
"transform": {
25+
"allow_nulls": "true",
26+
"type": "CompositeTransform",
27+
"library": "internal.flint",
28+
"vars": [
29+
"spinup_disturbances_2",
30+
"spinup_disturbances_1",
31+
"spinup_disturbances_3"
32+
],
33+
"format": "long"
34+
}
35+
}
36+
},
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"Variables": {
3+
"mean_annual_temperature": {
4+
"transform": {
5+
"library": "internal.flint",
6+
"type": "TimeSeriesIdxFromFlintDataTransform",
7+
"provider": "RasterTiled",
8+
"data_id": "mean_annual_temperature",
9+
"sub_same": "true",
10+
"start_year": 0,
11+
"data_per_year": 1,
12+
"n_years": 10
13+
}
14+
}
15+
}
16+
}
17+
18+
{
19+
"Variables": {
20+
"mean_annual_temperature": {
21+
"transform": {
22+
"library": "internal.flint",
23+
"type": "TimeSeriesIdxFromFlintDataTransform",
24+
"provider": "RasterTiled",
25+
"data_id": "tmean",
26+
"sub_same": "true",
27+
"origin": "calendar",
28+
"start_year": 1990,
29+
"data_per_year": 1,
30+
"n_years": 26
31+
}
32+
}
33+
}
34+
}
Binary file not shown.

0 commit comments

Comments
 (0)