lapserate | R Documentation |
lapserate
is used to calculate changes in temperature with height.
lapserate(tc, h, p = 101300)
tc |
a single numeric value, SpatRaster object, two-dimensional array or matrix of temperature (ºC). |
h |
a single numeric value, SpatRaster object, two-dimensional array or matrix of specific humidity (kg kg-1 ). |
p |
an optional single numeric value, SpatRaster object, two-dimensional array or matrix of atmospheric pressure (Pa). |
if tc is a SpatRaster, a SpatRaster object is returned. This function calculates the theoretical lapse rate. Environmental lapse rates can vary due to winds.
the lapse rate (º m-1 ).
lapserate(20, 0) * 1000 # dry lapse rate per km
h <- humidityconvert(100, intype = "relative", 20)
lapserate(20, h$specific) * 1000 # lapse rate per km when relative humidity is 100%
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.