lair.noaa.CarbonTracker.background#
- CarbonTracker.background(points, by=None)[source]#
Background mole fraction [ppm]: mean of the sampled field over
points.Samples the field at every point (e.g. trajectory endpoints) and averages over them. With
by(e.g.'receptor') the mean and 1-sigma spread are returned per group; otherwise a single-row summary. Output is ppm (CT-CH4 mole fractions are stored in ppb, CO2 in ppm).- Parameters:
- Returns:
pd.DataFrame –
background_ppm,sigma_ppm(the standard deviation over the points) andn_endpoints(the points that had a value), one row per group.- Return type:
See also
CarbonTracker.sampleThe value at each point.
Examples
With the points of
sample(), as the CarbonTracker example shows:ct.background(points) # one row ct.background(points, by="receptor") # one row per receptor