Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Plot magnetogram on solar surface in PFSS 3d plot #60

Open
jgieseler opened this issue Jun 19, 2024 · 1 comment
Open

Plot magnetogram on solar surface in PFSS 3d plot #60

jgieseler opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jgieseler
Copy link
Owner

jgieseler commented Jun 19, 2024

The PFSS extension offers a 3d plot including the Sun, like the following (e.g., run PFSS analysis in streamlit beta version):

newplot

For this figure, provide the option to plot the magnetogram (that has been downloaded for the PFSS analysis before) on the solar surface. This is already accomplished with sunkit-pyvista's example https://docs.sunpy.org/projects/sunkit-pyvista/en/stable/generated/gallery/field_lines.html:

image

But that uses a different plotting engine. So either check if it makes sense to start with the sunkit-pyvista plot and add the solarmach functionality to that, or see how the plotting is done there and apply it to the current plotly figure used in solarmach. For the first option, one important question to check is whether sunkit-pyvista can be run within streamlit.

@jgieseler
Copy link
Owner Author

But that uses a different plotting engine. So either check if it makes sense to start with the sunkit-pyvista plot and add the solarmach functionality to that, or see how the plotting is done there and apply it to the current plotly figure used in solarmach. For the first option, one important question to check is whether sunkit-pyvista can be run within streamlit.

pyvista is so far only indirectly supported by streamlit (cf. e.g. https://discuss.streamlit.io/t/stpyvista-show-pyvista-3d-visualizations-in-streamlit/31802/23), so right now it's probably not a good idea to rely on it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant