stilt.Receptor#

class stilt.Receptor(time: 'TimeLike', altitude_ref: 'VerticalReference') → 'None'[source]#

Base class for receptors.

Iterating a receptor yields (lat, lon, alt) for each release point. Two receptors are equal when their type, time, points, and altitude_ref match.

Methods#

from_dict(d)

Build a receptor from a dict made by to_dict().

from_points(time, points, *[, altitude_ref])

Build the right receptor type for a list of points.

to_dict()

Return this receptor as a dict that from_dict() reads back.

Attributes#

geometry

Shapely geometry of the release points.

id

Receptor id, the release time followed by the location id.

location_id

Identifier of this receptor's location.

plot

Plotting methods, such as receptor.plot.map().

points

Release points as shapely Point(lon, lat, alt) objects.