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+INsuns(ArrayOfSun)Array of Sun.
OUTsuns_do(Index)Flag to activate the sun(s).
INf_grid(Vector)The frequency grid for monochromatic pencil beam calculations.
INstokes_dim(Index)The dimensionality of the Stokes vector (1-4).
GINsun_spectrum_raw(GriddedField2)Raw data for monochromatic irradiance spectra.
GINradius(Numeric, Default: 6.963242e8)The radius of the sun in meter. Default is the radius of our sun.
GINdistance(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.
GINtemperature(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.
GINlatitude(Numeric, Default: 0)The latitude or the zenith position of the sun in the sky.
GINlongitude(Numeric, Default: 0)The longitude or azimuthal position of the sun in the sky.
GINdescription(String, Default: "Sun spectrum from Griddedfield.")The description of the sun.