Helper Functions
The following functions are auxiliary (helper) functions frequently used in radiative transfer problems.
- compile(model, filename)[source]
Compile a PyTorch model to a TorchScript file.
- Parameters:
model – The PyTorch model to compile.
filename – The name of the file to save the compiled model.
- Returns:
A compiled version of the model.
- bbflux_wavenumber(*args, **kwargs)
Overloaded function.
bbflux_wavenumber(wave: torch.Tensor, temp: float, ncol: int = 1) -> torch.Tensor
bbflux_wavenumber(wn1: float, wn2: float, temp: torch.Tensor = 1) -> torch.Tensor
- bbflux_wavelength(wave: torch.Tensor, temp: float, ncol: int = 1) torch.Tensor
- calc_dz_hypsometric(pres: torch.Tensor, temp: torch.Tensor, g_ov_R: torch.Tensor) torch.Tensor
- interpn(query: list[torch.Tensor], coords: list[torch.Tensor], lookup: torch.Tensor, extrapolate: bool = False) torch.Tensor