swLapseRate(salinity, temperature=NULL, pressure=NULL)
temperature
and pressure
must be provided) or
a ctd
object (in which case salinity
,
temperature
and pressure
arctd
object, then salinity,
temperature and pressure values are extracted from it, and used for
the calculation.Compute lapse rate using Fofonoff and Millard's (1983) formula.
lr <- swLapseRate(40, 40, 10000) # 3.255976e-4
Run the code above in your browser using DataLab