Open lordofbejgli opened 3 years ago
This is fine, except that my proposal was to develop plot type in the general flap.plot() which plots lines. In the example it is done line-by-line, but one could invent a plot type which plots all the lines.
Please look at the new pull request where line, path and contour overplotting have been implemented in plot.py.
The description how to use it is in the file. It works quite well, I've been using it for about 1.5yers now to over plot field lines, the separatrix and cross-sections of magnetic surfaces onto the animation, anim-image and anim-contour. Plotting a line works for the rest of the plot-types, as well. You can see an example usage in the flap_nstx package in the nstx_gpi_video.py.
P.S.: It's quite funny that the thelampire-patch-03 has contained this modification for 1.5years but nobody has ever looked at it.
I think this new feature I implemented also connects this issue. Now it's possible to over plot a grid of arrows onto the anim-contour, contour and animation. This is useful for depiction of velocimetry data. See the new version of thelampire-patch-003. I am planning to merge the pull request tomorrow.
Field-line points should be read into a FLAP data object (various metadata included). First step is to make such an example. Field lines are to be stored in a separate database, creating, maintaining, and overall dealing with that should be done by a separate modul. Another modul shall handle spatial conversion and projection to pixel coordinates. Displaying field lines should be done by a submodule of the various camera moduls. Initial examply by ZS is attached. flap_fieldtest.zip