trajectory
Script for analyzing trajectory of a point on optical elements.
correct_rot(src, angle, cent, off=0)
Remove the rotation of an element from a point. For example undo corotation from a point on the LATR.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
src
|
NDArray[float64]
|
The data to rotate.
Should be |
required |
angle
|
NDArray[float64]
|
The angle in degrees of the element at each data point.
Should by |
required |
cent
|
NDArray[float64]
|
The center of rotation of the point.
Should be |
required |
Returns:
| Name | Type | Description |
|---|---|---|
src |
NDArray[float64]
|
The data with the rotation removed. The input is also modified in place. |
Source code in lat_alignment/trajectory.py
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | |
get_angle(data, mode, start, sep, logger)
Reconstruct the angle of an opitcal element from data of a point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
NDArray[float64]
|
A |
required |
mode
|
str
|
The mode this data was taken in.
Should be |
required |
start
|
float
|
The angle of the element at the first data point. Should be in degrees. |
required |
sep
|
float
|
The seperation between measurements.
If we are in |
required |
logger
|
Logger
|
The logger object to use. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
angle |
NDArray[float64]
|
The reconstructed angle in degrees.
Will be a |
center |
NDArray[float64]
|
The center of rotation. |
Source code in lat_alignment/trajectory.py
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 | |