sunFromGrid
- Workspace.sunFromGrid(self, sun: Sun = self.sun, freq_grid: AscendingGrid = self.freq_grid, lat: Numeric = self.lat, lon: Numeric = self.lon, sun_spectrum_raw: GriddedField2, radius: Numeric = 696324200, distance: Numeric = 149597870700, temperature: Numeric = 5772, description: String = A sun) None
Extracts a sun spectrum from a field of such data.
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
freq_grid[Hz]Vector
stokes_dim[1]
Dimensions: [
freq_grid, stokes_dim]This method performs an interpolation onto the
freq_grid. The point offreq_gridthat 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 thefreq_grid.Authors: Jon Petersen, Richard Larsson
- Parameters:
sun (~pyarts3.arts.Sun, optional) – A sun. Defaults to
self.sun. [OUT]freq_grid (~pyarts3.arts.AscendingGrid, optional) – A frequency grid. Unit: Hz. Defaults to
self.freq_grid. [IN]lat (~pyarts3.arts.Numeric, optional) – A single latitude. Defaults to
self.lat. [IN]lon (~pyarts3.arts.Numeric, optional) – A single longitude. Defaults to
self.lon. [IN]sun_spectrum_raw (GriddedField2) – A raw spectrum. [IN]
radius (~pyarts3.arts.Numeric, optional) – The radius of the sun in meter. Default is the radius of our sun. . Defaults to
696324200[IN]distance (~pyarts3.arts.Numeric, optional) – The average distance between the sun and the planet in meter. Default value is set to 1 a.u. . Defaults to
149597870700[IN]temperature (~pyarts3.arts.Numeric, optional) – The effective temperature of the suns photosphere in Kelvin. Default is the temperature of our sun - 5772 Kelvin . Defaults to
5772[IN]description (~pyarts3.arts.String, optional) – A description of the sun. Defaults to
"A sun"[IN]