taurex 3.2.0__tar.gz → 3.2.2__tar.gz
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.
- {taurex-3.2.0 → taurex-3.2.2}/PKG-INFO +1 -1
- {taurex-3.2.0 → taurex-3.2.2}/pyproject.toml +1 -1
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/leemie.py +73 -1
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mixin/mixins.py +2 -1
- {taurex-3.2.0 → taurex-3.2.2}/LICENSE +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/README.md +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/_citation.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/_version.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/binner.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/fluxbinner.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/lightcurvebinner.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/nativebinner.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/simplebinner.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/ciaacache.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/globalcache.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/ktablecache.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/opacitycache.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/singleton.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/chemistry.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/cia.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/hitrancia.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/picklecia.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/constants.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/absorption.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/cia.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/contribution.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/flatmie.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/hm.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/rayleigh.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/simpleclouds.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/core/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/core/priors.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/citation.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/fittable.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/planet.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/autochemistry.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/chemistry.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/filechemistry.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/arraygas.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/constantgas.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/gas.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/powergas.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/twolayergas.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/twopointgas.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/taurexchemistry.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/arraypressure.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/filepressure.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/pressureprofile.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/file.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/guillot.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/isothermal.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/npoint.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/rodgers.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/temparray.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/tprofile.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/array.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/iraclis.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/lightcurve.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/observed.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/spectrum.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/taurex.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/stellar/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/stellar/phoenix.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/stellar/star.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/exceptions.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/instrument.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/instrumentfile.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/snr.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/log/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/log/logger.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mixin/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mixin/core.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/directimage.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/emission.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/lightcurve/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/lightcurve/lightcurve.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/lightcurve/lightcurvedata.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/model.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/simplemodel.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/transmission.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mpi.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/exotransmit.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/fakeopacity.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/hdf5opacity.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/interpolateopacity.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/hdfktable.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/ktable.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/nemesisktables.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/picklektable.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/opacity.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/pickleopacity.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/radisopacity.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/dypolychord.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/multinest.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/nestle.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/optimizer.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/polychord.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/hdf5.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/output.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/writeable.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/classfactory.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/factory.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/parameterparser.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/planet.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plot/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plot/corner.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plot/plotter.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plugins/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/pressure.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/spectrum.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/stellar.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/taurex.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/taurexdefs.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/temperature.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/types.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/__init__.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/emission.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/fitting.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/fortran.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/geometry.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/hdf5.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/math.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/math_numba.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/module.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/output.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/scattering.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/spectrum.py +0 -0
- {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/util.py +0 -0
|
@@ -10,6 +10,13 @@ from taurex.output import OutputGroup
|
|
|
10
10
|
|
|
11
11
|
from .contribution import Contribution
|
|
12
12
|
|
|
13
|
+
if t.TYPE_CHECKING:
|
|
14
|
+
from taurex.model.model import ForwardModel
|
|
15
|
+
else:
|
|
16
|
+
ForwardModel = object
|
|
17
|
+
|
|
18
|
+
from .contribution import contribute_tau
|
|
19
|
+
|
|
13
20
|
|
|
14
21
|
class LeeMieContribution(Contribution):
|
|
15
22
|
"""Computes Mie scattering contribution to optica depth.
|
|
@@ -26,7 +33,7 @@ class LeeMieContribution(Contribution):
|
|
|
26
33
|
Extinction coefficient
|
|
27
34
|
|
|
28
35
|
lee_mie_mix_ratio: float
|
|
29
|
-
Mixing ratio in atmosphere
|
|
36
|
+
Mixing ratio in atmosphere in particles/m3
|
|
30
37
|
|
|
31
38
|
lee_mie_bottomP: float
|
|
32
39
|
Bottom of cloud deck in Pa
|
|
@@ -37,6 +44,71 @@ class LeeMieContribution(Contribution):
|
|
|
37
44
|
|
|
38
45
|
"""
|
|
39
46
|
|
|
47
|
+
def contribute(
|
|
48
|
+
self,
|
|
49
|
+
model: ForwardModel,
|
|
50
|
+
start_layer: int,
|
|
51
|
+
end_layer: int,
|
|
52
|
+
density_offset: int,
|
|
53
|
+
layer: int,
|
|
54
|
+
density: npt.NDArray[np.float64],
|
|
55
|
+
tau: npt.NDArray[np.float64],
|
|
56
|
+
path_length: t.Optional[npt.NDArray[np.float64]] = None,
|
|
57
|
+
):
|
|
58
|
+
"""Computes an integral for a single layer for the optical depth.
|
|
59
|
+
|
|
60
|
+
Parameters
|
|
61
|
+
----------
|
|
62
|
+
model: :class:`~taurex.model.model.ForwardModel`
|
|
63
|
+
A forward model
|
|
64
|
+
|
|
65
|
+
start_layer: int
|
|
66
|
+
Lowest layer limit for integration
|
|
67
|
+
|
|
68
|
+
end_layer: int
|
|
69
|
+
Upper layer limit of integration
|
|
70
|
+
|
|
71
|
+
density_offset: int
|
|
72
|
+
offset in density layer
|
|
73
|
+
|
|
74
|
+
layer: int
|
|
75
|
+
atmospheric layer being computed
|
|
76
|
+
|
|
77
|
+
density: :obj:`array`
|
|
78
|
+
density profile of atmosphere
|
|
79
|
+
|
|
80
|
+
tau: :obj:`array`
|
|
81
|
+
optical depth to store result
|
|
82
|
+
|
|
83
|
+
path_length: :obj:`array`
|
|
84
|
+
integration length
|
|
85
|
+
|
|
86
|
+
"""
|
|
87
|
+
self.debug("SIGMA %s", self.sigma_xsec.shape)
|
|
88
|
+
self.debug(
|
|
89
|
+
" %s %s %s %s %s %s %s",
|
|
90
|
+
start_layer,
|
|
91
|
+
end_layer,
|
|
92
|
+
density_offset,
|
|
93
|
+
layer,
|
|
94
|
+
1,
|
|
95
|
+
tau,
|
|
96
|
+
self._ngrid,
|
|
97
|
+
)
|
|
98
|
+
contribute_tau(
|
|
99
|
+
start_layer,
|
|
100
|
+
end_layer,
|
|
101
|
+
density_offset,
|
|
102
|
+
self.sigma_xsec,
|
|
103
|
+
np.ones(self._nlayers),
|
|
104
|
+
path_length,
|
|
105
|
+
self._nlayers,
|
|
106
|
+
self._ngrid,
|
|
107
|
+
layer,
|
|
108
|
+
tau,
|
|
109
|
+
)
|
|
110
|
+
self.debug("DONE")
|
|
111
|
+
|
|
40
112
|
def __init__(
|
|
41
113
|
self,
|
|
42
114
|
lee_mie_radius: t.Optional[float] = 0.01,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Some implemented mixins."""
|
|
2
|
+
|
|
2
3
|
import typing as t
|
|
3
4
|
|
|
4
5
|
import numpy as np
|
|
@@ -19,7 +20,7 @@ class MakeFreeMixin(ChemistryMixin):
|
|
|
19
20
|
|
|
20
21
|
For example lets enhance ACE:
|
|
21
22
|
|
|
22
|
-
>>> from
|
|
23
|
+
>>> from acepython.taurex import ACEChemistry
|
|
23
24
|
>>> from taurex.mixin import enhance_class, MakeFreeMixin
|
|
24
25
|
>>> old_ace = ACEChemistry()
|
|
25
26
|
>>> new_ace = enhance_class(ACEChemistry, MakeFreeMixin)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|