ARTS built-in documentation server
Workspace Method sunsAddSingleFromGrid
Description
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
the irradiance at the suns photosphere.
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.
Authors: Jon Petersen
Synopsis
sunsAddSingleFromGrid( | suns, suns_do, f_grid, stokes_dim, sun_spectrum_raw, radius, distance, temperature, latitude, longitude, description ) |
Variables
OUT+IN | suns | (ArrayOfSun) | Array of Sun. |
OUT | suns_do | (Index) | Flag to activate the sun(s). |
IN | f_grid | (Vector) | The frequency grid for monochromatic pencil beam calculations. |
IN | stokes_dim | (Index) | The dimensionality of the Stokes vector (1-4). |
GIN | sun_spectrum_raw | (GriddedField2) | Raw data for monochromatic irradiance spectra.
|
GIN | radius | (Numeric, Default: 6.963242e8) | The radius of the sun in meter.
Default is the radius of our sun.
|
GIN | distance | (Numeric, Default: 1.495978707e11) | 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.
|
GIN | temperature | (Numeric, Default: -1) | 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.
|
GIN | latitude | (Numeric, Default: 0) | The latitude or the zenith position of the sun in the sky.
|
GIN | longitude | (Numeric, Default: 0) | The longitude or azimuthal position of the sun in the sky.
|
GIN | description | (String, Default: "Sun spectrum from Griddedfield.") | The description of the sun.
|