Skip to content
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

ARISTOTLE: add a plot of the rupture, including names of populated places #10107

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

ptormene
Copy link
Member

When retrieving the rupture data, a plot of the rupture is displayed if available (without needing to run the calculation).
I'm also including the names of populated places, making it easier to identify the location in the map.
This is a first step, that includes the implementation of the infrastructure to display images below the button to retrieve rupture data after pressing it.
The next step will be to replace this plot with those displaying PGA and MMI.

Screenshot from 2024-10-30 17-06-44

@ptormene ptormene added this to the Engine 3.22.0 milestone Oct 30, 2024
@ptormene ptormene self-assigned this Oct 30, 2024
:returns: a DataFrame of points corresponding to populated places
"""
mosaic_dir = config.directory.mosaic_dir
fname = os.path.join(mosaic_dir, 'worldcities.csv')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should put the content of worldcities.csv inside exposure.hdf5, so that we would depend on a single file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants