Home | Trees | Indices | Help |
---|
|
An interface for a spectral radiance and its derivative.
|
|||
|
|||
|
|||
array/float |
|
||
array/float |
|
||
array |
|
||
array |
|
||
array |
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
Create an instance of the Radiance() class. Requires a frequency grid and a spectral radiance function. The function can also be given as an interpolation object. The optional args and kwargs give the additional arguments for the temperature function, which are ignored in case func is an interp1d object.
|
Define the surface area of the star.
|
Evaluate the radiance function at a coordinate point. l/f can be any value or array. If func is an interpolation object, it is in principle limited by the l/f-range of the interpolator. However, extrapolation is enabled, but it is advised not to extend much beyond the given l/f-range. Can be evaluated both in frequency and wavelength (l or f), and with respect to both frequency and wavelength (ftype).
|
Evaluate the derivative of the radiance function at a coordinate point. For now only possible with respect to frequency. x can be any value or array. If func is an interpolation object, it is in principle limited by the x-range of the interpolator. However, linear extrapolation is enabled, but it is advised not to extend much beyond the given x-range.
|
Return the spectral luminosity, i.e. integrated over the surface and solid angle, as a function of frequency or wavelength. Integrated over frequency, this leads to the (total) luminosity, or also the "flux". Do not integrate over wavelength! Units not right for that. Note that the integration over solid angle leads to the factor of pi. Fnu = Int(cos(theta) dOmega) = Int Int (cos(theta)sin(theta)dtheta dpsi) which has primitive function sin^2(t)/, psi in [0,2pi], theta in [0,pi/2]. Note that this is the outgoing flux, along the direction of the ray (opposite the direction would be [pi/2,pi], since theta is wrt the normal of the surface). Can be evaluated both in frequency and wavelength (l or f), and with respect to both frequency and wavelength (ftype).
|
Return the spectral flux density, i.e. integrated over solid angle, as a function of wavelength. Integrated over wavelength, this leads to the (total) flux density. For integration over wavelength, convert to Flambda = Fnu*nu/lambda first. Note that the integration over solid angle leads to the factor of pi. Fnu = Int(cos(theta) dOmega) = Int Int (cos(theta)sin(theta)dtheta dpsi) which has primitive function sin^2(t)/2, psi in [0,2pi], theta in [0,pi/2]. Note that this is the outgoing flux, along the direction of the ray (opposite the direction would be [pi/2,pi], since theta is wrt the normal of the surface). Can be evaluated both in frequency and wavelength (l or f), and with respect to both frequency and wavelength (ftype).
|
Return the spectral intensity, i.e. integrated over the surface, as a function of wavelength or frequency. Integrated over frequency, this leads to the (total) intensity. Do not integrate over wavelength! Units not right for that. Not to be confused with the specific intensity, which is the radiance or brightness of the source! Can be evaluated both in frequency and wavelength (l or f), and with respect to both frequency and wavelength (ftype).
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:58 2016 | http://epydoc.sourceforge.net |