dstansby / pfsspy

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

Getting B(x, y, z) along each field line #201

Closed MohamedNedal closed 3 years ago

MohamedNedal commented 4 years ago

Hello, I would suggest adding functionality to get the 3 components of the extrapolated magnetic field along each generated field line i.e., B(x,y,z) I think that would be very helpful to trace the evolution of the magnetic field at different locations and at different heights.

Thank you very much for this amazing work!

dstansby commented 3 years ago

Thanks for opening this! Once #209 is merged this should be pretty easy to solve. When that is merged, I'll write an example for the example gallery showing how to get B along a field line.

MohamedNedal commented 3 years ago

Hi! @dstansby I tried to run the example code:

plot_field_line_magnetic_field.py

and I got this error: AttributeError: 'FieldLine' object has no attribute 'b_along_fline' How can I fix it please?

dstansby commented 3 years ago

The example hasn't been added to a pfsspy release yet - I'll let you know when the next release is out.

MohamedNedal commented 3 years ago

Thank you very much! can't wait :)

On Sat, Sep 26, 2020 at 7:06 PM David Stansby notifications@github.com wrote:

The example hasn't been added to a pfsspy release yet - I'll let you know when the next release is out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dstansby/pfsspy/issues/201#issuecomment-699514663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKSYB6NRVOSH5F3EUPYSRDSHYGP3ANCNFSM4ODHEC3Q .

-- Mohamed Nedal PhD Student in Heliophysics