-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add narrative docs and remove old information from readme
- Loading branch information
Showing
6 changed files
with
192 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# Configuration File | ||
|
||
## Fields | ||
|
||
??? info "`mode`" | ||
|
||
The alignment mode to use. | ||
|
||
Possible values are: | ||
|
||
* `panel`: For aligning panels within one mirror. | ||
* `optical`: For aligning optical elements relative to each other (as solid bodies). | ||
|
||
??? info "`mirror`" | ||
|
||
The mirror that we want to align panels to. | ||
Only used if `mode` is `panel`. | ||
|
||
Possible values are: | ||
|
||
* `primary`: To align the primary mirror. | ||
* `secondary": The align the secondary mirror. | ||
|
||
??? info "`align_to`" | ||
|
||
Which optical element to keep fixed and align the others to. | ||
Only used if `mode` is `optical`. | ||
|
||
Possible values are: | ||
|
||
* `primary`: To align to the primary mirror. | ||
* `secondary": The align to the secondary mirror. | ||
* `receiver": The align to the receiver. | ||
* `bearing": The align to the bearing. | ||
|
||
??? info "`measurement`" | ||
|
||
The path to the photogrammetry data we are using to do the alignment. | ||
If this is a relative path it is taken relative to the directory that the | ||
configuration file is in. | ||
|
||
??? info "`data_dir`" | ||
|
||
The path to the data files that define the panel corners and the adjuster positions. | ||
If this is a relative path it is taken relative to the directory that the | ||
configuration file is in. | ||
|
||
You genrally don't need to provide this since the package will use its own bundled | ||
data files by default. | ||
|
||
??? info "`load`" | ||
|
||
Additional keyword arguments to pass to | ||
[`io.load_photo`](https://simonsobs.github.io/LAT_Alignment/latest/reference/io/#lat_alignment.io.load_photo). | ||
|
||
|
||
??? info "`compensate`" | ||
|
||
Amount to compensate mirror measurements by in mm. | ||
This is for backwards compatiblilty with laser tracker data and is $0$ by default. | ||
|
||
|
||
??? info "`common_mode`" | ||
|
||
Additional keyword arguments to pass to | ||
[`mirror.remove_cm`](https://simonsobs.github.io/LAT_Alignment/latest/reference/mirror/#lat_alignment.mirror.remove_cm) | ||
|
||
??? info "`adjuster_radius`" | ||
|
||
How close to an adjuster a data point needs to be in order for us to use its residual as | ||
a secondary correction when computing adjustments. | ||
Only used if `mode` is `panel`. | ||
|
||
This is $100$ mm by default. | ||
|
||
??? info "`vmax`" | ||
|
||
The maximum value to use in the colorbar when plotting mirror surface. | ||
The colorbar is symmetric so `vmin = -1*vmax`. | ||
|
||
??? info "`adjust`" | ||
|
||
Additional keyword arguments to pass to | ||
[`adjustments.calc_adjustments`](https://simonsobs.github.io/LAT_Alignment/latest/reference/adjustments/#lat_alignment.adjustments.calc_adjustments) | ||
|
||
??? info "`title`" | ||
|
||
The title of the measurement. | ||
This is used both in plots and in output filenames. | ||
|
||
|
||
## Example Configuration Files | ||
These are typical configuration files, | ||
you usually will not need to touch fields other than the ones shown here. | ||
|
||
### Panel Alignment | ||
|
||
```yaml | ||
mode: "panel" | ||
mirror: "secondary" | ||
measurement: "data_20240911_1430.csv" | ||
title: "M2 20240911 1430" | ||
vmax: 50 | ||
``` | ||
### Optical Element Alignment | ||
WIP! Check back later! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Coordinate Systems | ||
|
||
There are many coordinate systems that have been used to describe the | ||
LAT mirror, most of them were used a single time and them replaced. | ||
Here we describe the six coordinate systems that are actively used. | ||
These six coordinate systems can be organized into two groups: | ||
the "Optical" coordinate systems and the "Vertex" coordinate systems. | ||
Each of these groups contains three coordinate systems: "Global", "Primary", and "Secondary"; | ||
where "Global" is a global reference frame for the whole telescope, | ||
"Primary" is an internal reference frame for the primary mirror, | ||
and "Secondary" is an internal reference frame for the secondary mirror. | ||
|
||
In general this software package does all of its computations in the | ||
"Optical" systems, but it is useful to understand the "Vertex" systems | ||
so that one can utilize measurements provided by Vertex. | ||
|
||
Note that this page is mostly to give the user an understanding of how | ||
these coordinate systems are defined. You should never have to transform | ||
between them by hand. For that please use the | ||
[`transforms.coord_transform`](https://simonsobs.github.io/LAT_Alignment/latest/reference/transforms/#lat_alignment.transforms.coord_transform) function. | ||
|
||
|
||
### Optical Coordinate Systems | ||
|
||
The optical coordinate systems are designed to be logical given the optics of the telescope. | ||
|
||
For "Primary" and "Secondary" the axis are defined such that: | ||
|
||
* The $x$ axis changes as the panel column number changes. | ||
* The $y$ axis changes as the panel row number changes. | ||
* The $z$ axis is normal to the mirror surfaces. | ||
|
||
And the origin is at the center of the mirror surface. | ||
The mirror model in [`mirror.mirror_surface`](https://simonsobs.github.io/LAT_Alignment/latest/reference/mirror/#lat_alignment.mirror.mirror_surface) | ||
is computed in these coordinates. | ||
|
||
The directions of the axis relative to the mirror surface is not the same for the two mirrors, | ||
check the diagram below to see where they point. | ||
|
||
The "Global" coordinate system is defined such that: | ||
|
||
* The $x$ axis is tangent to the telescope's azimuth rotation. | ||
* The $y$ axis points towards the receiver. | ||
* The $z$ axis points in the direction that light enters the telescope. | ||
|
||
And the origin is set so that the origin of the "Primary" system | ||
lies along the "Global" $z$ axis and the origin of the "Secondary" | ||
system lies along the "Global" $y$ axis. | ||
|
||
![Diagram describing the Optical coordinate systems](./imgs/coords.png) | ||
|
||
|
||
### Vertex Coordinate Systems | ||
|
||
The vertex coordinate systems were developed by Vertex and are used for all of there | ||
alignment purposes. If you get data from Vertex it is likely in this format. | ||
|
||
For "Primary" and "Secondary" the axis are defined such that: | ||
|
||
* The $x$ axis changes as the panel row number changes. | ||
* The $y$ axis changes as the panel column number changes. | ||
* The $z$ axis is normal to the mirror surfaces. | ||
|
||
The origins are the same as in the "Optical" coordinate systems. | ||
See the diagram below for the orientation of these axes. | ||
|
||
The "Global" coordinate system is defined such that: | ||
|
||
* The $x$ axis points towards the receiver. | ||
* The $y$ axis is tangent to the telescope's azimuth rotation. | ||
* The $z$ axis points out of the telescope. | ||
|
||
The origin is offset by 120 mm along the "Vertex" $x$ | ||
(so the "Optical" $y$ axis). The reason for the offset | ||
is unclear. | ||
|
||
![Diagram describing the Vertex coordinate systems](./imgs/coords_va.png) |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.