sunFromGrid

Workspace.sunFromGrid(self, sun: pyarts.arts.Sun | None = None, frequency_grid: pyarts.arts.AscendingGrid | None = None, sun_spectrum_raw: pyarts.arts.GriddedField2 | None = None, radius: pyarts.arts.Numeric | None = None, distance: pyarts.arts.Numeric | None = None, temperature: pyarts.arts.Numeric | None = None, latitude: pyarts.arts.Numeric | None = None, longitude: pyarts.arts.Numeric | None = None, description: pyarts.arts.String | None = None) None

Extracts a sun spectrum from a field of such data.

The method allows to obtain the sun spectrum by interpolation from a field of such data. The sun spectrum is expected to be stored as the irradiance at the suns photosphere.

Unit:

  • GriddedField2: [W m-2 Hz-1]

  • Vector frequency_grid [Hz]

  • Vector stokes_dim [1]

Dimensions: [frequency_grid, stokes_dim]

This method performs an interpolation onto the frequency_grid. The point of frequency_grid that are outside the data frequency grid are initialized according to planck’s law of the temperature variable. Hence, a temperature of 0 means 0s the edges of the frequency_grid.

Author(s): Jon Petersen, Richard Larsson

Parameters:
  • sun (Sun, optional) – A sun. See sun, defaults to self.sun [OUT]

  • frequency_grid (AscendingGrid, optional) – A single path point’s frequency grid. See frequency_grid, defaults to self.frequency_grid [IN]

  • sun_spectrum_raw (GriddedField2) – A raw spectrum. [IN]

  • radius (Numeric, optional) – , optionalThe radius of the sun in meter. Default is the radius of our sun. . [IN]

  • distance (Numeric, optional) – , optionalThe average distance between the sun and the planet in meter. Default value is set to 1 a.u. . [IN]

  • temperature (Numeric, optional) – , optionalThe effective temperature of the suns photosphere in Kelvin. Default is the temperature of our sun - 5772 Kelvin . [IN]

  • latitude (Numeric, optional) – , optionalThe latitude or the zenith position of the sun in the sky. . [IN]

  • longitude (Numeric, optional) – , optionalThe longitude or azimuthal position of the sun in the sky. . [IN]

  • description (String, optional) – , optionalA description of the sun. [IN]