Exemplo n.º 1
0
 def emission(self, tecs, emis_filter, time_col, metadata={}):
     _filter1 = {'technology': tecs}
     act = self.ds.var('ACT', _filter1)
     _filter2 = dict(emis_filter, **_filter1)
     op = self.ds.par('emission_factor', _filter2)
     _df = utils.multiply_df(act, 'lvl', op, 'value')
     return utils.make_ts(_df, time_col, 'product', metadata=metadata)
Exemplo n.º 2
0
 def activity_input(self, tecs, in_filter, time_col, metadata={}):
     _filter1 = {'technology': tecs}
     act = self.ds.var('ACT', _filter1)
     _filter2 = dict(in_filter, **_filter1)
     op = self.ds.par('input', _filter2)
     _df = utils.multiply_df(act, 'lvl', op, 'value')
     return utils.make_ts(_df, time_col, 'product', metadata=metadata)
Exemplo n.º 3
0
 def new_capacity(self, tecs, time_col, metadata={}):
     _filter = {'technology': tecs}
     act = self.ds.var('CAP_NEW', _filter)
     return utils.make_ts(act, time_col, 'lvl', metadata=metadata)
Exemplo n.º 4
0
 def activity(self, tecs, time_col, metadata={}):
     _filter = {'technology': tecs}
     act = self.ds.var('ACT', _filter)
     return utils.make_ts(act, time_col, 'lvl', metadata=metadata)