Documentation
¶
Overview ¶
Package atmosphere is the earth's air worked out from what it is and how it lies: its temperature, pressure and density by height, and in time what it does to light along a path. nothing in it is a colour picked by eye, and every number names its source.
Package atmosphere is built on measure.
Index ¶
- func ErrHeight() error
- func ErrWavelength() error
- func ErrWay() error
- type Air
- type Column
- type Composition
- func (air Composition) CrossSection(wavelength measure.Length) (*measure.Area, error)
- func (air Composition) Depth(column Column, wavelength measure.Length) (float64, error)
- func (air Composition) DepthAbove(wavelength measure.Length, pressure Pressure, latitude measure.Angle, ...) (float64, error)
- func (air Composition) Skylight(height measure.Length, view, sun Way, wavelengths []measure.Length) ([]float64, error)
- func (air Composition) Through(column Column, wavelength measure.Length) (float64, error)
- type Density
- type Pressure
- type Way
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrHeight ¶
func ErrHeight() error
ErrHeight is a height the standard does not reach: below sea level or above its top, at 86 km.
func ErrWavelength ¶
func ErrWavelength() error
ErrWavelength is a wavelength outside the range peck and reeder's refractive index of air holds over.
Types ¶
type Air ¶
type Air struct {
// contains filtered or unexported fields
}
Air is the air at one place: how warm it is, how hard it presses and how much of it there is.
func Standard ¶
Standard is the 1976 standard air at a height above sea level, from sea level to 86 km. It refuses a height outside that, and then gives no air.
func (Air) Temperature ¶
func (air Air) Temperature() measure.Temperature
Temperature is how warm the air is.
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
Column is the air along a way: how many molecules stand on each square metre across it, and whether the way ends on the ground.
func Along ¶
Along is the air along a straight way from a height above sea level, rising at an angle above level: out to the standard's top, or down to the ground. Light bends on such a way, and that is not here yet. It refuses a height outside the standard, and then gives no column.
type Composition ¶
type Composition struct {
// contains filtered or unexported fields
}
Composition is dry air with some share of co2, its other gases as bodhaine and the others' table 1 has them by volume.
func DryAir ¶
func DryAir(partsAMillion float64) (*Composition, error)
DryAir is dry air of so many parts a million of co2. It refuses a share below nothing or above all the air, and then gives no air.
func (Composition) CrossSection ¶
CrossSection is how much light of a wavelength one molecule of the air scatters, as an area: bodhaine and the others' equation 22. It refuses a wavelength outside what the refractive index holds over, and then gives no area.
func (Composition) Depth ¶
Depth is a column's rayleigh optical depth at a wavelength: how many times over its light is scattered on the way. It refuses what CrossSection refuses, and then gives nothing.
func (Composition) DepthAbove ¶
func (air Composition) DepthAbove(wavelength measure.Length, pressure Pressure, latitude measure.Angle, height measure.Length) (float64, error)
DepthAbove is the rayleigh optical depth of the air above a place: how many times over the light of a wavelength coming straight down is scattered on its way, bodhaine and the others' equation 25.
The pressure is the place's. Gravity is taken at the column's mass-weighted height, their equation 26. DepthAbove refuses what CrossSection refuses, and then gives nothing.
func (Composition) Skylight ¶
func (air Composition) Skylight(height measure.Length, view, sun Way, wavelengths []measure.Length) ([]float64, error)
Skylight is the light the sky sends down a look from a height, at each wavelength, for each watt a square metre of sunlight from the sun's way: a radiance, in watts a square metre a steradian.
It is single scattering. Sunlight comes down through the air to each step of the look, and rayleigh's phase function for unpolarised light turns a share of it toward the eye. The air between takes its share on the way, and a step the earth hides from the sun sends nothing.
Not here: light scattered twice or more, the ground's light, haze, ozone, the bending of light, and the air's depolarisation, which changes the phase function by under one and a half percent.
Skylight refuses a height outside the standard and a wavelength CrossSection refuses, and then gives no light.
type Density ¶
type Density struct {
// contains filtered or unexported fields
}
Density is mass in a volume.
func (Density) InKilogramsPerCubicMetre ¶
InKilogramsPerCubicMetre is the density in kilograms a cubic metre.
type Pressure ¶
type Pressure struct {
// contains filtered or unexported fields
}
Pressure is a pressure.