pyarts.recipe

class pyarts.recipe.AtmosphericFlux(visible_surface_reflectivity: float = 0.3, thermal_surface_reflectivity: float = 0.05, atmospheric_altitude: float = 50000.0, surface_temperature: float = 300.0, max_level_step: float = 1000.0, NQuad: int = 16, atm_latitude: float = 0.0, atm_longitude: float = 0.0, solar_latitude: float = 0.0, solar_longitude: float = 0.0, species: list = ['H2O-161', 'O2-66', 'N2-44', 'CO2-626', 'O3-XFIT'], remove_lines_percentile: dict[SpeciesEnum, float] | float | None = None)[source]

Creates a Disort clearsky flux operator using the Czarnecki-scheme.

__call__(atmospheric_profile: dict = {}, surface_temperature: float = None)[source]

Get the total flux profile

Parameters:
  • atmospheric_profile (dict, optional) – A dictionary of atmospheric data. Defaults to {}.

  • surface_temperature (float, optional) – A surface temperature. Defaults to None.

Returns:

The solar and thermal fluxes and the center altitudes of the layers.

Return type:

Flux, Flux, numpy.ndarray

__init__(visible_surface_reflectivity: float = 0.3, thermal_surface_reflectivity: float = 0.05, atmospheric_altitude: float = 50000.0, surface_temperature: float = 300.0, max_level_step: float = 1000.0, NQuad: int = 16, atm_latitude: float = 0.0, atm_longitude: float = 0.0, solar_latitude: float = 0.0, solar_longitude: float = 0.0, species: list = ['H2O-161', 'O2-66', 'N2-44', 'CO2-626', 'O3-XFIT'], remove_lines_percentile: dict[SpeciesEnum, float] | float | None = None)[source]

Compute the total flux for a given atmospheric profile and surface temperature

The operator allows you to change the

Parameters:
  • visible_surface_reflectivity (float, optional) – The surface reflectivity constant for Disort in visible. Defaults to 0.3.

  • thermal_surface_reflectivity (float, optional) – The surface reflectivity constant for Disort in thermal. Defaults to 0.05.

  • atmospheric_altitude (float, optional) – The top-of-the-atmosphere altitude [m]. Defaults to 50e3.

  • surface_temperature (float, optional) – The surface temperature [K]. Defaults to 300.0.

  • max_level_step (float, optional) – The maximum thickness of layers [m]. Defaults to 1e3.

  • NQuad (int, optional) – The number of quadratures used by Disort. Defaults to 16.

  • atm_latitude (float, optional) – Latitude of profile [degrees]. Defaults to 0.0.

  • atm_longitude (float, optional) – Longitude of profile [degrees]. Defaults to 0.0.

  • solar_latitude (float, optional) – Latitude of sun [degrees]. Defaults to 0.0.

  • solar_longitude (float, optional) – Longitude of sun [degrees]. Defaults to 0.0.

  • species (list, optional) – The list of absorption species. Defaults to [ “H2O-161”, “O2-66”, “N2-44”, “CO2-626”, “O3-XFIT”, ].

  • remove_lines_percentile (dict | float | None, optional) – The percentile of lines to remove [0, 100]. Per species if dict. Defaults to None.

get_atmosphere(core=True, specs=True, nlte=False, ssprops=False, isots=False)[source]

Return the atmospheric field as a dictionary of python types.

