stilt.footprint.FootprintAccessor#
- class stilt.footprint.FootprintAccessor(foot: 'xr.DataArray') 'None'[source]#
PYSTILT methods on a footprint, as
foot.stilt.A footprint is an
xarray.DataArray, so sums, selections, and plots are plain xarray (foot.sum("time"),foot.sel(time=slice(a, b))). The accessor adds what needs the receptor or the footprint settings, which ride in the array’s attributes. Recent xarray keeps attributes through arithmetic. Older versions drop them (foot * 2), so with those, call these methods on the footprint as read, or usexr.set_options(keep_attrs=True).
Attributes#
The footprint settings (grid, smoothing, and particle transforms). |
|
Hash of the geometry the grid was derived for, or |
|
The grid the footprint is on. |
|
The footprint's name, usually the variant name. |
|
Plotting methods, such as |
|
The receptor the footprint belongs to. |
Methods#
|
Sum the footprint onto the cells of another grid or set of polygons, per time bin. |
|
Return the modeled enhancement at the receptor, footprint times flux summed over the grid. |
|
Write the footprint to a CF-1.8 NetCDF file. |