agoenergy / ptx-boa

PtX-BOA is a tool which allows users to calculate the delivered cost of PtX molecules from an export country to an import country, with a detailed cost breakdown comparison highlighting the competitive edge of one country against another.
https://www.agora-industry.org/data-tools/ptx-business-opportunity-analyser
Creative Commons Attribution Share Alike 4.0 International
9 stars 2 forks source link

add sankey diagram of process chain #233

Open markushal opened 9 months ago

markushal commented 9 months ago

grafik

joAschauer commented 8 months ago

Hi @wingechr, in order to render a sankey diagram as shown above, we would need to get data from different steps of the chain within api_calc.py. The data ideally has the following form:

{'node': ['RES-GEN',
          'ELY',
          'DERIV',
          'TRANSPORT_PRE',
          'TRANSPORT',
          'TRANSPORT_POST',
          'OUTPUT',
          'LOSSES',
          'WATER',
          'HEAT',
          'CO2',
          'BUNKER_FUEL',
          'DAC',
          'DESAL'],
 'source': [0, 1, 2, 3, 4, 5, 13, 8, 2, 2, 12, 10, 0, 11],
 'target': [1, 2, 3, 4, 5, 6, 8, 1, 8, 9, 10, 2, 12, 4],
 'value': [6, 5, 4, 3, 2, 1, 0.5, 1, 0.5, 1, 1, 1, 1, 1]}

@markushal what do you want to show as "value"? At the moment only the cost of each step is calculated.

I think it would take a lot of time to add this feature.

markushal commented 7 months ago

@markushal what do you want to show as "value"? At the moment only the cost of each step is calculated.

I would like to show the energy flows, I think they are stored in parameter "FLOW".

I think it would take a lot of time to add this feature.

It would be a cool feature and add value to the app, but it has low priority. We did not promise it to Agora.