Added a new output "Aggregated Exposure Values"#10268
Merged
Merged
Conversation
raoanirudh
reviewed
Jan 21, 2025
raoanirudh
left a comment
Member
There was a problem hiding this comment.
Should we call the new output and the corresponding filename agg_exposure? agg_keys is not very intuitive for the user.
Contributor
Author
|
I was thinking about |
Member
Is this aggregated risk or aggregated exposure though?
It does show up in the output filename, eg. agg_keys_5.csv |
Contributor
Author
|
There is also a hidden output In [1]: ds=datastore.read(-1) # EventBasedRisk demo
In [2]: from openquake.calculators.extract import extract
In [3]: extract(ds, 'aggrisk_keys')
Out[3]:
NAME_1 number nonstructural ... occupants_avg nonstructural_risk structural_risk
0 Central 1860271.0 3.691708e+10 ... 9156211.0 3.362334e+07 5.352983e+07
1 East 1222419.0 2.425890e+10 ... 5965417.0 1.321316e+07 2.064822e+07
2 Far-Western 497029.0 9.863541e+09 ... 2425532.0 9.718793e+06 1.509877e+07
3 Mid-Western 728432.0 1.445573e+10 ... 3554826.0 1.281419e+07 1.986575e+07
4 West 1057610.0 2.098827e+10 ... 5161162.0 1.890115e+07 2.950091e+07 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For the WFP project.