sunsAddSingleFromGridAtLocation

Workspace.sunsAddSingleFromGridAtLocation(self: pyarts.arts._Workspace, suns: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfSun]] = self.suns, suns_do: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.suns_do, f_grid: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.f_grid, stokes_dim: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.stokes_dim, refellipsoid: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.refellipsoid, sun_spectrum_raw: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.GriddedField2], radius: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 6.963242e8, distance: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 1.495978707e11, temperature: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = -1, zenith: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 0, azimuth: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 0, description: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.String]] = "Sun spectrum from Griddedfield.", location_latitude: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 0, location_longitude: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 0, location_altitude: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 1e5, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Extracts a sun spectrum measured at the given location adds it to suns.

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 spectral irradiance. It is coverted to the spectral irradiance at the sun’s position.

Unit:

Dimensions: [f_grid, stokes_dim]

This method performs an interpolation onto the f_grid. The point of f_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 f_grid.

Author(s): Jon Petersen

Parameters:
  • suns (ArrayOfSun, optional) – Array of Sun. See suns, defaults to self.suns [INOUT]

  • suns_do (Index, optional) – Flag to activate the sun(s). See suns_do, defaults to self.suns_do [OUT]

  • f_grid (Vector, optional) – The frequency grid for monochromatic pencil beam calculations. See f_grid, defaults to self.f_grid [IN]

  • stokes_dim (Index, optional) – The dimensionality of the Stokes vector (1-4). See stokes_dim, defaults to self.stokes_dim [IN]

  • refellipsoid (Vector, optional) – Reference ellipsoid. See refellipsoid, defaults to self.refellipsoid [IN]

  • sun_spectrum_raw (GriddedField2) – Raw data for monochromatic irradiance spectra. . [IN]

  • radius (Numeric, optional) – The radius of the sun in meter. Default is the radius of our Sun. . Defaults to 6.963242e8 [IN]

  • distance (Numeric, optional) – The distance between the location and the center of the sun in meter. Default value is set to 1 a.u. . Defaults to 1.495978707e11 [IN]

  • temperature (Numeric, optional) – The temperature of the padding if the f_grid is outside the sun spectrum data. Choose 0 for 0 at the edges or a effective temperature for a padding using plack’s law. . Defaults to -1 [IN]

  • zenith (Numeric, optional) – Zenith angle of the sun in the sky. . Defaults to 0 [IN]

  • azimuth (Numeric, optional) – Azimuthal angle of the sun in the sky. . Defaults to 0 [IN]

  • description (String, optional) – The description of the sun. . Defaults to "Sun spectrum from Griddedfield." [IN]

  • location_latitude (Numeric, optional) – The latitude of the sun spectrum measurement. . Defaults to 0 [IN]

  • location_longitude (Numeric, optional) – The longitude of the sun spectrum measurement. . Defaults to 0 [IN]

  • location_altitude (Numeric, optional) – The altitude of the sun spectrum measurement. . Defaults to 1e5 [IN]

  • verbosity (Verbosity) – ARTS verbosity. See verbosity, defaults to self.verbosity [IN]