stilt.PointRelease#

class stilt.PointRelease(*, kind: Literal['point'] = 'point', time: datetime.datetime, altitude_ref: Literal['agl', 'msl']='agl', attrs: dict[str, typing.Any]=<factory>, longitude: float, latitude: float, altitude: float) → None[source]#

Release that releases particles from one point.

Parameters#

Parameter

Description

Default

kind

Release type.

'point'

time

Release time, UTC. A time-zone-aware value is converted to UTC and a naive one taken as UTC. A string must be ISO 8601 or YYYYMMDDHHMM; other forms, such as the day-first 05/07/2023, are refused.

Required

altitude_ref

Whether heights are above ground (agl) or sea level (msl).

'agl'

attrs

Extra labels, such as a site or scene name: the columns of releases.csv that runtraj does not use. They are kept when the releases are written back, and are columns of project.releases and project.simulations to select on. They are not part of the release’s id or of equality.

{}

longitude

Longitude in degrees, from -180 to 180.

Required

latitude

Latitude in degrees, from -90 to 90.

Required

altitude

Release height in meters, above ground or sea level (altitude_ref).

Required

Attributes#

location_id

Location id, "<lon>_<lat>_<alt>", ending in msl above sea level.

Methods#

coords()

Return (lon, lat, alt) of the release point.

Inherited#

From Release: from_dict, from_json, from_points, geometry, id, plot, points, to_dict, to_json