ARTS built-in documentation server

Workspace Method starsAddSingleFromGrid

Description

Extracts a star spectrum from a field of such data and
adds it to stars.

The method allows to obtain the star spectrum by
interpolation from a field of such data. 
The star spectrum is expected to be stored as:
   GriddedField2:
      Vector f_grid[N_f]
      Vector stockes_dim[N_s]

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 0 st the edges of the f_grid.

Authors: Jon Petersen

Synopsis

starsAddSingleFromGrid( stars, stars_do, f_grid, stokes_dim, star_spectrum_raw, radius, distance, temperature, latitude, longitude, description )

Variables

OUT+INstars(ArrayOfStar)Array of Star.
OUTstars_do(Index)Flag to activate the star(s).
INf_grid(Vector)The frequency grid for monochromatic pencil beam calculations.
INstokes_dim(Index)The dimensionality of the Stokes vector (1-4).
GINstar_spectrum_raw(GriddedField2)Raw data for monochromatic irradiance spectra.
GINradius(Numeric, Default: 6.963242e8)The radius of the star in meter. Default is the radius of our sun.
GINdistance(Numeric, Default: 1.495978707e11)The average distance between the star and 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 star 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 star in the sky.
GINlongitude(Numeric, Default: 0)The longitude or azimuthal position of the star in the sky.
GINdescription(String, Default: "Star spectrum from Griddedfield.")The description of the star.