runtraj.releases.parse_release_id#

runtraj.releases.parse_release_id(release_id)[source]#

Split a release id into its release time and location id.

An id is "<YYYYMMDDHHMM>_<location>", where the location is "<lon>_<lat>_<alt>" for a point, "<lon>_<lat>_X<bottom>-<top>" for a column, and "multi_<hash>" for a multipoint release. Heights above mean sea level end the location with msl.

Raises:

ValueError – If release_id does not start with a YYYYMMDDHHMM time and an underscore.

Return type:

tuple[datetime, str]

Parameters:

release_id (str)