aliprocessing 2025.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. __init__.py +0 -0
  2. aliprocessing/__init__.py +0 -0
  3. aliprocessing/_version.py +16 -0
  4. aliprocessing/core/__init__.py +0 -0
  5. aliprocessing/core/instrument/__init__.py +0 -0
  6. aliprocessing/data/retrieval/aerosol_apriori.txt +52 -0
  7. aliprocessing/l1b/__init__.py +0 -0
  8. aliprocessing/l1b/data.py +1 -0
  9. aliprocessing/l2/__init__.py +0 -0
  10. aliprocessing/legacy/__init__.py +0 -0
  11. aliprocessing/legacy/instrument/__init__.py +0 -0
  12. aliprocessing/legacy/instrument/aotf.py +280 -0
  13. aliprocessing/legacy/instrument/data/Aluminum_Coating_Comparison_Data.xlsx +0 -0
  14. aliprocessing/legacy/instrument/data/aluminum_coating_thorlab.txt +1979 -0
  15. aliprocessing/legacy/instrument/data/gold_coating_mirror_aoi12.txt +1973 -0
  16. aliprocessing/legacy/instrument/data/gold_coating_mirror_aoi45.txt +4420 -0
  17. aliprocessing/legacy/instrument/lcr.py +53 -0
  18. aliprocessing/legacy/instrument/lenses.py +136 -0
  19. aliprocessing/legacy/instrument/lineshape.py +168 -0
  20. aliprocessing/legacy/instrument/polarizer.py +75 -0
  21. aliprocessing/legacy/instrument/sensor.py +724 -0
  22. aliprocessing/legacy/instrument/sensor_2channel.py +322 -0
  23. aliprocessing/legacy/instrument/sensors/__init__.py +7 -0
  24. aliprocessing/legacy/instrument/sensors/base_sensor.py +200 -0
  25. aliprocessing/legacy/instrument/sensors/cardinal_1280.py +49 -0
  26. aliprocessing/legacy/instrument/sensors/cardinal_640.py +62 -0
  27. aliprocessing/legacy/instrument/sensors/raptor_owl_640_n.py +80 -0
  28. aliprocessing/legacy/instrument/sensors/teledyne_ccd97.py +29 -0
  29. aliprocessing/legacy/instrument/simulator.py +568 -0
  30. aliprocessing/legacy/instrument/spectralimager.py +455 -0
  31. aliprocessing/legacy/retrieval/__init__.py +0 -0
  32. aliprocessing/legacy/retrieval/aerosol.py +249 -0
  33. aliprocessing/legacy/retrieval/cloud.py +418 -0
  34. aliprocessing/legacy/retrieval/extinction.py +1559 -0
  35. aliprocessing/legacy/retrieval/measvec/__init__.py +178 -0
  36. aliprocessing/legacy/retrieval/measvec/transformer.py +571 -0
  37. aliprocessing/legacy/retrieval/particlesize.py +887 -0
  38. aliprocessing/legacy/retrieval/statevector.py +468 -0
  39. aliprocessing/legacy/util/__init__.py +0 -0
  40. aliprocessing/legacy/util/aerosol.py +20 -0
  41. aliprocessing/legacy/util/analysis.py +299 -0
  42. aliprocessing/legacy/util/atmospheres.py +544 -0
  43. aliprocessing/legacy/util/config.py +21 -0
  44. aliprocessing/legacy/util/er2.py +82 -0
  45. aliprocessing/legacy/util/geometry.py +37 -0
  46. aliprocessing/legacy/util/grl_paper.mplstyle +64 -0
  47. aliprocessing/legacy/util/rt_options.py +87 -0
  48. aliprocessing/legacy/util/sampling.py +428 -0
  49. aliprocessing/legacy/util/sensors.py +150 -0
  50. aliprocessing/simulation/__init__.py +0 -0
  51. aliprocessing/simulation/atmosphere/__init__.py +0 -0
  52. aliprocessing/simulation/atmosphere/acefts.py +134 -0
  53. aliprocessing/simulation/atmosphere/curtain.py +551 -0
  54. aliprocessing/simulation/atmosphere/gem.py +340 -0
  55. aliprocessing/simulation/atmosphere/opc.py +343 -0
  56. aliprocessing-2025.1.0.dist-info/LICENSE +21 -0
  57. aliprocessing-2025.1.0.dist-info/METADATA +42 -0
  58. aliprocessing-2025.1.0.dist-info/RECORD +60 -0
  59. aliprocessing-2025.1.0.dist-info/WHEEL +5 -0
  60. aliprocessing-2025.1.0.dist-info/top_level.txt +2 -0
__init__.py ADDED
File without changes
File without changes
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '2025.1.0'
16
+ __version_tuple__ = version_tuple = (2025, 1, 0)
File without changes
File without changes
@@ -0,0 +1,52 @@
1
+ 0.0000000e+00 1.9650000e+01
2
+ 5.0000000e+02 1.9650000e+01
3
+ 1.5000000e+03 1.9650000e+01
4
+ 2.5000000e+03 1.9650000e+01
5
+ 3.5000000e+03 1.9650000e+01
6
+ 4.5000000e+03 1.9650000e+01
7
+ 5.5000000e+03 1.9650000e+01
8
+ 6.5000000e+03 1.9650000e+01
9
+ 7.5000000e+03 1.9650000e+01
10
+ 8.5000000e+03 1.9650000e+01
11
+ 9.5000000e+03 1.9650000e+01
12
+ 1.0500000e+04 1.9650000e+01
13
+ 1.1500000e+04 1.9650000e+01
14
+ 1.2500000e+04 1.9825000e+01
15
+ 1.3500000e+04 2.0250000e+01
16
+ 1.4500000e+04 2.0875000e+01
17
+ 1.5500000e+04 2.1775000e+01
18
+ 1.6500000e+04 2.3000000e+01
19
+ 1.7500000e+04 2.4525000e+01
20
+ 1.8500000e+04 2.5800000e+01
21
+ 1.9500000e+04 2.6200000e+01
22
+ 2.0500000e+04 2.4400000e+01
23
+ 2.1500000e+04 2.0725000e+01
24
+ 2.2500000e+04 1.6050000e+01
25
+ 2.3500000e+04 1.1350000e+01
26
+ 2.4500000e+04 8.0500000e+00
27
+ 2.5500000e+04 5.7125000e+00
28
+ 2.6500000e+04 4.0325000e+00
29
+ 2.7500000e+04 2.8525000e+00
30
+ 2.8500000e+04 2.0200000e+00
31
+ 2.9500000e+04 1.4300000e+00
32
+ 3.0500000e+04 9.2750000e-01
33
+ 3.1500000e+04 5.2250000e-01
34
+ 3.2500000e+04 2.9300000e-01
35
+ 3.3500000e+04 1.6475000e-01
36
+ 3.4500000e+04 9.2750000e-02
37
+ 3.5500000e+04 5.2250000e-02
38
+ 3.6500000e+04 2.9300000e-02
39
+ 3.7500000e+04 1.6450000e-02
40
+ 3.8500000e+04 9.3000000e-03
41
+ 3.9500000e+04 5.2000000e-03
42
+ 4.0500000e+04 2.9500000e-03
43
+ 4.1500000e+04 1.8500000e-03
44
+ 4.2500000e+04 1.2000000e-03
45
+ 4.3500000e+04 6.5000000e-04
46
+ 4.4500000e+04 4.0000000e-04
47
+ 4.5500000e+04 3.0000000e-04
48
+ 4.6500000e+04 2.0000000e-04
49
+ 4.7500000e+04 1.0000000e-04
50
+ 4.8500000e+04 3.0000000e-05
51
+ 4.9500000e+04 1.0000000e-05
52
+ 5.0500000e+04 0.0000000e+00
File without changes
@@ -0,0 +1 @@
1
+ from __future__ import annotations
File without changes
File without changes
File without changes
@@ -0,0 +1,280 @@
1
+ from __future__ import annotations
2
+
3
+ from pathlib import Path
4
+
5
+ import numpy as np
6
+ import xarray as xr
7
+ from skcomponents.optics import AOTF, Filter
8
+
9
+
10
+ class Brimrose20mmAOTF(AOTF):
11
+
12
+ def __init__(self):
13
+ self._wavelength_nm = np.array(
14
+ [
15
+ 400,
16
+ 450,
17
+ 500,
18
+ 550,
19
+ 600,
20
+ 650,
21
+ 700,
22
+ 750,
23
+ 800,
24
+ 850,
25
+ 900,
26
+ 950,
27
+ 1000,
28
+ 1050,
29
+ 1100,
30
+ 1150,
31
+ 1200,
32
+ 1250,
33
+ 1300,
34
+ 1350,
35
+ 1400,
36
+ 1450,
37
+ 1500,
38
+ 1550,
39
+ 1600,
40
+ ]
41
+ )
42
+ self._transmission = np.ones_like(self._wavelength_nm) * 0.95
43
+ self._diffraction_efficiency = np.array(
44
+ [
45
+ 0.01,
46
+ 0.025,
47
+ 0.05,
48
+ 0.1,
49
+ 0.55,
50
+ 0.6,
51
+ 0.55,
52
+ 0.45,
53
+ 0.15,
54
+ 0.15,
55
+ 0.5,
56
+ 0.55,
57
+ 0.57,
58
+ 0.59,
59
+ 0.6,
60
+ 0.59,
61
+ 0.57,
62
+ 0.55,
63
+ 0.53,
64
+ 0.45,
65
+ 0.3,
66
+ 0.25,
67
+ 0.23,
68
+ 0.2,
69
+ 0.2,
70
+ ]
71
+ )
72
+
73
+ self.t_filter = Filter(self._wavelength_nm, self._transmission)
74
+ self.de_filter = Filter(self._wavelength_nm, self._diffraction_efficiency)
75
+ super().__init__()
76
+
77
+ def diffraction_efficiency(self, wavelength):
78
+ return self.de_filter.transmission(wavelength)
79
+
80
+ def transmission(self, wavelength):
81
+ return self.t_filter.transmission(wavelength)
82
+
83
+ def matrix(self, wavelength):
84
+ return (
85
+ self.transmission(wavelength)
86
+ * self.diffraction_efficiency(wavelength)
87
+ * super().matrix(wavelength)
88
+ )
89
+
90
+
91
+ class BrimroseAOTFSingleChannel(AOTF):
92
+ """
93
+ Single transducer 10mm AOTF. Measurements of diffraction efficiency provided by Daniel Letros.
94
+
95
+ Parameters
96
+ ----------
97
+ central_wavelength: float
98
+ Central wavelength of the AOTF. This can be used to shift the central wavelength of the AOTF
99
+ for testing of other systems.
100
+ """
101
+
102
+ def __init__(self, central_wavelength: float | None = None):
103
+ self._wavelength_nm = np.array(
104
+ [
105
+ 604.134,
106
+ 610.689,
107
+ 617.315,
108
+ 623.834,
109
+ 630.704,
110
+ 638.095,
111
+ 645.425,
112
+ 653.14,
113
+ 660.726,
114
+ 669.111,
115
+ 677.337,
116
+ 685.974,
117
+ 694.862,
118
+ 704.063,
119
+ 713.827,
120
+ 723.755,
121
+ 733.933,
122
+ 744.383,
123
+ 749.882,
124
+ 755.448,
125
+ 760.972,
126
+ 766.716,
127
+ 772.454,
128
+ 778.401,
129
+ 784.511,
130
+ 790.565,
131
+ 796.783,
132
+ 803.187,
133
+ 809.791,
134
+ 816.38,
135
+ 823.15,
136
+ 830.135,
137
+ 837.096,
138
+ 844.435,
139
+ 851.761,
140
+ 859.312,
141
+ 866.918,
142
+ 874.918,
143
+ 882.879,
144
+ 891.028,
145
+ 899.307,
146
+ 907.874,
147
+ 916.405,
148
+ 925.507,
149
+ 934.483,
150
+ 943.777,
151
+ 953.373,
152
+ 962.73,
153
+ 971.497,
154
+ 982.403,
155
+ 993.024,
156
+ 1004.049,
157
+ 1015.014,
158
+ 1026.371,
159
+ 1036.349,
160
+ 1048.49,
161
+ 1060.558,
162
+ 1073.229,
163
+ 1085.815,
164
+ 1097.21,
165
+ 1110.794,
166
+ 1124.954,
167
+ 1139.006,
168
+ ]
169
+ )
170
+ if central_wavelength:
171
+ self._wavelength_nm = (self._wavelength_nm - 850) * (
172
+ central_wavelength / 850
173
+ ) + central_wavelength
174
+ self._diffraction_efficiency = np.array(
175
+ [
176
+ 0.09744021,
177
+ 0.09668691,
178
+ 0.1040007,
179
+ 0.10888101,
180
+ 0.11901388,
181
+ 0.11739969,
182
+ 0.10871549,
183
+ 0.10900268,
184
+ 0.13063443,
185
+ 0.16185204,
186
+ 0.21979453,
187
+ 0.3084155,
188
+ 0.4256343,
189
+ 0.56445037,
190
+ 0.68453913,
191
+ 0.76835277,
192
+ 0.80200238,
193
+ 0.80920881,
194
+ 0.81198999,
195
+ 0.81382407,
196
+ 0.80710356,
197
+ 0.79618183,
198
+ 0.77957955,
199
+ 0.75021718,
200
+ 0.70769231,
201
+ 0.65539567,
202
+ 0.60638723,
203
+ 0.56201219,
204
+ 0.53086957,
205
+ 0.49934291,
206
+ 0.48135259,
207
+ 0.47540372,
208
+ 0.47659491,
209
+ 0.48845925,
210
+ 0.50517979,
211
+ 0.51745201,
212
+ 0.53213403,
213
+ 0.53948511,
214
+ 0.56141414,
215
+ 0.58038416,
216
+ 0.5837588,
217
+ 0.58305206,
218
+ 0.57454584,
219
+ 0.5599991,
220
+ 0.54474211,
221
+ 0.52075203,
222
+ 0.50040079,
223
+ 0.4856917,
224
+ 0.53113712,
225
+ 0.52898961,
226
+ 0.5159129,
227
+ 0.49545287,
228
+ 0.46390468,
229
+ 0.42465971,
230
+ 0.36891265,
231
+ 0.3227579,
232
+ 0.26577954,
233
+ 0.20847833,
234
+ 0.15788345,
235
+ 0.11808555,
236
+ 0.09157119,
237
+ 0.07217465,
238
+ 0.05689757,
239
+ ]
240
+ )
241
+ self._transmission = np.ones_like(self._wavelength_nm) * 0.95
242
+
243
+ self.t_filter = Filter(self._wavelength_nm, self._transmission)
244
+ self.de_filter = Filter(self._wavelength_nm, self._diffraction_efficiency)
245
+ super().__init__()
246
+
247
+ def diffraction_efficiency(self, wavelength):
248
+ return self.de_filter.transmission(wavelength)
249
+
250
+ def transmission(self, wavelength):
251
+ return self.t_filter.transmission(wavelength)
252
+
253
+ def matrix(self, wavelength):
254
+ return (
255
+ self.transmission(wavelength)
256
+ * self.diffraction_efficiency(wavelength)
257
+ * super().matrix(wavelength)
258
+ )
259
+
260
+
261
+ class ER2AOTF(Brimrose20mmAOTF):
262
+
263
+ def __init__(self):
264
+
265
+ super().__init__()
266
+
267
+ filename = Path(__file__).resolve().parent / "data" / "ER2_aotf_calibration.nc"
268
+
269
+ data = xr.open_dataset(filename)
270
+ self._diffraction_efficiency = data.de_values.to_numpy() / 100
271
+ self._wavelength_nm = data.de_wavelengths.to_numpy()
272
+ self._transmission = np.ones_like(self._wavelength_nm)
273
+
274
+ self.t_filter = Filter(self._wavelength_nm, self._transmission)
275
+ self.de_filter = Filter(self._wavelength_nm, self._diffraction_efficiency)
276
+
277
+
278
+ if __name__ == "__main__":
279
+
280
+ aotf = BrimroseAOTFSingleChannel()