Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
125 views
in Technique[技术] by (71.8m points)

python - Brightway2 : import Simapro dataset with water resource locations

I'm importing a Simapro dataset and I plan to resolve the unlinked exchanges by applying a strategy that translate them into existing ones in "biosphere3" database.

The problem is that some water exchanges have specific locations like :

Water, well, BR (resource:in water)
Water, unspecified natural origin, OCE (resource:in water)

example of simapro exchanges and their translation

I would like to keep the specific resources/emissions locations and potentially use them with regionalized LCIA methods like Impact World+.

I know how to specifiy location to technosphere dataset but not to a biosphere dataset. How could I do that ? With "bw2-regional" (https://brightway2-regional.readthedocs.io/index.html) ?

question from:https://stackoverflow.com/questions/65926862/brightway2-import-simapro-dataset-with-water-resource-locations

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have tried something similar in the past. I can confirm, that you can perform regional LCIA calculations using the brightway2 package (without using bw2-regional package). I have done so for a regional water stress method. However, this entails quite a bit of work. In the following a rough description of what I did (feel free to ask more specific questions):

1. Import regional lcia method

As biosphere3 does not contain regional (water) flows, I first imported my regional lcia method. I created my own importer, but you can probably also create one based on the LCIAImporter class, which will allow you to use the add_missing_cfs() function to add new biosphere flows for all the regional characterisation factors of you method. For biopshere flows you can specify the location by adding a new 'location' key to the dictionary object to store the regional identifier.

2. Import simapro database

Only after your biosphere contains all the regional flow you want to keep in your simapro database, you can try to create a new strategy that links the flows of your database to those you created in your biosphere. Note that the SimaProCSVImporter performs many strategies that will change the biosphere flows in you LCI, which would have to be altered (but I suspect this is the part you already worked on).

Alternatively, you could also import you database using the current brightway2 functions. Afterwards you could try to re-link the biosphere flows you want to regionalise to those new ones you added to your biosphere. The wurst package could come in handy.

bw2-regional

With regard to the bw2-regional package I have no experience working with it, but I think it allows for much more complex regional LCA calculations than what you might be used to from simapro.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...