error
Script for calculating HWFE and pointing error. Also tells you how to move whatever elements are included.
get_hwfe(data, get_transform, add_err=False)
Get the HWFE errors based on the mirror and receiver positions. This calculation is from Parshely et al.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
DatasetReference
|
This dataset must at least contain the primary mirror. |
required |
get_transform
|
Callable[[NDArray[float64], NDArray[float64]], tuple[NDArray[float64], NDArray[float64]]]
|
Function that takes in two point clouds and returns an affine matrix and a shift to align them. |
required |
add_err
|
bool
|
If True add the error term to the data. |
False
|
Returns:
Name | Type | Description |
---|---|---|
hwfe |
float
|
The HWFE in um-rms. |
Source code in lat_alignment/error.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
get_pointing_error(data, get_transform, add_err=False, thresh=0.01)
Get the pointing error based on the mirror and receiver positions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
DatasetReference
|
Dataset of measured reference points. |
required |
get_transform
|
Callable[[NDArray[float64], NDArray[float64]], tuple[NDArray[float64], NDArray[float64]]]
|
Function that takes in two point clouds and returns an affine matrix and a shift to align them. |
required |
add_err
|
bool
|
If True add the error term to the data. |
False
|
thresh
|
float
|
The threshold in arcsecs to discard a rotation. |
.01
|
Returns:
Name | Type | Description |
---|---|---|
pe |
float
|
The pointing error in arcsecs. |
Source code in lat_alignment/error.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
|