load_example_opacity

load_example_opacity

frei.load_example_opacity(grid, seed=42, scale_factor=20)[source]

Load “example” opacity xarray.

This file function returns something compatible with the output of binned_opacity, so fake data can be substituted for the real opacities during testing and in the documentaiton.

Parameters
  • grid (Grid) – Grid object

  • seed (int) – Random seed for numpy

  • scale_factor (float) – Scale up/down synthetic opacities by this factor

Returns

op – Opacity tables for each species

Return type

dict