fitLapseRate

Return to directory of Todd's CASA extensions

Fits a line to the temperature vs. height curve from the O2 sounder. See also fitScaleHeight and fitLapseRateAndScaleHeightASDM.

Usage:

au.fitLapseRate(filename, profile=-1, quantity='T', datestring='', asdm='', plotfile='')
Inputs:
  • filename: csv file produced by the oxygen sounder
  • profile: which time-series profile to fit (-1 means to compute all).
  • quantity: 'T' for temperature or 'RH' for relative humidity
  • datestring: use the data closest to this date 'YYYY-MM-DD HH:MM:SS'
Returns:
  • for 1 profile: slope (K/km), intercept, and profile#
  • for multiple profiles: medianDay, madDay, medianNight, madNight, medianTotal, madTotal

Example:

CASA <4>: au.fitLapseRate('2015-11-23_20-02-32_lv2.csv',datestring='2015-11-25')
Fitting profile 2006 at 2015-11-25 00:00:16 UT
  Out[4]: (-6.516444766829304, 277.41667362684632, 2006)
-- ToddHunter - 2015-11-26
Topic revision: r1 - 2015-11-26, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback