isofit.radiative_transfer.engines.kernel_flows
Attributes
Classes
Radiative transfer emulation based on KernelFlows.jl and VSWIREmulator.jl. A description of |
Functions
|
Check if the grid points are within the bounds of the emulator |
|
|
|
Module Contents
- bounds_check(grid: dict, emulator_file: str = None, modify: bool = False)[source]
Check if the grid points are within the bounds of the emulator
- Parameters:
grid (dict) – Dictionary of grid points
emulator_file (str, optional) – Path to the emulator file. Defaults to None.
emulator (h5py.File, optional) – Emulator file. Defaults to None.
modify (bool, optional) – If True, adjust the grid points to be within the bounds of the emulator. Defaults to False.
- Raises:
ValueError – If grid points are out of bounds and modify == False
- predict_M(M_Z, M_lambda, M_theta, M_h, points, G_Xproj_vectors, G_Xproj_values, G_Xmean, G_Xstd)[source]
- class KernelFlowsRT(engine_config: RadiativeTransferEngineConfig, **kwargs)[source]
Bases:
isofit.radiative_transfer.radiative_transfer_engine.RadiativeTransferEngineRadiative transfer emulation based on KernelFlows.jl and VSWIREmulator.jl. A description of the model can be found in:
O. Lamminpää, J. Susiluoto, J. Hobbs, J. McDuffie, A. Braverman, and H. Owhadi. Forward model emulator for atmospheric radiative transfer using Gaussian processes and cross validation (2024). Submitted to Atmospheric Measurement Techniques.
- preSim()[source]
This is an optional function that can be defined by a subclass RTE to be called directly before runSim() is executed. A subclass may return a dict containing any single or non-dimensional variables to be saved to the LUT file
- makeSim(point: numpy.array, template_only: bool = False)[source]
Prepares and executes a radiative transfer engine’s simulations
- Parameters:
point (np.array) – conditions to alter in simulation
template_only (bool) – only write template file and then stop