Skip to content

Commit

Permalink
Merge pull request #2 from ClimateCompatibleGrowth/feature/config-update
Browse files Browse the repository at this point in the history
Initial config update
  • Loading branch information
mz8i authored Nov 25, 2024
2 parents 380f697 + 2cbf093 commit ee9d54b
Show file tree
Hide file tree
Showing 14,391 changed files with 1,506,406 additions and 31,768 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions input/data/dimensions/CostType/CostType.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id,label,color
VAR,Variable costs,#4c5f84
FIX,Fixed costs,#008b8b
CAPINV,Capital investment,#6fe0ea
id,label,color
VAR,Variable costs,#4c5f84
FIX,Fixed costs,#008b8b
CAP,Capital investment,#6fe0ea
TOT,Total costs,#000000
11 changes: 11 additions & 0 deletions input/data/fact-tables/Costs1A/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Costs1A",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Costs1B/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Costs1B",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
Binary file added input/data/fact-tables/Costs2A/.DS_Store
Binary file not shown.
11 changes: 11 additions & 0 deletions input/data/fact-tables/Costs2A/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Costs2A",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Costs2B/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Costs2B",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Power1A/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Power1A",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Power1B/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Power1B",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Transport1A/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Transport1A",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Transport1B/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Transport1B",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Transport2A/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Transport2A",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Transport2B/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Transport2B",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Transport3A/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Transport3A",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
11 changes: 11 additions & 0 deletions input/data/fact-tables/Transport3B/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "Transport3B",
"type": "web",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-public",
"pattern": "{Scenario}.csv"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "CombinedCosts",
"id": "_CombinedCosts",
"type": "raw",
"sharding": [
"Scenario"
Expand Down
33 changes: 33 additions & 0 deletions input/data/fact-tables/_Production/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"id": "_Production",
"type": "raw",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-input",
"pattern": "shards/{Scenario}.csv"
},
"columns": [
{
"name": "REGION",
"type": "dimension"
},
{
"name": "TECHNOLOGY",
"type": "dimension"
},
{
"name": "COMMODITY",
"type": "dimension"
},
{
"name": "YEAR",
"type": "dimension"
},
{
"name": "VALUE",
"type": "measure"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "AnnualTechnologyEmission",
"id": "_TechnologyEmission",
"type": "raw",
"sharding": [
"Scenario"
Expand Down
29 changes: 29 additions & 0 deletions input/data/fact-tables/_TotalCapacity/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"id": "_TotalCapacity",
"type": "raw",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-input",
"pattern": "shards/{Scenario}.csv"
},
"columns": [
{
"name": "REGION",
"type": "dimension"
},
{
"name": "TECHNOLOGY",
"type": "dimension"
},
{
"name": "YEAR",
"type": "dimension"
},
{
"name": "VALUE",
"type": "measure"
}
]
}
33 changes: 33 additions & 0 deletions input/data/fact-tables/_Use/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"id": "_Use",
"type": "raw",
"sharding": [
"Scenario"
],
"storage": {
"type": "local-input",
"pattern": "shards/{Scenario}.csv"
},
"columns": [
{
"name": "REGION",
"type": "dimension"
},
{
"name": "TECHNOLOGY",
"type": "dimension"
},
{
"name": "COMMODITY",
"type": "dimension"
},
{
"name": "YEAR",
"type": "dimension"
},
{
"name": "VALUE",
"type": "measure"
}
]
}
47 changes: 47 additions & 0 deletions input/pipeline/costs1a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"sharding": [
"Scenario"
],
"flows": [
[
{
"$": "load",
"from": "_CombinedCosts",
"sharding": [
"Scenario"
]
},
{
"$": "filter",
"column": "CostType",
"in": [
"VAR"
]
},
{
"$": "filter",
"column": "TECHNOLOGY:Sector",
"in": [
"PFS"
]
},
{
"$": "aggregate",
"groupby": [
"YEAR",
"TECHNOLOGY:SubSector"
]
},
{
"$": "save",
"to": "Costs1A",
"sharding": [
"Scenario"
],
"stats": {
"xaxis": "YEAR"
}
}
]
]
}
47 changes: 47 additions & 0 deletions input/pipeline/costs1b.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"sharding": [
"Scenario"
],
"flows": [
[
{
"$": "load",
"from": "_CombinedCosts",
"sharding": [
"Scenario"
]
},
{
"$": "filter",
"column": "CostType",
"in": [
"VAR"
]
},
{
"$": "filter",
"column": "TECHNOLOGY:Sector",
"in": [
"PFS"
]
},
{
"$": "aggregate",
"groupby": [
"YEAR",
"TECHNOLOGY:Type"
]
},
{
"$": "save",
"to": "Costs1B",
"sharding": [
"Scenario"
],
"stats": {
"xaxis": "YEAR"
}
}
]
]
}
Loading

0 comments on commit ee9d54b

Please sign in to comment.