varwg.meteo.meteox2y.blackbody_rad¶
- varwg.meteo.meteox2y.blackbody_rad(rad=None, temp=None, eps=1.0)[source]¶
Stefan-Boltzmann law
There are two ways to use this funtion:
1) If input is radiation, then the function calculates the absolute temperature of the body emitting the radiation
2) If input is temperature, then the function calculates the radiation emitted by the body of this temperature
- Parameters:
- radfloat or numpy.array of floats or None
radiation [W/m**2]
- tempfloat or numpy.array of floats or None
temperature [deg C]
- epsfloat or numpy.array of floats, optional
emissivity of a grey body, values between 0 and 1, default=1
- Returns:
- either:
- tempfloat or numpy.array of floats or None
temperature [deg C]
- or:
- radfloat or numpy.array of floats or None
radiation [W/m**2]
Examples
>>> "%.9f" % blackbody_rad(rad=350) '7.138805085'
>>> "%.9f" % blackbody_rad(temp=0) '315.683203500'