![]() |
libSUFR
a LIBrary of Some Useful Fortran Routines
|
Procedures to deal with weather. More...
Functions/Subroutines | |
| elemental real(double) function | air_pressure (elev, press0) |
| Compute the air pressure for a given elevation and pressure at sea level. | |
| elemental real(double) function | air_density (press, temp) |
| Compute the air density for the given temperature and pressure. | |
| elemental real function | air_density_sp (press, temp) |
| Compute the air density for the given temperature and pressure, single-precision wrapper for air_density() | |
| elemental integer function | beaufort (speed) |
| Derive wind "force" on Beaufort scale from wind speed in m/s. | |
| elemental real(double) function | dew_point (tempc, rh) |
| Compute the dew point from the temperature and relative humidity. | |
| elemental real(double) function | water_vapor_saturated_density (tempc) |
| Compute the saturated water-vapor density in air for a given temperature. | |
Procedures to deal with weather.
| elemental real(double) function sufr_weather::air_density | ( | real(double), intent(in) | press, |
| real(double), intent(in) | temp ) |
Compute the air density for the given temperature and pressure.
| press | Pressure (Pa) |
| temp | Temperature (K) |
| air_density | Air density (kg/m^3) |
Definition at line 63 of file weather.f90.
References air_density(), and sufr_kinds::double.
Referenced by air_density(), air_density_sp(), and sufr_sports::cycling_power().

| elemental real function sufr_weather::air_density_sp | ( | real, intent(in) | press, |
| real, intent(in) | temp ) |
Compute the air density for the given temperature and pressure, single-precision wrapper for air_density()
| press | Pressure (Pa) |
| temp | Temperature (K) |
| air_density_sp | Air density (kg/m^3) |
Definition at line 88 of file weather.f90.
References air_density(), and air_density_sp().
Referenced by air_density_sp().

| elemental real(double) function sufr_weather::air_pressure | ( | real(double), intent(in) | elev, |
| real(double), intent(in), optional | press0 ) |
Compute the air pressure for a given elevation and pressure at sea level.
| elev | Elevation w.r.t. sea level (m) |
| press0 | Air pressure at sea level (e.g. mbar) |
| air_pressure | Air pressure at the given elevation (same as press0, default: mbar) |
Definition at line 37 of file weather.f90.
References air_pressure(), and sufr_kinds::double.
Referenced by air_pressure().

| elemental integer function sufr_weather::beaufort | ( | real(double), intent(in) | speed | ) |
Derive wind "force" on Beaufort scale from wind speed in m/s.
| speed | Wind speed (m/s) |
| wind_speed_2_bft | Wind "force" on the Beaufort scale |
Definition at line 107 of file weather.f90.
References beaufort(), and sufr_kinds::double.
Referenced by beaufort().

| elemental real(double) function sufr_weather::dew_point | ( | real(double), intent(in) | tempc, |
| real(double), intent(in) | rh ) |
Compute the dew point from the temperature and relative humidity.
| tempc | Air temperature (degrees Celsius) |
| RH | Relative humidity (fraction) |
| dew_point | Dew point (degrees Celsius) |
Definition at line 159 of file weather.f90.
References dew_point(), and sufr_kinds::double.
Referenced by dew_point().

| elemental real(double) function sufr_weather::water_vapor_saturated_density | ( | real(double), intent(in) | tempc | ) |
Compute the saturated water-vapor density in air for a given temperature.
| tempc | Air temperature (degrees Celsius) |
| water_vapor_saturated_density | Saturated water-vapor density (g/m^3) |
Definition at line 193 of file weather.f90.
References sufr_kinds::double, and water_vapor_saturated_density().
Referenced by water_vapor_saturated_density().