Parameters:
  • core (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to True.

  • specs (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to True.

  • nlte (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to False.

  • ssprops (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to False.

  • isots (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to False.

Returns:

Atmospheric field dictionary

Return type:

dict

class pyarts.recipe.SingleSpeciesAbsorption(species: str)[source]

Calculates absorption coefficients for a single absorbing species.

__call__(frequency_grid: AscendingGrid, atmospheric_point: AtmPoint)[source]

Call operator to return a propagation matrix

Parameters:
  • frequency_grid (AscendingGrid) – A list of frequency points.

  • atmospheric_point (AtmPoint) – The state of the atmosphere at the point of interest

Returns:

numpy.ndarray – The propagation matrix at the frequency and point of interest Note that the first dimention is the size of the frequency grid and that the second dimension contains 7 variables, the first of which is unpolarized absorption.

Return type:

propagation_matrix

__init__(species: str)[source]

Initialization

Parameters:

species (str) – See absorption_speciesSet for details.

class pyarts.recipe.SpectralAtmosphericFlux(visible_surface_reflectivity: float = 0.3, thermal_surface_reflectivity: float = 0.05, atmospheric_altitude: float = 50000.0, surface_temperature: float = 300.0, max_level_step: float = 1000.0, NQuad: int = 16, atm_latitude: float = 0.0, atm_longitude: float = 0.0, solar_latitude: float = 0.0, solar_longitude: float = 0.0, species=['H2O-161', 'O2-66', 'N2-44', 'CO2-626', 'O3-XFIT'], remove_lines_percentile: dict[SpeciesEnum, float] | float | None = None)[source]

Creates a Disort clearsky flux operator using the Czarnecki-scheme.

__call__(frequency_grid: AscendingGrid, atmospheric_profile: dict = {}, surface_temperature: float = None)[source]

Get the total flux profile

Parameters:
  • frequency_grid (pyarts.arts.AscendingGrid) – The frequency grid

  • atmospheric_profile (dict, optional) – The atmospheric profile. Defaults to {}.

  • surface_temperature (float, optional) – The surface temperature. Defaults to None.

Returns:

Flux profile and average layer altitudes

Return type:

Flux, numpy.ndarray

__init__(visible_surface_reflectivity: float = 0.3, thermal_surface_reflectivity: float = 0.05, atmospheric_altitude: float = 50000.0, surface_temperature: float = 300.0, max_level_step: float = 1000.0, NQuad: int = 16, atm_latitude: float = 0.0, atm_longitude: float = 0.0, solar_latitude: float = 0.0, solar_longitude: float = 0.0, species=['H2O-161', 'O2-66', 'N2-44', 'CO2-626', 'O3-XFIT'], remove_lines_percentile: dict[SpeciesEnum, float] | float | None = None)[source]

Compute the total flux for a given atmospheric profile and surface temperature

The operator allows you to change the

Parameters:
  • visible_surface_reflectivity (float, optional) – The surface reflectivity constant for Disort in visible. Defaults to 0.3.

  • thermal_surface_reflectivity (float, optional) – The surface reflectivity constant for Disort in thermal. Defaults to 0.05.

  • atmospheric_altitude (float, optional) – The top-of-the-atmosphere altitude [m]. Defaults to 50e3.

  • surface_temperature (float, optional) – The surface temperature [K]. Defaults to 300.0.

  • max_level_step (float, optional) – The maximum thickness of layers [m]. Defaults to 1e3.

  • NQuad (int, optional) – The number of quadratures used by Disort. Defaults to 16.

  • atm_latitude (float, optional) – Latitude of profile [degrees]. Defaults to 0.0.

  • atm_longitude (float, optional) – Longitude of profile [degrees]. Defaults to 0.0.

  • solar_latitude (float, optional) – Latitude of sun [degrees]. Defaults to 0.0.

  • solar_longitude (float, optional) – Longitude of sun [degrees]. Defaults to 0.0.

  • species (list, optional) – The list of absorption species. Defaults to [ “H2O-161”, “O2-66”, “N2-44”, “CO2-626”, “O3-XFIT”, ].

  • remove_lines_percentile (dict | float | None, optional) – The percentile of lines to remove [0, 100]. Per species if dict. Defaults to None.

get_atmosphere(core=True, specs=True, nlte=False, ssprops=False, isots=False)[source]

Return the atmospheric field as a dictionary of python types.

Parameters:
  • core (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to True.

  • specs (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to True.

  • nlte (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to False.

  • ssprops (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to False.

  • isots (bool, optional) – See ArrayOfAtmPoint.to_dict(). Defaults to False.

Returns:

Atmospheric field dictionary

Return type:

dict