OSeMOSYS / osemosys_global

A global power system model generator for OSeMOSYS
https://osemosys-global.readthedocs.io/
GNU Affero General Public License v3.0
27 stars 17 forks source link

Fix geographic filter on international fuel #100

Closed trevorb1 closed 2 years ago

trevorb1 commented 2 years ago

https://github.com/OSeMOSYS/osemosys_global/blob/3b0892cedf45d08d6d5418dc6345df124fdee561/workflow/scripts/osemosys_global/OPG_geographic_filter.py#L44-L46

This needs an additional filtering criteria to keep international traded commodities (such as COA, GAS, ect...)

Quick brainstorm is that it will look something like...

if 'FUEL' in df.columns:
    df = df.loc[df['FUEL'].str[3:6].isin(geographic_scope) |
    df['FUEL'].str[6:9].isin(geographic_scope) |
    df['FUEL'].isin(internationalfuels)]

where international fuels will be the list of traded commodities

trevorb1 commented 2 years ago

closed with pr #101