Feature/add separatrix and magnetic axes in plotequilibrium#20
Conversation
|
This doesn't look correct. In this configuration the separatrix should connect to the lower X-point which it doesn't. Can we also plot the two X-points in this figure? |
|
The sepratrix plotted from the boundary.r/z is not real separatrix, it is rather last closed flux surface. Therefore it would be useful to check if boundary_separatrix.r/z and boundary_second_separatrix.r/z are available and try to plot all three of them. The boundary_separatrix and boundary_second_separatrix can contain x_point.r/z, for more specific indication of x-points. These would be good to be plotted when they are available in the IDSs. |
|
I suggest then to just rename 'speratrix' into 'LCFS' such that everyone is happy. Ideally it would be good to also display the separatrix but my guess is that the data is simply not filled in the IDS. |
|
It's not the last closed flux surface, that would be the separatrix. It might be the last closed flux surface according to some discretisation of flux values, but that seems a bit arbitrary. |
|
We should decide what we want here:
|
Thank you.. I could not find any IMAS entry with |
|
Thanks for the comments @SimonPinches
|
Added here 0cd9c11 |
Open point: the title needs rethinking to be made smarter / more useful (from the current info I think only time is worth keeping, but time is already shown in the provenance info (which is difficult/impossible to read). So maybe a compromise is to use the provenance capture flag and present prov info (URI + time if relevant) as the title of the figure, and without prov we simply don't set a title. What do you think? |
|
I don't like the clear overlay button functionality (in addition to add overlay one has to click show legend, not intuitive) buttons and provenance (tiny characters on top left) are colliding with title if we resize the canvas --> can we remove them (provenance I would remove from all plots, maybe you can have a general option to show on the figure, but if people use this tool for plotting data they want to incorporate in a paper they will likely give better provenance information in the text) why putting coords of geom axis in legend, and not of mag axis? (I won't put neither in the legend) legends inside the plot area hides the plot itself --> was better outside IMO don't keep the "Overlays (click to toggle)" in the legends, and don't add the "quantities" in the legend (but you can keep the quantities box, outside the plot) in terms of look & feel, I would give strike points the same color than the x points (to have a bit less different colors on the plot) Open point: the title needs rethinking to be made smarter / more useful (from the current info I think only time is worth keeping, but time is already shown in the provenance info (which is difficult/impossible to read). So maybe a compromise is to use the provenance capture flag and present prov info (URI + time if relevant) as the title of the figure, and without prov we simply don't set a title. What do you think? Implementation |
|
…added --no-overlay option. default it will show overlays. added provennace as title
…in_plotequilibrium
We shall keep implementation of strike points from DD3.. Once we have addition of fields for strike points in DD4 we will add implementation for the same.. |
paulotex
left a comment
There was a problem hiding this comment.
LGTM. I tried on 2 data entries from efitpp (predictMagnetics + efitpp, from scenarios 105027/2 and 135011/7).
|
Last round of comments:
idsprint -u imas:mdsplus?path=/work/imas/shared/imasdb/TEST/3/134173/2326#equilibrium/time_slice[0]/profiles_2d[0]/phi
09:53:03 INFO Parsing data dictionary version 3.40.0 @dd_zip.py:89
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ <class 'imas.ids_primitive.IDSNumericArray'> │
│ └── numpy.ndarray|(101, 101)|float64: <IDSNumericArray (IDS:equilibrium, time_slice[0]/profiles_2d[0]/phi, FLT_2D)> │
│ numpy.ndarray([[-69.5883, -69.5883, -69.5883, ..., -69.5883, -69.5883, -69.5883], │
│ [-69.5883, -69.5883, -69.5883, ..., -69.5883, -69.5883, -69.5883], │
│ [-69.5883, -69.5883, -69.5883, ..., -69.5883, -69.5883, -69.5883], │
│ ..., │
│ [-69.5883, -69.5883, -69.5883, ..., -69.5883, -69.5883, -69.5883], │
│ [-69.5883, -69.5883, -69.5883, ..., -69.5883, -69.5883, -69.5883], │
│ [-69.5883, -69.5883, -69.5883, ..., -69.5883, -69.5883, -69.5883]]) |






plotequilibrium -u imas:hdf5?path=/work/imas/shared/imasdb/ITER/3/135014/1