@@ -145,7 +145,8 @@ def get_model(self,
145
145
quenching : Optional [str ] = None ,
146
146
spec_res : Optional [float ] = None ,
147
147
wavel_resample : Optional [np .ndarray ] = None ,
148
- plot_contribution : Optional [str ] = None ) -> box .ModelBox :
148
+ plot_contribution : Optional [str ] = None ,
149
+ cloud_wavel : Optional [Tuple [float , float ]] = None ) -> box .ModelBox :
149
150
"""
150
151
Function for calculating a model spectrum with ``petitRADTRANS``.
151
152
@@ -167,6 +168,12 @@ def get_model(self,
167
168
plot_contribution : str, None
168
169
Filename for the plot with the emission contribution. The plot is not created if the
169
170
argument is set to ``None``.
171
+ cloud_wavel : tuple(float, float), None
172
+ Tuple with the wavelength range (um) that is used for calculating the median optical
173
+ depth of the clouds at the gas-only photosphere and then scaling the cloud optical
174
+ depth to the value of ``log_tau_cloud``. The range of ``cloud_wavel`` should be
175
+ encompassed by the range of ``wavel_range``. The full wavelength range (i.e.
176
+ ``wavel_range``) is used if the argument is set to ``None``.
170
177
171
178
Returns
172
179
-------
@@ -366,7 +373,8 @@ def get_model(self,
366
373
p_quench , log_x_abund , log_x_base , model_param ['fsed' ],
367
374
log_kzz , model_param ['logg' ], model_param ['sigma_lnorm' ],
368
375
chemistry = chemistry , pressure_grid = self .pressure_grid ,
369
- plotting = False , contribution = True , tau_cloud = tau_cloud )
376
+ plotting = False , contribution = True , tau_cloud = tau_cloud ,
377
+ cloud_wavel = cloud_wavel )
370
378
371
379
elif chemistry == 'equilibrium' :
372
380
# Calculate the petitRADTRANS spectrum for a clear atmosphere
0 commit comments