dstansby / pfsspy

Potential Field Source Surface model package for Python
https://pfsspy.readthedocs.io/
Other
40 stars 17 forks source link

Adding more info to the 3D PFSS solution #353

Closed MohamedNedal closed 2 years ago

MohamedNedal commented 2 years ago

Hello, how can I do the following with the attached 3D figure:

  1. Plot 3D mesh representing the Sun?
  2. Show the Earth line-of-sight and the Earth's orbit?

image

TrestanSimon commented 2 years ago

Plot 3D mesh representing the Sun?

IIRC, doing this will be difficult with matplotlib. If you were to plot both a sphere and the PFSS field lines, the sphere will appear in front of all of the field lines despite physically being behind them (or vice versa). This issue has previously been documented here, and the recommended workaround is to use MayaVi.

dstansby commented 2 years ago

I'd recommend looking at https://docs.sunpy.org/projects/sunkit-pyvista/en/latest/ for 3D visualisation, since it's a true 3D renderer. Since I don't think there's anything to be fixed or added on the pfsspy size I'm going to close this PR. If you still have questions about how to do particular things I'd recommend posting on https://community.openastronomy.org/c/sunpy/5 where there is a welcoming and wider community that should be able to help 😄