Utility¶
-
class
sitchlib.
Utility
[source]¶ General utility class.
-
classmethod
calculate_distance
(lon_1, lat_1, lon_2, lat_2)[source]¶ Wrap the LocationTool.get_distance_between_points() fn.
-
classmethod
create_file_if_nonexistent
(path, lfile)[source]¶ Create file and path, if it doesn’t already exist.
-
classmethod
dt_delta_in_minutes
(dt_1, dt_2)[source]¶ Calculate the delta between two datetime objects, in minutes.
-
classmethod
dt_from_iso
(iso_time)[source]¶ Exchange an ISO8601-formatted string for a datetime object.
-
classmethod