cenpiccurs cen pic curs diff invert functions
GOAL: Provide to user following functions (from cenpiccurs.mac):
-
cen: to draw a line on the center of mass of the curve -
fwhm : to draw a line on the FWHM of the curve (only if correctly determined ?)- how to check validity ?
- Is there a better name ?
- pic: to draw a line on the nearest to maximum scan point
- curs: to draw a cursor allowing user to go to a particular point
- to be replaced by a graphical tool ?
- diff: replace the curve by its derivative ; or from flint directly? No need for cmdline func?
- invert: replace the curve by its opposite ; or from flint directly? No need for cmdline func?
NB:
- check also functions of lineup.mac
- check tw.mac ?
NOTES:
- these functions must be as easy to use as possible.
- They are used very often in alignment phase.
- In SPEC it was typically only 3 or 4 letters to enter.
- They must be callable in python code to automatize alignments / calibrations / sequences
- We should provide both usages: graphical and CLI
IDEA:
- in case of clic clic interface: possibility to fit always the scan and if the fit succeeded, user is proposed icons to cenpiccurs on fitted data or raw data. if fit failed, Fdata icons are grayed.
VALIDITY of calculations:
- if fwhm is "too far" from pic, curve might be not very gaussian...
QUESTIONS:
- make the movement of the scanned motor(s) to the determined positions ?
- Usage of a fitted curve instead of raw data ?
- what about 2 motors scans ?
- make all these functions graphically (mouse click) ?
Edited by Cyril Guilloud