-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 pfsspy current sheet plotting #53
Comments
Hello, dstansby.
New to GitHub so I guess it would be better to paste these codes directly rather than risk pulling requests... :) |
😮 that looks amazing, thanks for sharing! I don't have time to help a pull request at the moment, but if you want to have a go at opening a PR we have a guide for newcomers at https://docs.sunpy.org/en/latest/dev_guide/contents/newcomers.html, and maybe someone else would be able to help. |
Thank you for the guidance! Let me check the guide first. |
Sorry for getting back so late. If you have time please take a look at my code. 👀
|
Hi @wzq215, sorry I have not had some time currently to look at your example. I assume the lines should start at the current sheet and not pass through, that is your issue? |
Hi @nabobalis. Yes, that is the problem. |
Hi @wzq215, apologies for the necropost, but was the issue with this code ever resolved? I am interested in implementing this feature and would be happy to help out. |
Hi @TrestanSimon. Thank you for your attention to this! In my example, I try to extract the current sheet by extracting the isosurface Br=0 from pfss_output (using I think the problem that the field lines pass through the current sheet is caused by:
Would you happen to know how to transform the coordinate frame of pfss_output? If I define |
Hi again @wzq215, I believe I have solved the problem. The pfss_output data just needs to be shifted by the longitude offset of the input map. In FITS files this offset is defined by the keyword CRVAL1. The code in #53 (comment) would look like
where The |
@wzq215 Are you able to open a pull request for this? |
Sorry I've been a little busy this week but I'm working on it :) |
I have opened a pull request (It's my first pull request, and I hope I didn't mess up...)
I'm afraid I'm still not very clear about the coordinates of the pfss output. This code I use works (gets compatible field lines and current sheets in a specified coordinate_frame) but it also seems weird... |
Regarding pfsspy output, have you checked out Anthony Yeates's PFSS Manual? It explains the numerical grid used in Yeates's (and pfsspy's) PFSS solver. What in particular seems weird? |
Would it make sense in the future to have the current sheet output be by the future version of pfsspy instead of (or in addition to?) sunkit-pyvista so that other non-pyvista-dependent packages can take advantage of it?
|
I agree, it makes more sense outside of sunkit-pyvista. Until we get a replacement for |
In a$B_{r}$ . It would be really nice to be able to plot this in sunkit-pyvista. The tricky bit here will be working out how to extract the surface from the PFSSPy solution.
pfsspy
solution there is a current sheet, which is the surface whereThe text was updated successfully, but these errors were encountered: