lsurf 1.0.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.
- lsurf/__init__.py +471 -0
- lsurf/analysis/__init__.py +107 -0
- lsurf/analysis/healpix_utils.py +418 -0
- lsurf/analysis/sphere_viz.py +1280 -0
- lsurf/cli/__init__.py +48 -0
- lsurf/cli/build.py +398 -0
- lsurf/cli/config_schema.py +318 -0
- lsurf/cli/gui_cmd.py +76 -0
- lsurf/cli/interactive.py +850 -0
- lsurf/cli/main.py +81 -0
- lsurf/cli/run.py +806 -0
- lsurf/detectors/__init__.py +266 -0
- lsurf/detectors/analysis.py +289 -0
- lsurf/detectors/base.py +284 -0
- lsurf/detectors/constant_size_rings.py +485 -0
- lsurf/detectors/directional.py +45 -0
- lsurf/detectors/extended/__init__.py +73 -0
- lsurf/detectors/extended/local_sphere.py +353 -0
- lsurf/detectors/extended/recording_sphere.py +368 -0
- lsurf/detectors/planar.py +45 -0
- lsurf/detectors/protocol.py +187 -0
- lsurf/detectors/recording_spheres.py +63 -0
- lsurf/detectors/results.py +1140 -0
- lsurf/detectors/small/__init__.py +79 -0
- lsurf/detectors/small/directional.py +330 -0
- lsurf/detectors/small/planar.py +401 -0
- lsurf/detectors/small/spherical.py +450 -0
- lsurf/detectors/spherical.py +45 -0
- lsurf/geometry/__init__.py +199 -0
- lsurf/geometry/builder.py +478 -0
- lsurf/geometry/cell.py +228 -0
- lsurf/geometry/cell_geometry.py +247 -0
- lsurf/geometry/detector_arrays.py +1785 -0
- lsurf/geometry/geometry.py +222 -0
- lsurf/geometry/surface_analysis.py +375 -0
- lsurf/geometry/validation.py +91 -0
- lsurf/gui/__init__.py +51 -0
- lsurf/gui/app.py +903 -0
- lsurf/gui/core/__init__.py +39 -0
- lsurf/gui/core/scene.py +343 -0
- lsurf/gui/core/simulation.py +264 -0
- lsurf/gui/renderers/__init__.py +40 -0
- lsurf/gui/renderers/ray_renderer.py +353 -0
- lsurf/gui/renderers/source_renderer.py +505 -0
- lsurf/gui/renderers/surface_renderer.py +477 -0
- lsurf/gui/views/__init__.py +48 -0
- lsurf/gui/views/config_editor.py +3199 -0
- lsurf/gui/views/properties.py +257 -0
- lsurf/gui/views/results.py +291 -0
- lsurf/gui/views/scene_tree.py +180 -0
- lsurf/gui/views/viewport_3d.py +555 -0
- lsurf/gui/views/visualizations.py +712 -0
- lsurf/materials/__init__.py +169 -0
- lsurf/materials/base/__init__.py +64 -0
- lsurf/materials/base/full_inhomogeneous.py +208 -0
- lsurf/materials/base/grid_inhomogeneous.py +319 -0
- lsurf/materials/base/homogeneous.py +342 -0
- lsurf/materials/base/material_field.py +527 -0
- lsurf/materials/base/simple_inhomogeneous.py +418 -0
- lsurf/materials/base/spectral_inhomogeneous.py +497 -0
- lsurf/materials/implementations/__init__.py +120 -0
- lsurf/materials/implementations/data/alpha_values_typical_atmosphere_updated.txt +24 -0
- lsurf/materials/implementations/duct_atmosphere.py +390 -0
- lsurf/materials/implementations/exponential_atmosphere.py +435 -0
- lsurf/materials/implementations/gaussian_lens.py +120 -0
- lsurf/materials/implementations/interpolated_data.py +123 -0
- lsurf/materials/implementations/layered_atmosphere.py +134 -0
- lsurf/materials/implementations/linear_gradient.py +109 -0
- lsurf/materials/implementations/linsley_atmosphere.py +764 -0
- lsurf/materials/implementations/standard_materials.py +126 -0
- lsurf/materials/implementations/turbulent_atmosphere.py +135 -0
- lsurf/materials/implementations/us_standard_atmosphere.py +149 -0
- lsurf/materials/utils/__init__.py +77 -0
- lsurf/materials/utils/constants.py +45 -0
- lsurf/materials/utils/device_functions.py +117 -0
- lsurf/materials/utils/dispersion.py +160 -0
- lsurf/materials/utils/factories.py +142 -0
- lsurf/propagation/__init__.py +91 -0
- lsurf/propagation/detector_gpu.py +67 -0
- lsurf/propagation/gpu_device_rays.py +294 -0
- lsurf/propagation/kernels/__init__.py +175 -0
- lsurf/propagation/kernels/absorption/__init__.py +61 -0
- lsurf/propagation/kernels/absorption/grid.py +240 -0
- lsurf/propagation/kernels/absorption/simple.py +232 -0
- lsurf/propagation/kernels/absorption/spectral.py +410 -0
- lsurf/propagation/kernels/detection/__init__.py +64 -0
- lsurf/propagation/kernels/detection/protocol.py +102 -0
- lsurf/propagation/kernels/detection/spherical.py +255 -0
- lsurf/propagation/kernels/device_functions.py +790 -0
- lsurf/propagation/kernels/fresnel/__init__.py +64 -0
- lsurf/propagation/kernels/fresnel/protocol.py +97 -0
- lsurf/propagation/kernels/fresnel/standard.py +258 -0
- lsurf/propagation/kernels/intersection/__init__.py +79 -0
- lsurf/propagation/kernels/intersection/annular_plane.py +207 -0
- lsurf/propagation/kernels/intersection/bounded_plane.py +205 -0
- lsurf/propagation/kernels/intersection/plane.py +166 -0
- lsurf/propagation/kernels/intersection/protocol.py +95 -0
- lsurf/propagation/kernels/intersection/signed_distance.py +742 -0
- lsurf/propagation/kernels/intersection/sphere.py +190 -0
- lsurf/propagation/kernels/propagation/__init__.py +85 -0
- lsurf/propagation/kernels/propagation/grid.py +527 -0
- lsurf/propagation/kernels/propagation/protocol.py +105 -0
- lsurf/propagation/kernels/propagation/simple.py +460 -0
- lsurf/propagation/kernels/propagation/spectral.py +875 -0
- lsurf/propagation/kernels/registry.py +331 -0
- lsurf/propagation/kernels/surface/__init__.py +72 -0
- lsurf/propagation/kernels/surface/bisection.py +232 -0
- lsurf/propagation/kernels/surface/detection.py +402 -0
- lsurf/propagation/kernels/surface/reduction.py +166 -0
- lsurf/propagation/propagator_protocol.py +222 -0
- lsurf/propagation/propagators/__init__.py +101 -0
- lsurf/propagation/propagators/detector_handler.py +354 -0
- lsurf/propagation/propagators/factory.py +200 -0
- lsurf/propagation/propagators/fresnel_handler.py +305 -0
- lsurf/propagation/propagators/gpu_gradient.py +566 -0
- lsurf/propagation/propagators/gpu_surface_propagator.py +707 -0
- lsurf/propagation/propagators/gradient.py +429 -0
- lsurf/propagation/propagators/intersection_handler.py +327 -0
- lsurf/propagation/propagators/material_propagator.py +398 -0
- lsurf/propagation/propagators/signed_distance_handler.py +522 -0
- lsurf/propagation/propagators/spectral_gpu_gradient.py +553 -0
- lsurf/propagation/propagators/surface_interaction.py +616 -0
- lsurf/propagation/propagators/surface_propagator.py +719 -0
- lsurf/py.typed +1 -0
- lsurf/simulation/__init__.py +70 -0
- lsurf/simulation/config.py +164 -0
- lsurf/simulation/orchestrator.py +462 -0
- lsurf/simulation/result.py +299 -0
- lsurf/simulation/simulation.py +262 -0
- lsurf/sources/__init__.py +128 -0
- lsurf/sources/base.py +264 -0
- lsurf/sources/collimated.py +252 -0
- lsurf/sources/custom.py +409 -0
- lsurf/sources/diverging.py +228 -0
- lsurf/sources/gaussian.py +272 -0
- lsurf/sources/parallel_from_positions.py +197 -0
- lsurf/sources/point.py +172 -0
- lsurf/sources/uniform_diverging.py +258 -0
- lsurf/surfaces/__init__.py +184 -0
- lsurf/surfaces/cpu/__init__.py +50 -0
- lsurf/surfaces/cpu/curved_wave.py +463 -0
- lsurf/surfaces/cpu/gerstner_wave.py +381 -0
- lsurf/surfaces/cpu/wave_params.py +118 -0
- lsurf/surfaces/gpu/__init__.py +72 -0
- lsurf/surfaces/gpu/annular_plane.py +453 -0
- lsurf/surfaces/gpu/bounded_plane.py +390 -0
- lsurf/surfaces/gpu/curved_wave.py +483 -0
- lsurf/surfaces/gpu/gerstner_wave.py +377 -0
- lsurf/surfaces/gpu/multi_curved_wave.py +520 -0
- lsurf/surfaces/gpu/plane.py +299 -0
- lsurf/surfaces/gpu/recording_sphere.py +587 -0
- lsurf/surfaces/gpu/sphere.py +311 -0
- lsurf/surfaces/protocol.py +336 -0
- lsurf/surfaces/registry.py +373 -0
- lsurf/utilities/__init__.py +175 -0
- lsurf/utilities/detector_analysis.py +814 -0
- lsurf/utilities/fresnel.py +628 -0
- lsurf/utilities/interactions.py +1215 -0
- lsurf/utilities/propagation.py +602 -0
- lsurf/utilities/ray_data.py +532 -0
- lsurf/utilities/recording_sphere.py +745 -0
- lsurf/utilities/time_spread.py +463 -0
- lsurf/visualization/__init__.py +329 -0
- lsurf/visualization/absorption_plots.py +334 -0
- lsurf/visualization/atmospheric_plots.py +754 -0
- lsurf/visualization/common.py +348 -0
- lsurf/visualization/detector_plots.py +1350 -0
- lsurf/visualization/detector_sphere_plots.py +1173 -0
- lsurf/visualization/fresnel_plots.py +1061 -0
- lsurf/visualization/ocean_simulation_plots.py +999 -0
- lsurf/visualization/polarization_plots.py +916 -0
- lsurf/visualization/raytracing_plots.py +1521 -0
- lsurf/visualization/ring_detector_plots.py +1867 -0
- lsurf/visualization/time_spread_plots.py +531 -0
- lsurf-1.0.0.dist-info/METADATA +381 -0
- lsurf-1.0.0.dist-info/RECORD +180 -0
- lsurf-1.0.0.dist-info/WHEEL +5 -0
- lsurf-1.0.0.dist-info/entry_points.txt +2 -0
- lsurf-1.0.0.dist-info/licenses/LICENSE +32 -0
- lsurf-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
# The Clear BSD License
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2026 Tobias Heibges
|
|
4
|
+
# All rights reserved.
|
|
5
|
+
#
|
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
|
7
|
+
# modification, are permitted (subject to the limitations in the disclaimer
|
|
8
|
+
# below) provided that the following conditions are met:
|
|
9
|
+
#
|
|
10
|
+
# * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
# this list of conditions and the following disclaimer.
|
|
12
|
+
#
|
|
13
|
+
# * Redistributions in binary form must reproduce the above copyright
|
|
14
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
15
|
+
# documentation and/or other materials provided with the distribution.
|
|
16
|
+
#
|
|
17
|
+
# * Neither the name of the copyright holder nor the names of its
|
|
18
|
+
# contributors may be used to endorse or promote products derived from this
|
|
19
|
+
# software without specific prior written permission.
|
|
20
|
+
#
|
|
21
|
+
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
|
|
22
|
+
# THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
23
|
+
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
25
|
+
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
26
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
27
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
28
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
29
|
+
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
30
|
+
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
31
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
32
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
Spectral Inhomogeneous Model (Radially Symmetric with Wavelength Dependence)
|
|
36
|
+
|
|
37
|
+
Base class for radially-symmetric inhomogeneous materials where the
|
|
38
|
+
refractive index depends on both distance from a center point (altitude)
|
|
39
|
+
and wavelength.
|
|
40
|
+
|
|
41
|
+
User implements only `n_at_altitude(altitude, wavelength)` - a 2D function.
|
|
42
|
+
GPU support is automatic via precomputed 2D lookup tables (altitude × wavelength).
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
from __future__ import annotations
|
|
46
|
+
|
|
47
|
+
from abc import ABC, abstractmethod
|
|
48
|
+
from typing import TYPE_CHECKING
|
|
49
|
+
|
|
50
|
+
import numpy as np
|
|
51
|
+
from numpy.typing import NDArray
|
|
52
|
+
|
|
53
|
+
from .material_field import MaterialField
|
|
54
|
+
|
|
55
|
+
if TYPE_CHECKING:
|
|
56
|
+
from ...propagation.kernels.registry import PropagationKernelID, PropagatorID
|
|
57
|
+
|
|
58
|
+
# Physical constant
|
|
59
|
+
EARTH_RADIUS = 6_371_000.0 # meters
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class SpectralInhomogeneousModel(MaterialField, ABC):
|
|
63
|
+
"""
|
|
64
|
+
Base class for radially-symmetric materials with wavelength-dependent n.
|
|
65
|
+
|
|
66
|
+
User implements only `n_at_altitude(altitude, wavelength)`. The system
|
|
67
|
+
automatically provides:
|
|
68
|
+
- `get_refractive_index(x, y, z, wavelength)` via altitude computation
|
|
69
|
+
- `get_refractive_index_gradient(x, y, z, wavelength)` via radial direction
|
|
70
|
+
- GPU support via precomputed 2D lookup tables (altitude × wavelength)
|
|
71
|
+
|
|
72
|
+
Extends the 1D SimpleInhomogeneousModel concept to 2D parameter space.
|
|
73
|
+
|
|
74
|
+
Parameters
|
|
75
|
+
----------
|
|
76
|
+
name : str
|
|
77
|
+
Name of the material model
|
|
78
|
+
center : tuple
|
|
79
|
+
Center of spherical symmetry (x, y, z). Default: (0, 0, 0)
|
|
80
|
+
reference_radius : float
|
|
81
|
+
Radius at which altitude = 0 (e.g., Earth radius). Default: 6,371,000 m
|
|
82
|
+
altitude_range : tuple
|
|
83
|
+
(min_altitude, max_altitude) for lookup table in meters. Default: (0, 200,000)
|
|
84
|
+
altitude_resolution : int
|
|
85
|
+
Number of samples in altitude dimension of lookup table. Default: 1000
|
|
86
|
+
wavelength_range : tuple
|
|
87
|
+
(min_wavelength, max_wavelength) for lookup table in meters.
|
|
88
|
+
Default: (300e-9, 800e-9)
|
|
89
|
+
wavelength_resolution : int
|
|
90
|
+
Number of samples in wavelength dimension of lookup table. Default: 50
|
|
91
|
+
|
|
92
|
+
Example
|
|
93
|
+
-------
|
|
94
|
+
>>> class MySpectralAtmosphere(SpectralInhomogeneousModel):
|
|
95
|
+
... def n_at_altitude(self, altitude, wavelength):
|
|
96
|
+
... # Simple dispersion model
|
|
97
|
+
... n_base = 1.0 + 0.000293 * math.exp(-altitude / 8500)
|
|
98
|
+
... return n_base * (1 + 0.01 * (550e-9 / wavelength)**2)
|
|
99
|
+
...
|
|
100
|
+
>>> atm = MySpectralAtmosphere(name="Dispersive Atmosphere")
|
|
101
|
+
>>> propagator = GPUGradientPropagator(atm) # Auto GPU support
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
# =========================================================================
|
|
105
|
+
# COMPATIBILITY DECLARATIONS
|
|
106
|
+
# =========================================================================
|
|
107
|
+
@classmethod
|
|
108
|
+
def _init_compatibility(cls):
|
|
109
|
+
"""Initialize compatibility declarations (called once on first use)."""
|
|
110
|
+
from ...propagation.kernels.registry import PropagationKernelID, PropagatorID
|
|
111
|
+
|
|
112
|
+
if not cls._supported_kernels:
|
|
113
|
+
cls._supported_kernels = [
|
|
114
|
+
PropagationKernelID.SPECTRAL_EULER,
|
|
115
|
+
PropagationKernelID.SPECTRAL_RK4,
|
|
116
|
+
PropagationKernelID.SPECTRAL_EULER_PERRAY,
|
|
117
|
+
PropagationKernelID.SPECTRAL_RK4_PERRAY,
|
|
118
|
+
]
|
|
119
|
+
cls._default_kernel = PropagationKernelID.SPECTRAL_RK4
|
|
120
|
+
cls._supported_propagators = [
|
|
121
|
+
PropagatorID.GPU_SPECTRAL,
|
|
122
|
+
PropagatorID.GPU_GRADIENT,
|
|
123
|
+
PropagatorID.CPU_GRADIENT,
|
|
124
|
+
]
|
|
125
|
+
cls._default_propagator = PropagatorID.GPU_SPECTRAL
|
|
126
|
+
|
|
127
|
+
def __init__(
|
|
128
|
+
self,
|
|
129
|
+
name: str = "Spectral Inhomogeneous",
|
|
130
|
+
center: tuple[float, float, float] = (0.0, 0.0, 0.0),
|
|
131
|
+
reference_radius: float = EARTH_RADIUS,
|
|
132
|
+
altitude_range: tuple[float, float] = (0.0, 200_000.0),
|
|
133
|
+
altitude_resolution: int = 1000,
|
|
134
|
+
wavelength_range: tuple[float, float] = (300e-9, 800e-9),
|
|
135
|
+
wavelength_resolution: int = 50,
|
|
136
|
+
kernel: PropagationKernelID | None = None,
|
|
137
|
+
propagator: PropagatorID | None = None,
|
|
138
|
+
):
|
|
139
|
+
# Initialize compatibility declarations before calling super().__init__
|
|
140
|
+
self._init_compatibility()
|
|
141
|
+
|
|
142
|
+
super().__init__(name, kernel=kernel, propagator=propagator)
|
|
143
|
+
self._is_homogeneous = False
|
|
144
|
+
self.center = center
|
|
145
|
+
self.reference_radius = reference_radius
|
|
146
|
+
self.altitude_range = altitude_range
|
|
147
|
+
self.altitude_resolution = altitude_resolution
|
|
148
|
+
self.wavelength_range = wavelength_range
|
|
149
|
+
self.wavelength_resolution = wavelength_resolution
|
|
150
|
+
|
|
151
|
+
# 2D LUT arrays initialized lazily on first GPU use
|
|
152
|
+
self._lut_initialized = False
|
|
153
|
+
self._lut_altitudes: NDArray[np.float32] | None = None
|
|
154
|
+
self._lut_wavelengths: NDArray[np.float32] | None = None
|
|
155
|
+
self._lut_n: NDArray[np.float32] | None = None # 2D: [altitude, wavelength]
|
|
156
|
+
self._lut_dn_dh: NDArray[np.float32] | None = None # 2D: [altitude, wavelength]
|
|
157
|
+
self._lut_alpha: NDArray[np.float32] | None = None # 2D: [altitude, wavelength]
|
|
158
|
+
self._lut_delta_h: float = 0.0
|
|
159
|
+
self._lut_delta_wl: float = 0.0
|
|
160
|
+
|
|
161
|
+
# =========================================================================
|
|
162
|
+
# USER MUST IMPLEMENT
|
|
163
|
+
# =========================================================================
|
|
164
|
+
|
|
165
|
+
@abstractmethod
|
|
166
|
+
def n_at_altitude(self, altitude: float, wavelength: float) -> float:
|
|
167
|
+
"""
|
|
168
|
+
Return refractive index at given altitude and wavelength.
|
|
169
|
+
|
|
170
|
+
This is the only method users must implement.
|
|
171
|
+
|
|
172
|
+
Parameters
|
|
173
|
+
----------
|
|
174
|
+
altitude : float
|
|
175
|
+
Altitude above reference surface in meters (altitude >= 0)
|
|
176
|
+
wavelength : float
|
|
177
|
+
Wavelength in meters
|
|
178
|
+
|
|
179
|
+
Returns
|
|
180
|
+
-------
|
|
181
|
+
float
|
|
182
|
+
Refractive index n >= 1.0
|
|
183
|
+
"""
|
|
184
|
+
pass
|
|
185
|
+
|
|
186
|
+
# =========================================================================
|
|
187
|
+
# USER MAY OVERRIDE
|
|
188
|
+
# =========================================================================
|
|
189
|
+
|
|
190
|
+
def dn_dh_at_altitude(self, altitude: float, wavelength: float) -> float:
|
|
191
|
+
"""
|
|
192
|
+
Return dn/d(altitude) at given altitude and wavelength.
|
|
193
|
+
|
|
194
|
+
Default implementation uses numerical differentiation.
|
|
195
|
+
Override for analytical derivatives (more accurate).
|
|
196
|
+
|
|
197
|
+
Parameters
|
|
198
|
+
----------
|
|
199
|
+
altitude : float
|
|
200
|
+
Altitude above reference surface in meters
|
|
201
|
+
wavelength : float
|
|
202
|
+
Wavelength in meters
|
|
203
|
+
|
|
204
|
+
Returns
|
|
205
|
+
-------
|
|
206
|
+
float
|
|
207
|
+
Derivative dn/dh in m^-1
|
|
208
|
+
"""
|
|
209
|
+
eps = 1.0 # 1 meter step for numerical derivative
|
|
210
|
+
h_plus = max(altitude + eps, 0.0)
|
|
211
|
+
h_minus = max(altitude - eps, 0.0)
|
|
212
|
+
|
|
213
|
+
if h_plus == h_minus:
|
|
214
|
+
return 0.0
|
|
215
|
+
|
|
216
|
+
return (
|
|
217
|
+
self.n_at_altitude(h_plus, wavelength)
|
|
218
|
+
- self.n_at_altitude(h_minus, wavelength)
|
|
219
|
+
) / (h_plus - h_minus)
|
|
220
|
+
|
|
221
|
+
def alpha_at_altitude(self, altitude: float, wavelength: float) -> float:
|
|
222
|
+
"""
|
|
223
|
+
Return absorption coefficient at given altitude and wavelength.
|
|
224
|
+
|
|
225
|
+
Default implementation returns 0 (no absorption).
|
|
226
|
+
Override in subclasses that model absorbing media.
|
|
227
|
+
|
|
228
|
+
Parameters
|
|
229
|
+
----------
|
|
230
|
+
altitude : float
|
|
231
|
+
Altitude above reference surface in meters
|
|
232
|
+
wavelength : float
|
|
233
|
+
Wavelength in meters
|
|
234
|
+
|
|
235
|
+
Returns
|
|
236
|
+
-------
|
|
237
|
+
float
|
|
238
|
+
Absorption coefficient α in m^-1 (for Beer-Lambert: I = I₀·exp(-α·s))
|
|
239
|
+
"""
|
|
240
|
+
return 0.0
|
|
241
|
+
|
|
242
|
+
# =========================================================================
|
|
243
|
+
# AUTO-GENERATED FROM n_at_altitude()
|
|
244
|
+
# =========================================================================
|
|
245
|
+
|
|
246
|
+
def _compute_altitude(
|
|
247
|
+
self,
|
|
248
|
+
x: float | NDArray[np.float64],
|
|
249
|
+
y: float | NDArray[np.float64],
|
|
250
|
+
z: float | NDArray[np.float64],
|
|
251
|
+
) -> float | NDArray[np.float64]:
|
|
252
|
+
"""Compute altitude from Cartesian coordinates."""
|
|
253
|
+
cx, cy, cz = self.center
|
|
254
|
+
dx = np.asarray(x) - cx
|
|
255
|
+
dy = np.asarray(y) - cy
|
|
256
|
+
dz = np.asarray(z) - cz
|
|
257
|
+
|
|
258
|
+
r = np.sqrt(dx**2 + dy**2 + dz**2)
|
|
259
|
+
altitude = r - self.reference_radius
|
|
260
|
+
|
|
261
|
+
# Clamp to non-negative
|
|
262
|
+
if isinstance(altitude, np.ndarray):
|
|
263
|
+
return np.maximum(altitude, 0.0)
|
|
264
|
+
return max(altitude, 0.0)
|
|
265
|
+
|
|
266
|
+
def _compute_radial_direction(
|
|
267
|
+
self,
|
|
268
|
+
x: float | NDArray[np.float64],
|
|
269
|
+
y: float | NDArray[np.float64],
|
|
270
|
+
z: float | NDArray[np.float64],
|
|
271
|
+
) -> tuple[
|
|
272
|
+
float | NDArray[np.float64],
|
|
273
|
+
float | NDArray[np.float64],
|
|
274
|
+
float | NDArray[np.float64],
|
|
275
|
+
]:
|
|
276
|
+
"""Compute unit radial vector (outward from center)."""
|
|
277
|
+
cx, cy, cz = self.center
|
|
278
|
+
dx = np.asarray(x) - cx
|
|
279
|
+
dy = np.asarray(y) - cy
|
|
280
|
+
dz = np.asarray(z) - cz
|
|
281
|
+
|
|
282
|
+
r = np.sqrt(dx**2 + dy**2 + dz**2)
|
|
283
|
+
|
|
284
|
+
if isinstance(r, np.ndarray):
|
|
285
|
+
r = np.where(r < 1e-10, 1.0, r)
|
|
286
|
+
elif r < 1e-10:
|
|
287
|
+
return 0.0, 0.0, 1.0 # Default to +z at center
|
|
288
|
+
|
|
289
|
+
return dx / r, dy / r, dz / r
|
|
290
|
+
|
|
291
|
+
def get_refractive_index(
|
|
292
|
+
self,
|
|
293
|
+
x: float | NDArray[np.float64],
|
|
294
|
+
y: float | NDArray[np.float64],
|
|
295
|
+
z: float | NDArray[np.float64],
|
|
296
|
+
wavelength: float | NDArray[np.float64],
|
|
297
|
+
) -> float | NDArray[np.float64]:
|
|
298
|
+
"""Get refractive index at position (auto-generated from n_at_altitude)."""
|
|
299
|
+
altitude = self._compute_altitude(x, y, z)
|
|
300
|
+
|
|
301
|
+
# Handle scalar case
|
|
302
|
+
if not isinstance(altitude, np.ndarray) and not isinstance(
|
|
303
|
+
wavelength, np.ndarray
|
|
304
|
+
):
|
|
305
|
+
return self.n_at_altitude(float(altitude), float(wavelength))
|
|
306
|
+
|
|
307
|
+
# Handle array cases
|
|
308
|
+
altitude = np.atleast_1d(altitude)
|
|
309
|
+
wavelength = np.atleast_1d(wavelength)
|
|
310
|
+
|
|
311
|
+
# Broadcast to common shape if needed
|
|
312
|
+
if altitude.shape != wavelength.shape:
|
|
313
|
+
altitude, wavelength = np.broadcast_arrays(altitude, wavelength)
|
|
314
|
+
|
|
315
|
+
result = np.array(
|
|
316
|
+
[
|
|
317
|
+
self.n_at_altitude(float(h), float(wl))
|
|
318
|
+
for h, wl in zip(altitude.flat, wavelength.flat)
|
|
319
|
+
]
|
|
320
|
+
).reshape(altitude.shape)
|
|
321
|
+
|
|
322
|
+
return result.squeeze() if result.size == 1 else result
|
|
323
|
+
|
|
324
|
+
def get_refractive_index_gradient(
|
|
325
|
+
self,
|
|
326
|
+
x: float | NDArray[np.float64],
|
|
327
|
+
y: float | NDArray[np.float64],
|
|
328
|
+
z: float | NDArray[np.float64],
|
|
329
|
+
wavelength: float | NDArray[np.float64],
|
|
330
|
+
) -> tuple[
|
|
331
|
+
float | NDArray[np.float64],
|
|
332
|
+
float | NDArray[np.float64],
|
|
333
|
+
float | NDArray[np.float64],
|
|
334
|
+
]:
|
|
335
|
+
"""Get gradient of n at position (auto-generated)."""
|
|
336
|
+
altitude = self._compute_altitude(x, y, z)
|
|
337
|
+
rx, ry, rz = self._compute_radial_direction(x, y, z)
|
|
338
|
+
|
|
339
|
+
# Handle scalar case
|
|
340
|
+
if not isinstance(altitude, np.ndarray) and not isinstance(
|
|
341
|
+
wavelength, np.ndarray
|
|
342
|
+
):
|
|
343
|
+
dn_dh = self.dn_dh_at_altitude(float(altitude), float(wavelength))
|
|
344
|
+
return dn_dh * rx, dn_dh * ry, dn_dh * rz
|
|
345
|
+
|
|
346
|
+
# Handle array cases
|
|
347
|
+
altitude = np.atleast_1d(altitude)
|
|
348
|
+
wavelength = np.atleast_1d(wavelength)
|
|
349
|
+
|
|
350
|
+
if altitude.shape != wavelength.shape:
|
|
351
|
+
altitude, wavelength = np.broadcast_arrays(altitude, wavelength)
|
|
352
|
+
|
|
353
|
+
dn_dh = np.array(
|
|
354
|
+
[
|
|
355
|
+
self.dn_dh_at_altitude(float(h), float(wl))
|
|
356
|
+
for h, wl in zip(altitude.flat, wavelength.flat)
|
|
357
|
+
]
|
|
358
|
+
).reshape(altitude.shape)
|
|
359
|
+
|
|
360
|
+
dn_dh = dn_dh.squeeze() if dn_dh.size == 1 else dn_dh
|
|
361
|
+
|
|
362
|
+
# grad(n) = (dn/dh) * r_hat
|
|
363
|
+
return dn_dh * rx, dn_dh * ry, dn_dh * rz
|
|
364
|
+
|
|
365
|
+
def get_absorption_coefficient(
|
|
366
|
+
self,
|
|
367
|
+
x: float | NDArray[np.float64],
|
|
368
|
+
y: float | NDArray[np.float64],
|
|
369
|
+
z: float | NDArray[np.float64],
|
|
370
|
+
wavelength: float | NDArray[np.float64],
|
|
371
|
+
) -> float | NDArray[np.float64]:
|
|
372
|
+
"""Return absorption coefficient (default: 0)."""
|
|
373
|
+
if isinstance(x, np.ndarray):
|
|
374
|
+
return np.zeros_like(x)
|
|
375
|
+
return 0.0
|
|
376
|
+
|
|
377
|
+
def get_scattering_coefficient(
|
|
378
|
+
self,
|
|
379
|
+
x: float | NDArray[np.float64],
|
|
380
|
+
y: float | NDArray[np.float64],
|
|
381
|
+
z: float | NDArray[np.float64],
|
|
382
|
+
wavelength: float | NDArray[np.float64],
|
|
383
|
+
) -> float | NDArray[np.float64]:
|
|
384
|
+
"""Return scattering coefficient (default: 0). Override for Rayleigh etc."""
|
|
385
|
+
if isinstance(x, np.ndarray):
|
|
386
|
+
return np.zeros_like(x)
|
|
387
|
+
return 0.0
|
|
388
|
+
|
|
389
|
+
# =========================================================================
|
|
390
|
+
# GPU INTERFACE (Automatic via 2D LUT)
|
|
391
|
+
# =========================================================================
|
|
392
|
+
|
|
393
|
+
def _initialize_lut(self) -> None:
|
|
394
|
+
"""Build 2D lookup table arrays for GPU."""
|
|
395
|
+
if self._lut_initialized:
|
|
396
|
+
return
|
|
397
|
+
|
|
398
|
+
min_alt, max_alt = self.altitude_range
|
|
399
|
+
min_wl, max_wl = self.wavelength_range
|
|
400
|
+
|
|
401
|
+
altitudes = np.linspace(min_alt, max_alt, self.altitude_resolution)
|
|
402
|
+
wavelengths = np.linspace(min_wl, max_wl, self.wavelength_resolution)
|
|
403
|
+
|
|
404
|
+
# Create 2D meshgrid and compute n values
|
|
405
|
+
n_values = np.zeros(
|
|
406
|
+
(self.altitude_resolution, self.wavelength_resolution), dtype=np.float32
|
|
407
|
+
)
|
|
408
|
+
dn_dh_values = np.zeros(
|
|
409
|
+
(self.altitude_resolution, self.wavelength_resolution), dtype=np.float32
|
|
410
|
+
)
|
|
411
|
+
alpha_values = np.zeros(
|
|
412
|
+
(self.altitude_resolution, self.wavelength_resolution), dtype=np.float32
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
for i, h in enumerate(altitudes):
|
|
416
|
+
for j, wl in enumerate(wavelengths):
|
|
417
|
+
n_values[i, j] = self.n_at_altitude(float(h), float(wl))
|
|
418
|
+
dn_dh_values[i, j] = self.dn_dh_at_altitude(float(h), float(wl))
|
|
419
|
+
alpha_values[i, j] = self.alpha_at_altitude(float(h), float(wl))
|
|
420
|
+
|
|
421
|
+
self._lut_altitudes = altitudes.astype(np.float32)
|
|
422
|
+
self._lut_wavelengths = wavelengths.astype(np.float32)
|
|
423
|
+
self._lut_n = n_values
|
|
424
|
+
self._lut_dn_dh = dn_dh_values
|
|
425
|
+
self._lut_alpha = alpha_values
|
|
426
|
+
self._lut_delta_h = float(altitudes[1] - altitudes[0])
|
|
427
|
+
self._lut_delta_wl = float(wavelengths[1] - wavelengths[0])
|
|
428
|
+
self._lut_initialized = True
|
|
429
|
+
|
|
430
|
+
def invalidate_lut(self) -> None:
|
|
431
|
+
"""Force LUT recalculation on next GPU use."""
|
|
432
|
+
self._lut_initialized = False
|
|
433
|
+
self._lut_altitudes = None
|
|
434
|
+
self._lut_wavelengths = None
|
|
435
|
+
self._lut_n = None
|
|
436
|
+
self._lut_dn_dh = None
|
|
437
|
+
self._lut_alpha = None
|
|
438
|
+
|
|
439
|
+
@property
|
|
440
|
+
def gpu_material_id(self) -> int:
|
|
441
|
+
"""Return GPU material ID for kernel dispatch."""
|
|
442
|
+
from ...propagation.propagator_protocol import GPUMaterialID
|
|
443
|
+
|
|
444
|
+
return GPUMaterialID.SPECTRAL_INHOMOGENEOUS
|
|
445
|
+
|
|
446
|
+
def get_gpu_kernels(self) -> dict:
|
|
447
|
+
"""Return GPU kernels for propagation (scalar wavelength)."""
|
|
448
|
+
from ...propagation.kernels.propagation import (
|
|
449
|
+
_kernel_spectral_inhomogeneous_euler,
|
|
450
|
+
_kernel_spectral_inhomogeneous_rk4,
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
return {
|
|
454
|
+
"euler": _kernel_spectral_inhomogeneous_euler,
|
|
455
|
+
"rk4": _kernel_spectral_inhomogeneous_rk4,
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
def get_gpu_kernels_perray(self) -> dict:
|
|
459
|
+
"""Return GPU kernels for per-ray wavelength propagation.
|
|
460
|
+
|
|
461
|
+
These kernels take a wavelengths array (one per ray) instead of a
|
|
462
|
+
scalar wavelength, allowing simulation of chromatic dispersion.
|
|
463
|
+
"""
|
|
464
|
+
from ...propagation.kernels.propagation import (
|
|
465
|
+
_kernel_spectral_inhomogeneous_euler_perray,
|
|
466
|
+
_kernel_spectral_inhomogeneous_rk4_perray,
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
return {
|
|
470
|
+
"euler": _kernel_spectral_inhomogeneous_euler_perray,
|
|
471
|
+
"rk4": _kernel_spectral_inhomogeneous_rk4_perray,
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
def get_gpu_parameters(self) -> tuple:
|
|
475
|
+
"""Return scalar parameters for GPU kernel."""
|
|
476
|
+
self._initialize_lut()
|
|
477
|
+
return (
|
|
478
|
+
float(self.center[0]),
|
|
479
|
+
float(self.center[1]),
|
|
480
|
+
float(self.center[2]),
|
|
481
|
+
float(self.reference_radius),
|
|
482
|
+
float(self.altitude_range[0]),
|
|
483
|
+
float(self._lut_delta_h),
|
|
484
|
+
int(self.altitude_resolution),
|
|
485
|
+
float(self.wavelength_range[0]),
|
|
486
|
+
float(self._lut_delta_wl),
|
|
487
|
+
int(self.wavelength_resolution),
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
def get_gpu_arrays(self) -> dict:
|
|
491
|
+
"""Return device arrays for GPU kernel."""
|
|
492
|
+
self._initialize_lut()
|
|
493
|
+
return {
|
|
494
|
+
"lut_n": self._lut_n,
|
|
495
|
+
"lut_dn_dh": self._lut_dn_dh,
|
|
496
|
+
"lut_alpha": self._lut_alpha,
|
|
497
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# The Clear BSD License
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2026 Tobias Heibges
|
|
4
|
+
# All rights reserved.
|
|
5
|
+
#
|
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
|
7
|
+
# modification, are permitted (subject to the limitations in the disclaimer
|
|
8
|
+
# below) provided that the following conditions are met:
|
|
9
|
+
#
|
|
10
|
+
# * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
# this list of conditions and the following disclaimer.
|
|
12
|
+
#
|
|
13
|
+
# * Redistributions in binary form must reproduce the above copyright
|
|
14
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
15
|
+
# documentation and/or other materials provided with the distribution.
|
|
16
|
+
#
|
|
17
|
+
# * Neither the name of the copyright holder nor the names of its
|
|
18
|
+
# contributors may be used to endorse or promote products derived from this
|
|
19
|
+
# software without specific prior written permission.
|
|
20
|
+
#
|
|
21
|
+
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
|
|
22
|
+
# THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
23
|
+
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
25
|
+
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
26
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
27
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
28
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
29
|
+
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
30
|
+
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
31
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
32
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
Material Implementations
|
|
36
|
+
|
|
37
|
+
This submodule contains concrete material implementations:
|
|
38
|
+
|
|
39
|
+
Standard Homogeneous Materials:
|
|
40
|
+
- VACUUM, AIR_STP, WATER, BK7_GLASS
|
|
41
|
+
|
|
42
|
+
SimpleInhomogeneousModel Implementations:
|
|
43
|
+
- ExponentialAtmosphere: Exponential decay atmosphere
|
|
44
|
+
- USStandardAtmosphere: US Standard Atmosphere 1976
|
|
45
|
+
- LinearGradientAtmosphere: Linear n gradient (for testing)
|
|
46
|
+
|
|
47
|
+
SpectralInhomogeneousModel Implementations:
|
|
48
|
+
- LinsleyAtmosphere: Linsley 5-layer model with wavelength dispersion
|
|
49
|
+
|
|
50
|
+
GridInhomogeneousModel Implementations:
|
|
51
|
+
- TurbulentAtmosphere: Kolmogorov-like turbulence
|
|
52
|
+
- GaussianLensAtmosphere: Gaussian thermal lens/bubble
|
|
53
|
+
|
|
54
|
+
FullInhomogeneousModel Implementations (CPU-only):
|
|
55
|
+
- InterpolatedDataAtmosphere: scipy interpolation of 3D data
|
|
56
|
+
- LayeredAtmosphere: Discrete horizontal layers
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
# Standard materials
|
|
60
|
+
from .standard_materials import (
|
|
61
|
+
VACUUM,
|
|
62
|
+
AIR_STP,
|
|
63
|
+
WATER,
|
|
64
|
+
BK7_GLASS,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Exponential atmosphere
|
|
68
|
+
from .exponential_atmosphere import (
|
|
69
|
+
ExponentialAtmosphere,
|
|
70
|
+
STANDARD_ATMOSPHERE,
|
|
71
|
+
create_exponential_atmosphere,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Duct atmosphere (exponential with inversion layer)
|
|
75
|
+
from .duct_atmosphere import (
|
|
76
|
+
DuctAtmosphere,
|
|
77
|
+
create_duct_atmosphere,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
# SimpleInhomogeneousModel implementations
|
|
81
|
+
from .us_standard_atmosphere import USStandardAtmosphere
|
|
82
|
+
from .linear_gradient import LinearGradientAtmosphere
|
|
83
|
+
|
|
84
|
+
# SpectralInhomogeneousModel implementations
|
|
85
|
+
from .linsley_atmosphere import LinsleyAtmosphere, create_linsley_atmosphere
|
|
86
|
+
|
|
87
|
+
# GridInhomogeneousModel implementations
|
|
88
|
+
from .turbulent_atmosphere import TurbulentAtmosphere
|
|
89
|
+
from .gaussian_lens import GaussianLensAtmosphere
|
|
90
|
+
|
|
91
|
+
# FullInhomogeneousModel implementations (CPU-only)
|
|
92
|
+
from .interpolated_data import InterpolatedDataAtmosphere
|
|
93
|
+
from .layered_atmosphere import LayeredAtmosphere
|
|
94
|
+
|
|
95
|
+
__all__ = [
|
|
96
|
+
# Standard materials
|
|
97
|
+
"VACUUM",
|
|
98
|
+
"AIR_STP",
|
|
99
|
+
"WATER",
|
|
100
|
+
"BK7_GLASS",
|
|
101
|
+
# Exponential atmosphere
|
|
102
|
+
"ExponentialAtmosphere",
|
|
103
|
+
"STANDARD_ATMOSPHERE",
|
|
104
|
+
"create_exponential_atmosphere",
|
|
105
|
+
# Duct atmosphere
|
|
106
|
+
"DuctAtmosphere",
|
|
107
|
+
"create_duct_atmosphere",
|
|
108
|
+
# Simple inhomogeneous
|
|
109
|
+
"USStandardAtmosphere",
|
|
110
|
+
"LinearGradientAtmosphere",
|
|
111
|
+
# Spectral inhomogeneous
|
|
112
|
+
"LinsleyAtmosphere",
|
|
113
|
+
"create_linsley_atmosphere",
|
|
114
|
+
# Grid inhomogeneous
|
|
115
|
+
"TurbulentAtmosphere",
|
|
116
|
+
"GaussianLensAtmosphere",
|
|
117
|
+
# Full inhomogeneous (CPU-only)
|
|
118
|
+
"InterpolatedDataAtmosphere",
|
|
119
|
+
"LayeredAtmosphere",
|
|
120
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
270,280,300,320,340,360,380,400,450,500,550,600,650,700,800,900,1060,1260,1670,2170,3500,4000
|
|
2
|
+
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50
|
|
3
|
+
1.27, 1.02, 8.58e-1, 7.18e-1, 6.39e-1, 6.11e-1, 5.83e-1, 5.84e-1, 5.83e-1,6.83e-1, 8.18e-1, 1.04, 1.37, 1.83, 2.06, 2.13, 2.20, 2.36, 2.59, 3.01, 3.46, 3.88, 4.15, 4.17, 4.06, 3.79, 3.43, 2.97, 2.59, 2.25, 1.90, 1.67, 1.43, 1.22, 1.02, 9.07e-1, 7.59e-1, 6.35e-1, 5.32e-1, 4.57e-1, 3.91e-1, 3.20e-1, 2.50e-1, 1.96e-1, 1.57e-1, 1.21e-1, 9.40e-2, 7.44e-2, 5.88e-2, 4.70e-2, 3.93e-2
|
|
4
|
+
8.42e-1, 6.41e-1, 5.22e-1, 4.31e-1, 3.81e-1, 3.60e-1, 3.40e-1, 3.36e-1, 3.31e-1, 3.78e-1, 4.42e-1, 5.51e-1, 7.13e-1, 9.43e-1, 1.06, 1.09, 1.12, 1.20, 1.32, 1.53, 1.76, 1.96, 2.10, 2.11, 2.05, 1.92, 1.73, 1.50, 1.31, 1.14, 9.60e-1, 8.43e-1, 7.25e-1, 6.19e-1, 5.16e-1, 4.58e-1, 3.84e-1, 3.21e-1, 2.69e-1, 2.31e-1, 1.98e-1, 1.62e-1, 1.27e-1, 9.90e-2, 7.92e-2, 6.14e-2, 4.76e-2, 3.77e-2, 2.58e-2, 2.38e-2, 1.99e-2
|
|
5
|
+
4.41e-1, 2.79e-1, 1.98e-1, 1.53e-1, 1.31e-1, 1.18e-1, 1.06e-1, 9.76e-2, 9.07e-2, 8.89e-2, 8.94e-2, 9.44e-2, 1.05e-1, 1.22e-1, 1.28e-1, 1.28e-1, 1.28e-1, 1.33e-1, 1.42e-1, 1.59e-1, 1.79e-1, 1.97e-1, 2.08e-1, 2.07e-1, 2.01e-1, 1.87e-1, 1.69e-1, 1.46e-1, 1.28e-1, 1.11e-1, 9.36e-2, 8.21e-2, 7.06e-2, 6.02e-2, 5.02e-2, 4.46e-2, 3.74e-2, 3.13e-2, 2.62e-2, 2.25e-2, 1.93e-2, 1.58e-2, 1.24e-2, 9.71e-3, 7.79e-3, 6.05e-3, 4.71e-3, 3.74e-3, 2.98e-3, 2.39e-3, 2.00e-3
|
|
6
|
+
3.63e-1, 2.13e-1, 1.40e-1, 1.04e-1, 8.60e-2, 7.59e-2, 6.67e-2, 6.01e-2, 5.45e-2, 4.95e-2, 4.52e-2, 4.15e-2, 3.85e-2, 3.60e-2, 3.35e-2, 3.06e-2, 2.82e-2, 2.67e-2, 2.57e-2, 2.53e-2, 2.51e-2, 2.50e-2, 2.48e-2, 2.37e-2, 2.23e-2, 2.04e-2, 1.83e-2, 1.57e-2, 1.38e-2, 1.18e-2, 9.96e-3, 8.69e-3, 7.45e-3, 6.35e-3, 5.31e-3, 4.68e-3, 3.93e-3, 3.30e-3, 2.78e-3, 2.38e-3, 2.04e-3, 1.69e-3, 1.35e-3, 1.07e-3, 8.75e-4, 6.97e-4, 5.57e-4, 4.53e-4, 3.70e-4, 3.06e-4, 2.60e-4
|
|
7
|
+
3.25e-1, 1.83e-1, 1.16e-1, 8.23e-2, 6.71e-2, 5.88e-2, 5.13e-2, 4.60e-2, 4.17e-2, 3.75e-2, 3.37e-2, 3.01e-2, 2.68e-2, 2.34e-2, 2.07e-2, 1.82e-2, 1.60e-2, 1.44e-2, 1.29e-2, 1.12e-2, 9.48e-3, 8.07e-3, 6.97e-3, 6.03e-3, 5.24e-3, 4.56e-3, 3.97e-3, 3.35e-3, 2.85e-3, 2.42e-3, 2.04e-3, 1.75e-3, 1.49e-3, 1.26e-3, 1.06e-3, 9.13e-4, 7.72e-4, 6.55e-4, 5.56e-4, 4.77e-4, 4.09e-4, 3.47e-4, 2.91e-4, 2.46e-4, 2.09e-4, 1.77e-4, 1.50e-4, 1.28e-4, 1.11e-4, 9.61e-5, 8.40e-5
|
|
8
|
+
3.07e-1, 1.66e-1, 1.00e-1, 6.87e-2, 5.48e-2, 4.78e-2, 4.14e-2, 3.72e-2, 3.38e-2, 3.04e-2, 2.74e-2, 2.44e-2, 2.18e-2, 1.89e-2, 1.67e-2, 1.47e-2, 1.29e-2, 1.16e-2, 1.03e-2, 8.78e-3, 7.14e-3, 5.80e-3, 4.79e-3, 3.98e-3, 3.34e-3, 2.85e-3, 2.45e-3, 2.04e-3, 1.71e-3, 1.44e-3, 1.21e-3, 1.02e-3, 8.62e-4, 7.26e-4, 6.13e-4, 5.19e-4, 4.40e-4, 3.75e-4, 3.20e-4, 2.73e-4, 2.34e-4, 2.01e-4, 1.73e-4, 1.49e-4, 1.29e-4, 1.12e-4, 9.69e-5, 8.43e-5, 7.38e-5, 6.50e-5, 5.72e-5
|
|
9
|
+
2.83e-1, 1.50e-1, 8.74e-2, 5.79e-2, 4.53e-2, 3.93e-2, 3.39e-2, 3.04e-2, 2.78e-2, 2.50e-2, 2.26e-2, 2.02e-2, 1.81e-2, 1.58e-2, 1.40e-2, 1.23e-2, 1.09e-2, 9.81e-3, 8.80e-3, 7.48e-3, 6.04e-3, 4.86e-3, 3.99e-3, 3.30e-3, 2.76e-3, 2.35e-3, 2.02e-3, 1.68e-3, 1.40e-3, 1.17e-3, 9.83e-4, 8.26e-4, 6.96e-4, 5.85e-4, 4.92e-4, 4.16e-4, 3.52e-4, 2.99e-4, 2.55e-4, 2.18e-4, 1.86e-4, 1.60e-4, 1.38e-4, 1.19e-4, 1.03e-4, 8.88e-5, 7.71e-5, 6.70e-5, 5.88e-5, 5.17e-5, 4.55e-5
|
|
10
|
+
2.43e-1, 1.27e-1, 7.33e-2, 4.79e-2, 3.72e-2, 3.22e-2, 2.77e-2, 2.49e-2, 2.28e-2, 2.05e-2, 1.85e-2, 1.66e-2, 1.49e-2, 1.30e-2, 1.16e-2, 1.02e-2, 9.04e-3, 8.15e-3, 7.32e-3, 6.22e-3, 5.01e-3, 4.03e-3, 3.30e-3, 2.72e-3, 2.27e-3, 1.93e-3, 1.66e-3, 1.38e-3, 1.15e-3, 9.61e-4, 8.05e-4, 6.76e-4, 5.69e-4, 4.77e-4, 4.02e-4, 3.39e-4, 2.87e-4, 2.43e-4, 2.07e-4, 1.77e-4, 1.51e-4, 1.30e-4, 1.12e-4, 9.62e-5, 8.31e-5, 7.20e-5, 6.24e-5, 5.43e-5, 4.76e-5, 4.18e-5, 3.68e-5
|
|
11
|
+
2.06e-1, 1.03e-1, 5.59e-2, 3.40e-2, 2.53e-2, 2.16e-2, 1.83e-2, 1.65e-2, 1.52e-2, 1.38e-2, 1.25e-2, 1.13e-2, 1.03e-2, 9.07e-3, 8.16e-3, 7.26e-3, 6.50e-3, 5.95e-3, 5.41e-3, 4.61e-3, 3.67e-3, 2.93e-3, 2.39e-3, 1.97e-3, 1.64e-3, 1.40e-3, 1.21e-3, 9.97e-4, 8.26e-4, 6.87e-4, 5.71e-4, 4.77e-4, 4.00e-4, 3.34e-4, 2.79e-4, 2.35e-4, 1.98e-4, 1.67e-4, 1.42e-4, 1.20e-4, 1.03e-4, 8.75e-5, 7.46e-5, 6.38e-5, 5.48e-5, 4.71e-5, 4.06e-5, 3.51e-5, 3.06e-5, 2.68e-5, 2.35e-5
|
|
12
|
+
1.84e-1, 8.91e-2, 4.59e-2, 2.61e-2, 1.86e-2, 1.57e-2, 1.31e-2, 1.18e-2, 1.10e-2, 1.01e-2, 9.26e-3, 8.41e-3, 7.83e-3, 7.07e-3, 6.50e-3, 5.87e-3, 5.35e-3, 5.01e-3, 4.67e-3, 4.09e-3, 3.39e-3, 2.84e-3, 2.44e-3, 2.11e-3, 1.84e-3, 1.62e-3, 1.42e-3, 1.19e-3, 1.00e-3, 8.42e-4, 7.01e-4, 5.96e-4, 5.02e-4, 4.22e-4, 3.51e-4, 3.02e-4, 2.53e-4, 2.12e-4, 1.78e-4, 1.52e-4, 1.29e-4, 1.08e-4, 8.84e-5, 7.26e-5, 6.05e-5, 4.98e-5, 4.12e-5, 3.46e-5, 2.92e-5, 2.48e-5, 2.14e-5
|
|
13
|
+
1.70e-1, 8.03e-2, 3.98e-2, 2.15e-2, 1.46e-2, 1.22e-2, 1.00e-2, 9.09e-3, 8.59e-3, 7.94e-3, 7.42e-3, 6.85e-3, 6.65e-3, 6.19e-3, 5.86e-3, 5.41e-3, 5.05e-3, 4.86e-3, 4.69e-3, 4.32e-3, 3.84e-3, 3.49e-3, 3.24e-3, 2.97e-3, 2.71e-3, 2.45e-3, 2.19e-3, 1.85e-3, 1.58e-3, 1.35e-3, 1.13e-3, 9.75e-4, 8.29e-4, 7.01e-4, 5.83e-4, 5.10e-4, 4.26e-4, 3.56e-4, 2.98e-4, 2.55e-4, 2.18e-4, 1.79e-4, 1.43e-4, 1.14e-4, 9.29e-5, 7.39e-5, 5.90e-5, 4.80e-5, 3.92e-5, 3.23e-5, 2.75e-5
|
|
14
|
+
1.59e-1, 7.38e-2, 3.56e-2, 1.83e-2, 1.21e-2, 9.96e-3, 8.04e-3, 7.35e-3, 7.02e-3, 6.57e-3, 6.22e-3, 5.86e-3, 5.86e-3, 5.62e-3, 5.46e-3, 5.12e-3, 4.86e-3, 4.78e-3, 4.71e-3, 4.49e-3, 4.17e-3, 3.96e-3, 3.80e-3, 3.57e-3, 3.33e-3, 3.04e-3, 2.72e-3, 2.32e-3, 1.99e-3, 1.71e-3, 1.43e-3, 1.24e-3, 1.06e-3, 8.98e-4, 7.47e-4, 6.57e-4, 5.49e-4, 4.58e-4, 3.84e-4, 3.28e-4, 2.80e-4, 2.30e-4, 1.82e-4, 1.44e-4, 1.16e-4, 9.13e-5, 7.19e-5, 5.78e-5, 4.66e-5, 3.79e-5, 3.20e-5
|
|
15
|
+
1.48e-1, 6.80e-2, 3.20e-2, 1.59e-2, 1.01e-2, 8.19e-3, 6.49e-3, 5.93e-3, 5.72e-3, 5.34e-3, 5.06e-3, 4.71e-3, 4.69e-3, 4.39e-3, 4.22e-3, 3.93e-3, 3.70e-3, 3.61e-3, 3.51e-3, 3.21e-3, 2.78e-3, 2.48e-3, 2.26e-3, 2.05e-3, 1.87e-3, 1.68e-3, 1.50e-3, 1.26e-3, 1.07e-3, 9.13e-4, 7.61e-4, 6.53e-4, 5.54e-4, 4.67e-4, 3.87e-4, 3.38e-4, 2.81e-4, 2.35e-4, 1.96e-4, 1.67e-4, 1.42e-4, 1.17e-4, 9.28e-5, 7.37e-5, 5.97e-5, 4.72e-5, 3.75e-5, 3.03e-5, 2.46e-5, 2.01e-5, 1.70e-5
|
|
16
|
+
1.39e-1, 6.34e-2, 2.93e-2, 1.41e-2, 8.66e-3, 6.96e-3, 5.43e-3, 4.96e-3, 4.82e-3, 4.51e-3, 4.26e-3, 3.94e-3, 3.92e-3, 3.61e-3, 3.44e-3, 3.19e-3, 2.98e-3, 2.89e-3, 2.77e-3, 2.43e-3, 1.97e-3, 1.62e-3, 1.38e-3, 1.18e-3, 1.03e-3, 9.11e-4, 8.06e-4, 6.65e-4, 5.53e-4, 4.62e-4, 3.80e-4, 3.20e-4, 2.68e-4, 2.23e-4, 1.83e-4, 1.57e-4, 1.30e-4, 1.08e-4, 9.00e-5, 7.61e-5, 6.44e-5, 5.29e-5, 4.24e-5, 3.40e-5, 2.77e-5, 2.22e-5, 1.79e-5, 1.46e-5, 1.20e-5, 9.94e-6, 8.45e-6
|
|
17
|
+
1.30e-1, 5.82e-2, 2.62e-2, 1.20e-2, 7.08e-3, 5.59e-3, 4.24e-3, 3.89e-3, 3.84e-3, 3.61e-3, 3.44e-3, 3.19e-3, 3.22e-3, 2.95e-3, 2.84e-3, 2.63e-3, 2.47e-3, 2.41e-3, 2.31e-3, 1.99e-3, 1.55e-3, 1.21e-3, 9.84e-4, 8.12e-4, 6.87e-4, 5.97e-4, 5.25e-4, 4.23e-4, 3.45e-4, 2.83e-4, 2.29e-4, 1.89e-4, 1.55e-4, 1.27e-4, 1.04e-4, 8.71e-5, 7.14e-5, 5.87e-5, 4.83e-5, 4.04e-5, 3.39e-5, 2.77e-5, 2.22e-5, 1.78e-5, 1.45e-5, 1.17e-5, 9.43e-6, 7.72e-6, 6.35e-6, 5.28e-6, 4.48e-6
|
|
18
|
+
1.22e-1, 5.42e-2, 2.41e-2, 1.07e-2, 6.12e-3, 4.76e-3, 3.54e-3, 3.26e-3, 3.25e-3, 3.07e-3, 2.94e-3, 2.73e-3, 2.77e-3, 2.53e-3, 2.44e-3, 2.26e-3, 2.13e-3, 2.07e-3, 1.99e-3, 1.68e-3, 1.25e-3, 9.18e-4, 7.01e-4, 5.43e-4, 4.35e-4, 3.67e-4, 3.19e-4, 2.48e-4, 1.93e-4, 1.52e-4, 1.19e-4, 9.29e-5, 7.30e-5, 5.75e-5, 4.54e-5, 3.39e-5, 2.85e-5, 2.27e-5, 1.82e-5, 1.46e-5, 1.17e-5, 9.51e-6, 7.73e-6, 6.31e-6, 5.18e-6, 4.27e-6, 3.54e-6, 2.95e-6, 2.48e-6, 2.10e-6, 1.78e-6
|
|
19
|
+
1.14e-1, 5.04e-2, 2.21e-2, 9.52e-3, 5.31e-3, 4.08e-3, 2.97e-3, 2.75e-3, 2.78e-3, 2.64e-3, 2.54e-3, 2.37e-3, 2.44e-3, 2.24e-3, 2.17e-3, 2.03e-3, 1.91e-3, 1.88e-3, 1.80e-3, 1.52e-3, 1.13e-3, 8.23e-4, 6.25e-4, 4.82e-4, 3.84e-4, 3.24e-4, 2.82e-4, 2.18e-4, 1.68e-4, 1.31e-4, 1.02e-4, 7.89e-5, 6.13e-5, 4.78e-5, 3.73e-5, 2.92e-5, 2.29e-5, 1.80e-5, 1.42e-5, 1.12e-5, 8.87e-6, 7.05e-6, 5.54e-6, 4.52e-6, 3.64e-6, 2.95e-6, 2.40e-6, 1.96e-6, 1.62e-6, 1.34e-6, 1.12e-6
|
|
20
|
+
1.08e-1, 4.79e-2, 2.08e-2, 8.92e-3, 4.83e-3, 3.68e-3, 2.64e-3, 2.45e-3, 2.49e-3, 2.38e-3, 2.30e-3, 2.15e-3, 2.24e-3, 2.06e-3, 2.00e-3, 1.88e-3, 1.78e-3, 1.75e-3, 1.69e-3, 1.42e-3, 1.05e-3, 7.64e-4, 5.77e-4, 4.44e-4, 3.53e-4, 2.97e-4, 2.59e-4, 1.99e-4, 1.53e-4, 1.19e-4, 9.16e-5, 7.06e-5, 5.45e-5, 4.21e-5, 3.25e-5, 2.53e-5, 1.96e-5, 1.53e-5, 1.19e-5, 9.27e-6, 7.25e-6, 5.69e-6, 4.47e-6, 3.53e-6, 2.79e-6, 2.22e-6, 1.77e-6, 1.42e-6, 1.14e-6, 9.26e-7, 7.54e-7
|
|
21
|
+
9.81e-2, 4.32e-2, 1.87e-2, 7.91e-3, 4.22e-3, 3.19e-3, 2.27e-3, 2.10e-3, 2.15e-3, 2.07e-3, 2.01e-3, 1.83e-3, 1.97e-3, 1.82e-3, 1.77e-3, 1.65e-3, 1.58e-3, 1.56e-3, 1.51e-3, 1.27e-3, 9.34e-4, 6.78e-4, 5.11e-4, 3.92e-4, 3.11e-4, 2.62e-4, 2.28e-4, 1.75e-4, 1.34e-4, 1.05e-4, 7.95e-5, 6.09e-5, 4.68e-5, 3.60e-5, 2.77e-5, 2.13e-5, 1.54e-5, 1.26e-5, 9.76e-6, 7.51e-6, 5.80e-6, 4.49e-6, 3.47e-6, 2.69e-6, 2.09e-6, 1.53e-6, 1.27e-6, 9.93e-7, 7.81e-7, 6.13e-7, 4.84e-7
|
|
22
|
+
8.50e-2, 3.74e-2, 1.52e-2, 6.81e-3, 3.61e-3, 2.73e-3, 1.93e-3, 1.79e-3, 1.84e-3, 1.77e-3, 1.72e-3, 1.61e-3, 1.69e-3, 1.56e-3, 1.53e-3, 1.43e-3, 1.36e-3, 1.34e-3, 1.30e-3, 1.10e-3, 8.05e-4, 5.84e-4, 4.40e-4, 3.37e-4, 2.57e-4, 2.25e-4, 1.95e-4, 1.50e-4, 1.15e-4, 8.85e-5, 6.79e-5, 5.20e-5, 3.93e-5, 3.06e-5, 2.35e-5, 1.80e-5, 1.35e-5, 1.06e-5, 8.15e-6, 6.25e-6, 4.31e-6, 3.70e-6, 2.85e-6, 2.19e-6, 1.69e-6, 1.30e-6, 1.01e-6, 7.77e-7, 6.04e-7, 4.67e-7, 3.63e-7
|
|
23
|
+
7.00e-2, 3.08e-2, 1.33e-2, 5.59e-3, 2.96e-3, 2.23e-3, 1.57e-3, 1.46e-3, 1.50e-3, 1.44e-3, 1.41e-3, 1.32e-3, 1.38e-3, 1.28e-3, 1.25e-3, 1.19e-3, 1.12e-3, 1.10e-3, 1.07e-3, 9.00e-4, 6.61e-4, 4.79e-4, 3.51e-4, 2.76e-4, 2.19e-4, 1.84e-4, 1.61e-4, 1.23e-4, 9.41e-5, 7.25e-5, 5.55e-5, 4.24e-5, 3.25e-5, 2.49e-5, 1.91e-5, 1.46e-5, 1.12e-5, 8.59e-6, 8.59e-6, 5.03e-6, 3.85e-6, 2.96e-6, 2.27e-6, 1.74e-6, 1.33e-6, 1.02e-6, 7.85e-7, 6.02e-7, 4.54e-7, 3.55e-7, 2.72e-7
|
|
24
|
+
6.50e-2, 2.77e-2, 1.20e-2, 5.03e-3, 2.58e-3, 2.00e-3, 1.41e-3, 1.31e-3, 1.35e-3, 1.30e-3, 1.27e-3, 1.19e-3, 1.25e-3, 1.15e-3, 1.13e-3, 1.06e-3, 1.01e-3, 9.93e-4, 9.61e-4, 8.10e-4, 5.94e-4, 4.31e-4, 3.24e-4, 2.48e-4, 1.97e-4, 1.66e-4, 1.44e-4, 1.11e-4, 8.45e-5, 6.51e-5, 4.99e-5, 3.81e-5, 2.92e-5, 2.24e-5, 1.71e-5, 1.31e-5, 1.01e-5, 7.72e-6, 5.92e-6, 4.52e-6, 3.47e-6, 2.55e-6, 2.04e-6, 1.56e-6, 1.20e-6, 9.16e-7, 7.03e-7, 5.39e-7, 4.15e-7, 3.17e-7, 2.43e-7
|