-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first staging models
- Loading branch information
Showing
41 changed files
with
1,260,174 additions
and
1,257,548 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
workspace/ | ||
.user.yml | ||
profiles.yml | ||
target/ | ||
|
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,2 @@ | ||
[sqlfluff] | ||
dialect = ansi |
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
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
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
models/staging/capacity_factors_data/staging_capfac_ipr.sql
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,25 @@ | ||
SELECT | ||
variable_class, | ||
sub_variable_class_1, | ||
sub_variable_class_2, | ||
scenario, | ||
region, | ||
sector, | ||
units, | ||
year, | ||
value | ||
FROM {{ ref('raw_capacity_factors_IPR2021') }} | ||
|
||
UNION ALL | ||
|
||
SELECT | ||
scenario, | ||
region, | ||
variable_class, | ||
sub_variable_class_1, | ||
sub_variable_class_2, | ||
sector, | ||
units, | ||
year, | ||
value | ||
FROM {{ ref('raw_capacity_factors_IPR2023') }} |
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,25 @@ | ||
SELECT | ||
scenario, | ||
region, | ||
variable_class, | ||
sub_variable_class_1, | ||
NULL as sub_variable_class_2, -- Placeholder for the extra column | ||
NULL as sector, -- Placeholder for the extra column | ||
units, | ||
year, | ||
value | ||
FROM {{ ref('raw_price_data_long_IPR2021') }} | ||
|
||
UNION ALL | ||
|
||
SELECT | ||
scenario, | ||
region, | ||
variable_class, | ||
sub_variable_class_1, | ||
sub_variable_class_2, | ||
sector, | ||
units, | ||
year, | ||
value | ||
FROM {{ ref('raw_price_data_long_IPR2023') }} |
25 changes: 25 additions & 0 deletions
25
models/staging/scenario_analysis_input_data/staging_scenario_ipr.sql
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,25 @@ | ||
SELECT | ||
scenario, | ||
region, | ||
sector, | ||
units, | ||
variable_class, | ||
sub_variable_class_1, | ||
sub_variable_class_2, | ||
year, | ||
value | ||
FROM {{ ref('ipr_Scenarios_AnalysisInput') }} | ||
|
||
UNION ALL | ||
|
||
SELECT | ||
scenario, | ||
region, | ||
variable_class, | ||
sub_variable_class_1, | ||
sub_variable_class_2, | ||
sector, | ||
units, | ||
year, | ||
value | ||
FROM {{ ref('ipr2023_Scenarios_AnalysisInput') }} |
Binary file not shown.
2,944 changes: 1,472 additions & 1,472 deletions
2,944
seeds/capacity_factors_data/WEO2020_Raw_data.csv
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
seeds/capacity_factors_data/preprocessed_capacity_factors_GEM_Steel.csv
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
year,technology,value | ||
year,technology,value | ||
2021,Crude Steel ,0.592794894 | ||
2021,BOF Steel,0.622848035 | ||
2021,EAF Steel,0.636920856 | ||
2021,OHF Steel,0.926829268 | ||
2021,Iron,0.62425383 | ||
2021,BF,0.675152043 | ||
2021,DRI,0.461395189 | ||
2021,DRI,0.461395189 |
70,930 changes: 35,465 additions & 35,465 deletions
70,930
seeds/capacity_factors_data/raw_capacity_factors_IPR2021.csv
Large diffs are not rendered by default.
Oops, something went wrong.
35,466 changes: 17,733 additions & 17,733 deletions
35,466
seeds/capacity_factors_data/raw_capacity_factors_IPR2023.csv
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.