pyrt.extinction_ratio#

pyrt.extinction_ratio(extinction_cross_section, particle_size_grid, wavelength_grid, wavelength_reference)[source]#

Make a grid of extinction cross-section ratios.

This is the extinction cross-section at the input wavelengths divided by the extinction cross-section at the reference wavelength.

Parameters:
  • extinction_cross_section (np.ndarray) – 2-dimensional array of extinction cross-sections.

  • particle_size_grid (np.ndarray) – 1-dimensional array of particle sizes corresponding to the first axis of extinction_cross_section.

  • wavelength_grid (np.ndarray) – 1-dimensional array of wavelengths [microns] corresponding to the second axis of extinction_cross_section.

  • wavelength_reference (np.ndarray) – The wavelength [microns] to scale everything to.

Returns:

Array of extinction cross-section ratios. This will retain the shape of the original array.

Return type:

np.ndarray