stilt.receptors#
Classes
|
Represents a vertical column receptor at a single (x, y) location, defined by a bottom and top height. |
|
Represents a spatial location for STILT models, independent of time. |
|
Represents a receptor composed of multiple 3D points, all at the same time. |
|
Represents a single receptor at a specific 3D point (latitude, longitude, height) in space and time. |
|
|
|
Represents a slanted column receptor, defined by multiple points along the slant. |
- class stilt.receptors.Location(geometry)[source]#
Represents a spatial location for STILT models, independent of time. Can be used to generate consistent location IDs and create receptors when combined with time.
- __init__(geometry)[source]#
Initialize a location with a shapely geometry.
- Parameters:
geometry (shapely.Geometry) – A geometric object (e.g., Point, MultiPoint, LineString).
- property geometry#
Location geometry.
- property points: list[Point]#
Returns a list of shapely Point objects representing the location’s coordinates.
- class stilt.receptors.Receptor(time, location)[source]#
- __init__(time, location)[source]#
A receptor that wraps a geometric object (Point, MultiPoint, etc.) and associates it with a timestamp.
- Parameters:
time (datetime) – The timestamp associated with the receptor.
location (Location) – A location object representing the receptor’s spatial position.
- property geometry: Geometry#
Receptor geometry.
- property timestr: str#
Get the time as an ISO formatted string.
- Returns:
Time in ‘YYYYMMDDHHMM’ format.
- Return type:
- class stilt.receptors.PointReceptor(time, longitude, latitude, height)[source]#
Represents a single receptor at a specific 3D point (latitude, longitude, height) in space and time.
- __init__(time, longitude, latitude, height)[source]#
A receptor that wraps a geometric object (Point, MultiPoint, etc.) and associates it with a timestamp.
- Parameters:
time (datetime) – The timestamp associated with the receptor.
location (Location) – A location object representing the receptor’s spatial position.
- class stilt.receptors.MultiPointReceptor(time, points)[source]#
Represents a receptor composed of multiple 3D points, all at the same time.
- class stilt.receptors.ColumnReceptor(time, longitude, latitude, bottom, top)[source]#
Represents a vertical column receptor at a single (x, y) location, defined by a bottom and top height.
- __init__(time, longitude, latitude, bottom, top)[source]#
A receptor that wraps a geometric object (Point, MultiPoint, etc.) and associates it with a timestamp.
- Parameters:
time (datetime) – The timestamp associated with the receptor.
location (Location) – A location object representing the receptor’s spatial position.
- class stilt.receptors.SlantReceptor(time, points)[source]#
Represents a slanted column receptor, defined by multiple points along the slant.
- classmethod from_top_and_bottom(time, bottom, top, numpar, weights=None)[source]#
- Parameters:
time (any) – Timestamp.
bottom (tuple) – (lon, lat, height) tuple for the bottom of the slant.
top (tuple) – (lon, lat, height) tuple for the top of the slant.
numpar (int) – Number of points along the slant.
weights (list of float, optional) – Weights for each point along the slant. Must be the same length as numpar.