Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Carbon Cycle Assessment
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
urbanoikos
models
Carbon Cycle Assessment
Commits
b43f6fc8
Commit
b43f6fc8
authored
1 year ago
by
ClemensBo
Browse files
Options
Downloads
Patches
Plain Diff
removed output and corrected number
parent
ce1545d7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/tegel/run_model.ipynb
+5
-342
5 additions, 342 deletions
applications/tegel/run_model.ipynb
with
5 additions
and
342 deletions
applications/tegel/run_model.ipynb
+
5
−
342
View file @
b43f6fc8
...
...
@@ -2,18 +2,9 @@
"cells": [
{
"cell_type": "code",
"execution_count":
2
,
"execution_count":
null
,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"d:\\Felix\\Documents\\Arbeit\\Tutor_Stadtoekologie\\Python\\cca\n",
"d:\\Felix\\Documents\\Arbeit\\Tutor_Stadtoekologie\\Python\\cca\\applications\\tegel\n"
]
}
],
"outputs": [],
"source": [
"%cd ../../\n",
"import cca\n",
...
...
@@ -29,7 +20,7 @@
"tegel = cca.cca_to_df(\n",
" filepath_minfotable=\"materialinfo.ods\",\n",
" filepath_musagetable=\"materialusage.ods\",\n",
" infra_floor_area=
1276.429
,\n",
" infra_floor_area=
5105.716
,\n",
" project_area=213069.25,\n",
" name_of_transport=\"truck_small\",\n",
" write_output=True,\n",
...
...
@@ -40,337 +31,9 @@
},
{
"cell_type": "code",
"execution_count":
7
,
"execution_count":
null
,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>project_scope</th>\n",
" <th>ps_area</th>\n",
" <th>ps_inhabitants</th>\n",
" <th>dim</th>\n",
" <th>infrastructure</th>\n",
" <th>construction_sys_x</th>\n",
" <th>scaled_inhabitants</th>\n",
" <th>scaled_floorarea</th>\n",
" <th>age</th>\n",
" <th>material</th>\n",
" <th>construction_sys_y</th>\n",
" <th>part</th>\n",
" <th>scaled_weight</th>\n",
" <th>scaled_cstorage</th>\n",
" <th>scaled_cemissions_prod</th>\n",
" <th>scaled_cemissions_transp</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>project_scope_sys1_timber_frame</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>min</td>\n",
" <td>infra_sys1_timber_frame</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>gypsum_fibreboard</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>wall</td>\n",
" <td>2.417382e+06</td>\n",
" <td>0.000000e+00</td>\n",
" <td>1.299718e+06</td>\n",
" <td>27714.507570</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>project_scope_sys1_timber_frame</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>min</td>\n",
" <td>infra_sys1_timber_frame</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>osb</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>wall</td>\n",
" <td>2.900094e+06</td>\n",
" <td>1.392045e+06</td>\n",
" <td>2.255769e+05</td>\n",
" <td>33248.642138</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>project_scope_sys1_timber_frame</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>min</td>\n",
" <td>infra_sys1_timber_frame</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>wooden_frame_6-24</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>wall</td>\n",
" <td>7.191478e+06</td>\n",
" <td>3.595739e+06</td>\n",
" <td>1.523651e+05</td>\n",
" <td>82447.968698</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>project_scope_sys1_timber_frame</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>min</td>\n",
" <td>infra_sys1_timber_frame</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>cellulose_insulation</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>wall</td>\n",
" <td>2.961614e+06</td>\n",
" <td>1.480807e+06</td>\n",
" <td>1.939891e+05</td>\n",
" <td>33953.946155</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>project_scope_sys1_timber_frame</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>min</td>\n",
" <td>infra_sys1_timber_frame</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>wood_fibre_insulation_board</td>\n",
" <td>sys1_timber_frame</td>\n",
" <td>wall</td>\n",
" <td>3.924303e+06</td>\n",
" <td>1.667829e+06</td>\n",
" <td>7.754232e+05</td>\n",
" <td>44990.870237</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>178</th>\n",
" <td>project_scope_sys2_mass_timber</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>max</td>\n",
" <td>infra_sys2_mass_timber</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>elastic-bonded_fill_90kg-m2</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>ceiling</td>\n",
" <td>1.713150e+06</td>\n",
" <td>0.000000e+00</td>\n",
" <td>2.150755e+05</td>\n",
" <td>19640.711936</td>\n",
" </tr>\n",
" <tr>\n",
" <th>179</th>\n",
" <td>project_scope_sys2_mass_timber</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>max</td>\n",
" <td>infra_sys2_mass_timber</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>clt</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>ceiling</td>\n",
" <td>6.284382e+07</td>\n",
" <td>3.142191e+07</td>\n",
" <td>2.226255e+06</td>\n",
" <td>720484.084246</td>\n",
" </tr>\n",
" <tr>\n",
" <th>180</th>\n",
" <td>project_scope_sys2_mass_timber</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>max</td>\n",
" <td>infra_sys2_mass_timber</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>plasterboard</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>roof</td>\n",
" <td>2.158128e+06</td>\n",
" <td>0.000000e+00</td>\n",
" <td>9.423991e+04</td>\n",
" <td>24742.240359</td>\n",
" </tr>\n",
" <tr>\n",
" <th>181</th>\n",
" <td>project_scope_sys2_mass_timber</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>max</td>\n",
" <td>infra_sys2_mass_timber</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>wood_fibre_insulation_board_pressure-resistant</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>roof</td>\n",
" <td>1.587104e+07</td>\n",
" <td>6.745192e+06</td>\n",
" <td>3.136906e+06</td>\n",
" <td>181956.345818</td>\n",
" </tr>\n",
" <tr>\n",
" <th>182</th>\n",
" <td>project_scope_sys2_mass_timber</td>\n",
" <td>213069.25</td>\n",
" <td>0</td>\n",
" <td>max</td>\n",
" <td>infra_sys2_mass_timber</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>0</td>\n",
" <td>211887.214</td>\n",
" <td>0</td>\n",
" <td>clt_element</td>\n",
" <td>sys2_mass_timber</td>\n",
" <td>roof</td>\n",
" <td>2.327730e+07</td>\n",
" <td>1.163865e+07</td>\n",
" <td>8.258737e+05</td>\n",
" <td>266866.730637</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>183 rows × 16 columns</p>\n",
"</div>"
],
"text/plain": [
" project_scope ps_area ps_inhabitants dim \\\n",
"0 project_scope_sys1_timber_frame 213069.25 0 min \n",
"1 project_scope_sys1_timber_frame 213069.25 0 min \n",
"2 project_scope_sys1_timber_frame 213069.25 0 min \n",
"3 project_scope_sys1_timber_frame 213069.25 0 min \n",
"4 project_scope_sys1_timber_frame 213069.25 0 min \n",
".. ... ... ... ... \n",
"178 project_scope_sys2_mass_timber 213069.25 0 max \n",
"179 project_scope_sys2_mass_timber 213069.25 0 max \n",
"180 project_scope_sys2_mass_timber 213069.25 0 max \n",
"181 project_scope_sys2_mass_timber 213069.25 0 max \n",
"182 project_scope_sys2_mass_timber 213069.25 0 max \n",
"\n",
" infrastructure construction_sys_x scaled_inhabitants \\\n",
"0 infra_sys1_timber_frame sys1_timber_frame 0 \n",
"1 infra_sys1_timber_frame sys1_timber_frame 0 \n",
"2 infra_sys1_timber_frame sys1_timber_frame 0 \n",
"3 infra_sys1_timber_frame sys1_timber_frame 0 \n",
"4 infra_sys1_timber_frame sys1_timber_frame 0 \n",
".. ... ... ... \n",
"178 infra_sys2_mass_timber sys2_mass_timber 0 \n",
"179 infra_sys2_mass_timber sys2_mass_timber 0 \n",
"180 infra_sys2_mass_timber sys2_mass_timber 0 \n",
"181 infra_sys2_mass_timber sys2_mass_timber 0 \n",
"182 infra_sys2_mass_timber sys2_mass_timber 0 \n",
"\n",
" scaled_floorarea age material \\\n",
"0 211887.214 0 gypsum_fibreboard \n",
"1 211887.214 0 osb \n",
"2 211887.214 0 wooden_frame_6-24 \n",
"3 211887.214 0 cellulose_insulation \n",
"4 211887.214 0 wood_fibre_insulation_board \n",
".. ... ... ... \n",
"178 211887.214 0 elastic-bonded_fill_90kg-m2 \n",
"179 211887.214 0 clt \n",
"180 211887.214 0 plasterboard \n",
"181 211887.214 0 wood_fibre_insulation_board_pressure-resistant \n",
"182 211887.214 0 clt_element \n",
"\n",
" construction_sys_y part scaled_weight scaled_cstorage \\\n",
"0 sys1_timber_frame wall 2.417382e+06 0.000000e+00 \n",
"1 sys1_timber_frame wall 2.900094e+06 1.392045e+06 \n",
"2 sys1_timber_frame wall 7.191478e+06 3.595739e+06 \n",
"3 sys1_timber_frame wall 2.961614e+06 1.480807e+06 \n",
"4 sys1_timber_frame wall 3.924303e+06 1.667829e+06 \n",
".. ... ... ... ... \n",
"178 sys2_mass_timber ceiling 1.713150e+06 0.000000e+00 \n",
"179 sys2_mass_timber ceiling 6.284382e+07 3.142191e+07 \n",
"180 sys2_mass_timber roof 2.158128e+06 0.000000e+00 \n",
"181 sys2_mass_timber roof 1.587104e+07 6.745192e+06 \n",
"182 sys2_mass_timber roof 2.327730e+07 1.163865e+07 \n",
"\n",
" scaled_cemissions_prod scaled_cemissions_transp \n",
"0 1.299718e+06 27714.507570 \n",
"1 2.255769e+05 33248.642138 \n",
"2 1.523651e+05 82447.968698 \n",
"3 1.939891e+05 33953.946155 \n",
"4 7.754232e+05 44990.870237 \n",
".. ... ... \n",
"178 2.150755e+05 19640.711936 \n",
"179 2.226255e+06 720484.084246 \n",
"180 9.423991e+04 24742.240359 \n",
"181 3.136906e+06 181956.345818 \n",
"182 8.258737e+05 266866.730637 \n",
"\n",
"[183 rows x 16 columns]"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"tegel\n"
]
...
...
%% Cell type:code id: tags:
```
python
%
cd
..
/
..
/
import
cca
%
cd
-
```
%% Output
d:\Felix\Documents\Arbeit\Tutor_Stadtoekologie\Python\cca
d:\Felix\Documents\Arbeit\Tutor_Stadtoekologie\Python\cca\applications\tegel
%% Cell type:code id: tags:
```
python
tegel
=
cca
.
cca_to_df
(
filepath_minfotable
=
"
materialinfo.ods
"
,
filepath_musagetable
=
"
materialusage.ods
"
,
infra_floor_area
=
1276.429
,
infra_floor_area
=
5105.716
,
project_area
=
213069.25
,
name_of_transport
=
"
truck_small
"
,
write_output
=
True
,
resolution
=
"
material
"
,
seperate_dfs
=
False
,
)
```
%% Cell type:code id: tags:
```
python
tegel
```
%% Output
project_scope ps_area ps_inhabitants dim \
0 project_scope_sys1_timber_frame 213069.25 0 min
1 project_scope_sys1_timber_frame 213069.25 0 min
2 project_scope_sys1_timber_frame 213069.25 0 min
3 project_scope_sys1_timber_frame 213069.25 0 min
4 project_scope_sys1_timber_frame 213069.25 0 min
.. ... ... ... ...
178 project_scope_sys2_mass_timber 213069.25 0 max
179 project_scope_sys2_mass_timber 213069.25 0 max
180 project_scope_sys2_mass_timber 213069.25 0 max
181 project_scope_sys2_mass_timber 213069.25 0 max
182 project_scope_sys2_mass_timber 213069.25 0 max
infrastructure construction_sys_x scaled_inhabitants \
0 infra_sys1_timber_frame sys1_timber_frame 0
1 infra_sys1_timber_frame sys1_timber_frame 0
2 infra_sys1_timber_frame sys1_timber_frame 0
3 infra_sys1_timber_frame sys1_timber_frame 0
4 infra_sys1_timber_frame sys1_timber_frame 0
.. ... ... ...
178 infra_sys2_mass_timber sys2_mass_timber 0
179 infra_sys2_mass_timber sys2_mass_timber 0
180 infra_sys2_mass_timber sys2_mass_timber 0
181 infra_sys2_mass_timber sys2_mass_timber 0
182 infra_sys2_mass_timber sys2_mass_timber 0
scaled_floorarea age material \
0 211887.214 0 gypsum_fibreboard
1 211887.214 0 osb
2 211887.214 0 wooden_frame_6-24
3 211887.214 0 cellulose_insulation
4 211887.214 0 wood_fibre_insulation_board
.. ... ... ...
178 211887.214 0 elastic-bonded_fill_90kg-m2
179 211887.214 0 clt
180 211887.214 0 plasterboard
181 211887.214 0 wood_fibre_insulation_board_pressure-resistant
182 211887.214 0 clt_element
construction_sys_y part scaled_weight scaled_cstorage \
0 sys1_timber_frame wall 2.417382e+06 0.000000e+00
1 sys1_timber_frame wall 2.900094e+06 1.392045e+06
2 sys1_timber_frame wall 7.191478e+06 3.595739e+06
3 sys1_timber_frame wall 2.961614e+06 1.480807e+06
4 sys1_timber_frame wall 3.924303e+06 1.667829e+06
.. ... ... ... ...
178 sys2_mass_timber ceiling 1.713150e+06 0.000000e+00
179 sys2_mass_timber ceiling 6.284382e+07 3.142191e+07
180 sys2_mass_timber roof 2.158128e+06 0.000000e+00
181 sys2_mass_timber roof 1.587104e+07 6.745192e+06
182 sys2_mass_timber roof 2.327730e+07 1.163865e+07
scaled_cemissions_prod scaled_cemissions_transp
0 1.299718e+06 27714.507570
1 2.255769e+05 33248.642138
2 1.523651e+05 82447.968698
3 1.939891e+05 33953.946155
4 7.754232e+05 44990.870237
.. ... ...
178 2.150755e+05 19640.711936
179 2.226255e+06 720484.084246
180 9.423991e+04 24742.240359
181 3.136906e+06 181956.345818
182 8.258737e+05 266866.730637
[183 rows x 16 columns]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment