-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathData.ts
515 lines (486 loc) · 10.4 KB
/
Data.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
import { DataSource, DataPoint } from './Interfaces';
interface PopulationDataSource extends DataSource {
data_points: {
at2022: DataPoint;
at2023: DataPoint;
}
}
export const population: PopulationDataSource = {
name: 'Population',
unit: '-',
source: 'https://www.bfs.admin.ch/bfs/de/home/statistiken/bevoelkerung.assetdetail.32374798.html',
year: 2023,
data_points:
{
at2022:
{
name: 'At 2022',
value: 8815385,
},
at2023:
{
name: 'At 2023',
value: 8962258,
},
},
};
interface HouseholdSizeDataSource extends DataSource {
data_points: {
at2022: DataPoint;
}
}
export const household_size: HouseholdSizeDataSource = {
name: 'Household Size',
unit: '-',
source: 'https://www.bfs.admin.ch/news/de/2022-0544',
year: 2022,
data_points:
{
at2022:
{
name: 'At 2022',
value: 2.19,
},
},
};
interface FootprintDataSource extends DataSource {
data_points: {
mobility: DataPoint;
consumption: DataPoint;
housing: DataPoint;
nutrition: DataPoint;
public_services: DataPoint;
};
}
export const footprint: FootprintDataSource = {
name: 'Footprint',
unit: 'kg CO2-eq',
source: 'https://www.wwf.ch/de/nachhaltig-leben/footprintrechner',
year: 2024,
data_points:
{
mobility:
{
name: 'Mobility',
value: 4140,
},
consumption:
{
name: 'Consumption (non Food)',
value: 3800,
},
housing:
{
name: 'Housing and Energy',
value: 2190,
},
nutrition:
{
name: 'Nutrition',
value: 2110,
},
public_services:
{
name: 'Public Services',
value: 1280,
},
},
};
export const footprint_sum = Object.values(footprint.data_points).reduce((sum, data_point) => sum + data_point.value, 0);
interface MobilityFractionsDataSource extends DataSource {
data_points: {
airplane: DataPoint;
ground: DataPoint;
}
}
export const mobility_fractions: MobilityFractionsDataSource = {
name: 'Mobility Fractions',
unit: '% of Mobility',
source: 'https://www.parlament.ch/de/ratsbetrieb/suche-curia-vista/geschaeft?AffairId=20214259',
year: 2021,
data_points:
{
airplane:
{
// Includes national & international, civil & military flights.
name: 'Airplane Mobility',
value: 0.27 / (0.27 + 0.23),
},
ground:
{
name: 'Ground Mobility',
value: 0.23 / (0.27 + 0.23),
},
},
};
interface GroundTransportDataSource extends DataSource {
data_points: {
car: DataPoint;
truck: DataPoint;
delivery_van: DataPoint;
bus: DataPoint;
motorcycle: DataPoint;
ship: DataPoint;
train: DataPoint;
}
}
// Division by (1.0 - 0.005) to account for the 0.5% of national airplane emissions which should not be included in the ground transport.
export const ground_transport_fractions: GroundTransportDataSource = {
name: 'Ground Transport',
unit: '%',
source: 'https://www.bfs.admin.ch/bfs/de/home/statistiken/mobilitaet-verkehr/unfaelle-umweltauswirkungen/umweltauswirkungen.html',
year: 2021,
data_points:
{
car:
{
name: 'Car',
value: 0.723 / (1.0 - 0.005),
},
truck:
{
name: 'Truck',
value: 0.121 / (1.0 - 0.005),
},
delivery_van:
{
name: 'Delivery Van',
value: 0.084 / (1.0 - 0.005),
},
bus:
{
name: 'Bus',
value: 0.03 / (1.0 - 0.005),
},
motorcycle:
{
name: 'Motorcycle',
value: 0.017 / (1.0 - 0.005),
},
ship:
{
name: 'Ship',
value: 0.008 / (1.0 - 0.005),
},
train:
{
name: 'Train',
value: 0.002 / (1.0 - 0.005),
},
},
};
interface TransportEfficiencyDataSource extends DataSource {
data_points: {
plane: DataPoint;
fossil_car: DataPoint;
hybrid_car: DataPoint;
electric_car_ch: DataPoint;
electric_car_eco: DataPoint;
bus: DataPoint;
train_neighbor_countries_avg: DataPoint;
public_transport_avg: DataPoint;
e_bike: DataPoint;
bike: DataPoint;
train_ch: DataPoint;
}
}
export const transport_efficiency: TransportEfficiencyDataSource = {
name: 'Transport Efficiency',
unit: 'g CO2-eq / km / person',
source: 'https://www.wwf.ch/de/nachhaltig-leben/mein-fussabdruck-mobilitaet',
year: 2021, // 2022 ESU-services, 2020 Mobitool
data_points:
{
plane:
{
name: 'Plane',
value: 375,
},
fossil_car:
{
name: 'Car, gas or diesel',
value: 222,
},
hybrid_car:
{
name: 'Car, hybrid',
value: 171,
},
electric_car_ch:
{
name: 'Car, electric, CH electricity',
value: 89,
},
electric_car_eco:
{
name: 'Car, electric, eco electricity',
value: 75,
},
bus:
{
name: 'Bus',
value: 62,
},
train_neighbor_countries_avg:
{
name: 'Train (avg. DE, FR, AT, IT)',
value: 42,
},
public_transport_avg:
{
name: 'Public Transport avg. CH',
value: 25,
},
e_bike:
{
name: 'E-bike',
value: 14,
},
bike:
{
name: 'Bicycle',
value: 8,
},
train_ch:
{
name: 'Train, CH',
value: 7,
},
},
};
interface ConsumptionDataSource extends DataSource {
data_points: {
furniture_household_devices: DataPoint;
spare_time_culture: DataPoint;
restaurants_hotels: DataPoint;
construction: DataPoint;
other_consumption: DataPoint;
clothing_shoes: DataPoint;
}
}
export const consumption: ConsumptionDataSource = {
name: 'Consumption (non Food)',
unit: 'kg CO2-eq',
source: 'https://www.wwf.ch/de/nachhaltig-leben/footprintrechner',
year: 2024,
data_points:
{
furniture_household_devices:
{
name: 'Furniture and Household Devices',
value: 890,
},
spare_time_culture:
{
name: 'Spare Time and Culture',
value: 740,
},
restaurants_hotels:
{
name: 'Restaurants and Hotels',
value: 680,
},
construction:
{
name: 'Construction',
value: 680,
},
other_consumption:
{
name: 'Other Consumption',
value: 480,
},
clothing_shoes:
{
name: 'Clothing and Shoes',
value: 330,
},
},
};
interface ExtendedUsageDataSource extends DataSource {
data_points: {
smartphone: DataPoint;
clothing: DataPoint;
furniture: DataPoint;
}
}
export const extended_usage: ExtendedUsageDataSource = {
name: 'Extended Usage',
unit: 'kg CO2-eq',
source: 'https://www.greenpeace.ch/static/planet4-switzerland-stateless/2022/03/20967b15-infras_zusammenfassung-laengere-nutzungsdauer_de_20220322.pdf',
year: 2022,
data_points:
{
smartphone:
{
name: 'Use Smartphone 5.3 instead of 2.3 Years',
value: 91000000 / population.data_points.at2022.value,
},
clothing:
{
name: 'Use Clothing 7 instead of 4 Years',
value: 1486000000 / population.data_points.at2022.value,
},
furniture:
{
name: 'Use Furniture 13.5 instead of 10.5 Years',
value: 143000000 / population.data_points.at2022.value,
},
},
};
interface RecycleDataSource extends DataSource {
data_points: {
recycle: DataPoint;
}
}
export const recycle: RecycleDataSource = {
name: 'Recycle',
unit: 'kg CO2-eq',
source: 'https://swissrecycle.ch/de/wertstoffe-wissen/leistungsbericht-2023/kennzahlen',
year: 2022,
data_points:
{
recycle:
{
name: 'Recycle',
value: 507000000 / population.data_points.at2022.value,
},
},
};
interface AverageHeatingDataSource extends DataSource {
data_points: {
oil: DataPoint;
gas: DataPoint;
others: DataPoint;
}
}
export const average_heating: AverageHeatingDataSource = {
name: 'Average Heating Emissions',
unit: 'kg CO2-eq',
source: 'https://www.bafu.admin.ch/bafu/de/home/themen/klima/zustand/daten/co2-statistik.html',
year: 2023,
data_points:
{
oil:
{
name: 'Oil',
value: 6200000000 / population.data_points.at2023.value,
},
gas:
{
name: 'Gas',
value: 5460000000 / population.data_points.at2023.value,
},
others:
{
name: 'Others',
value: 560000000 / population.data_points.at2023.value,
},
},
};
interface HeatingMethodsDataSource extends DataSource {
data_points: {
oil: DataPoint;
gas: DataPoint;
pellet: DataPoint;
heat_pump: DataPoint;
earth_heat: DataPoint;
}
}
export const heating_methods: HeatingMethodsDataSource = {
name: 'Heating Methods',
unit: 'kg CO2-eq',
source: 'https://www.houzy.ch/post/co2-emissionen-von-heizungen',
year: 2015,
data_points:
{
oil:
{
name: 'Oil',
value: 4680,
},
gas:
{
name: 'Gas',
value: 3650,
},
pellet:
{
name: 'Pellet',
value: 710,
},
heat_pump:
{
name: 'Heat Pump',
value: 490,
},
earth_heat:
{
name: 'Earth Heat',
value: 380,
},
},
};
interface ShowerSavingsDataSource extends DataSource {
data_points: {
economy_shower: DataPoint; // = Sparbrause.
}
}
export const shower_savings: ShowerSavingsDataSource = {
name: 'Shower Savings',
unit: 'kg CO2-eq',
source: 'https://duschbrause-co2.ch/fileadmin/ihs_bilder_grafiken/infografik_einsparungen_haushalt.jpg',
year: 2023,
data_points:
{
economy_shower:
{
name: 'Economy Shower',
value: 400.0 / 3.0,
},
},
};
interface PowerProductionEfficiencyDataSource extends DataSource {
data_points: {
average: DataPoint;
solar: DataPoint;
}
}
export const power_production_efficiency: PowerProductionEfficiencyDataSource = {
name: 'Power Production Efficiency',
unit: 'kg CO2-eq / kWh',
source: 'https://www.swissolar.ch/01_wissen/swissolar-publikationen/branchen-faktenblatt_pv_ch_d.pdf',
year: 2020,
data_points:
{
average:
{
name: 'Average',
value: 0.128,
},
solar:
{
name: 'Solar',
value: 0.042,
},
},
};
interface PowerProductionYieldDataSource extends DataSource {
data_points: {
solar: DataPoint;
}
}
export const power_production_yield: PowerProductionYieldDataSource = {
name: 'Power Production Yield',
unit: 'kWh / kWp',
source: 'https://www.solarenergie.de/photovoltaikanlage/finanzielles/lohnt-sich-photovoltaik/photovoltaik-im-winter',
year: 2020,
data_points:
{
solar:
{
name: 'Solar',
value: 900,
},
},
};