sunsAddSingleFromGrid
- Workspace.sunsAddSingleFromGrid(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, 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, latitude: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 0, longitude: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 0, description: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.String]] = "Sun spectrum from Griddedfield.", verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None
Extracts a sun spectrum from a field of such data and 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 at the sun’s position.
Unit:
GriddedField2: [W m-2 Hz-1]
Vector
f_grid
[Hz]Vector
stokes_dim
[1]
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 toself.suns
[INOUT]suns_do (Index, optional) – Flag to activate the sun(s). See
suns_do
, defaults toself.suns_do
[OUT]f_grid (Vector, optional) – The frequency grid for monochromatic pencil beam calculations. See
f_grid
, defaults toself.f_grid
[IN]stokes_dim (Index, optional) – The dimensionality of the Stokes vector (1-4). See
stokes_dim
, defaults toself.stokes_dim
[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 average distance between the center of the sun and the center of the planet 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]latitude (Numeric, optional) – The latitude or the zenith position of the sun in the sky. . Defaults to
0
[IN]longitude (Numeric, optional) – The longitude or azimuthal position 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]verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]