-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add zone data aggregation functionality #460
Conversation
Hi, thank you for your PR! What is the use case for this? Why would we benefit for having Does |
Here are two use cases:
Both of these use cases could of course be done with a separate script that produces transformed land-use files. The downside of a separate script is that you would have these transformed land-use files to keep track of. What if the source files were updated, but you forgot to run the transformation script? Would you notice that the transformed land-use files are now outdated? With the built-in transformation, you point directly to the non-transformed files in the model run, so no need to remember which files are transformed versions of which files. Besides, data aggregation is convenient in |
If the wrong |
Thank you for the argumentation! :) Let me know when you need help with the PR! |
My apologies for returning to this so late. I have the model run running, and I will approve this by the end of the week if is shows no glitches. |
Hmm, results for basic 2018 model run are different than from this PR and the other one #477. However, the results from both PRs are the same. I'm suspecting some weird error in my basic 2018 run, so I will make new runs and return to this once they are finished. Sorry for the delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results look good, nice work!
This PR enables the following:
All of this is enabled by adding a
zone_mapping.txt
file to scenario-input folder, which contains the mapping between input file zones and network zones.Caveat: Aggregation of shares of detached houses (as share of total building area) is coded as an
else
clause which calculates a simple average, but that is not a very nice solution. A nicer solution would be to movedetach
to.pop
file and calculate it as a weighted average with population as weight. But this solution will break backwards compatibility.